mirror of
https://github.com/ALLFATHER-BV/wadamesh.git
synced 2026-11-23 08:58:00 +00:00
The browser drives the device's own Settings pages instead of a second copy of them: WebSettingsEngine.h builds a category page out of sight, describes its widgets as JSON over /term (kit rows record themselves while the web session is on), applies changes by setting widgets and sending the events a tap would, and tears the page down, all in one UI-loop call. New settings show up on the web with no extra work and save through the device's own code. - settings.html: category sidebar, cards per page, one Save bar for all changes, write-only secrets, device confirms and a confirm for danger actions, sub-pages with breadcrumbs, reconnect after a restart. - theme.css: shared tokens; every page follows the browser's light/dark mode. - index, mesh, files, screen and the approval overlay restyled on it. - /settings route (gated like Mesh) and a settings flag in /api/info. Tested: T-Deck Pro, Heltec V4 TFT and T-Deck Plus builds; host tests (56 pass); pages checked in headless Chrome against a mock device. Not yet tested on hardware. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2 lines
1.2 KiB
HTML
2 lines
1.2 KiB
HTML
<div id=wov style='display:none;position:fixed;inset:0;z-index:99;background:rgba(0,0,0,.4);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:18vh 16px 0;text-align:center;user-select:text;-webkit-user-select:text'><div style='max-width:360px;margin:0 auto;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--pop);padding:24px'><div id=wtitle style='font-size:16px;font-weight:600'>Approve this browser on the device</div><div id=wsub style='margin:8px 0 16px;color:var(--sub);font-size:13px'>Or enter the 6-digit code shown on the device</div><div style='display:flex;gap:8px;justify-content:center;margin-top:16px'><input id=wcode maxlength=6 inputmode=numeric autocomplete=off placeholder=000000 style='width:9em;min-width:0;padding:8px 12px;font:20px var(--mono);letter-spacing:4px;text-align:center;background:var(--panel);border:1px solid var(--line2);border-radius:8px'><button id=wgo style='padding:8px 20px;background:var(--acc);color:var(--acc-ink);border:0;border-radius:8px;font-weight:600'>OK</button></div><div id=wmsg style='margin-top:12px;color:var(--danger);font-size:13px'></div></div></div>
|