feat(network): measure Core and onboard links against registered LibreSpeed servers

This commit is contained in:
DCCONSTRUCTIONS
2026-11-21 20:58:24 +03:00
parent 22f262ca59
commit 1635299252
17 changed files with 1027 additions and 10 deletions
@@ -1,5 +1,6 @@
import { EnvironmentSettingsWindow as SharedEnvironmentSettingsWindow } from "@nodedc/ui-react";
import { environmentSurfaceIds, type EnvironmentSettings, type EnvironmentSurfaceId, type UploadedEnvironmentMedia } from "../core/environment/environmentSettings";
import { NetworkSettings } from "./network/NetworkSettings";
import { CesiumServiceSettings } from "./map/CesiumServiceSettings";
import { useLabStorageSettings } from "./storage/LabStorageSettings";
import { roots, workspaces, workspacesForRoot } from "../productModel";
@@ -19,7 +20,7 @@ const surfaces = environmentSurfaceIds.map(id => ({
}));
export function EnvironmentSettingsWindow(props: Props) {
const storage = useLabStorageSettings(props.open);
return <SharedEnvironmentSettingsWindow {...props} productName="Mission Core" surfaces={surfaces} initialSurfaceId="fleet" additionalSections={[storage, {id: "services", label: "Сервисы", icon: "key", content: props.open ? <CesiumServiceSettings/> : null}]}
return <SharedEnvironmentSettingsWindow {...props} productName="Mission Core" surfaces={surfaces} initialSurfaceId="fleet" additionalSections={[storage, {id: "network", label: "Сеть", icon: "network", content: props.open ? <NetworkSettings/> : null}, {id: "services", label: "Сервисы", icon: "key", content: props.open ? <CesiumServiceSettings/> : null}]}
onSave={draft => props.onSave({ ...draft, pages: Object.fromEntries(environmentSurfaceIds.map(id => [id, draft.pages[id]])) as EnvironmentSettings["pages"] })}
onUpload={(id, itemId, file) => {
if (!environmentSurfaceIds.includes(id as EnvironmentSurfaceId)) throw new Error("Страница окружения недоступна.");