-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathindex.html
More file actions
763 lines (740 loc) · 53.6 KB
/
Copy pathindex.html
File metadata and controls
763 lines (740 loc) · 53.6 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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meshpoint Dashboard</title>
<link rel="icon" type="image/png" href="/assets/favicon.png">
<link rel="apple-touch-icon" href="/assets/meshpoint-logo.png">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet.markercluster@1.5.3/dist/MarkerCluster.Default.css" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/dashboard.css" />
<link rel="stylesheet" href="sidebar/sidebar.css" />
<link rel="stylesheet" href="topbar/topbar.css" />
<link rel="stylesheet" href="css/build_stamp.css" />
<link rel="stylesheet" href="sidebar/telemetry_rail.css" />
<link rel="stylesheet" href="css/reconnect_pill.css" />
<link rel="stylesheet" href="css/init_checklist.css" />
<link rel="stylesheet" href="css/route_motion.css" />
<link rel="stylesheet" href="css/since_line.css" />
<link rel="stylesheet" href="css/command_palette.css" />
<link rel="stylesheet" href="css/keymap_overlay.css" />
<link rel="stylesheet" href="css/theme_high_contrast.css" />
<link rel="stylesheet" href="css/node_cards.css" />
<link rel="stylesheet" href="css/node_drawer.css" />
<link rel="stylesheet" href="css/messaging.css" />
<link rel="stylesheet" href="css/messaging_tx_status.css" />
<link rel="stylesheet" href="css/radio.css" />
<link rel="stylesheet" href="css/radio_cards.css" />
<link rel="stylesheet" href="css/radio_channels.css" />
<link rel="stylesheet" href="css/radio_readout.css" />
<link rel="stylesheet" href="css/stats.css" />
<link rel="stylesheet" href="css/settings.css" />
<link rel="stylesheet" href="css/configuration.css" />
<link rel="stylesheet" href="css/gps.css" />
<link rel="stylesheet" href="css/packet_detail_modal.css" />
<link rel="stylesheet" href="css/terminal_theme.css" />
<link rel="stylesheet" href="css/terminal.css" />
<link rel="stylesheet" href="/vendor/xterm/xterm.css" />
<link rel="stylesheet" href="css/responsive.css" />
</head>
<body>
<div class="app" data-sidebar="expanded">
<button class="sidebar__hamburger" id="sidebar-hamburger" aria-label="Open menu">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="3" y1="6" x2="21" y2="6"/>
<line x1="3" y1="12" x2="21" y2="12"/>
<line x1="3" y1="18" x2="21" y2="18"/>
</svg>
</button>
<div class="sidebar__backdrop" id="sidebar-backdrop"></div>
<aside class="sidebar" role="navigation" aria-label="Primary">
<header class="sidebar__header">
<div class="sidebar__logo-frame" id="sidebar-logo-frame" data-state="connecting">
<span class="sidebar__logo-ring" aria-hidden="true"></span>
<img class="sidebar__logo" src="/assets/meshpoint-logo.png" alt="Meshpoint" />
<span class="sidebar__logo-pip" aria-hidden="true"></span>
</div>
<div class="sidebar__device">
<div class="sidebar__device-name" id="sidebar-device-name">Meshpoint</div>
<div class="sidebar__device-status">
<span id="sidebar-status-text">connecting...</span>
</div>
</div>
<button class="sidebar__collapse" id="sidebar-collapse-btn" type="button" aria-label="Collapse sidebar">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="16" height="16" aria-hidden="true">
<polyline points="15 18 9 12 15 6"/>
</svg>
</button>
</header>
<nav class="sidebar__nav" aria-label="Sections">
<ul class="sidebar__list">
<li class="sidebar__group-header" aria-hidden="true">
<span class="sidebar__group-header-label">Status</span>
</li>
<li class="sidebar__item">
<a href="#/dashboard" class="sidebar__link" data-route="dashboard">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="3" y="3" width="7" height="7"/>
<rect x="14" y="3" width="7" height="7"/>
<rect x="14" y="14" width="7" height="7"/>
<rect x="3" y="14" width="7" height="7"/>
</svg>
</span>
<span class="sidebar__label">Dashboard</span>
</a>
</li>
<li class="sidebar__item">
<a href="#/stats" class="sidebar__link" data-route="stats">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<line x1="12" y1="20" x2="12" y2="10"/>
<line x1="18" y1="20" x2="18" y2="4"/>
<line x1="6" y1="20" x2="6" y2="16"/>
</svg>
</span>
<span class="sidebar__label">Stats</span>
</a>
</li>
<li class="sidebar__item">
<a href="#/messages" class="sidebar__link" data-route="messages">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/>
</svg>
</span>
<span class="sidebar__label">Messages</span>
<span id="msg-unread-badge" class="sidebar__badge sidebar__badge--unread" data-badge-for="messages" style="display:none">0</span>
</a>
</li>
<li class="sidebar__item">
<a href="#/radio" class="sidebar__link" data-route="radio">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M4.93 19.07a10 10 0 0 1 0-14.14"/>
<path d="M7.76 16.24a6 6 0 0 1 0-8.48"/>
<circle cx="12" cy="12" r="2"/>
<path d="M16.24 7.76a6 6 0 0 1 0 8.48"/>
<path d="M19.07 4.93a10 10 0 0 1 0 14.14"/>
</svg>
</span>
<span class="sidebar__label">Radio</span>
<span class="sidebar__badge" data-badge-for="radio" style="display:none"></span>
</a>
</li>
<li class="sidebar__group-header" aria-hidden="true">
<span class="sidebar__group-header-label">Ops</span>
</li>
<li class="sidebar__item" data-requires-section="terminal">
<a href="#/terminal" class="sidebar__link" data-route="terminal">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="4 17 10 11 4 5"/>
<line x1="12" y1="19" x2="20" y2="19"/>
</svg>
</span>
<span class="sidebar__label">Terminal</span>
</a>
</li>
<li class="sidebar__group-header" aria-hidden="true">
<span class="sidebar__group-header-label">Config</span>
</li>
<li class="sidebar__group" data-group="configuration" data-expanded="false">
<button class="sidebar__group-toggle" type="button" data-group="configuration" aria-expanded="false">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 20a8 8 0 1 0-8-8"/>
<path d="M12 12l4 4"/>
<path d="M12 4v4"/>
</svg>
</span>
<span class="sidebar__label">Configuration</span>
<svg class="sidebar__chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="9 18 15 12 9 6"/>
</svg>
</button>
<ul class="sidebar__sublist">
<li class="sidebar__subitem"><a href="#/configuration/identity" class="sidebar__link" data-route="configuration/identity"><span class="sidebar__label">Identity</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/radio" class="sidebar__link" data-route="configuration/radio"><span class="sidebar__label">Radio</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/channels" class="sidebar__link" data-route="configuration/channels"><span class="sidebar__label">Channels</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/meshcore" class="sidebar__link" data-route="configuration/meshcore"><span class="sidebar__label">MeshCore</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/transmit" class="sidebar__link" data-route="configuration/transmit"><span class="sidebar__label">Transmit</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/mqtt" class="sidebar__link" data-route="configuration/mqtt"><span class="sidebar__label">MQTT</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/gps" class="sidebar__link" data-route="configuration/gps"><span class="sidebar__label">GPS</span></a></li>
<li class="sidebar__subitem"><a href="#/configuration/advanced" class="sidebar__link" data-route="configuration/advanced"><span class="sidebar__label">Advanced</span></a></li>
</ul>
</li>
<li class="sidebar__group" data-group="settings" data-expanded="false" data-requires-section="settings">
<button class="sidebar__group-toggle" type="button" data-group="settings" aria-expanded="false">
<span class="sidebar__icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="3"/>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09a1.65 1.65 0 0 0-1-1.51 1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09a1.65 1.65 0 0 0 1.51-1 1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33h.01a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51h.01a1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82v.01a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/>
</svg>
</span>
<span class="sidebar__label">Settings</span>
<svg class="sidebar__chevron" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<polyline points="9 18 15 12 9 6"/>
</svg>
</button>
<ul class="sidebar__sublist">
<li class="sidebar__subitem"><a href="#/settings/updates" class="sidebar__link" data-route="settings/updates"><span class="sidebar__label">Updates</span><span class="sidebar__badge sidebar__badge--update" data-badge-for="settings/updates" style="display:none"></span></a></li>
<li class="sidebar__subitem"><a href="#/settings/auth" class="sidebar__link" data-route="settings/auth"><span class="sidebar__label">Auth</span></a></li>
<li class="sidebar__subitem" data-requires-section="settings.dangerous"><a href="#/settings/dangerous" class="sidebar__link" data-route="settings/dangerous"><span class="sidebar__label">System</span></a></li>
</ul>
</li>
</ul>
<span class="sidebar__active-bar" id="sidebar-active-bar" aria-hidden="true"></span>
</nav>
<section class="telemetry-rail" id="telemetry-rail" aria-label="Live device telemetry">
<div class="telemetry-rail__row">
<span class="telemetry-rail__label">Uptime</span>
<span class="telemetry-rail__value" id="telemetry-uptime">--</span>
</div>
<div class="telemetry-rail__row">
<span class="telemetry-rail__label">Sessions</span>
<span class="telemetry-rail__value" id="telemetry-sessions">--</span>
</div>
<div class="telemetry-rail__noise" aria-label="Noise floor">
<div class="telemetry-rail__noise-head">
<span class="telemetry-rail__noise-label">Noise floor</span>
<span class="telemetry-rail__noise-value" id="telemetry-noise-value">--</span>
<span class="telemetry-rail__noise-bw" id="telemetry-noise-bw">--</span>
</div>
<canvas class="telemetry-rail__noise-canvas" id="telemetry-noise-canvas" aria-hidden="true"></canvas>
</div>
</section>
<footer class="sidebar__footer">
<div class="sidebar__role">
<span class="sidebar__role-pill" id="sidebar-role-pill">--</span>
<span class="sidebar__user" id="sidebar-username">--</span>
</div>
<button class="sidebar__signout" id="signout-btn" type="button">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>
<polyline points="16 17 21 12 16 7"/>
<line x1="21" y1="12" x2="9" y2="12"/>
</svg>
<span class="sidebar__signout-label">Sign out</span>
</button>
</footer>
</aside>
<main class="app__content" id="app-content">
<header class="topbar" id="topbar" role="banner">
<div class="topbar__group">
<span class="topbar-meshtastic" aria-label="Meshtastic configuration">
<span class="topbar-meshtastic__brand">Meshtastic</span>
<span class="topbar-meshtastic__lamp" role="status" aria-live="polite" aria-label="Connecting">
<span class="topbar-meshtastic__dot" aria-hidden="true"></span>
</span>
<span class="topbar-meshtastic__call">----</span>
<span class="topbar-meshtastic__sep" aria-hidden="true">·</span>
<span class="topbar-meshtastic__region">--</span>
<span class="topbar-meshtastic__sep" aria-hidden="true">·</span>
<span class="topbar-meshtastic__freq">--</span>
<span class="topbar-meshtastic__sep topbar-meshtastic__sep--bar" aria-hidden="true">|</span>
<span class="topbar-meshtastic__preset">--</span>
</span>
</div>
<div class="topbar__group topbar__group--meshcore" id="topbar-meshcore-group" hidden>
<span class="topbar-meshcore" aria-label="MeshCore USB companion">
<span class="topbar-meshcore__brand">MeshCore</span>
<span class="topbar-meshcore__lamp" role="status" aria-live="polite" aria-label="Companion offline">
<span class="topbar-meshcore__dot" aria-hidden="true"></span>
</span>
<span class="topbar-meshcore__name">----</span>
<span class="topbar-meshcore__sep" aria-hidden="true">·</span>
<span class="topbar-meshcore__freq">--</span>
<span class="topbar-meshcore__sep" aria-hidden="true">·</span>
<span class="topbar-meshcore__channel">--</span>
</span>
</div>
<div class="topbar__spacer" aria-hidden="true"></div>
<div class="topbar-actions" role="toolbar" aria-label="Quick actions"></div>
</header>
<section class="section section--active" data-section="dashboard">
<main class="dashboard">
<div id="dashboard-since-host"></div>
<section class="dashboard__stats">
<div class="stat-card" id="stat-nodes">
<div class="stat-card__label">Nodes Discovered</div>
<div class="stat-card__value" id="stat-nodes-val">--</div>
<div class="stat-card__subtitle">24h / total</div>
</div>
<div class="stat-card" id="stat-packets-card">
<div class="stat-card__label">Total Packets</div>
<div class="stat-card__value" id="stat-packets-val">--</div>
</div>
<div class="stat-card" id="stat-rate">
<div class="stat-card__label">Packets / Min</div>
<div class="stat-card__value" id="stat-rate-val">--</div>
</div>
<div class="stat-card" id="stat-rssi">
<div class="stat-card__label">Avg RSSI</div>
<div class="stat-card__value" id="stat-rssi-val">--</div>
</div>
<div class="stat-card stat-card--relay" id="stat-relay">
<div class="stat-card__label">Packets Relayed</div>
<div class="stat-card__value" id="stat-relay-val">--</div>
<div class="stat-card__sub" id="stat-relay-sub"></div>
</div>
<div class="stat-card" id="stat-uptime">
<div class="stat-card__label">Uptime</div>
<div class="stat-card__value" id="stat-uptime-val">--</div>
</div>
<div class="stat-card stat-card--system" id="stat-cpu">
<div class="stat-card__label">CPU</div>
<div class="stat-card__value" id="stat-cpu-val">--</div>
</div>
<div class="stat-card stat-card--system" id="stat-ram">
<div class="stat-card__label">RAM</div>
<div class="stat-card__value" id="stat-ram-val">--</div>
<div class="stat-card__sub" id="stat-ram-sub"></div>
</div>
<div class="stat-card stat-card--system" id="stat-disk">
<div class="stat-card__label">Disk</div>
<div class="stat-card__value" id="stat-disk-val">--</div>
<div class="stat-card__sub" id="stat-disk-sub"></div>
</div>
<div class="stat-card stat-card--system" id="stat-temp">
<div class="stat-card__label">CPU Temp</div>
<div class="stat-card__value" id="stat-temp-val">--</div>
</div>
<div class="stat-card stat-card--system" id="stat-load">
<div class="stat-card__label">Load Avg</div>
<div class="stat-card__value" id="stat-load-val">--</div>
<div class="stat-card__sub" id="stat-load-sub"></div>
</div>
</section>
<div class="dashboard__main">
<section class="dashboard__map">
<div class="panel">
<div class="panel__header">Node Map</div>
<div id="map" class="panel__body map-container"></div>
</div>
</section>
<section class="dashboard__side">
<div class="panel panel--nodes">
<div class="panel__header">
<span>Nodes</span>
<input type="text" id="node-search" class="node-search" placeholder="Search..." />
</div>
<div class="nc-controls" role="group" aria-label="Sort and filter nodes">
<select id="node-sort" class="nc-controls__sort" aria-label="Sort nodes by">
<option value="last_heard">Sort: Last heard</option>
<option value="signal">Sort: Signal</option>
<option value="hops">Sort: Hops</option>
<option value="name">Sort: Name</option>
</select>
<button id="node-favorites-toggle" type="button"
class="nc-pill nc-pill--star"
aria-pressed="false"
title="Show only favorited nodes">☆</button>
<div class="nc-controls__filter" role="group" aria-label="Filter by hop count">
<button type="button" class="nc-pill nc-pill--active" data-filter="all">All</button>
<button type="button" class="nc-pill" data-filter="direct">Direct</button>
<button type="button" class="nc-pill" data-filter="relayed">Relayed</button>
</div>
</div>
<div class="panel__body" id="node-list"></div>
</div>
</section>
</div>
<section class="dashboard__feed">
<div class="panel">
<div class="panel__header">
Packets
<span class="packet-count" id="packet-count">0</span>
</div>
<div class="panel__body">
<table class="packet-table">
<thead>
<tr>
<th>Time</th>
<th>Protocol</th>
<th>Source</th>
<th>Dest</th>
<th>Type</th>
<th>RSSI</th>
<th>SNR</th>
<th>Freq</th>
<th>SF</th>
<th>Hops</th>
<th>Details</th>
</tr>
</thead>
<tbody id="packet-tbody"></tbody>
</table>
</div>
</div>
</section>
</main>
</section>
<section class="section" data-section="stats" style="display:none">
<div id="stats-panel" class="stats-panel">
<div class="stats-panel__loading">Loading stats...</div>
</div>
</section>
<section class="section" data-section="messages" style="display:none">
<div id="messaging-panel"></div>
</section>
<section class="section" data-section="radio" style="display:none">
<div id="radio-panel"></div>
</section>
<section class="section" data-section="terminal" style="display:none">
<div id="terminal-panel" class="terminal-panel">
<header class="terminal-panel__head">
<div class="terminal-panel__title-row">
<h2 class="terminal-panel__title">Terminal</h2>
<span class="terminal-panel__status" data-term-status data-state="idle">idle</span>
</div>
<div class="terminal-panel__actions">
<button class="terminal-button terminal-button--ghost" type="button" data-term-search disabled aria-label="Find in terminal">
<span aria-hidden="true">⌕</span> Find
</button>
<button class="terminal-button terminal-button--ghost" type="button" data-term-copy disabled aria-label="Copy selection">
<span aria-hidden="true">⧉</span> Copy
</button>
<button class="terminal-button terminal-button--ghost" type="button" data-term-toggle-drawer aria-expanded="false">
<span aria-hidden="true">⌘</span> Commands
</button>
<button class="terminal-button terminal-button--ghost" type="button" data-term-clear>Clear</button>
<button class="terminal-button terminal-button--primary" type="button" data-term-connect>Connect</button>
<button class="terminal-button terminal-button--danger" type="button" data-term-disconnect disabled>Disconnect</button>
</div>
</header>
<div class="terminal-panel__body">
<div class="terminal-panel__shell" data-term-search-host>
<div class="terminal-panel__strip" aria-hidden="true">
<span class="terminal-strip__lights">
<span class="terminal-strip__light terminal-strip__light--red"></span>
<span class="terminal-strip__light terminal-strip__light--yellow"></span>
<span class="terminal-strip__light terminal-strip__light--green"></span>
</span>
<span class="terminal-strip__badges">
<span class="terminal-strip__badge terminal-strip__badge--accent" data-term-host>--</span>
<span class="terminal-strip__badge" data-term-pid>--</span>
<span class="terminal-strip__badge" data-term-shell>--</span>
</span>
<span class="terminal-strip__hint">
<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>C</kbd> copy
<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>V</kbd> paste
<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>F</kbd> find
</span>
</div>
<div id="terminal-host" class="terminal-host"></div>
<div class="terminal-toast" data-term-toast aria-live="polite"></div>
<p class="terminal-panel__hint" data-term-hint>Press Connect to open a shell. The session is admin-only and audited.</p>
</div>
<aside class="terminal-drawer" data-term-drawer aria-hidden="true">
<div class="terminal-drawer__head">
<h3 class="terminal-drawer__title">Quick commands</h3>
<button class="terminal-drawer__close" type="button" data-term-close-drawer aria-label="Close commands">×</button>
</div>
<p class="terminal-drawer__hint">Click to insert at the prompt. High-impact commands ask for confirmation before they run.</p>
<div class="terminal-drawer__list" data-term-command-list></div>
</aside>
</div>
</div>
</section>
<section class="section" data-section="configuration/identity" style="display:none"><div id="cfg-identity-panel" class="section__placeholder"><h2>Configuration · Identity</h2><p>Skeleton; controls land alongside this section.</p></div></section>
<section class="section" data-section="configuration/radio" style="display:none"><div id="cfg-radio-panel" class="section__placeholder"><h2>Configuration · Radio</h2><p>Skeleton; controls migrate from the Radio tab.</p></div></section>
<section class="section" data-section="configuration/channels" style="display:none"><div id="cfg-channels-panel" class="section__placeholder"><h2>Configuration · Channels</h2><p>Skeleton; PSK list + add/remove.</p></div></section>
<section class="section" data-section="configuration/meshcore" style="display:none"><div id="cfg-meshcore-panel" class="section__placeholder"><h2>Configuration · MeshCore</h2><p>Skeleton; companion channel keys + Send Advert.</p></div></section>
<section class="section" data-section="configuration/transmit" style="display:none"><div id="cfg-transmit-panel" class="section__placeholder"><h2>Configuration · Transmit</h2><p>Skeleton; TX power + duty cycle + relay.</p></div></section>
<section class="section" data-section="configuration/mqtt" style="display:none"><div id="cfg-mqtt-panel" class="section__placeholder"><h2>Configuration · MQTT</h2><p>Loading…</p></div></section>
<section class="section" data-section="configuration/gps" style="display:none"><div id="cfg-gps-panel" class="section__placeholder"><h2>Configuration · GPS</h2><p>Loading…</p></div></section>
<section class="section" data-section="configuration/advanced" style="display:none"><div id="cfg-advanced-panel" class="section__placeholder"><h2>Configuration · Advanced</h2><p>Loading…</p></div></section>
<section class="section" data-section="settings/updates" style="display:none">
<div id="settings-updates-panel" class="update-panel">
<header class="update-panel__head">
<h2 class="update-panel__title">Updates</h2>
<p class="update-panel__subtitle">Pin the install tree to a release channel and apply changes from the dashboard.</p>
</header>
<article class="update-card">
<div class="update-card__row">
<label class="update-field">
<span class="update-field__label">Channel</span>
<select class="update-field__input" data-update-channel></select>
</label>
<div class="update-version">
<span class="update-version__label">Installed</span>
<span class="update-version__value" data-update-local-version>--</span>
<span class="update-version__branch" data-update-local-branch></span>
</div>
<div class="update-version">
<span class="update-version__label">Upstream</span>
<span class="update-version__value" data-update-remote-version>--</span>
<span class="update-version__branch" data-update-remote-branch></span>
</div>
</div>
<p class="update-card__description" data-update-description></p>
<label class="update-field" data-update-custom-row style="display:none">
<span class="update-field__label">Custom branch</span>
<input class="update-field__input" type="text" placeholder="e.g. feat/v0.7.5" data-update-custom-branch>
</label>
<p class="update-sync-status" data-update-sync-hint>
Select a channel, then check how far behind GitHub you are.
</p>
<div class="update-card__actions">
<button class="terminal-button terminal-button--ghost" type="button" data-update-check>Check for updates</button>
<button class="terminal-button terminal-button--primary" type="button" data-update-apply>Apply update</button>
<button class="terminal-button terminal-button--ghost" type="button" data-update-rollback disabled>Roll back last apply</button>
</div>
<p class="update-rollback-hint" data-update-rollback-hint></p>
<p class="update-status" data-update-status aria-live="polite"></p>
</article>
<section class="update-progress" data-update-progress hidden aria-live="polite"></section>
<section class="update-release-notes" data-update-release-notes aria-live="polite"></section>
<section class="update-log" data-update-log></section>
</div>
</section>
<section class="section" data-section="settings/auth" style="display:none">
<div id="settings-auth-panel" class="auth-panel">
<header class="auth-panel__head">
<h2 class="auth-panel__title">Authentication</h2>
<p class="auth-panel__subtitle">Manage admin credentials, sessions, the viewer role, and lockout policy.</p>
</header>
<div class="auth-panel__grid">
<article class="auth-card" data-pwc-root>
<h3 class="auth-card__title">Change password</h3>
<p class="auth-card__hint">Rotates this account's password and invalidates other browser sessions immediately.</p>
<form class="auth-card__form" data-pwc-form autocomplete="off">
<label class="auth-field">
<span class="auth-field__label">Current password</span>
<input class="auth-field__input" type="password" required autocomplete="current-password" data-pwc-current>
</label>
<label class="auth-field">
<span class="auth-field__label">New password</span>
<input class="auth-field__input" type="password" required minlength="8" autocomplete="new-password" data-pwc-new>
</label>
<div class="auth-strength" role="progressbar" aria-valuemin="0" aria-valuemax="5" aria-valuenow="0" data-pwc-strength>
<span></span><span></span><span></span><span></span><span></span>
</div>
<label class="auth-field">
<span class="auth-field__label">Confirm new password</span>
<input class="auth-field__input" type="password" required minlength="8" autocomplete="new-password" data-pwc-confirm>
</label>
<div class="auth-card__actions">
<button class="auth-button auth-button--primary" type="submit" data-pwc-submit>Update password</button>
</div>
<p class="auth-status" data-pwc-status aria-live="polite"></p>
</form>
</article>
<article class="auth-card" data-sigout-all-root>
<h3 class="auth-card__title">Sign out everywhere</h3>
<p class="auth-card__hint">Invalidates every outstanding session, including this one. You'll be redirected to /login.</p>
<div class="auth-card__actions">
<button class="auth-button auth-button--danger" type="button" data-sigout-all-btn>Sign out all sessions</button>
</div>
<p class="auth-status" data-sigout-all-status aria-live="polite"></p>
</article>
<article class="auth-card" data-viewer-root>
<h3 class="auth-card__title">Viewer role <span class="auth-pill" data-viewer-state data-state="disabled">Disabled</span></h3>
<p class="auth-card__hint">Read-only login for sharing the dashboard with trusted observers. Viewers cannot reach Settings or the Terminal.</p>
<form class="auth-card__form" data-viewer-form autocomplete="off">
<label class="auth-field">
<span class="auth-field__label">Viewer password</span>
<input class="auth-field__input" type="password" required minlength="8" autocomplete="new-password" data-viewer-password>
</label>
<label class="auth-field">
<span class="auth-field__label">Confirm</span>
<input class="auth-field__input" type="password" required minlength="8" autocomplete="new-password" data-viewer-confirm>
</label>
<div class="auth-card__actions">
<button class="auth-button auth-button--primary" type="submit" data-viewer-enable>Enable viewer</button>
<button class="auth-button auth-button--ghost" type="button" data-viewer-disable disabled>Disable viewer</button>
</div>
<p class="auth-status" data-viewer-status aria-live="polite"></p>
</form>
</article>
<article class="auth-card" data-lockout-root>
<h3 class="auth-card__title">Failed-login lockout</h3>
<p class="auth-card__hint">After this many failures, login is blocked for the cooldown window. Defaults to 5 attempts / 5 minutes.</p>
<form class="auth-card__form" data-lockout-form autocomplete="off">
<div class="auth-field-row">
<label class="auth-field">
<span class="auth-field__label">Attempts before lockout</span>
<input class="auth-field__input" type="number" min="1" max="100" required value="5" data-lockout-attempts>
</label>
<label class="auth-field">
<span class="auth-field__label">Cooldown (minutes)</span>
<input class="auth-field__input" type="number" min="1" max="1440" required value="5" data-lockout-cooldown>
</label>
</div>
<div class="auth-card__actions">
<button class="auth-button auth-button--primary" type="submit" data-lockout-submit>Save lockout</button>
</div>
<p class="auth-status" data-lockout-status aria-live="polite"></p>
</form>
</article>
<article class="auth-card" data-session-lifetime-root>
<h3 class="auth-card__title">Session lifetime</h3>
<p class="auth-card__hint">How long a fresh login stays valid before the dashboard bounces you back to <code>/login</code>. Pick a preset or set custom minutes (5 min – 30 days). Existing sessions keep their original expiry until they run out.</p>
<form class="auth-card__form" data-session-lifetime-form autocomplete="off">
<div class="auth-presets" role="group" aria-label="Session lifetime presets">
<button class="auth-preset" type="button" data-session-lifetime-preset="60" aria-pressed="false">1 hour</button>
<button class="auth-preset" type="button" data-session-lifetime-preset="480" aria-pressed="false">8 hours</button>
<button class="auth-preset" type="button" data-session-lifetime-preset="1440" aria-pressed="false">1 day</button>
<button class="auth-preset" type="button" data-session-lifetime-preset="10080" aria-pressed="false">7 days</button>
<button class="auth-preset" type="button" data-session-lifetime-preset="43200" aria-pressed="false">30 days</button>
</div>
<div class="auth-field-row">
<label class="auth-field">
<span class="auth-field__label">Custom (minutes)</span>
<input class="auth-field__input" type="number" min="5" max="43200" required value="480" data-session-lifetime-input>
</label>
<div class="auth-field auth-field--readout">
<span class="auth-field__label">Equivalent</span>
<span class="auth-readout" data-session-lifetime-preview>8 hours</span>
</div>
</div>
<div class="auth-card__actions">
<button class="auth-button auth-button--primary" type="submit" data-session-lifetime-submit>Save lifetime</button>
</div>
<p class="auth-status" data-session-lifetime-status aria-live="polite"></p>
</form>
</article>
</div>
</div>
</section>
<section class="section" data-section="settings/dangerous" style="display:none">
<div id="settings-dangerous-panel" class="dangerous-panel">
<header class="dangerous-panel__head">
<h2 class="dangerous-panel__title">System</h2>
<p class="dangerous-panel__subtitle">Display preferences for this browser and service-level actions that can leave the host in a degraded state.</p>
</header>
<article class="auth-card meshpoint-display-card" id="meshpoint-display-prefs">
<h3 class="auth-card__title">Display units</h3>
<p class="auth-card__hint">Saved in this browser only. Node cards, the node drawer, and packet details use these units. Telemetry is stored in Celsius and meters on the device.</p>
<fieldset class="cfg-fieldset">
<legend class="cfg-fieldset__legend">Temperature</legend>
<label class="cfg-field cfg-field--toggle">
<input type="radio" name="display-temp" value="fahrenheit" data-display-temp checked>
<span class="cfg-field__label">Fahrenheit (°F)</span>
</label>
<label class="cfg-field cfg-field--toggle">
<input type="radio" name="display-temp" value="celsius" data-display-temp>
<span class="cfg-field__label">Celsius (°C)</span>
</label>
</fieldset>
<fieldset class="cfg-fieldset">
<legend class="cfg-fieldset__legend">Distance and altitude</legend>
<label class="cfg-field cfg-field--toggle">
<input type="radio" name="display-distance" value="imperial" data-display-distance checked>
<span class="cfg-field__label">Miles and feet</span>
</label>
<label class="cfg-field cfg-field--toggle">
<input type="radio" name="display-distance" value="metric" data-display-distance>
<span class="cfg-field__label">Kilometers and meters</span>
</label>
</fieldset>
<p class="auth-status" data-display-units-status aria-live="polite"></p>
</article>
<header class="dangerous-panel__head dangerous-panel__head--secondary">
<h3 class="dangerous-panel__title">Service actions</h3>
<p class="dangerous-panel__subtitle">Each requires confirmation and is recorded in the audit log.</p>
</header>
<p class="dangerous-panel__status" data-dangerous-status aria-live="polite"></p>
<div class="dangerous-panel__list" data-dangerous-list></div>
</div>
</section>
</main>
<div id="node-backdrop" class="nd-backdrop"></div>
<div id="node-drawer" class="nd-drawer"></div>
</div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet.markercluster@1.5.3/dist/leaflet.markercluster.js"></script>
<script src="js/websocket_client.js"></script>
<script src="js/components/node_map.js"></script>
<script src="js/meshpoint_display_units.js"></script>
<script src="js/meshpoint_node_favorites.js"></script>
<script src="js/node_cards_sort.js"></script>
<script src="js/signal_sparkline.js"></script>
<script src="js/node_cards.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.4/dist/chart.umd.min.js"></script>
<script src="js/node_metrics_chart.js"></script>
<script src="js/node_drawer.js"></script>
<script src="js/packet_detail_modal.js"></script>
<script src="js/simple_packet_feed.js"></script>
<script src="js/messaging_contacts.js"></script>
<script src="js/messaging_chat.js"></script>
<script src="js/messaging.js"></script>
<script src="js/radio_channels.js"></script>
<script src="js/radio_status_card.js"></script>
<script src="js/radio_identity_card.js"></script>
<script src="js/radio_config_card.js"></script>
<script src="js/radio_nodeinfo_card.js"></script>
<script src="js/radio_companion_card.js"></script>
<script src="js/radio_settings.js"></script>
<script src="js/stats_tab.js"></script>
<script src="js/signout_controller.js"></script>
<script src="js/settings/password_change_form.js"></script>
<script src="js/settings/sign_out_all_form.js"></script>
<script src="js/settings/viewer_role_form.js"></script>
<script src="js/settings/lockout_config_form.js"></script>
<script src="js/settings/session_lifetime_form.js"></script>
<script src="js/settings/auth_panel_controller.js"></script>
<script src="js/settings/update_log_view.js"></script>
<script src="js/settings/update_progress_view.js"></script>
<script src="js/settings/update_stream_client.js"></script>
<script src="js/settings/release_notes_view.js"></script>
<script src="js/settings/update_panel_controller.js"></script>
<script src="js/settings/meshpoint_display_form.js"></script>
<script src="js/settings/dangerous_panel_controller.js"></script>
<script src="js/configuration/identity_card.js"></script>
<script src="js/configuration/radio_card.js"></script>
<script src="js/configuration/nodeinfo_config_card.js"></script>
<script src="js/configuration/channels_card.js"></script>
<script src="js/configuration/meshcore_card.js"></script>
<script src="js/configuration/transmit_card.js"></script>
<script src="js/configuration/mqtt_card.js"></script>
<script src="js/configuration/gps_skyplot.js"></script>
<script src="js/configuration/gps_stats_column.js"></script>
<script src="js/configuration/gps_card.js"></script>
<script src="js/configuration/advanced_card.js"></script>
<script src="js/configuration/relay_filters_card.js"></script>
<script src="js/configuration/configuration_panel.js"></script>
<script src="/vendor/xterm/xterm.js"></script>
<script src="/vendor/xterm/xterm-addon-fit.js"></script>
<script src="/vendor/xterm/xterm-addon-webgl.js"></script>
<script src="/vendor/xterm/xterm-addon-search.js"></script>
<script src="/vendor/xterm/xterm-addon-web-links.js"></script>
<script src="/vendor/xterm/xterm-addon-unicode11.js"></script>
<script src="js/terminal/dangerous_modal.js"></script>
<script src="js/terminal/command_drawer.js"></script>
<script src="js/terminal/terminal_client.js"></script>
<script src="js/terminal/terminal_chrome.js"></script>
<script src="js/terminal/terminal_renderer.js"></script>
<script src="js/terminal/terminal_search_overlay.js"></script>
<script src="js/terminal/terminal_splash.js"></script>
<script src="js/terminal/terminal_panel.js"></script>
<script src="sidebar/router.js"></script>
<script src="sidebar/sidebar_controller.js"></script>
<script src="sidebar/sidebar_logo_pip.js"></script>
<script src="sidebar/noise_floor_sparkline.js"></script>
<script src="sidebar/telemetry_rail.js"></script>
<script src="sidebar/radio_tx_badge.js"></script>
<script src="js/reconnect_storyboard.js"></script>
<script src="js/tab_title_telemetry.js"></script>
<script src="topbar/topbar_meshtastic_chip.js"></script>
<script src="topbar/topbar_meshcore_chip.js"></script>
<script src="topbar/topbar_actions.js"></script>
<script src="topbar/topbar_controller.js"></script>
<script src="js/build_stamp.js"></script>
<script src="js/last_visit_tracker.js"></script>
<script src="js/since_line.js"></script>
<script src="js/since_line_controller.js"></script>
<script src="js/init_checklist.js"></script>
<script src="js/command_palette.js"></script>
<script src="js/keymap_overlay.js"></script>
<script src="js/sound_engine.js"></script>
<script src="js/theme_controller.js"></script>
<script src="js/app.js"></script>
</body>
</html>