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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: h4-debug
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Advanced application proxy debugger and F12-style web console
5
5
  Author-email: h4 <h4@example.com>
6
6
  Requires-Python: >=3.8
@@ -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(--bg-primary);
130
- color: var(--text-primary);
131
- border: 1px solid var(--border-color);
132
- padding: 8px 12px;
133
- cursor: pointer;
129
+ background-color: var(--accent);
130
+ color: #fff;
131
+ border: none;
134
132
  border-radius: 4px;
135
- transition: background 0.2s;
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: var(--bg-hover);
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
- <label><input type="checkbox" id="toggle-info" checked> Info</label>
51
- <label><input type="checkbox" id="toggle-warn" checked> Warn</label>
52
- <label><input type="checkbox" id="toggle-error" checked> Error</label>
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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: h4-debug
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Advanced application proxy debugger and F12-style web console
5
5
  Author-email: h4 <h4@example.com>
6
6
  Requires-Python: >=3.8
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "h4-debug"
7
- version = "0.1.2"
7
+ version = "0.1.3"
8
8
  description = "Advanced application proxy debugger and F12-style web console"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1 +0,0 @@
1
- __version__ = "0.1.2"
File without changes
File without changes
File without changes