Skip to content

Commit 421dcb2

Browse files
author
Datanoise
committed
feat: add hot swap button to debug stats bar
1 parent 9fcb664 commit 421dcb2

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

server/templates/admin.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,14 @@ <h2>Top Connection Scanners (404s)</h2>
656656
<div class="stats-item"><i data-lucide="refresh-cw" title="Garbage Collection Cycles"></i> <span id="debug-gc" style="width: 40px;">0</span></div>
657657
<div class="stats-item"><i data-lucide="trash" title="Total Dropped Bytes"></i> <span id="debug-loss" style="width: 80px;">0 B</span></div>
658658
<div class="stats-item"><i data-lucide="clock" title="Server Uptime"></i> <span id="debug-uptime" style="width: 80px;">0s</span></div>
659+
<div class="stats-item" style="border-left: 1px solid var(--border); padding-left: 1rem; margin-left: 0.5rem;">
660+
<form action="/admin/hotswap" method="POST" onsubmit="if(confirm('Perform Hot Swap?')) return submitForm(event, false)" style="margin:0;">
661+
<input type="hidden" name="csrf" value="{{$.CSRFToken}}">
662+
<button type="submit" class="btn btn-outline btn-sm" style="padding: 2px 8px; border-color: var(--primary-glow); color: var(--primary);" title="Zero-Downtime Hot Swap">
663+
<i data-lucide="refresh-cw" style="width: 12px; height: 12px; margin-right: 4px;"></i> HOT SWAP
664+
</button>
665+
</form>
666+
</div>
659667
</div>
660668
</div>
661669
<div class="stats-spacer"></div>

tinyice.pid

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
42127
1+
42238

0 commit comments

Comments
 (0)