mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-30 23:25:24 +00:00
fix: simplify host status to online/offline and keep it live without a refresh
This commit is contained in:
1 parent
2646b649d7
commit
0a436ab3d8
48 files changed
+549
-789
No files matched your search
@@ -73,7 +73,7 @@ const AVAILABLE_COLORS = [
|
||||
{ value: "#6b7280", label: "Gray" },
|
||||
];
|
||||
|
||||
type HostStatus = "online" | "reachable" | "offline" | "unknown";
|
||||
type HostStatus = "online" | "offline" | "unknown";
|
||||
|
||||
interface HostWithStatus extends PluginHostRecord {
|
||||
status?: HostStatus;
|
||||
@@ -184,8 +184,6 @@ function renderNodeSvg(
|
||||
statusColor = useRealColors
|
||||
? "rgb(16,185,129)"
|
||||
: resolveCssVar("--accent-brand", "rgb(16,185,129)");
|
||||
} else if (status === "reachable") {
|
||||
statusColor = "rgb(251,191,36)";
|
||||
} else if (isOffline) {
|
||||
statusColor = useRealColors ? "rgb(239,68,68)" : "rgba(16,185,129,0.2)";
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user