-
Notifications
You must be signed in to change notification settings - Fork 2
/
static-dashboard.html
422 lines (414 loc) · 15 KB
/
static-dashboard.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<!-- Site Properties -->
<title>Fomantic UI – Dashboard Page</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.7/semantic.min.css" integrity="sha512-g/MzOGVPy3OQ4ej1U+qe4D/xhLwUn5l5xL0Fa7gdC258ZWVJQGwsbIR47SWMpRxSPjD0tfu/xkilTy+Lhrl3xg==" crossorigin="anonymous" />
<!-- Custom CSS -->
<link rel="stylesheet" type="text/css" href="static.css">
<!-- Custom Style -->
<style type="text/css"></style>
</head>
<body class="extended">
<!-- Top Following Menu -->
<div class="ui top fixed menu transition hidden">
<div class="ui fluid container">
<div class="header link item"><a href="index.html"><i class="cubes icon"></i>libVirt Web</a></div>
<div class="right menu">
<div class="ui item animated labeled icon button" id="dark-theme">
<div class="visible content">
<i class="moon icon"></i>
Dark
</div>
<div class="hidden content">
<i class="sun icon"></i>
Light
</div>
</div>
<div class="ui item animated labeled icon button" id="light-theme">
<div class="visible content">
<i class="sun icon"></i>
Light
</div>
<div class="hidden content">
<i class="moon icon"></i>
Dark
</div>
</div>
<!-- <div class="ui dropdown item">
<i class="home icon"></i>
Menu
<i class="dropdown icon"></i>
<div class="menu">
<a href="dashboard.html" class="item active"><i class="chart pie icon"></i>Dashboard</a>
<a href="index.html" class="item"><i class="grip horizontal icon"></i>Modules</a>
<a href="help.html" class="item"><i class="question circle outline icon"></i>Help</a>
<a class="item"><i class="redo icon"></i>Refresh</a>
</div>
</div>
<div class="ui dropdown item">
<i class="cog icon"></i>
Settings
<i class="dropdown icon"></i>
<div class="menu">
<a class="item"><i class="us flag"></i>English</a>
<a class="item"><i class="fr flag"></i>French</a>
<a class="item"><i class="ru flag"></i>Russian</a>
<a class="item"><i class="es flag"></i>Spanish</a>
<a class="item"><i class="ch flag"></i>Swiss French</a>
</div>
</div> -->
</div>
</div>
</div>
<!-- Sidebar Menu -->
<div class="ui left inverted sidebar vertical menu">
<div class="header link item">
<a href="index.html">
<i class="cubes icon" style="float: left; margin: 0 0.35714286em 0 0;"></i>
libVirt Web
</a>
</div>
<a href="static-dashboard.html" class="item active">
<i class="chart pie icon" style="float: left; margin: 0 0.35714286em 0 0;"></i>
Dashboard
</a>
<a href="index.html" class="item">
<i class="grip horizontal icon" style="float: left; margin: 0 0.35714286em 0 0;"></i>
Modules
</a>
<a href="static-help.html" class="item">
<i class="question circle outline icon" style="float: left; margin: 0 0.35714286em 0 0;"></i>
Help
</a>
<a class="item">
<i class="redo icon" style="float: left; margin: 0 0.35714286em 0 0;"></i>
Refresh
</a>
<div class="item">
<div class="ui inverted accordion">
<div class="title">
<i class="cog icon" style="float: left;"></i>
Settings
<i class="dropdown icon" style="float: right;"></i>
</div>
<div class="content">
<div class="ui vertical inverted menu">
<a class="item"><i class="us flag"></i>English</a>
<a class="item"><i class="fr flag"></i>French</a>
<a class="item"><i class="ru flag"></i>Russian</a>
<a class="item"><i class="es flag"></i>Spanish</a>
<a class="item"><i class="ch flag"></i>Swiss French</a>
</div>
</div>
</div>
</div>
</div>
<!-- Page Contents -->
<div class="pusher">
<!-- Top Static Menu -->
<header class="ui inverted vertical segment">
<div class="ui fluid container">
<div class="ui large secondary inverted menu">
<a class="toc item"><i class="sidebar icon"></i></a>
<div class="header link item large screen only"><a href="index.html"><i class="cubes icon"></i>libVirt Web</a></div>
<div class="header link item center aligned mobile only"><a href="index.html"><i class="cubes icon"></i>libVirt Web</a></div>
<div class="right menu">
<div class="ui item animated labeled icon button" id="dark-theme">
<div class="visible content">
<i class="moon icon"></i>
Dark
</div>
<div class="hidden content">
<i class="sun icon"></i>
Light
</div>
</div>
<div class="ui item animated labeled icon button" id="light-theme">
<div class="visible content">
<i class="sun icon"></i>
Light
</div>
<div class="hidden content">
<i class="moon icon"></i>
Dark
</div>
</div>
<a href="static-dashboard.html" class="item active"><i class="chart pie icon"></i>Dashboard</a>
<a href="index.html" class="item"><i class="grip horizontal icon"></i>Modules</a>
<a href="static-help.html" class="item"><i class="question circle outline icon"></i>Help</a>
<a class="item"><i class="redo icon"></i>Refresh</a>
<div class="ui inverted dropdown item">
<i class="cog icon"></i> Settings <i class="dropdown icon"></i>
<div class="menu">
<a class="item"><i class="us flag"></i>English</a>
<a class="item"><i class="fr flag"></i>French</a>
<a class="item"><i class="ru flag"></i>Russian</a>
<a class="item"><i class="es flag"></i>Spanish</a>
<a class="item"><i class="ch flag"></i>Swiss French</a>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- Main content-->
<main class="ui vertical basic very padded segment">
<div id="variable-container" class="ui container">
<div class="ui breadcrumb">
<a href="index.html" class="section">Modules</a>
<span class="divider">/</span>
<div class="active section">Dashboard</div>
</div>
<h2 class="ui dividing header">Dashboard</h2>
<div class="ui stackable two column grid">
<div class="column">
<div class="ui segment">
<h3 class="ui header">
<i class="microchip icon"></i>
<div class="content">CPU</div>
</h3>
<!-- <div class="ui placeholder">
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
</div> -->
<!-- <canvas id="cpu-canvas" class="charts" style="width: 100%; height: 100px;"></canvas> -->
<canvas id="cpu-canvas-large" class="charts large screen only" width="520" height="100"></canvas>
<canvas id="cpu-canvas-small" class="charts mobile only" width="320" height="100"></canvas>
</div>
</div>
<div class="column">
<div class="ui segment">
<h3 class="ui header">
<i class="memory icon"></i>
<div class="content">Memory</div>
</h3>
<!-- <div class="ui placeholder">
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
</div> -->
<!-- <canvas id="mem-canvas" class="charts" style="width: 100%; height: 100px;"></canvas> -->
<canvas id="mem-canvas-large" class="charts large screen only" width="520" height="100"></canvas>
<canvas id="mem-canvas-small" class="charts mobile only" width="320" height="100"></canvas>
</div>
</div>
</div>
<div class="ui info icon message">
<i class="info icon"></i>
<i class="close icon"></i>
<div class="content">
<div class="header">
Later improvements
</div>
<!-- <p>The data displayed above will be converted into realtime graph soon.</p> -->
<p>The data displayed in the realtime graph is random, it will be real ones soon.</p>
</div>
</div>
<div class="ui stackable two column grid">
<div class="column">
<div class="ui segment">
<h3 class="ui header">
<i class="server icon"></i>
<div class="content">Node</div>
</h3>
<div class="ui placeholder">
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
</div>
</div>
</div>
<div class="column">
<div class="ui segment">
<h3 class="ui header">
<i class="stream icon"></i>
<div class="content">Map</div>
</h3>
<div class="ui placeholder">
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
<div class="paragraph">
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
<div class="line"></div>
</div>
</div>
</div>
</div>
</div>
<h2 class="ui dividing header">Running VM's</h2>
<div class="ui basic segment">
<table class="ui padded celled table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>State</th>
<th>Screenshot</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<!-- <tr>
<td colspan="5" style="text-align: center;">No data</td>
</tr> -->
<tr>
<td>1</td>
<td>webserver</td>
<td>
running
<i class="blue pause tooltipped link icon" data-content="Suspend" data-variation="inverted"></i>
<i class="blue stop tooltipped link icon" data-content="Stop" data-variation="inverted"></i>
<i class="blue refresh tooltipped link icon" data-content="Restart" data-variation="inverted"></i>
</td>
<td></td>
<td>
<i class="blue terminal tooltipped link icon" data-content="SSH" data-variation="inverted"></i>
</td>
</tr>
</tbody>
</table>
<div class="ui info icon message">
<i class="info icon"></i>
<i class="close icon"></i>
<div class="content">
<p>Fake data.</p>
</div>
</div>
</div>
<h2 class="ui dividing header">Active IP's</h2>
<div class="ui basic segment">
<table class="ui padded fixed celled table">
<thead>
<tr>
<th>Expiry Time</th>
<th>MAC address</th>
<th>Protocol</th>
<th>IP address</th>
<th>Hostname</th>
<th>Client ID or DUID</th>
</tr>
</thead>
<tbody>
<!-- <tr>
<td colspan="6" style="text-align: center;">No data</td>
</tr> -->
<tr>
<td>2020-02-27 14:02:00</td>
<td>52:54:00:50:11:77</td>
<td>ipv4</td>
<td>192.168.122.2/24</td>
<td>webserver-vm</td>
<td>ff:b5:5e:67:ff:00:02:00:00:ab:11:a5:31:f6:34:61:38:f8:1c</td>
</tr>
</tbody>
</table>
</div>
<div class="ui left floated segment">
<a href="#!" onclick="window.history.back();"><i class="left arrow icon"></i> Back</a>
</div>
<div class="ui right floated segment">
<a href="#!"><i class="up arrow icon"></i> Top</a>
</div>
</div>
</main>
<!-- Footer -->
<footer class="ui inverted vertical footer segment">
<div class="ui container">
<div class="ui stackable inverted divided equal height grid">
<div class="ten wide column">
<h4 class="ui inverted header"><i class="cubes icon"></i>libVirt Web</h4>
<p>A simple web interface based on <a href="https://libvirt.org/" target="_blank">libVirt</a> and <a href="http://libguestfs.org/" target="_blank">libguestfs</a>.</p>
</div>
<div class="three wide column">
<h4 class="ui inverted header">About</h4>
<div class="ui inverted link list">
<a class="item" href="https://github.com/Jiab77/libvirt-web" target="_blank">Project</a>
<a class="item" href="#!">Documentation</a>
</div>
</div>
<div class="three wide column">
<h4 class="ui inverted header">Credits</h4>
<div class="ui inverted link list">
<a class="item" href="https://libvirt.org/" target="_blank">libVirt</a>
<a class="item" href="https://libguestfs.org/" target="_blank">libguestfs</a>
<a class="item" href="https://fomantic-ui.com/" target="_blank">Fomantic-UI</a>
</div>
</div>
</div>
<div class="ui section divider"></div>
<div class="ui horizontal inverted divided link list">
<div class="item">
<span>© 2020 - </span>
<a href="https://github.com/Jiab77" target="_blank">Jiab77</a>
</div>
</div>
</div>
</footer>
</div>
<!-- Fomantic-UI -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fomantic-ui/2.8.7/semantic.min.js" integrity="sha512-1Nyd5H4Aad+OyvVfUOkO/jWPCrEvYIsQENdnVXt1+Jjc4NoJw28nyRdrpOCyFH4uvR3JmH/5WmfX1MJk2ZlhgQ==" crossorigin="anonymous"></script>
<!-- Including Smoothie Charts -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/smoothie/1.34.0/smoothie.min.js" integrity="sha512-PNAPdJIoyrliVDPtSFYtH9pFQyeTxofjm3vAueqtsduqKqMCaMIiJcGzMYECbnep0sT0qdqWemVbSm2h86NdjQ==" crossorigin="anonymous"></script>
<!-- Including Page.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/page.js/1.11.6/page.js" integrity="sha512-MkYIEFfyoRmnQFt8ZoTflIGLT8RR+PfZSHtsG5Knc5uFayAspGft8XTaMIOozqD4KkGzE6xa7jU+tfWtcXMqtg==" crossorigin="anonymous"></script>
<!-- Including Dark Theme -->
<script src="dark-fomantic-ui.js"></script>
<!-- Including App code -->
<script src="static.js"></script>
<!-- Custom App code -->
<script type="text/javascript">
generateSmoothChart('cpu-canvas-large', '#00ff00', 1000);
generateSmoothChart('cpu-canvas-small', '#00ff00', 1000);
generateSmoothChart('mem-canvas-large', '#f9ff00', 1000);
generateSmoothChart('mem-canvas-small', '#f9ff00', 1000);
</script>
</body>
</html>