feat(connection): 支持已保存登录凭证并重构首页仪表盘

新增登录凭证管理接口、数据表与前端选择器,连接创建、
编辑和测试现已支持复用已保存凭证

重构首页为管理驾驶舱,增加统计卡片、趋势与分布图、
活跃连接排行,并通过 summary 聚合数据统一驱动
This commit is contained in:
yinjianm
2026-03-26 00:17:35 +08:00
parent 1f52ff6e0a
commit 1081c73254
34 changed files with 2472 additions and 603 deletions
+33 -1
View File
@@ -1476,7 +1476,39 @@
},
"noConnectionsWithTag": "No connections found with this tag",
"noConnectionsMatchSearch": "No connections match your search.",
"searchConnectionsPlaceholder": "Search connections..."
"searchConnectionsPlaceholder": "Search connections...",
"summaryLoadFailed": "Failed to load dashboard summary",
"emptyChart": "No statistics available yet",
"listShowing": "Showing the first {count} items",
"topConnections": "Top Active Connections",
"topConnectionsHint": "Ranked by SSH-related audit activity in the last 7 days",
"activityCount": "{count} events",
"lastSeen": "Last seen: {time}",
"summaryCards": {
"connections": "Total Connections",
"activeConnections7d": "Active in 7 Days",
"taggedConnections": "Tagged Connections",
"auditLogs": "Total Audit Logs",
"sshSuccess24h": "SSH Success in 24h",
"sshFailure24h": "SSH Failures in 24h"
},
"summaryHints": {
"connections": "Your homepage now highlights connection assets, activity, and risk signals at a glance.",
"activeConnections7d": "Connections used at least once in the last 7 days",
"taggedConnections": "Connections already organized with tags",
"auditLogs": "All retained audit events in the current database",
"sshSuccess24h": "Successful SSH connection events over the last 24 hours",
"sshFailure24h": "Failed SSH or shell-open events over the last 24 hours"
},
"charts": {
"activityTrend7d": "Activity Trend (7 Days)",
"activityTrendHint": "Daily audit event volume for the latest week",
"connectionTypes": "Connection Type Distribution",
"connectionTypesHint": "Current asset composition by protocol",
"actionBreakdown7d": "Event Breakdown (7 Days)",
"actionBreakdownHint": "Most frequent audit event types in the latest week",
"eventCount": "Event Count"
}
},
"terminalTabBar": {
"selectServerTitle": "Select server to connect",
+33 -1
View File
@@ -320,7 +320,39 @@
"noConnectionsMatchSearch": "検索条件に一致する接続はありません。",
"searchConnectionsPlaceholder": "接続を検索...",
"viewAllConnections": "すべての接続を表示",
"viewFullAuditLog": "完全な監査ログを表示"
"viewFullAuditLog": "完全な監査ログを表示",
"summaryLoadFailed": "ダッシュボード統計の読み込みに失敗しました",
"emptyChart": "利用できる統計データがありません",
"listShowing": "先頭 {count} 件を表示中",
"topConnections": "最近もっとも活発な接続",
"topConnectionsHint": "直近 7 日間の SSH 関連監査イベント数で集計",
"activityCount": "{count} 件",
"lastSeen": "最終確認: {time}",
"summaryCards": {
"connections": "接続総数",
"activeConnections7d": "7日以内のアクティブ接続",
"taggedConnections": "タグ付き接続",
"auditLogs": "監査ログ総数",
"sshSuccess24h": "24時間の SSH 成功",
"sshFailure24h": "24時間の SSH 失敗"
},
"summaryHints": {
"connections": "ホーム画面で接続資産、活動状況、リスクの兆候をまとめて確認できます。",
"activeConnections7d": "直近 7 日で少なくとも 1 回利用された接続数",
"taggedConnections": "タグで整理済みの接続数",
"auditLogs": "現在のデータベースに保存されている監査イベント総数",
"sshSuccess24h": "過去 24 時間に成功した SSH 接続イベント数",
"sshFailure24h": "過去 24 時間に失敗した SSH 接続または Shell 起動イベント数"
},
"charts": {
"activityTrend7d": "直近 7 日のアクティビティ推移",
"activityTrendHint": "直近 1 週間の監査イベント数を日別に表示",
"connectionTypes": "接続タイプ分布",
"connectionTypesHint": "現在の接続資産をプロトコル別に可視化",
"actionBreakdown7d": "直近 7 日のイベント分布",
"actionBreakdownHint": "最近 1 週間で発生頻度が高い監査イベント種別",
"eventCount": "イベント数"
}
},
"dockerManager": {
"action": {
+33 -1
View File
@@ -1480,7 +1480,39 @@
},
"noConnectionsWithTag": "该标签下没有连接记录",
"noConnectionsMatchSearch": "没有连接匹配搜索条件",
"searchConnectionsPlaceholder": "搜索连接..."
"searchConnectionsPlaceholder": "搜索连接...",
"summaryLoadFailed": "仪表盘统计加载失败",
"emptyChart": "暂无统计数据",
"listShowing": "显示前 {count} 项",
"topConnections": "近期最活跃连接",
"topConnectionsHint": "按最近 7 天 SSH 相关审计事件聚合排序",
"activityCount": "{count} 次",
"lastSeen": "最近出现: {time}",
"summaryCards": {
"connections": "连接总数",
"activeConnections7d": "近 7 天活跃连接",
"taggedConnections": "已打标签连接",
"auditLogs": "审计日志总数",
"sshSuccess24h": "24 小时 SSH 成功",
"sshFailure24h": "24 小时 SSH 失败"
},
"summaryHints": {
"connections": "首页现在会直接展示连接资产、活动趋势和风险信号。",
"activeConnections7d": "最近 7 天内至少连接过一次的连接数",
"taggedConnections": "已经通过标签完成归类的连接数",
"auditLogs": "当前数据库中保留的全部审计事件数量",
"sshSuccess24h": "最近 24 小时内成功建立的 SSH 连接事件",
"sshFailure24h": "最近 24 小时内 SSH 连接或 Shell 打开失败事件"
},
"charts": {
"activityTrend7d": "近 7 天活动趋势",
"activityTrendHint": "按天统计最近一周的审计事件量",
"connectionTypes": "连接类型分布",
"connectionTypesHint": "当前连接资产按协议的占比情况",
"actionBreakdown7d": "近 7 天事件分布",
"actionBreakdownHint": "最近一周出现频率最高的审计事件类型",
"eventCount": "事件数"
}
},
"terminalTabBar": {
"selectServerTitle": "选择要连接的服务器",