@jingyi0605/codingns4dsh 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1114 -0
- package/assets/provider-icons/claude-code.png +0 -0
- package/assets/provider-icons/codex.png +0 -0
- package/assets/provider-icons/command-code.svg +5 -0
- package/assets/provider-icons/deepseek-harness.svg +9 -0
- package/assets/provider-icons/gemini.png +0 -0
- package/assets/provider-icons/grok.png +0 -0
- package/assets/provider-icons/kimi.png +0 -0
- package/assets/provider-icons/opencode.png +0 -0
- package/assets/provider-icons/pi.svg +7 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +97 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js +169 -0
- package/data/build/dist/bootstrap/index.d.ts +38 -0
- package/data/build/dist/bootstrap/index.js +44 -0
- package/data/build/dist/client/account-bar.d.ts +9 -0
- package/data/build/dist/client/account-bar.js +398 -0
- package/data/build/dist/client/bundle.js +26167 -0
- package/data/build/dist/client/cli-catalog.d.ts +24 -0
- package/data/build/dist/client/cli-catalog.js +108 -0
- package/data/build/dist/client/cli-slots.d.ts +38 -0
- package/data/build/dist/client/cli-slots.js +297 -0
- package/data/build/dist/client/debug/ui.d.ts +12 -0
- package/data/build/dist/client/debug/ui.js +451 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts +64 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js +293 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts +3 -0
- package/data/build/dist/client/dsh-runtime-version.js +11 -0
- package/data/build/dist/client/external-tool-stream.d.ts +24 -0
- package/data/build/dist/client/external-tool-stream.js +114 -0
- package/data/build/dist/client/features/cli-adapters.d.ts +7 -0
- package/data/build/dist/client/features/cli-adapters.js +215 -0
- package/data/build/dist/client/features/debug.d.ts +4 -0
- package/data/build/dist/client/features/debug.js +24 -0
- package/data/build/dist/client/features/index.d.ts +33 -0
- package/data/build/dist/client/features/index.js +44 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts +5 -0
- package/data/build/dist/client/features/lan-access-panel.js +146 -0
- package/data/build/dist/client/features/lan-access.d.ts +9 -0
- package/data/build/dist/client/features/lan-access.js +30 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts +5 -0
- package/data/build/dist/client/features/login-protection-panel.js +91 -0
- package/data/build/dist/client/features/login-protection-session.d.ts +6 -0
- package/data/build/dist/client/features/login-protection-session.js +25 -0
- package/data/build/dist/client/features/login-protection.d.ts +4 -0
- package/data/build/dist/client/features/login-protection.js +23 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts +9 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js +159 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts +12 -0
- package/data/build/dist/client/features/reverse-proxy.js +112 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js +160 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/terminal-enhancement.js +24 -0
- package/data/build/dist/client/features/types.d.ts +58 -0
- package/data/build/dist/client/features/types.js +2 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +66 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js +101 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts +2 -0
- package/data/build/dist/client/h5-bootstrap-entry.js +17 -0
- package/data/build/dist/client/index.d.ts +31 -0
- package/data/build/dist/client/index.js +98 -0
- package/data/build/dist/client/lan-access.d.ts +28 -0
- package/data/build/dist/client/lan-access.js +68 -0
- package/data/build/dist/client/locale.d.ts +20 -0
- package/data/build/dist/client/locale.js +393 -0
- package/data/build/dist/client/provider-icon-assets.d.ts +2 -0
- package/data/build/dist/client/provider-icon-assets.js +23 -0
- package/data/build/dist/client/provider-icons.d.ts +19 -0
- package/data/build/dist/client/provider-icons.js +39 -0
- package/data/build/dist/client/remote-web-context.d.ts +57 -0
- package/data/build/dist/client/remote-web-context.js +939 -0
- package/data/build/dist/client/session-adapter-cache.d.ts +18 -0
- package/data/build/dist/client/session-adapter-cache.js +84 -0
- package/data/build/dist/client/settings-bridge.d.ts +32 -0
- package/data/build/dist/client/settings-bridge.js +126 -0
- package/data/build/dist/client/settings-section.d.ts +30 -0
- package/data/build/dist/client/settings-section.js +93 -0
- package/data/build/dist/client/subscription-slot.d.ts +18 -0
- package/data/build/dist/client/subscription-slot.js +223 -0
- package/data/build/dist/client/terminal/index.d.ts +4 -0
- package/data/build/dist/client/terminal/index.js +3 -0
- package/data/build/dist/client/terminal/model.d.ts +116 -0
- package/data/build/dist/client/terminal/model.js +435 -0
- package/data/build/dist/client/terminal/styles.d.ts +21 -0
- package/data/build/dist/client/terminal/styles.js +51 -0
- package/data/build/dist/client/terminal/ui.d.ts +19 -0
- package/data/build/dist/client/terminal/ui.js +257 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts +13 -0
- package/data/build/dist/client/terminal/xterm-view.js +213 -0
- package/data/build/dist/client/theme.d.ts +56 -0
- package/data/build/dist/client/theme.js +186 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts +29 -0
- package/data/build/dist/client/workspace-session-archive-dom.js +525 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts +3 -0
- package/data/build/dist/client/workspace-session-fiber.js +33 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts +26 -0
- package/data/build/dist/client/workspace-session-logo-dom.js +128 -0
- package/data/build/dist/features/index.d.ts +3 -0
- package/data/build/dist/features/index.js +2 -0
- package/data/build/dist/features/registry.d.ts +74 -0
- package/data/build/dist/features/registry.js +382 -0
- package/data/build/dist/features/resource-scope/index.d.ts +39 -0
- package/data/build/dist/features/resource-scope/index.js +161 -0
- package/data/build/dist/host/auth-session.d.ts +42 -0
- package/data/build/dist/host/auth-session.js +186 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +14 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js +103 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js +534 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +38 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js +394 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js +126 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts +41 -0
- package/data/build/dist/host/cli-adapters/driver.js +2 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +37 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +180 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts +48 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +373 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/feature.js +335 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js +427 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +38 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js +372 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js +99 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js +80 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +65 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js +256 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts +21 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js +382 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js +89 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +55 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js +728 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts +43 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js +312 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/process-utils.js +27 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +82 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js +610 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts +95 -0
- package/data/build/dist/host/cli-adapters/registry.js +659 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +119 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts +20 -0
- package/data/build/dist/host/cli-adapters/session-probe.js +139 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +68 -0
- package/data/build/dist/host/cli-adapters/session-store.js +180 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +205 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +83 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts +9 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js +39 -0
- package/data/build/dist/host/control-api-client.d.ts +84 -0
- package/data/build/dist/host/control-api-client.js +130 -0
- package/data/build/dist/host/credential-store.d.ts +54 -0
- package/data/build/dist/host/credential-store.js +114 -0
- package/data/build/dist/host/debug.d.ts +79 -0
- package/data/build/dist/host/debug.js +295 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts +39 -0
- package/data/build/dist/host/dsh-device-runtime.js +118 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts +5 -0
- package/data/build/dist/host/dsh-gateway-feature.js +55 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts +12 -0
- package/data/build/dist/host/dsh-runtime-version.js +69 -0
- package/data/build/dist/host/features/auth.d.ts +11 -0
- package/data/build/dist/host/features/auth.js +273 -0
- package/data/build/dist/host/features/debug.d.ts +5 -0
- package/data/build/dist/host/features/debug.js +90 -0
- package/data/build/dist/host/features/host-status.d.ts +12 -0
- package/data/build/dist/host/features/host-status.js +54 -0
- package/data/build/dist/host/features/index.d.ts +19 -0
- package/data/build/dist/host/features/index.js +29 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts +8 -0
- package/data/build/dist/host/features/lan-access-dsh.js +45 -0
- package/data/build/dist/host/features/terminal-process.d.ts +5 -0
- package/data/build/dist/host/features/terminal-process.js +110 -0
- package/data/build/dist/host/features/terminal-status.d.ts +18 -0
- package/data/build/dist/host/features/terminal-status.js +56 -0
- package/data/build/dist/host/features/types.d.ts +41 -0
- package/data/build/dist/host/features/types.js +2 -0
- package/data/build/dist/host/index.d.ts +43 -0
- package/data/build/dist/host/index.js +135 -0
- package/data/build/dist/host/lan-access-dsh.d.ts +83 -0
- package/data/build/dist/host/lan-access-dsh.js +831 -0
- package/data/build/dist/host/native-session-bridge.d.ts +130 -0
- package/data/build/dist/host/native-session-bridge.js +317 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts +97 -0
- package/data/build/dist/host/relay-tunnel-runtime.js +361 -0
- package/data/build/dist/host/remote-web-runtime.d.ts +78 -0
- package/data/build/dist/host/remote-web-runtime.js +559 -0
- package/data/build/dist/host/rpc-table.d.ts +32 -0
- package/data/build/dist/host/rpc-table.js +47 -0
- package/data/build/dist/host/rpc.d.ts +18 -0
- package/data/build/dist/host/rpc.js +248 -0
- package/data/build/dist/host/settings.d.ts +19 -0
- package/data/build/dist/host/settings.js +80 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts +17 -0
- package/data/build/dist/host/terminal/attachment-registry.js +49 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts +39 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js +160 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts +36 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js +178 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +40 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js +191 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts +27 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js +154 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts +10 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js +147 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts +92 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js +134 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts +37 -0
- package/data/build/dist/host/terminal/controller-factory.js +82 -0
- package/data/build/dist/host/terminal/index.d.ts +17 -0
- package/data/build/dist/host/terminal/index.js +17 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts +77 -0
- package/data/build/dist/host/terminal/runtime-adapter.js +18 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts +41 -0
- package/data/build/dist/host/terminal/runtime-manager.js +179 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts +23 -0
- package/data/build/dist/host/terminal/shell-detection.js +105 -0
- package/data/build/dist/host/terminal/startup.d.ts +33 -0
- package/data/build/dist/host/terminal/startup.js +100 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts +78 -0
- package/data/build/dist/host/terminal/terminal-controller.js +324 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts +30 -0
- package/data/build/dist/host/terminal/terminal-process-service.js +194 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts +45 -0
- package/data/build/dist/host/terminal/terminal-process-store.js +183 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts +87 -0
- package/data/build/dist/host/terminal/terminal-service.js +528 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts +49 -0
- package/data/build/dist/host/terminal/terminal-store.js +242 -0
- package/data/build/dist/index.d.ts +37 -0
- package/data/build/dist/index.js +26 -0
- package/data/build/dist/shared/contracts/auth.d.ts +122 -0
- package/data/build/dist/shared/contracts/auth.js +8 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +192 -0
- package/data/build/dist/shared/contracts/cli-adapter.js +2 -0
- package/data/build/dist/shared/contracts/command-code.d.ts +5 -0
- package/data/build/dist/shared/contracts/command-code.js +2 -0
- package/data/build/dist/shared/contracts/config.d.ts +113 -0
- package/data/build/dist/shared/contracts/config.js +86 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts +28 -0
- package/data/build/dist/shared/contracts/debug-config.js +78 -0
- package/data/build/dist/shared/contracts/debug.d.ts +75 -0
- package/data/build/dist/shared/contracts/debug.js +121 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts +72 -0
- package/data/build/dist/shared/contracts/dsh-device.js +2 -0
- package/data/build/dist/shared/contracts/errors.d.ts +33 -0
- package/data/build/dist/shared/contracts/errors.js +41 -0
- package/data/build/dist/shared/contracts/feature.d.ts +71 -0
- package/data/build/dist/shared/contracts/feature.js +2 -0
- package/data/build/dist/shared/contracts/host-status.d.ts +14 -0
- package/data/build/dist/shared/contracts/host-status.js +2 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts +30 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js +2 -0
- package/data/build/dist/shared/contracts/peer-host.d.ts +37 -0
- package/data/build/dist/shared/contracts/peer-host.js +9 -0
- package/data/build/dist/shared/contracts/signaling.d.ts +67 -0
- package/data/build/dist/shared/contracts/signaling.js +2 -0
- package/data/build/dist/shared/contracts/subscription.d.ts +69 -0
- package/data/build/dist/shared/contracts/subscription.js +2 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts +65 -0
- package/data/build/dist/shared/contracts/terminal-process.js +2 -0
- package/data/build/dist/shared/contracts/terminal.d.ts +127 -0
- package/data/build/dist/shared/contracts/terminal.js +2 -0
- package/data/build/dist/shared/contracts/transport.d.ts +45 -0
- package/data/build/dist/shared/contracts/transport.js +3 -0
- package/data/build/dist/shared/contracts/version.d.ts +19 -0
- package/data/build/dist/shared/contracts/version.js +74 -0
- package/data/build/dist/shared/index.d.ts +22 -0
- package/data/build/dist/shared/index.js +9 -0
- package/data/build/dist/transport/carrier.d.ts +38 -0
- package/data/build/dist/transport/carrier.js +268 -0
- package/data/build/dist/transport/debug.d.ts +22 -0
- package/data/build/dist/transport/debug.js +57 -0
- package/data/build/dist/transport/dsh-envelope.d.ts +41 -0
- package/data/build/dist/transport/dsh-envelope.js +107 -0
- package/data/build/dist/transport/dsh-gateway.d.ts +64 -0
- package/data/build/dist/transport/dsh-gateway.js +254 -0
- package/data/build/dist/transport/dsh-session.d.ts +55 -0
- package/data/build/dist/transport/dsh-session.js +256 -0
- package/data/build/dist/transport/dsh-transport.d.ts +57 -0
- package/data/build/dist/transport/dsh-transport.js +125 -0
- package/data/build/dist/transport/frame.d.ts +132 -0
- package/data/build/dist/transport/frame.js +168 -0
- package/data/build/dist/transport/index.d.ts +11 -0
- package/data/build/dist/transport/index.js +11 -0
- package/data/build/dist/transport/multiplexer.d.ts +63 -0
- package/data/build/dist/transport/multiplexer.js +323 -0
- package/data/build/dist/transport/webrtc-client.d.ts +65 -0
- package/data/build/dist/transport/webrtc-client.js +255 -0
- package/data/build/dist/transport/webrtc-host.d.ts +58 -0
- package/data/build/dist/transport/webrtc-host.js +252 -0
- package/data/build/dist/typert.host.d.ts +25 -0
- package/data/build/dist/typert.host.js +150 -0
- package/dsh.bundle.patch +12 -0
- package/package.json +135 -0
- package/profile/README.md +27 -0
- package/profile/cordis.patch.yml +2 -0
- package/profile/package.json +20 -0
- package/profile/scripts/check-dsh-install.mjs +71 -0
- package/profile/version.json +5 -0
- package/scripts/check-dsh-install.mjs +88 -0
- package/version.json +6 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { CODINGNS_RPC_CHANNEL } from '../shared/contracts/transport.js';
|
|
2
|
+
const SETTINGS_BUTTON_SELECTOR = 'button[aria-label="设置"]';
|
|
3
|
+
const ACCOUNT_ATTRIBUTE = 'data-codingns-account-button';
|
|
4
|
+
const MENU_ATTRIBUTE = 'data-codingns-account-menu';
|
|
5
|
+
const POLL_MS = 5_000;
|
|
6
|
+
/** 在 DSH 设置触发器旁挂载统一账户入口,兼容侧栏横排与收起竖排。 */
|
|
7
|
+
export function startCodingNsAccountBar(rpc, dom, settings) {
|
|
8
|
+
const currentDocument = dom ?? (typeof document === 'undefined' ? undefined : document);
|
|
9
|
+
if (currentDocument === undefined)
|
|
10
|
+
return { dispose() { } };
|
|
11
|
+
const root = currentDocument;
|
|
12
|
+
let disposed = false;
|
|
13
|
+
let timer;
|
|
14
|
+
let observer;
|
|
15
|
+
let observeDom = true;
|
|
16
|
+
let resizeObserver;
|
|
17
|
+
let renderQueued = false;
|
|
18
|
+
let rendering = false;
|
|
19
|
+
let closeMenuListener;
|
|
20
|
+
let auth = loggedOutSnapshot();
|
|
21
|
+
let local = { username: '', enabled: false };
|
|
22
|
+
let relayAccessEnabled = false;
|
|
23
|
+
let status;
|
|
24
|
+
let latency;
|
|
25
|
+
let busy = false;
|
|
26
|
+
const call = async (endpoint, payload) => {
|
|
27
|
+
let response;
|
|
28
|
+
try {
|
|
29
|
+
response = await rpc.call(CODINGNS_RPC_CHANNEL, endpoint, payload);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
33
|
+
if (!/HTTP (?:404|405)\b/u.test(message))
|
|
34
|
+
throw error;
|
|
35
|
+
response = await rpc.call('/api', `codingns/${endpoint}`, payload);
|
|
36
|
+
}
|
|
37
|
+
if (!response.ok)
|
|
38
|
+
throw new Error(response.error.message);
|
|
39
|
+
return response.value;
|
|
40
|
+
};
|
|
41
|
+
const refresh = async () => {
|
|
42
|
+
if (disposed)
|
|
43
|
+
return;
|
|
44
|
+
const started = performance.now();
|
|
45
|
+
const [nextAuth, nextLocal, nextStatus] = await Promise.allSettled([
|
|
46
|
+
call('auth/snapshot', {}),
|
|
47
|
+
call('lanAccessDsh/login/get', {}),
|
|
48
|
+
call('host/status', {}),
|
|
49
|
+
]);
|
|
50
|
+
if (nextAuth.status === 'fulfilled')
|
|
51
|
+
auth = nextAuth.value;
|
|
52
|
+
if (nextLocal.status === 'fulfilled')
|
|
53
|
+
local = nextLocal.value;
|
|
54
|
+
relayAccessEnabled = settings?.getSnapshot().value?.modules?.reverseProxy === true;
|
|
55
|
+
if (nextStatus.status === 'fulfilled') {
|
|
56
|
+
status = nextStatus.value;
|
|
57
|
+
latency = Math.max(0, Math.round(performance.now() - started));
|
|
58
|
+
}
|
|
59
|
+
renderAll();
|
|
60
|
+
const menu = root.querySelector(`[${MENU_ATTRIBUTE}]`);
|
|
61
|
+
const button = root.querySelector(`button[${ACCOUNT_ATTRIBUTE}]`);
|
|
62
|
+
if (menu !== null) {
|
|
63
|
+
renderMenu(menu);
|
|
64
|
+
if (button !== null)
|
|
65
|
+
positionMenuUpperRight(menu, button);
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
const scan = () => {
|
|
69
|
+
if (disposed)
|
|
70
|
+
return;
|
|
71
|
+
if (!local.enabled && !relayAccessEnabled) {
|
|
72
|
+
removeAccountBar();
|
|
73
|
+
observeDom = true;
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const settings = root.querySelector(SETTINGS_BUTTON_SELECTOR);
|
|
77
|
+
if (settings === null) {
|
|
78
|
+
observeDom = true;
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const parent = settings.parentElement;
|
|
82
|
+
if (parent === null) {
|
|
83
|
+
observeDom = true;
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
let button = parent.querySelector(`button[${ACCOUNT_ATTRIBUTE}]`);
|
|
87
|
+
if (button === null) {
|
|
88
|
+
button = createAccountButton(root);
|
|
89
|
+
parent.insertBefore(button, settings);
|
|
90
|
+
button.addEventListener('click', (event) => {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
event.stopPropagation();
|
|
93
|
+
toggleMenu(button);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
observeDom = false;
|
|
97
|
+
observer?.disconnect();
|
|
98
|
+
parent.dataset.codingnsAccountRow = 'true';
|
|
99
|
+
Object.assign(parent.style, {
|
|
100
|
+
display: 'flex',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
gap: '4px',
|
|
103
|
+
});
|
|
104
|
+
updateAccountLayout(parent, settings, button);
|
|
105
|
+
resizeObserver?.disconnect();
|
|
106
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
107
|
+
resizeObserver ??= new ResizeObserver(() => {
|
|
108
|
+
if (!disposed)
|
|
109
|
+
updateAccountLayout(parent, settings, button);
|
|
110
|
+
});
|
|
111
|
+
resizeObserver.observe(parent);
|
|
112
|
+
}
|
|
113
|
+
renderButton(button);
|
|
114
|
+
};
|
|
115
|
+
const updateAccountLayout = (parent, settings, button) => {
|
|
116
|
+
const wide = isWide(parent, settings);
|
|
117
|
+
const mode = wide ? 'wide' : 'rail';
|
|
118
|
+
if (button.dataset.codingnsWide === mode)
|
|
119
|
+
return;
|
|
120
|
+
button.dataset.codingnsWide = mode;
|
|
121
|
+
parent.style.flexDirection = wide ? 'row' : 'column';
|
|
122
|
+
parent.style.justifyContent = wide ? 'flex-start' : 'flex-end';
|
|
123
|
+
button.style.order = wide ? '2' : '1';
|
|
124
|
+
settings.style.order = wide ? '1' : '2';
|
|
125
|
+
};
|
|
126
|
+
const renderAll = () => {
|
|
127
|
+
if (disposed || rendering)
|
|
128
|
+
return;
|
|
129
|
+
rendering = true;
|
|
130
|
+
observer?.disconnect();
|
|
131
|
+
try {
|
|
132
|
+
scan();
|
|
133
|
+
const button = root.querySelector(`button[${ACCOUNT_ATTRIBUTE}]`);
|
|
134
|
+
if (button !== null)
|
|
135
|
+
renderButton(button);
|
|
136
|
+
}
|
|
137
|
+
finally {
|
|
138
|
+
rendering = false;
|
|
139
|
+
if (!disposed && observeDom)
|
|
140
|
+
observer?.observe(root.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['aria-expanded'] });
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const observerCallback = () => {
|
|
144
|
+
if (disposed || rendering || renderQueued)
|
|
145
|
+
return;
|
|
146
|
+
const settings = root.querySelector(SETTINGS_BUTTON_SELECTOR);
|
|
147
|
+
const button = root.querySelector(`button[${ACCOUNT_ATTRIBUTE}]`);
|
|
148
|
+
if (settings !== null && button !== null && settings.parentElement === button.parentElement)
|
|
149
|
+
return;
|
|
150
|
+
renderQueued = true;
|
|
151
|
+
queueMicrotask(() => {
|
|
152
|
+
renderQueued = false;
|
|
153
|
+
renderAll();
|
|
154
|
+
});
|
|
155
|
+
};
|
|
156
|
+
observer = typeof MutationObserver === 'undefined' ? undefined : new MutationObserver(observerCallback);
|
|
157
|
+
observer?.observe(root.documentElement, { childList: true, subtree: true, attributes: true, attributeFilter: ['aria-expanded'] });
|
|
158
|
+
const unsubscribeSettings = settings?.subscribe(() => {
|
|
159
|
+
relayAccessEnabled = settings.getSnapshot().value?.modules?.reverseProxy === true;
|
|
160
|
+
renderAll();
|
|
161
|
+
});
|
|
162
|
+
timer = setInterval(() => { void refresh(); }, POLL_MS);
|
|
163
|
+
void refresh();
|
|
164
|
+
return {
|
|
165
|
+
dispose() {
|
|
166
|
+
if (disposed)
|
|
167
|
+
return;
|
|
168
|
+
disposed = true;
|
|
169
|
+
if (timer !== undefined)
|
|
170
|
+
clearInterval(timer);
|
|
171
|
+
unsubscribeSettings?.();
|
|
172
|
+
observer?.disconnect();
|
|
173
|
+
resizeObserver?.disconnect();
|
|
174
|
+
if (closeMenuListener !== undefined) {
|
|
175
|
+
root.removeEventListener('click', closeMenuListener, true);
|
|
176
|
+
closeMenuListener = undefined;
|
|
177
|
+
}
|
|
178
|
+
root.querySelectorAll(`[${MENU_ATTRIBUTE}]`).forEach((node) => node.remove());
|
|
179
|
+
root.querySelectorAll(`button[${ACCOUNT_ATTRIBUTE}]`).forEach((node) => node.remove());
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
function removeAccountBar() {
|
|
183
|
+
if (closeMenuListener !== undefined) {
|
|
184
|
+
root.removeEventListener('click', closeMenuListener, true);
|
|
185
|
+
closeMenuListener = undefined;
|
|
186
|
+
}
|
|
187
|
+
root.querySelectorAll(`[${MENU_ATTRIBUTE}]`).forEach((node) => node.remove());
|
|
188
|
+
root.querySelectorAll(`button[${ACCOUNT_ATTRIBUTE}]`).forEach((node) => node.remove());
|
|
189
|
+
}
|
|
190
|
+
function renderButton(button) {
|
|
191
|
+
const identity = auth.account !== null
|
|
192
|
+
? auth.account.email
|
|
193
|
+
: auth.status === 'authenticated' ? 'Codingns4DSH'
|
|
194
|
+
: local.enabled && local.username ? local.username : '用户';
|
|
195
|
+
button.title = `${identity} · 点击管理登录`;
|
|
196
|
+
button.setAttribute('aria-label', `用户:${identity}`);
|
|
197
|
+
const authKind = auth.account !== null || auth.status === 'authenticated' ? 'codingns' : local.enabled ? 'local' : 'unknown';
|
|
198
|
+
button.dataset.codingnsAuth = authKind;
|
|
199
|
+
const statusDot = button.querySelector('[data-codingns-account-status]');
|
|
200
|
+
if (statusDot !== null)
|
|
201
|
+
statusDot.style.background = authKind === 'unknown'
|
|
202
|
+
? 'var(--dsw-alias-label-tertiary, #8b8d91)'
|
|
203
|
+
: 'var(--dsw-alias-state-success-primary, #35b66b)';
|
|
204
|
+
}
|
|
205
|
+
function toggleMenu(button) {
|
|
206
|
+
const existing = root.querySelector(`[${MENU_ATTRIBUTE}]`);
|
|
207
|
+
if (existing !== null) {
|
|
208
|
+
existing.remove();
|
|
209
|
+
if (closeMenuListener !== undefined) {
|
|
210
|
+
root.removeEventListener('click', closeMenuListener, true);
|
|
211
|
+
closeMenuListener = undefined;
|
|
212
|
+
}
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
const menu = createMenu(root);
|
|
216
|
+
const rect = button.getBoundingClientRect();
|
|
217
|
+
Object.assign(menu.style, { top: '0px', left: '0px' });
|
|
218
|
+
root.body.appendChild(menu);
|
|
219
|
+
renderMenu(menu);
|
|
220
|
+
positionMenuUpperRight(menu, button);
|
|
221
|
+
const close = (event) => {
|
|
222
|
+
if (!menu.contains(event.target) && event.target !== button) {
|
|
223
|
+
menu.remove();
|
|
224
|
+
root.removeEventListener('click', close, true);
|
|
225
|
+
if (closeMenuListener === close)
|
|
226
|
+
closeMenuListener = undefined;
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
closeMenuListener = close;
|
|
230
|
+
queueMicrotask(() => root.addEventListener('click', close, true));
|
|
231
|
+
}
|
|
232
|
+
function positionMenuUpperRight(menu, button) {
|
|
233
|
+
const buttonRect = button.getBoundingClientRect();
|
|
234
|
+
const menuRect = menu.getBoundingClientRect();
|
|
235
|
+
const viewportWidth = root.documentElement.clientWidth || root.defaultView?.innerWidth || menuRect.width + 16;
|
|
236
|
+
const viewportHeight = root.documentElement.clientHeight || root.defaultView?.innerHeight || menuRect.height + 16;
|
|
237
|
+
const gap = 8;
|
|
238
|
+
const preferredLeft = buttonRect.right + gap;
|
|
239
|
+
const left = preferredLeft + menuRect.width <= viewportWidth - gap
|
|
240
|
+
? preferredLeft
|
|
241
|
+
: Math.max(gap, buttonRect.right - menuRect.width);
|
|
242
|
+
const top = Math.max(gap, buttonRect.top - menuRect.height - gap);
|
|
243
|
+
Object.assign(menu.style, {
|
|
244
|
+
top: `${Math.round(Math.min(top, Math.max(gap, viewportHeight - menuRect.height - gap)))}px`,
|
|
245
|
+
left: `${Math.round(left)}px`,
|
|
246
|
+
right: 'auto',
|
|
247
|
+
bottom: 'auto',
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
function renderMenu(menu) {
|
|
251
|
+
const identity = auth.account !== null
|
|
252
|
+
? auth.account.email
|
|
253
|
+
: auth.status === 'authenticated' ? 'Codingns4DSH 账号'
|
|
254
|
+
: local.enabled && local.username ? `${local.username}(本地账号)` : '未识别账号';
|
|
255
|
+
const access = relayModeLabel();
|
|
256
|
+
menu.innerHTML = '';
|
|
257
|
+
menu.append(textNode(root, identity, 'strong'));
|
|
258
|
+
menu.append(textNode(root, `访问:${access}${latency === undefined ? '' : ` · ${latency} ms`}`, 'span'));
|
|
259
|
+
if (status !== undefined) {
|
|
260
|
+
menu.append(resourceRow(root, 'CPU', status.cpuPercent));
|
|
261
|
+
menu.append(resourceRow(root, '内存', status.memoryPercent));
|
|
262
|
+
menu.append(textNode(root, `${formatBytes(status.memoryUsedBytes)} / ${formatBytes(status.memoryTotalBytes)}`, 'span'));
|
|
263
|
+
}
|
|
264
|
+
const logout = root.createElement('button');
|
|
265
|
+
logout.type = 'button';
|
|
266
|
+
logout.textContent = busy ? '注销中…' : '注销登录';
|
|
267
|
+
logout.disabled = busy;
|
|
268
|
+
Object.assign(logout.style, menuButtonStyle());
|
|
269
|
+
logout.addEventListener('click', () => { void logoutCurrent(menu); });
|
|
270
|
+
menu.append(logout);
|
|
271
|
+
}
|
|
272
|
+
async function logoutCurrent(menu) {
|
|
273
|
+
busy = true;
|
|
274
|
+
renderMenu(menu);
|
|
275
|
+
try {
|
|
276
|
+
// 注销目标由当前访问入口决定;LAN 页面上的 Host 可能仍保留中继站
|
|
277
|
+
// 会话,但不能因为注销本地登录而一并清掉它。
|
|
278
|
+
if (resolveAccountLogoutTarget() === 'relay')
|
|
279
|
+
await call('auth/logout', {});
|
|
280
|
+
else
|
|
281
|
+
await fetch('/__codingns/logout', { credentials: 'include', redirect: 'manual' });
|
|
282
|
+
if (typeof location !== 'undefined')
|
|
283
|
+
location.reload();
|
|
284
|
+
}
|
|
285
|
+
catch (error) {
|
|
286
|
+
console.error('codingns4dsh: 用户注销失败', error);
|
|
287
|
+
busy = false;
|
|
288
|
+
renderMenu(menu);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
function createAccountButton(dom) {
|
|
293
|
+
const button = dom.createElement('button');
|
|
294
|
+
button.type = 'button';
|
|
295
|
+
button.setAttribute(ACCOUNT_ATTRIBUTE, '');
|
|
296
|
+
Object.assign(button.style, { position: 'relative', width: '30px', height: '30px', padding: 0, border: '1px solid var(--dsw-alias-border-l2, rgba(255,255,255,.16))', borderRadius: '50%', background: 'var(--dsw-alias-button-elevated-fill, #545557)', color: 'var(--dsw-alias-label-primary, #fff)', cursor: 'pointer', flex: '0 0 30px', boxSizing: 'border-box', display: 'inline-flex', alignItems: 'center', justifyContent: 'center', transition: 'background 140ms ease, border-color 140ms ease, transform 140ms ease', boxShadow: 'var(--dsw-elevation-l1, 0 1px 2px rgba(0,0,0,.12))' });
|
|
297
|
+
button.addEventListener('mouseenter', () => {
|
|
298
|
+
button.style.background = 'var(--dsw-alias-button-elevated-hover, var(--dsw-alias-interactive-bg-hover, #66686c))';
|
|
299
|
+
button.style.borderColor = 'var(--dsw-alias-brand-primary, var(--dsw-alias-border-l2, rgba(255,255,255,.28)))';
|
|
300
|
+
button.style.transform = 'translateY(-1px)';
|
|
301
|
+
});
|
|
302
|
+
button.addEventListener('mouseleave', () => {
|
|
303
|
+
button.style.background = 'var(--dsw-alias-button-elevated-fill, #545557)';
|
|
304
|
+
button.style.borderColor = 'var(--dsw-alias-border-l2, rgba(255,255,255,.16))';
|
|
305
|
+
button.style.transform = 'translateY(0)';
|
|
306
|
+
});
|
|
307
|
+
button.addEventListener('focus', () => { button.style.outline = '2px solid var(--dsw-alias-brand-primary, #4aa3ff)'; button.style.outlineOffset = '2px'; });
|
|
308
|
+
button.addEventListener('blur', () => { button.style.outline = 'none'; });
|
|
309
|
+
button.append(createAccountIcon(dom));
|
|
310
|
+
const status = dom.createElement('span');
|
|
311
|
+
status.setAttribute('data-codingns-account-status', '');
|
|
312
|
+
status.setAttribute('aria-hidden', 'true');
|
|
313
|
+
Object.assign(status.style, { position: 'absolute', right: '0px', bottom: '0px', width: '7px', height: '7px', border: '2px solid var(--dsw-specific-sidebar-fill, var(--dsw-alias-bg-primary, #202124))', borderRadius: '50%', background: 'var(--dsw-alias-label-tertiary, #8b8d91)', boxSizing: 'border-box' });
|
|
314
|
+
button.append(status);
|
|
315
|
+
return button;
|
|
316
|
+
}
|
|
317
|
+
function createAccountIcon(dom) {
|
|
318
|
+
const svg = dom.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
319
|
+
svg.setAttribute('width', '17');
|
|
320
|
+
svg.setAttribute('height', '17');
|
|
321
|
+
svg.setAttribute('viewBox', '0 0 24 24');
|
|
322
|
+
svg.setAttribute('fill', 'none');
|
|
323
|
+
svg.setAttribute('aria-hidden', 'true');
|
|
324
|
+
svg.style.pointerEvents = 'none';
|
|
325
|
+
svg.style.overflow = 'visible';
|
|
326
|
+
const badge = dom.createElementNS('http://www.w3.org/2000/svg', 'circle');
|
|
327
|
+
badge.setAttribute('cx', '12');
|
|
328
|
+
badge.setAttribute('cy', '12');
|
|
329
|
+
badge.setAttribute('r', '9.25');
|
|
330
|
+
badge.setAttribute('fill', 'var(--dsw-alias-brand-primary, #4aa3ff)');
|
|
331
|
+
badge.setAttribute('fill-opacity', '.2');
|
|
332
|
+
const ring = dom.createElementNS('http://www.w3.org/2000/svg', 'circle');
|
|
333
|
+
ring.setAttribute('cx', '12');
|
|
334
|
+
ring.setAttribute('cy', '12');
|
|
335
|
+
ring.setAttribute('r', '9.25');
|
|
336
|
+
ring.setAttribute('stroke', 'var(--dsw-alias-brand-primary, #4aa3ff)');
|
|
337
|
+
ring.setAttribute('stroke-opacity', '.65');
|
|
338
|
+
ring.setAttribute('stroke-width', '1');
|
|
339
|
+
const head = dom.createElementNS('http://www.w3.org/2000/svg', 'circle');
|
|
340
|
+
head.setAttribute('cx', '12');
|
|
341
|
+
head.setAttribute('cy', '8');
|
|
342
|
+
head.setAttribute('r', '3.25');
|
|
343
|
+
head.setAttribute('fill', 'currentColor');
|
|
344
|
+
const shoulders = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
345
|
+
shoulders.setAttribute('d', 'M5.2 19.2c.6-3.5 3.1-5.4 6.8-5.4s6.2 1.9 6.8 5.4v.55H5.2z');
|
|
346
|
+
shoulders.setAttribute('fill', 'currentColor');
|
|
347
|
+
svg.append(badge, ring, head, shoulders);
|
|
348
|
+
return svg;
|
|
349
|
+
}
|
|
350
|
+
function createMenu(dom) {
|
|
351
|
+
const menu = dom.createElement('div');
|
|
352
|
+
menu.setAttribute(MENU_ATTRIBUTE, '');
|
|
353
|
+
Object.assign(menu.style, { position: 'fixed', zIndex: '10000', width: '260px', display: 'flex', flexDirection: 'column', gap: '8px', padding: '12px', boxSizing: 'border-box', color: 'var(--dsw-alias-label-primary, CanvasText)', background: 'var(--dsw-specific-menu, Canvas)', border: '1px solid var(--dsw-alias-border-l2, #d9d9d9)', borderRadius: '8px', boxShadow: 'var(--dsw-elevation-prominent, 0 12px 40px rgba(0,0,0,.25))', fontSize: '12px' });
|
|
354
|
+
return menu;
|
|
355
|
+
}
|
|
356
|
+
function menuButtonStyle() { return { marginTop: '4px', minHeight: '30px', border: '1px solid var(--dsw-alias-border-l2, #d9d9d9)', borderRadius: '6px', color: 'inherit', background: 'transparent', cursor: 'pointer' }; }
|
|
357
|
+
function textNode(dom, value, tag) { const node = dom.createElement(tag); node.textContent = value; return node; }
|
|
358
|
+
function resourceRow(dom, label, value) {
|
|
359
|
+
const row = dom.createElement('div');
|
|
360
|
+
Object.assign(row.style, { display: 'flex', flexDirection: 'column', gap: '3px' });
|
|
361
|
+
const header = dom.createElement('div');
|
|
362
|
+
Object.assign(header.style, { display: 'flex', justifyContent: 'space-between', gap: '8px' });
|
|
363
|
+
const name = dom.createElement('span');
|
|
364
|
+
name.textContent = label;
|
|
365
|
+
const amount = dom.createElement('span');
|
|
366
|
+
amount.textContent = formatPercent(value);
|
|
367
|
+
Object.assign(amount.style, { fontVariantNumeric: 'tabular-nums' });
|
|
368
|
+
header.append(name, amount);
|
|
369
|
+
const track = dom.createElement('div');
|
|
370
|
+
Object.assign(track.style, { height: '4px', overflow: 'hidden', borderRadius: '999px', background: 'var(--dsw-alias-bg-tertiary, rgba(127,127,127,.18))' });
|
|
371
|
+
const fill = dom.createElement('div');
|
|
372
|
+
Object.assign(fill.style, { width: `${Math.min(100, Math.max(0, value))}%`, height: '100%', borderRadius: 'inherit', background: 'var(--dsw-alias-brand-primary, var(--dsw-alias-button-info-fill, #1677ff))', transition: 'width 180ms ease' });
|
|
373
|
+
track.append(fill);
|
|
374
|
+
row.append(header, track);
|
|
375
|
+
return row;
|
|
376
|
+
}
|
|
377
|
+
function isWide(parent, settings) { return parent.clientWidth > 96 || getComputedStyle(settings).display !== 'none' && settings.getBoundingClientRect().width > 70; }
|
|
378
|
+
function formatPercent(value) { return `${Math.round(value)}%`; }
|
|
379
|
+
function formatBytes(value) { if (value < 1024 ** 3)
|
|
380
|
+
return `${Math.round(value / 1024 ** 2)} MB`; return `${(value / 1024 ** 3).toFixed(1)} GB`; }
|
|
381
|
+
function isRemoteContext() { return globalThis.__CODINGNS4DSH_REMOTE_WEB_CONTEXT__ === true; }
|
|
382
|
+
function resolveAccountLogoutTarget() {
|
|
383
|
+
if (isRemoteContext())
|
|
384
|
+
return 'relay';
|
|
385
|
+
if (typeof location !== 'undefined' && location.hostname.replace(/\.$/u, '').toLowerCase() === 'dsh.codingns.com')
|
|
386
|
+
return 'relay';
|
|
387
|
+
return 'local';
|
|
388
|
+
}
|
|
389
|
+
function relayModeLabel() {
|
|
390
|
+
const state = globalThis;
|
|
391
|
+
if (state.__CODINGNS4DSH_RELAY_MODE__ === 'relay')
|
|
392
|
+
return '中转';
|
|
393
|
+
if (state.__CODINGNS4DSH_RELAY_MODE__ === 'direct')
|
|
394
|
+
return '直连';
|
|
395
|
+
return isRemoteContext() ? '中转' : '直连';
|
|
396
|
+
}
|
|
397
|
+
function loggedOutSnapshot() { return { status: 'logged_out', account: null, currentDevice: null, binding: null, expiresAt: null, errorCode: null }; }
|
|
398
|
+
//# sourceMappingURL=account-bar.js.map
|