fix(ui): показывать неизвестный статус карты отдельно

This commit is contained in:
Denozordec committed 2026-10-01 01:39:53 +07:00
1 parent 1215cbe8ae
commit 329d6b82f7
10 files changed
+44 -12

No files matched your search

+1 -1
View File
@@ -270,7 +270,7 @@ export function buildDashboardInternetPath(args: {
site: s.site,
country: s.country,
enabled: s.enabled,
status: s.status === "degraded" ? "online" : s.status,
status: s.status === "unknown" ? null : s.status === "degraded" ? "online" : s.status,
latency: s.latency,
model: s.model ?? null,
wanUplinks: (s.wanUplinks ?? []).map((w) => ({ ...w })),
+1 -1
View File
@@ -1,4 +1,4 @@
export type ServerStatus = "online" | "offline" | "degraded"
export type ServerStatus = "online" | "offline" | "degraded" | "unknown"
export type ServerType = "jump-host" | "exit-node" | "home-router"
export interface WanUplink {