From a2c5ca7f2b6856d4f222e15c0135cc860313b40f Mon Sep 17 00:00:00 2001 From: mr-forust Date: Sun, 28 Jun 2026 00:36:05 +0200 Subject: [PATCH] feat: add dedicated account settings page --- webui/app.js | 19 +- webui/index.html | 3 +- webui/settings.html | 156 ++++++++++++++++ webui/settings.js | 424 ++++++++++++++++++++++++++++++++++++++++++++ webui/style.css | 80 +++++++++ webui_server.py | 4 + 6 files changed, 677 insertions(+), 9 deletions(-) create mode 100644 webui/settings.html create mode 100644 webui/settings.js diff --git a/webui/app.js b/webui/app.js index 0029bd6..87ebaa9 100644 --- a/webui/app.js +++ b/webui/app.js @@ -875,14 +875,17 @@ async function main() { // ── Settings dialog ── const settingsDialog = document.getElementById('settings-dialog'); - document.getElementById('open-settings-btn').addEventListener('click', () => { - // Update auth section for active account - if (state.activeAccount) { - updateAuthSection(state.activeAccount); - } - renderSettingsAccounts(); - settingsDialog.showModal(); - }); + const openSettingsBtn = document.getElementById('open-settings-btn'); + if (!openSettingsBtn.matches('a[href]')) { + openSettingsBtn.addEventListener('click', () => { + // Update auth section for active account + if (state.activeAccount) { + updateAuthSection(state.activeAccount); + } + renderSettingsAccounts(); + settingsDialog.showModal(); + }); + } document.getElementById('close-settings-btn').addEventListener('click', () => { settingsDialog.close(); }); diff --git a/webui/index.html b/webui/index.html index e365a4d..6b41ce6 100644 --- a/webui/index.html +++ b/webui/index.html @@ -17,6 +17,7 @@