path:
/index.html
5.72 KB | plain
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Superpulse</title>
<link rel="icon" href="favicon.svg" type="image/svg+xml" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="logs.css" />
<link rel="stylesheet" href="tva-control.css" />
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script type="module" src="/js/auth-ui.js"></script>
<style>
sso-user-button:not(:defined) {
display: inline-flex;
align-items: center;
border-radius: 0.5rem;
padding: 0.4rem 0.65rem;
}
</style>
</head>
<body>
<template id="custom-date">
<style>
.date-p {
text-align: center;
width: fit-content;
line-height: 0.7em;
position: relative;
left: -6px;
}
</style>
<div class="date-p">
<p style="font-weight: 700; color: black">23</p>
<small>Aug</small>
<hr style="border: 1px solid black" />
</div>
</template>
<script src="out/tva-control.js"></script>
<script src="out/logs.js"></script>
<div class="content">
<header class="app-chart-header">
<div class="app-version">v1.3-beta</div>
<div class="chat-launcher" aria-label="Settings and account">
<button
type="button"
class="settings-button settings-icon-button"
onclick="openLogsSettings()"
aria-haspopup="dialog"
aria-label="Settings"
title="Settings"
>
⚙
</button>
<sso-user-button login-label="SSO" profile-label="Account">Account</sso-user-button>
</div>
<div class="action-chart-container app-header-chart">
<canvas id="tvaReactiveChart" aria-label="Action required baseline monitor"></canvas>
</div>
</header>
<dialog id="logs-settings-dialog" class="settings-dialog">
<form method="dialog" class="settings-card">
<h2>Settings</h2>
<label
>Theme
<select id="settings-theme" class="filter-select">
<option value="auto">Auto</option>
<option value="light">Light</option>
<option value="dark">Dark</option>
</select>
</label>
<label class="settings-checkbox">
<input type="checkbox" id="settings-ambient-glow" />
TVA ambient warning glow
</label>
<menu>
<button type="button" onclick="closeLogsSettings()">Cancel</button>
<button type="button" onclick="saveLogsSettings()">Save</button>
</menu>
</form>
</dialog>
<div popover="auto" id="device-info-popover">
<div class="device-popover-container">
<strong id="p-name"></strong>
<p>with <span style="border-radius: 4px; font-weight: 600" id="p-assigned-to"></span></p>
<table style="border: 0px">
<tbody>
<tr>
<th>Serial</th>
<td td id="p-serial"></td>
</tr>
<tr>
<th>Notes</th>
<td td id="p-notes"></td>
</tr>
</tbody>
</table>
<img class="device-popover-image" id="p-image" src="" />
</div>
</div>
<!--<p>(Displaying OTP from the last 5 hours only)</p>-->
<!-- From/to range controls query kidang with fromTimestamp/toTimestamp. -->
<div class="mobile-panel-switch" aria-label="Choose log panel">
<button type="button" class="active" data-target-segment="1" onclick="showMobileSegment(1)">
Events
</button>
<button type="button" data-target-segment="2" onclick="showMobileSegment(2)">
Action Required
</button>
</div>
<div class="segment-container">
<div data-segment="1" class="segment active">
<div class="log-filter-bar">
<!-- Device Filter (Auto-populated by script) -->
<select id="filter-device" onchange="applyFilters()" class="filter-select">
<option value="">All Devices (mId)</option>
</select>
<!-- Category Filter -->
<select id="filter-category" onchange="applyFilters()" class="filter-select">
<option value="">All Categories</option>
</select>
<!-- Range Query Controls -->
<label class="range-filter-label"
>From
<input
type="datetime-local"
id="range-from"
onchange="refreshRangeFeeds()"
class="filter-select"
/>
</label>
<input type="hidden" id="range-to" />
<!-- Query Text Input Bar -->
<input
type="text"
id="filter-search"
placeholder="Type to search entries..."
oninput="applyFilters()"
class="filter-select"
style="flex-grow: 1; min-width: 200px"
/>
</div>
<ul id="data-list"></ul>
</div>
<div data-segment="2" class="segment">
<div class="log-filter-bar">
<!-- Query Text Input Bar -->
<input
type="text"
id="action-filter-search"
placeholder="Type to search action required..."
oninput="applyActionFilters()"
class="filter-select"
style="flex-grow: 1; min-width: 200px"
/>
</div>
<ul id="action-list" class="sticky-list"></ul>
</div>
</div>
</div>
</body>
</html>