fix: the root CA is created by the server, an offline CA or a Simple CA service, chosen at setup; the shell can stay open in a tab of its own, the Docker page is offered only with Docker, and the test scripts are in bin/.
Release / release (push) Failing after 14m20s

This commit is contained in:
slawek committed 2026-11-23 06:45:23 +01:00
1 parent ff0c93ed73
commit a649331aa2
49 files changed
+1597 -637

No files matched your search

+5 -3
View File
@@ -2,9 +2,10 @@ import { useSyncExternalStore } from 'react'
/**
* The settings of this browser: the seconds between the automatic reads of the Overview and the Metrics tab, 0 for
* manual, and whether the WireGuard configuration dialog leaves out the lines a client fills in (wireguardPrefilled).
* manual, whether the WireGuard configuration dialog leaves out the lines a client fills in (wireguardPrefilled), and
* whether the shell button opens the shell in a new tab (shellNewTab).
*/
export type BrowserSettings = { routerRefresh: number; metricsRefresh: number; wireguardPrefilled: boolean }
export type BrowserSettings = { routerRefresh: number; metricsRefresh: number; wireguardPrefilled: boolean; shellNewTab: boolean }
/** The localStorage key of the settings. */
const KEY = 'linux-manager-ui.settings'
@@ -12,7 +13,7 @@ const KEY = 'linux-manager-ui.settings'
/** The event raised on window when the settings change in this tab. */
const CHANGED = 'linux-manager-ui-settings'
export const DEFAULT_SETTINGS: BrowserSettings = { routerRefresh: 10, metricsRefresh: 60, wireguardPrefilled: false }
export const DEFAULT_SETTINGS: BrowserSettings = { routerRefresh: 10, metricsRefresh: 60, wireguardPrefilled: false, shellNewTab: false }
/** The refresh choices of both tabs, in seconds; 0 is manual. */
export const REFRESH_CHOICES = [0, 5, 10, 30, 60, 300, 900]
@@ -45,6 +46,7 @@ function snapshot(): BrowserSettings {
routerRefresh: choice(stored.routerRefresh, REFRESH_CHOICES, DEFAULT_SETTINGS.routerRefresh),
metricsRefresh: choice(stored.metricsRefresh, REFRESH_CHOICES, DEFAULT_SETTINGS.metricsRefresh),
wireguardPrefilled: typeof stored.wireguardPrefilled === 'boolean' ? stored.wireguardPrefilled : DEFAULT_SETTINGS.wireguardPrefilled,
shellNewTab: typeof stored.shellNewTab === 'boolean' ? stored.shellNewTab : DEFAULT_SETTINGS.shellNewTab,
}
cached = { text, settings }
return settings