-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.html
96 lines (82 loc) · 2.35 KB
/
configuration.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="images/logo-white.svg" type="image/svg">
<title>Configuration | EnvOS</title>
<link rel="stylesheet" href="css/service_pages.css">
</head>
<body>
<div class="content">
<h1 style="margin-bottom: 0em;">Configuration menu</h1>
<span id="id" class="mono">id</span> /
<span id="version" class="mono">version</span>
<br/><br/>
<div class="block">
<h3>Commands</h3>
<button id="b_reboot">Reboot</button>
<button id="b_reset">Reset settings</button>
</div>
<div class="block">
<h3>Create/edit serial port</h3>
<table class="table-ports">
<tr>
<td>ID: <input type="number" name="port_id" id="port_id" placeholder="ID"></td>
<td>RX: <input type="number" name="rx" id="rx" placeholder="RX"></td>
<td>TX: <input type="number" name="tx" id="tx" placeholder="TX"></td>
<td><button id="apply_port" style="float: right;">Apply</button></td>
</tr>
</table>
<hr>
<h3>Serial ports</h3>
<table class="table-f">
<tbody id="ports_table">
<!-- -->
</tbody>
</table>
</div>
<div class="block">
<h3>Create/edit sensor</h3>
<table class="table">
<tr>
<td>
<select name="sensor" id="sensor">
<!-- -->
</select>
</td>
<td>
<select name="value" id="value">
<option value="enabled">Enabled</option>
<!-- -->
</select>
</td>
<td>
<button id="apply_sensor" style="float: right;">Apply</button>
</td>
</tr>
</table>
<hr>
<h3>Enabled sensors</h3>
<table class="table-f">
<tbody id="sensors_table">
<!-- -->
</tbody>
</table>
</div>
<div class="block">
<h3>Current settings</h3>
<div style="margin-bottom: 0.5em;">
<button id="b_format">Format</button>
</div>
<textarea class="settings-text" id="settings_json"></textarea>
<div style="margin-top: 0.3em;">
<button id="b_save">Save</button>
</div>
</div>
<div class="mono" style="width: 100%; text-align: center;">C++ для богів, JS для лохів!</div><br/>
</div>
<script type="module" src="js/utils.js"></script>
<script type="module" src="js/configuration.js"></script>
</body>