CI / Build & Test (push) Successful in 3m19s
- Add unit tests (hostname-validator, TLDs, payload-schemas) and integration tests for message handler registry - Refactor native host message router into handler registry (handlers/state, tunnels, ssh, rdp, backup, ca, connections) - Add ESLint config and npm test + lint steps in CI - Dashboard: visibility-based refresh pause, configurable refresh interval (2s/5s/10s/paused) - Accessibility: ARIA on nav and modals, focus trap and restore, prefers-reduced-motion - Empty states: primary action buttons for virtual hosts, servers, service tunnels - Native host rate limiting for backup and CA operations; update SECURITY.md - CONTRIBUTING: "Adding a new dashboard page", dev workflow; add npm run dev script
22 lines
568 B
JavaScript
22 lines
568 B
JavaScript
// Central mutable state for the dashboard.
|
|
// All modules read/write these variables directly (plain-script shared globals).
|
|
|
|
const SETTINGS_DEFAULTS = {
|
|
proxyPort: 8443,
|
|
connectProxyPort: 8442,
|
|
readyTimeoutMs: 30000,
|
|
notifyOnDisconnect: true,
|
|
notifyOnTunnelError: true,
|
|
debug: false,
|
|
disableOnFileUrls: false,
|
|
backupRetention: 5,
|
|
backupIntervalHours: 0,
|
|
tunnelAutoReconnect: true,
|
|
latencyPingEnabled: false,
|
|
latencyPingIntervalMs: 5000,
|
|
dashboardRefreshIntervalMs: 2000
|
|
};
|
|
|
|
let currentState = null;
|
|
let settings = { ...SETTINGS_DEFAULTS };
|