Add dark workbench dashboard with host CPU/memory gauges.

Sample Windows CPU via Processor Utility so values match Task Manager, and expose host metrics on /v1/metrics/json for the workbench poll.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
oliver 2026-08-04 23:20:29 +08:00
parent 8ded8eeb7d
commit 254c50a2c0
12 changed files with 1286 additions and 83 deletions

View file

@ -24,6 +24,55 @@ const zh = {
monitoring: "监控",
operations: "运维",
system: "系统管理",
welcomeEyebrow: "工作台",
welcomeTitle: "欢迎回来,{{name}}",
welcomeSub: "在此总览同步、拓扑与后台任务状态。",
today: "今天 · {{date}}",
kpi: {
uptime: "API 运行时长",
health: "系统健康",
tasks: "进行中任务",
healthOk: "调度正常",
healthWarn: "请检查调度",
healthUnknown: "指标暂不可用",
},
statusTitle: "运行状态",
announceTitle: "系统公告",
recentTitle: "最近操作",
recentMore: "查看全部",
quickTitle: "快捷操作",
emptyRecent: "暂无操作记录。",
gauge: {
cpu: "CPU",
mem: "内存",
cli: "CLI 并发",
db: "数据库连接",
webcrt: "WebCRT",
tasks: "活跃任务",
low: "低负载",
normal: "正常",
high: "繁忙",
},
quick: {
tasks: "任务概览",
logs: "操作日志",
users: "用户管理",
apiKeys: "API Key",
},
announce: {
a1: "深色工作台已上线,其它模块将沿用同一套深色体系。",
a1Date: "2026-08-04",
a2: "LLDP 采集支持暂停/继续/停止;进程重启后会自动续跑。",
a2Date: "2026-08-04",
a3: "配置同步与 LLDP 看板在任务运行中可实时刷新 KPI。",
a3Date: "2026-08-03",
},
recentCols: {
action: "操作内容",
module: "模块",
time: "时间",
user: "用户",
},
cards: {
umeSync: "UME同步",
umeSyncDesc: "UME 告警同步、订阅与清单",