-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
executable file
·78 lines (74 loc) · 2.46 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Redis GUI Monitor</title>
<link rel="stylesheet" href="assets/css/photon.min.css">
<link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
<div class="window">
<header class="toolbar toolbar-header">
<div class="toolbar-actions">
<div class="btn-group pull-right">
<button class="btn btn-default">
<span class="icon icon-trash" @click="clearLogView"></span>
</button>
<button class="btn btn-default"
:disabled="!started"
@click="stopMonitor"
:class="{'active': !started}">
<span class="icon icon-stop"></span>
</button>
<button class="btn btn-default pull-right"
:disabled="started"
@click="startMonitor"
:class="{'active': started}">
<span class="icon icon-play"></span>
</button>
</div>
</div>
</header>
<div class="window-content">
<table class="table-striped">
<thead>
<tr>
<th>Time</th>
<th>DB Index</th>
<th>IP</th>
<th>Port</th>
<th>Command</th>
<th>Data</th>
</tr>
</thead>
<tbody>
<tr v-for="log in logs">
<td>{{ log.time }}</td>
<td>{{ log.dbIndex }}</td>
<td>{{ log.ip }}</td>
<td>{{ log.port }}</td>
<td>{{ log.command }}</td>
<td>{{ log.data }}</td>
</tr>
</tbody>
</table>
</div>
<footer class="toolbar toolbar-footer">
<span v-if="!started" class="icon icon-record status-icon" style="color:#fc605b"> Stopped</span>
<span v-if="started" class="icon icon-record status-icon" style="color:#34c84a"> Running</span>
<div class="toolbar-actions">
<button class="btn btn-primary pull-right"
:disabled="!started && logs.length === 0"
@click="export"
>
Export to CSV
</button>
</div>
</footer>
</div>
</body>
<script>
// You can also require other files to run in this process
require('./renderer.js')
</script>
</html>