h4-debug 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {h4_debug-0.1.2 → h4_debug-0.1.3}/PKG-INFO +1 -1
- h4_debug-0.1.3/h4_debug/__init__.py +1 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug/server.py +1 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug/static/dashboard.css +70 -8
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug/static/dashboard.html +17 -3
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug.egg-info/PKG-INFO +1 -1
- {h4_debug-0.1.2 → h4_debug-0.1.3}/pyproject.toml +1 -1
- h4_debug-0.1.2/h4_debug/__init__.py +0 -1
- {h4_debug-0.1.2 → h4_debug-0.1.3}/README.md +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug/cli.py +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug/interceptor.py +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug/static/dashboard.js +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug.egg-info/SOURCES.txt +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug.egg-info/dependency_links.txt +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug.egg-info/entry_points.txt +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug.egg-info/requires.txt +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/h4_debug.egg-info/top_level.txt +0 -0
- {h4_debug-0.1.2 → h4_debug-0.1.3}/setup.cfg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.3"
|
|
@@ -59,6 +59,7 @@ async def get_dashboard():
|
|
|
59
59
|
@app.websocket("/ws/dashboard")
|
|
60
60
|
async def websocket_dashboard(websocket: WebSocket):
|
|
61
61
|
"""Endpoint for the web dashboard to receive logs and send commands."""
|
|
62
|
+
global active_telemetry_client
|
|
62
63
|
await websocket.accept()
|
|
63
64
|
|
|
64
65
|
# Send history on connect
|
|
@@ -126,17 +126,79 @@ body {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
button {
|
|
129
|
-
background-color: var(--
|
|
130
|
-
color:
|
|
131
|
-
border:
|
|
132
|
-
padding: 8px 12px;
|
|
133
|
-
cursor: pointer;
|
|
129
|
+
background-color: var(--accent);
|
|
130
|
+
color: #fff;
|
|
131
|
+
border: none;
|
|
134
132
|
border-radius: 4px;
|
|
135
|
-
|
|
133
|
+
padding: 4px 10px;
|
|
134
|
+
cursor: pointer;
|
|
135
|
+
font-size: 0.85rem;
|
|
136
|
+
transition: background-color 0.2s;
|
|
136
137
|
}
|
|
137
138
|
|
|
138
|
-
button:hover {
|
|
139
|
-
background-color:
|
|
139
|
+
.toolbar button:hover {
|
|
140
|
+
background-color: #005a9e;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Toggle Switch Styles */
|
|
144
|
+
.toggle-group {
|
|
145
|
+
display: flex;
|
|
146
|
+
gap: 12px;
|
|
147
|
+
align-items: center;
|
|
148
|
+
margin-left: 10px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.switch-container {
|
|
152
|
+
display: flex;
|
|
153
|
+
align-items: center;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
font-size: 0.85rem;
|
|
156
|
+
gap: 6px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.switch-container input {
|
|
160
|
+
opacity: 0;
|
|
161
|
+
width: 0;
|
|
162
|
+
height: 0;
|
|
163
|
+
position: absolute;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.switch-slider {
|
|
167
|
+
position: relative;
|
|
168
|
+
display: inline-block;
|
|
169
|
+
width: 28px;
|
|
170
|
+
height: 16px;
|
|
171
|
+
background-color: var(--border-color);
|
|
172
|
+
border-radius: 16px;
|
|
173
|
+
transition: .4s;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.switch-slider:before {
|
|
177
|
+
position: absolute;
|
|
178
|
+
content: "";
|
|
179
|
+
height: 12px;
|
|
180
|
+
width: 12px;
|
|
181
|
+
left: 2px;
|
|
182
|
+
bottom: 2px;
|
|
183
|
+
background-color: white;
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
transition: .4s;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.switch-container input:checked + .switch-slider {
|
|
189
|
+
background-color: var(--accent);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.switch-container input:checked + .switch-slider:before {
|
|
193
|
+
transform: translateX(12px);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.switch-label {
|
|
197
|
+
color: var(--text-secondary);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.switch-container input:checked ~ .switch-label {
|
|
201
|
+
color: var(--text-primary);
|
|
140
202
|
}
|
|
141
203
|
|
|
142
204
|
/* Main Content */
|
|
@@ -47,9 +47,23 @@
|
|
|
47
47
|
<option value="light">Light</option>
|
|
48
48
|
</select>
|
|
49
49
|
</label>
|
|
50
|
-
<
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
<div class="toggle-group">
|
|
51
|
+
<label class="switch-container">
|
|
52
|
+
<input type="checkbox" id="toggle-info" checked>
|
|
53
|
+
<span class="switch-slider"></span>
|
|
54
|
+
<span class="switch-label">Info</span>
|
|
55
|
+
</label>
|
|
56
|
+
<label class="switch-container">
|
|
57
|
+
<input type="checkbox" id="toggle-warn" checked>
|
|
58
|
+
<span class="switch-slider"></span>
|
|
59
|
+
<span class="switch-label">Warn</span>
|
|
60
|
+
</label>
|
|
61
|
+
<label class="switch-container">
|
|
62
|
+
<input type="checkbox" id="toggle-error" checked>
|
|
63
|
+
<span class="switch-slider"></span>
|
|
64
|
+
<span class="switch-label">Error</span>
|
|
65
|
+
</label>
|
|
66
|
+
</div>
|
|
53
67
|
</div>
|
|
54
68
|
</div>
|
|
55
69
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|