Files
NODEDC_MISSION_CORE/apps/node-agent/ui/src/nodeModel.ts
T

19 lines
1.3 KiB
TypeScript

import type { IconName } from "@nodedc/ui-react";
export type RootId = "system" | "devices";
export type ViewId = "sensors" | "environment" | "overview" | "network" | "diagnostics" | "usb" | "tailscale" | "ssh" | "core";
export const roots: { id: RootId; label: string; first: ViewId | null }[] = [
{ id: "system", label: "Система", first: "environment" },
{ id: "devices", label: "Устройства", first: "sensors" },
];
export const views: { id: ViewId; root: RootId; label: string; icon: IconName }[] = [
{ id: "sensors", root: "devices", label: "Подключённые устройства", icon: "camera" },
{ id: "environment", root: "system", label: "Настройка окружения", icon: "settings" },
{ id: "overview", root: "system", label: "Обзор БК", icon: "activity" },
{ id: "network", root: "system", label: "Сеть", icon: "network" },
{ id: "usb", root: "system", label: "USB-устройства", icon: "camera" },
{ id: "core", root: "system", label: "Mission Core", icon: "network" },
{ id: "tailscale", root: "system", label: "Tailscale", icon: "globe" },
{ id: "ssh", root: "system", label: "SSH · доверенные устройства", icon: "key" },
{ id: "diagnostics", root: "system", label: "Диагностика", icon: "clipboard" },
];