refactor(client): view unmount lifecycle, WS unsubscribe, lazy-split core views, Toast bus, Command Palette & diff hunks
This commit is contained in:
parent
67137056f8
commit
3a28a2332f
11 changed files with 831 additions and 132 deletions
|
|
@ -13,6 +13,7 @@
|
|||
</head>
|
||||
<body>
|
||||
<div id="app" class="app-shell">
|
||||
<a href="#view-root" class="sr-only sr-only-focusable">Skip to main content</a>
|
||||
<header id="topbar" class="topbar" hidden>
|
||||
<div class="topbar-brand">
|
||||
<span class="brand-mark">>_ GCOORD</span>
|
||||
|
|
@ -33,6 +34,7 @@
|
|||
<option value="tokyo-night">tokyo-night</option>
|
||||
<option value="high-contrast">high-contrast</option>
|
||||
</select>
|
||||
<button id="cmd-palette-btn" type="button" class="btn btn-sm" title="Command Palette (Ctrl+K / Alt+K)">[CMD]</button>
|
||||
<button id="safe-toggle-btn" type="button" class="btn btn-sm" aria-pressed="false">[SAFE: OFF]</button>
|
||||
<button id="panic-btn" type="button" class="btn btn-sm btn-danger">[PANIC LOCK]</button>
|
||||
<button id="logout-btn" type="button" class="btn btn-sm">[LOGOUT]</button>
|
||||
|
|
@ -169,6 +171,19 @@
|
|||
</form>
|
||||
</dialog>
|
||||
|
||||
<!-- Toast Region -->
|
||||
<div id="toast-region" class="toast-region" aria-live="polite" aria-atomic="false"></div>
|
||||
|
||||
<!-- Command Palette Dialog -->
|
||||
<dialog id="dialog-cmd" class="dialog-wide" aria-labelledby="dialog-cmd-title">
|
||||
<div class="row-between">
|
||||
<h1 id="dialog-cmd-title">Command Palette</h1>
|
||||
<button id="cmd-palette-close" type="button" class="btn btn-sm">Esc</button>
|
||||
</div>
|
||||
<input id="cmd-palette-input" type="search" class="input-full" placeholder="Jump to route, server, terminal, SFTP, or security action..." autocomplete="off">
|
||||
<div id="cmd-palette-list" class="cmd-palette-list" role="listbox" aria-label="Commands"></div>
|
||||
</dialog>
|
||||
|
||||
<script type="module" src="/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue