Remove run node UI and expire registrations

This commit is contained in:
npc0-hue
2026-08-21 12:03:06 +08:00
parent b5a366e30d
commit fb5adf06d6
17 changed files with 175 additions and 206 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ All first-party pages inherit the platform_web game-operations style with black-
## 平台概览(原首页)
Platform-administrator-only first screen. Shows online/offline server counts, abnormal instance count, run endpoint health, game type distribution, CPU/memory/disk load, LLM provider connectivity, and recent operational signals (faults, failed jobs, provider errors) that link to the relevant server, plugin, or AI provider context. Each module loads independently with scoped loading/empty/error states.
Platform-administrator-only first screen. Shows online/offline server counts, abnormal instance count, game type distribution, CPU/memory/disk load, LLM provider connectivity, and recent operational signals (faults, failed jobs, provider errors) that link to the relevant server, plugin, or AI provider context. Each module loads independently with scoped loading/empty/error states.
## 服务器管理
@@ -39,4 +39,4 @@ Shows configured model providers, base URL, model list, relay mode, status, and
## 系统维护
Shows run endpoint health/capacity and operational events. Platform administrators only.
Shows failed servers, failed tasks, retry actions, and links into the relevant server/detail log context. Platform administrators only.
+1 -1
View File
@@ -56,7 +56,7 @@ export type RuntimeObservationFreshness = "fresh" | "unverified";
export function runtimeObservationFreshness(instance: ServerInstanceResponse, endpoint: RunEndpointResponse | undefined, now = Date.now()): RuntimeObservationFreshness {
if (!endpoint || endpoint.status !== "online") return "unverified";
const heartbeat = Date.parse(endpoint.lastHeartbeatAt);
return Number.isFinite(heartbeat) && now-heartbeat <= 45_000 ? "fresh" : "unverified";
return Number.isFinite(heartbeat) && now-heartbeat <= 30_000 ? "fresh" : "unverified";
}
export const emptyServerCreateForm: ServerCreateFormState = {
+1 -1
View File
@@ -2,7 +2,7 @@ import type { PluginCatalogItem, ServerInstanceView, ShellSummaryItem, UserAcces
export const shellSummary: ShellSummaryItem[] = [
{ label: "服务器实例", value: "2", detail: "1 个运行中,1 个待配置", tone: "success" },
{ label: "运行节点", value: "1", detail: "本地执行器在线", tone: "success" },
{ label: "运行通道", value: "1", detail: "Run 心跳已接入", tone: "success" },
{ label: "插件", value: "2", detail: "桥接能力已就绪", tone: "success" },
{ label: "访问审核", value: "1", detail: "待确认角色变更", tone: "warning" }
];