From a3d14460604eea8f4a1b52beb0c82532c39029c7 Mon Sep 17 00:00:00 2001 From: Zac Gaetano Date: Mon, 6 Apr 2026 22:46:52 -0400 Subject: [PATCH] fix: add missing UDP Relay admin tab button and HTTP/UDP mode toggle buttons on upload page --- public/index.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/public/index.html b/public/index.html index 2ac1a36..f7a970a 100644 --- a/public/index.html +++ b/public/index.html @@ -462,9 +462,13 @@ body::before{content:'';position:fixed;inset:0;background:radial-gradient(ellips
+
+ + +
HTTP Mode: Direct S3 presigned upload. Best for LAN and stable connections. - +
@@ -521,6 +525,7 @@ body::before{content:'';position:fixed;inset:0;background:radial-gradient(ellips
Users
🔗 Share Links
Folders
+
⚡ UDP Relay
@@ -922,16 +927,22 @@ function setMode(mode) { const label = document.getElementById('mode-label'); const detail = document.getElementById('mode-detail'); const hint = document.getElementById('udp-ext-hint'); + const btnHttp = document.getElementById('btn-http'); + const btnUdp = document.getElementById('btn-udp'); if (mode === 'http') { btn.className = 'btn-upload'; if (label) label.textContent = 'HTTP Mode:'; if (detail) detail.textContent = 'Direct S3 presigned upload. Best for LAN and stable connections.'; if (hint) hint.style.display = 'none'; + if (btnHttp) { btnHttp.className = 'mode-btn active-http'; } + if (btnUdp) { btnUdp.className = 'mode-btn'; } } else { btn.className = 'btn-upload udp'; if (label) label.textContent = 'UDP Mode:'; if (detail) detail.textContent = 'Fast relay-accelerated transfer via the Chrome extension.'; if (hint) hint.style.display = 'none'; + if (btnHttp) { btnHttp.className = 'mode-btn'; } + if (btnUdp) { btnUdp.className = 'mode-btn active-udp'; } } updateUploadBtn(); }