aboutsummaryrefslogtreecommitdiffstats
path: root/gui/views
diff options
context:
space:
mode:
Diffstat (limited to 'gui/views')
-rw-r--r--gui/views/configeditor.tpl29
-rw-r--r--gui/views/index.tpl129
-rw-r--r--gui/views/rcparam.tpl37
-rw-r--r--gui/views/services.tpl31
-rw-r--r--gui/views/stats.tpl21
5 files changed, 0 insertions, 247 deletions
diff --git a/gui/views/configeditor.tpl b/gui/views/configeditor.tpl
deleted file mode 100644
index d302498..0000000
--- a/gui/views/configeditor.tpl
+++ /dev/null
@@ -1,29 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>ODR-DabMux Configuration Editor</title>
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- </head>
-<body class="w3-container">
- <h1>Configuration for {{version}}</h1>
-
- <p><a href="/config">Reload</a></p>
-
- {% if message %}
- <p>{{message}}</p>
- {% endif %}
-
- <form action="/config" method="post">
- <p>
- <textarea name="config" cols="60" rows="30">{{config}}</textarea>
- </p>
-
- <p>
- <input type="submit" value="Update ODR-DabMux configuration"></input>
- </p>
- </form>
-
- </body>
-</html> \ No newline at end of file
diff --git a/gui/views/index.tpl b/gui/views/index.tpl
deleted file mode 100644
index ce60533..0000000
--- a/gui/views/index.tpl
+++ /dev/null
@@ -1,129 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>ODR-DabMux Configuration</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- </head>
- <body class="w3-container">
- <div class="w3-top w3-bar w3-blue-grey">
- <a href="#general" class="w3-bar-item w3-button">General Options</a>
- <a href="#servicelist" class="w3-bar-item w3-button">Services</a>
- <a href="#subchannels" class="w3-bar-item w3-button">Subchannels</a>
- <a href="#components" class="w3-bar-item w3-button">Components</a>
- <a href="#rcmodules" class="w3-bar-item w3-button">RC Modules</a>
- </div>
- <div id="general" class="w3-responsive w3-card-4">
- <br /><br />
- <table class="w3-table w3-striped w3-bordered">
- <tr class="w3-blue-grey">
- <th>General multiplex options</th>
- <th></th>
- </tr>
- <tr>
- <td>Number of frames to encode</td>
- <td>{{g.nbframes}}</td>
- </tr>
- <tr>
- <td>Statistics server port</td>
- <td>{{g.statsserverport}}</td>
- </tr>
- <tr>
- <td>Write SCCA field</td>
- <td>{{g.writescca}}</td>
- </tr>
- <tr>
- <td>Write TIST timestamp</td>
- <td>{{g.tist}}</td>
- </tr>
- <tr>
- <td>DAB mode</td>
- <td>{{g.dabmode}}</td>
- </tr>
- <tr>
- <td>Log to syslog</td>
- <td>{{g.syslog}}</td>
- </tr>
- </table>
- </div>
- <div id="servicelist" class="w3-responsive w3-card-4">
- <br /><br />
- <table class="w3-table w3-striped w3-bordered">
- <tr class="w3-blue-grey">
- <th>Service</th>
- <th>Id</th>
- <th>Label</th>
- <th>Short label</th>
- </tr>
- {% for s in services %}
- <tr>
- <td>{{s.name}}</td>
- <td>{{s.id}}</td>
- <td>{{s.label}}</td>
- <td>{{s.shortlabel}}</td>
- </tr>
- {% endfor %}
- </table>
- </div>
- <div id="subchannels" class="w3-responsive w3-card-4">
- <br /><br />
- <table class="w3-table w3-striped w3-bordered">
- <tr class="w3-blue-grey">
- <th>Sub channel</th>
- <th>Type</th>
- <th>Input file</th>
- <th>Bit rate (Kbps)</th>
- </tr>
- {% for s in subchannels %}
- <tr>
- <td>{{s.name}}</td>
- <td>{{s.type}}</td>
- <td>{{s.inputfile}}</td>
- <td>{{s.bitrate}}</td>
- </tr>
- {% endfor %}
- </table>
- </div>
- <div id="components" class="w3-responsive w3-card-4">
- <br /><br />
- <table class="w3-table w3-striped w3-bordered">
- <tr class="w3-blue-grey">
- <th>Component</th>
- <th>Label</th>
- <th>Short label</th>
- <th>Service</th>
- <th>Sub-channel</th>
- <th>Fig type</th>
- </tr>
- {% for s in components %}
- <tr>
- <td>{{s.name}}</td>
- <td>{{s.label}}</td>
- <td>{{s.shortlabel}}</td>
- <td>{{s.service}}</td>
- <td>{{s.subchannel}}</td>
- <td>{{s.figtype}}</td>
- </tr>
- {% endfor %}
- </table>
- </div>
- <div id="rcmodules" class="w3-responsive w3-card-4">
- <br /><br />
- <ul class="w3-ul">
- <li class="w3-blue-grey"><b>RC Modules</b></li>
- {% for m in rcmodules %}
- <li class="w3-light-grey"><b>{{m.name}}</b>
- <ul class="w3-ul">
- {% for p in m.parameters %}
- <li class="w3-white"><a href="/rc/{{m.name}}/{{p.param.decode()}}" class="w3-hover-blue-grey">{{p.param.decode()}}</a> : {{p.value.decode()}}</li>
- {% endfor %}
- </ul>
- </li>
- {% endfor %}
- </ul>
- </div>
- </div>
-
- </body>
-</html> \ No newline at end of file
diff --git a/gui/views/rcparam.tpl b/gui/views/rcparam.tpl
deleted file mode 100644
index edac5b7..0000000
--- a/gui/views/rcparam.tpl
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>ODR-DabMux Configuration</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- </head>
-
- <body class="w3-container">
- <h1 class="w3-blue-grey">Remote-Control: module {{module}}</h1>
- <div class="w3-card-4">
- <form class="w3-container" method="post">
- <p />
- {% if not list %}
- <label>{{param}}:</label>
- <input name="newvalue" type="text" value="{{value.decode()}}" autofocus>
- {% else %}
- <label>{{label}}:</label>
- <select id="newvalue" name="newvalue">
- {% for l in list %}
- {% if (l["value"] == value.decode()) %}
- <option selected value={{l["value"]}}>{{l["desc"]}}</option>
- {% else %}
- <option value={{l["value"]}}>{{l["desc"]}}</option>
- {% endif %}
- {% endfor %}
- </select>
- {% endif %}
- <p />
- <button class="w3-button w3-blue-grey" type="submit">Update</button>
- <p />
- </form>
- </div>
- </body>
-
-</html> \ No newline at end of file
diff --git a/gui/views/services.tpl b/gui/views/services.tpl
deleted file mode 100644
index 42438a8..0000000
--- a/gui/views/services.tpl
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>ODR-DabMux Services</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- </head>
- <body class="w3-container">
- <h1>Services for {{version}}</h1>
- <table class="w3-table w3-striped w3-bordered">
- <tr class="w3-blue-grey">
- <th>Service</th>
- <th>Id</th>
- <th>Label</th>
- <th>Short label</th>
- <th>Program type</th>
- <th>Language</th>
- </tr>
- {% for s in services %}
- <tr>
- <td>{{s.name}}</td>
- <td>{{s.id}}</td>
- <td>{{s.label}}</td>
- <td>{{s.shortlabel}}</td>
- <td>{{s.pty}}</td>
- <td>{{s.language}}</td>
- </tr>
- {% endfor %}
- </table>
- </body>
-</html> \ No newline at end of file
diff --git a/gui/views/stats.tpl b/gui/views/stats.tpl
deleted file mode 100644
index 4bb089f..0000000
--- a/gui/views/stats.tpl
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>ODR-DabMux Statistics</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
- <script type="text/javascript" src="static/jquery-1.10.2.min.js"></script>
- <script type="text/javascript" src="static/stats.js"></script>
- </head>
- <body class="w3-container">
- <h1>Subchannel stats for {{version}}</h1>
-
- <a id="update">Update</a>
-
- <div id="subchannels">
- <p>Subchannels</p>
- <div id="statdata"></div>
- </div>
- </body>
-</html> \ No newline at end of file