feat: Add browser documentation

This commit is contained in:
2026-04-29 17:15:01 +02:00
parent d261bac0ed
commit 3d81c34159
29 changed files with 19981 additions and 40 deletions

View File

@@ -9,6 +9,7 @@ export interface LocalApiSettings {
port: number;
exposeOnLan: boolean;
scalarEnabled: boolean;
docusaurusEnabled: boolean;
allowedSignalingServers: string[];
}
@@ -33,6 +34,7 @@ const DEFAULT_LOCAL_API_SETTINGS: LocalApiSettings = {
port: 17878,
exposeOnLan: false,
scalarEnabled: false,
docusaurusEnabled: false,
allowedSignalingServers: []
};
@@ -129,6 +131,7 @@ function normalizeLocalApiSettings(value: unknown): LocalApiSettings {
port: normalizePort(source.port, DEFAULT_LOCAL_API_SETTINGS.port),
exposeOnLan: typeof source.exposeOnLan === 'boolean' ? source.exposeOnLan : DEFAULT_LOCAL_API_SETTINGS.exposeOnLan,
scalarEnabled: typeof source.scalarEnabled === 'boolean' ? source.scalarEnabled : DEFAULT_LOCAL_API_SETTINGS.scalarEnabled,
docusaurusEnabled: typeof source.docusaurusEnabled === 'boolean' ? source.docusaurusEnabled : DEFAULT_LOCAL_API_SETTINGS.docusaurusEnabled,
allowedSignalingServers: normalizeAllowedSignalingServers(source.allowedSignalingServers)
};
}