forked from volkyeth/pushbullet-chrome-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug-dashboard.html
More file actions
199 lines (190 loc) · 7.28 KB
/
debug-dashboard.html
File metadata and controls
199 lines (190 loc) · 7.28 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- SECURITY FIX (H-01): Content Security Policy -->
<meta
http-equiv="Content-Security-Policy"
content="script-src 'self'; object-src 'none'; base-uri 'none';"
/>
<title>Pushbullet Debug Dashboard</title>
<link rel="stylesheet" href="css/debug-dashboard.css" />
</head>
<body>
<div class="dashboard-container">
<header class="dashboard-header">
<h1>🔧 Pushbullet Debug Dashboard</h1>
<div class="header-controls">
<button id="refresh-btn" class="btn btn-primary">🔄 Refresh</button>
<button id="export-json-btn" class="btn btn-secondary">
📥 Export JSON
</button>
<button id="export-text-btn" class="btn btn-secondary">
📄 Export Text
</button>
<button id="clear-logs-btn" class="btn btn-danger">
🗑️ Clear All Logs
</button>
<label style="margin-left: 8px; white-space: nowrap">
<input type="checkbox" id="auto-refresh-toggle" checked />
Auto-refresh: Enabled (every 2s)
</label>
<button id="close-btn" class="btn btn-danger">✖ Close</button>
</div>
</header>
<div class="dashboard-content">
<!-- Summary Cards -->
<section class="summary-section">
<div class="summary-card">
<h3>Debug Status</h3>
<div id="debug-status" class="status-indicator">
<label class="debug-toggle-switch">
<input type="checkbox" id="debug-toggle" />
<span class="debug-toggle-slider"></span>
</label>
<span class="status-text" id="debug-status-text">Disabled</span>
</div>
</div>
<div class="summary-card">
<h3>Total Log Messages</h3>
<div id="total-logs" class="metric-value">-</div>
</div>
<div class="summary-card">
<h3>Errors (24h)</h3>
<div id="error-count" class="metric-value error">-</div>
</div>
<div class="summary-card">
<h3>State Machine</h3>
<div id="websocket-status" class="metric-value">-</div>
</div>
</section>
<!-- Tabs -->
<div class="tabs">
<button class="tab-btn active" data-tab="logs">📋 Logs</button>
</div>
<!-- Tab Content -->
<div class="tab-content">
<!-- Logs Tab -->
<div id="logs-tab" class="tab-pane active">
<div class="controls">
<label>
Filter by category:
<select id="log-category-filter">
<option value="">All Categories</option>
<option value="WEBSOCKET">WebSocket</option>
<option value="NOTIFICATIONS">Notifications</option>
<option value="API">API</option>
<option value="STORAGE">Storage</option>
<option value="GENERAL">General</option>
<option value="PERFORMANCE">Performance</option>
<option value="ERROR">Error</option>
</select>
</label>
<label>
Filter by level:
<select id="log-level-filter">
<option value="">All Levels</option>
<option value="DEBUG">Debug</option>
<option value="INFO">Info</option>
<option value="WARN">Warn</option>
<option value="ERROR">Error</option>
</select>
</label>
<label>
Show last:
<select id="log-count-select">
<option value="50">50 logs</option>
<option value="100" selected>100 logs</option>
<option value="200">200 logs</option>
<option value="500">500 logs</option>
</select>
</label>
<!-- NEW: Message filter input -->
<label>
Filter by message:
<input
type="text"
id="log-message-filter"
placeholder="Search message (regex supported)"
/>
</label>
</div>
<div id="logs-container" class="logs-container">
<p class="loading">Loading logs...</p>
</div>
</div>
<!-- Performance Tab -->
<div id="performance-tab" class="tab-pane">
<div class="metrics-grid">
<div class="metric-card">
<h4>WebSocket Metrics</h4>
<div id="websocket-metrics" class="metric-details">
<p class="loading">Loading...</p>
</div>
</div>
<div class="metric-card">
<h4>Connection Quality</h4>
<div id="quality-metrics" class="metric-details">
<p class="loading">Loading...</p>
</div>
</div>
<div class="metric-card">
<h4>Notification Metrics</h4>
<div id="notification-metrics" class="metric-details">
<p class="loading">Loading...</p>
</div>
</div>
<div class="metric-card">
<h4>Initialization Stats</h4>
<div id="initialization-stats" class="metric-details">
<p class="loading">Loading...</p>
</div>
</div>
<div class="metric-card">
<h4>🤬 Fuck Google (MV3 Lifecycle)</h4>
<div id="mv3-lifecycle-metrics" class="metric-details">
<p class="loading">Loading...</p>
</div>
</div>
</div>
</div>
<!-- Errors Tab -->
<div id="errors-tab" class="tab-pane">
<div class="error-summary">
<h4>Error Summary</h4>
<div id="error-summary" class="metric-details">
<p class="loading">Loading...</p>
</div>
</div>
<div class="error-list">
<h4>Recent Critical Errors</h4>
<div id="critical-errors" class="error-container">
<p class="loading">Loading...</p>
</div>
</div>
</div>
<!-- Configuration Tab -->
<div id="config-tab" class="tab-pane">
<div class="config-section">
<h4>Debug Configuration</h4>
<div id="debug-config" class="config-details">
<p class="loading">Loading...</p>
</div>
</div>
<div class="config-section">
<h4>System Information</h4>
<div id="system-info" class="config-details">
<p class="loading">Loading...</p>
</div>
</div>
</div>
</div>
</div>
<footer class="dashboard-footer">
<p>Last updated: <span id="last-updated">Never</span></p>
</footer>
</div>
<script src="dist/debug-dashboard.js"></script>
</body>
</html>