feat(frontend): 增强工作台快捷指令与仪表盘能力

补充快捷指令动态变量解析与编辑弹窗一键插入,
统一列表执行、粘贴到终端和批量发送的处理链路

扩展快捷命令右键菜单动作,并为文件面板新增
多根目录资源管理器式侧栏浏览体验

为首页 dashboard 增加当前用户与系统总览双视角的
实时会话指标展示,并同步更新相关知识库记录
This commit is contained in:
yinjianm
2026-03-26 01:39:42 +08:00
parent a2ac4047d9
commit 3f6e2bffc6
35 changed files with 2206 additions and 190 deletions
+75 -3
View File
@@ -389,8 +389,6 @@
"scopeSearchMode": "Matched paths are expanded",
"scopeTreeNoMatch": "No matching tree nodes",
"scopeDragPlaceholder": "Drag-reorder is reserved for now; only target placeholder feedback is shown.",
"scopePinAction": "Focus this scope",
"scopeDragAction": "Drag to reorder (reserved)",
"untaggedGroup": "Untagged",
"noUntaggedConnections": "No untagged connections found."
},
@@ -1379,16 +1377,73 @@
"addVariable": "+ Add Variable",
"execute": "Execute",
"warningUndefinedVariables": "Warning: Undefined variables in command template: {variables}",
"errorNoActiveSession": "No active SSH session to execute the command."
"errorNoActiveSession": "No active SSH session to execute the command.",
"dynamicVariables": {
"title": "Dynamic Variables",
"description": "Click a variable below to insert it into the command. It will be resolved automatically at execution time.",
"exampleLabel": "Example",
"groups": {
"datetime": "Date & Time",
"identity": "Identifiers",
"system": "System"
},
"items": {
"date": {
"label": "date",
"description": "Current date. Supports custom formats such as YYYY-MM-DD, YYYYMMDD, and MM/DD."
},
"time": {
"label": "time",
"description": "Current time. Supports custom formats such as HH:mm:ss, HHmmss, and HH:mm."
},
"timestamp": {
"label": "timestamp",
"description": "Unix timestamp in seconds."
},
"week": {
"label": "week",
"description": "Current ISO week number in the year."
},
"uuid": {
"label": "uuid",
"description": "Generate a unique identifier."
},
"random": {
"label": "random",
"description": "Generate a random string. Use forms like random:8 to control the length."
},
"clipboard": {
"label": "clipboard",
"description": "Read text from the current clipboard."
},
"password": {
"label": "password",
"description": "Try to read the login password for the current active SSH session."
}
},
"warnings": {
"clipboardUnavailable": "Unable to read clipboard text. An empty string was used instead.",
"passwordUnavailable": "No login password is available for the current active connection. An empty string was used instead.",
"unknownVariable": "Unrecognized dynamic variable: {variable}"
}
}
},
"untagged": "Untagged",
"tags": {
"clickToEditTag": "Click to edit tag name"
},
"actions": {
"runNow": "Run Now",
"pasteToTerminal": "Paste to Terminal",
"copyCommand": "Copy Command",
"pasteToQuickInput": "Paste to Quick Input",
"edit": "Edit",
"delete": "Delete",
"sendToAllSessions": "Send to All Servers"
},
"notifications": {
"pastedToTerminal": "Pasted into the terminal input.",
"pastedToQuickInput": "Pasted into the quick input.",
"sentToAllSessions": "Command sent to {count} servers.",
"noActiveSshSessions": "No active SSH sessions to send command to."
}
@@ -1519,6 +1574,23 @@
"sshSuccess24h": "Successful SSH connection events over the last 24 hours",
"sshFailure24h": "Failed SSH or shell-open events over the last 24 hours"
},
"liveMetrics": {
"title": "Live Session Metrics",
"description": "A mixed view of your current sessions and the whole system runtime state.",
"currentUser": {
"title": "My Sessions",
"description": "Sessions tied to the current signed-in user."
},
"system": {
"title": "System Overview",
"description": "All live session signals currently tracked by the backend."
},
"labels": {
"activeSshSessions": "Active SSH Sessions",
"suspendedSessions": "Suspended Sessions",
"statusStreams": "Status Streams"
}
},
"charts": {
"activityTrend7d": "Activity Trend (7 Days)",
"activityTrendHint": "Daily audit event volume for the latest week",