dsh-ssh-hub 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +271 -2
- package/cordis.patch.yml +16 -0
- package/icon.svg +3 -0
- package/lib/client.js +13975 -0
- package/lib/index.js +6908 -0
- package/lib/types/activity/history.d.ts +50 -0
- package/lib/types/alerting/notify.d.ts +89 -0
- package/lib/types/alerting/prompt-summary.d.ts +28 -0
- package/lib/types/alerting/rules.d.ts +135 -0
- package/lib/types/alerting/tools.d.ts +30 -0
- package/lib/types/audit/audit-log.d.ts +84 -0
- package/lib/types/audit/recorder.d.ts +50 -0
- package/lib/types/client/api.d.ts +222 -0
- package/lib/types/client/index.d.ts +45 -0
- package/lib/types/client/locales.d.ts +319 -0
- package/lib/types/client/native-panel.d.ts +70 -0
- package/lib/types/client/panel/ClusterTab.d.ts +7 -0
- package/lib/types/client/panel/DeployTab.d.ts +10 -0
- package/lib/types/client/panel/FleetTab.d.ts +10 -0
- package/lib/types/client/panel/HostFormDialog.d.ts +12 -0
- package/lib/types/client/panel/HostsTab.d.ts +25 -0
- package/lib/types/client/panel/LogsTab.d.ts +10 -0
- package/lib/types/client/panel/SshPanel.d.ts +14 -0
- package/lib/types/client/panel/TerminalTab.d.ts +27 -0
- package/lib/types/client/panel/TransferTab.d.ts +7 -0
- package/lib/types/client/panel/TunnelEditDialog.d.ts +15 -0
- package/lib/types/client/panel/TunnelsTab.d.ts +27 -0
- package/lib/types/client/panel/controller.d.ts +253 -0
- package/lib/types/client/panel/helpers.d.ts +45 -0
- package/lib/types/client/panel/tabs.d.ts +62 -0
- package/lib/types/client/panel/xterm.css.d.ts +2 -0
- package/lib/types/client/settings-binding.d.ts +71 -0
- package/lib/types/deploy/orchestrator.d.ts +158 -0
- package/lib/types/deploy/tools.d.ts +14 -0
- package/lib/types/dsh-home.d.ts +16 -0
- package/lib/types/engine/cluster.d.ts +19 -0
- package/lib/types/engine/connection-pool.d.ts +183 -0
- package/lib/types/engine/proxy-command.d.ts +36 -0
- package/lib/types/engine/pty.d.ts +32 -0
- package/lib/types/engine/sftp.d.ts +20 -0
- package/lib/types/engine/terminal-sessions.d.ts +67 -0
- package/lib/types/engine/tunnel-discovery.d.ts +89 -0
- package/lib/types/engine/tunnel-remarks.d.ts +49 -0
- package/lib/types/engine/tunnel.d.ts +76 -0
- package/lib/types/engine.d.ts +103 -0
- package/lib/types/http.d.ts +59 -0
- package/lib/types/index.d.ts +128 -0
- package/lib/types/inspect/checks.d.ts +118 -0
- package/lib/types/inspect/inspection.d.ts +111 -0
- package/lib/types/inspect/tools.d.ts +50 -0
- package/lib/types/logs/search.d.ts +131 -0
- package/lib/types/logs/tools.d.ts +6 -0
- package/lib/types/loopback.d.ts +64 -0
- package/lib/types/monitor/loop.d.ts +133 -0
- package/lib/types/monitor/metrics.d.ts +151 -0
- package/lib/types/mount-once.d.ts +55 -0
- package/lib/types/protocol.d.ts +524 -0
- package/lib/types/routes.d.ts +82 -0
- package/lib/types/security/known-hosts.d.ts +153 -0
- package/lib/types/security/master-secret.d.ts +157 -0
- package/lib/types/security/redact.d.ts +44 -0
- package/lib/types/security/secrets.d.ts +70 -0
- package/lib/types/ssh-config.d.ts +42 -0
- package/lib/types/store.d.ts +183 -0
- package/lib/types/tool-surface.d.ts +72 -0
- package/lib/types/tools.d.ts +56 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +126 -6
- package/src/activity/history.ts +117 -0
- package/src/alerting/notify.ts +212 -0
- package/src/alerting/prompt-summary.ts +71 -0
- package/src/alerting/rules.ts +281 -0
- package/src/alerting/tools.ts +263 -0
- package/src/audit/audit-log.ts +199 -0
- package/src/audit/recorder.ts +73 -0
- package/src/client/api.ts +782 -0
- package/src/client/css-modules.d.ts +5 -0
- package/src/client/index.ts +150 -0
- package/src/client/locales.ts +654 -0
- package/src/client/native-panel.tsx +141 -0
- package/src/client/panel/ClusterTab.tsx +141 -0
- package/src/client/panel/DeployTab.tsx +314 -0
- package/src/client/panel/FleetTab.tsx +494 -0
- package/src/client/panel/HostFormDialog.tsx +289 -0
- package/src/client/panel/HostsTab.tsx +395 -0
- package/src/client/panel/LogsTab.tsx +208 -0
- package/src/client/panel/SshPanel.tsx +105 -0
- package/src/client/panel/TerminalTab.tsx +550 -0
- package/src/client/panel/TransferTab.tsx +238 -0
- package/src/client/panel/TunnelEditDialog.tsx +174 -0
- package/src/client/panel/TunnelsTab.tsx +328 -0
- package/src/client/panel/controller.ts +507 -0
- package/src/client/panel/helpers.ts +84 -0
- package/src/client/panel/panel.module.css +1734 -0
- package/src/client/panel/tabs.ts +52 -0
- package/src/client/panel/xterm.css.ts +2 -0
- package/src/client/settings-binding.ts +184 -0
- package/src/deploy/orchestrator.ts +326 -0
- package/src/deploy/tools.ts +225 -0
- package/src/dsh-home.ts +42 -0
- package/src/engine/cluster.ts +60 -0
- package/src/engine/connection-pool.ts +721 -0
- package/src/engine/proxy-command.ts +248 -0
- package/src/engine/pty.ts +78 -0
- package/src/engine/sftp.ts +229 -0
- package/src/engine/terminal-sessions.ts +280 -0
- package/src/engine/tunnel-discovery.ts +353 -0
- package/src/engine/tunnel-remarks.ts +120 -0
- package/src/engine/tunnel.ts +300 -0
- package/src/engine.ts +195 -0
- package/src/http.ts +127 -0
- package/src/index.ts +690 -0
- package/src/inspect/checks.ts +251 -0
- package/src/inspect/inspection.ts +321 -0
- package/src/inspect/tools.ts +366 -0
- package/src/logs/search.ts +251 -0
- package/src/logs/tools.ts +160 -0
- package/src/loopback.ts +119 -0
- package/src/monitor/loop.ts +265 -0
- package/src/monitor/metrics.ts +333 -0
- package/src/mount-once.ts +142 -0
- package/src/protocol.ts +534 -0
- package/src/routes.ts +998 -0
- package/src/security/known-hosts.ts +342 -0
- package/src/security/master-secret.ts +334 -0
- package/src/security/redact.ts +119 -0
- package/src/security/secrets.ts +152 -0
- package/src/ssh-config.ts +182 -0
- package/src/store.ts +757 -0
- package/src/tool-surface.ts +96 -0
- package/src/tools.ts +550 -0
|
@@ -0,0 +1,654 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* dsh-ssh surface copy: zh is the key source, en mirrors every key.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export const zh = {
|
|
6
|
+
'entry.label': 'SSH',
|
|
7
|
+
'entry.tooltip': '远程 SSH 运维面板',
|
|
8
|
+
'panel.title': '远程 SSH',
|
|
9
|
+
'panel.backToConversation': '返回会话',
|
|
10
|
+
'tab.hosts': '主机',
|
|
11
|
+
'tab.terminal': '终端',
|
|
12
|
+
'tab.transfer': '传输',
|
|
13
|
+
'tab.tunnels': '隧道',
|
|
14
|
+
'tab.cluster': '集群',
|
|
15
|
+
'tab.fleet': '机群',
|
|
16
|
+
'tab.deploy': '发布',
|
|
17
|
+
'tab.logs': '日志',
|
|
18
|
+
// fleet
|
|
19
|
+
'fleet.monitor': '监控状态',
|
|
20
|
+
'fleet.checkNow': '立即巡检',
|
|
21
|
+
'fleet.checking': '巡检中…',
|
|
22
|
+
'fleet.loading': '加载中…',
|
|
23
|
+
'fleet.armed': '监控已启动',
|
|
24
|
+
'fleet.notArmed': '监控未启动',
|
|
25
|
+
'fleet.interval': '间隔',
|
|
26
|
+
'fleet.hosts': '台主机',
|
|
27
|
+
'fleet.nextAt': '下次',
|
|
28
|
+
'fleet.security': '凭据加密',
|
|
29
|
+
'fleet.encrypted': '已加密',
|
|
30
|
+
'fleet.plaintext': '明文存储',
|
|
31
|
+
'fleet.switchOff': '未开启 encryptCredentials',
|
|
32
|
+
'fleet.noSecret': '未配置主密钥',
|
|
33
|
+
'fleet.hostKey': '指纹策略',
|
|
34
|
+
'fleet.audit': '审计',
|
|
35
|
+
'fleet.on': '开',
|
|
36
|
+
'fleet.off': '关',
|
|
37
|
+
'fleet.lastRound': '最近一轮巡检',
|
|
38
|
+
'fleet.noRound': '还没有巡检记录。启动监控,或点「立即巡检」。',
|
|
39
|
+
'fleet.breaches': '超限',
|
|
40
|
+
'fleet.blind': '探针失联',
|
|
41
|
+
'fleet.host': '主机',
|
|
42
|
+
'fleet.check': '检查项',
|
|
43
|
+
'fleet.value': '值',
|
|
44
|
+
'fleet.changes': '与上一轮的变化',
|
|
45
|
+
'fleet.noChanges': '与上一轮相比没有变化,或只有一个轮次可供比较。',
|
|
46
|
+
'fleet.before': '之前',
|
|
47
|
+
'fleet.after': '现在',
|
|
48
|
+
'fleet.alerts': '告警',
|
|
49
|
+
'fleet.noAlerts': '没有告警。注意:若监控未启动,这里为空并不代表健康。',
|
|
50
|
+
'fleet.rule': '规则',
|
|
51
|
+
'fleet.state': '状态',
|
|
52
|
+
'fleet.events': '最近事件',
|
|
53
|
+
'fleet.trigger': '触发',
|
|
54
|
+
'fleet.recover': '恢复',
|
|
55
|
+
'fleet.trend': '趋势',
|
|
56
|
+
'fleet.pickHost': '选择主机…',
|
|
57
|
+
'fleet.diskTrend': '磁盘使用率',
|
|
58
|
+
'fleet.buckets': '个数据点',
|
|
59
|
+
'fleet.secretTitle': '主密钥(凭据加密)',
|
|
60
|
+
'fleet.secretSource': '来源',
|
|
61
|
+
'fleet.secretHint': '设置主密钥后,凭据会加密存储。改密钥会重新加密所有已存凭据;密钥一旦丢失,已加密的凭据无法恢复,请先备份。',
|
|
62
|
+
'fleet.secretInput': '主密钥',
|
|
63
|
+
'fleet.secretPlaceholder': '留空则自动生成 32 字节随机密钥',
|
|
64
|
+
'fleet.secretApply': '设置 / 轮换密钥',
|
|
65
|
+
'fleet.secretGenerate': '生成一个',
|
|
66
|
+
'fleet.secretWorking': '处理中…',
|
|
67
|
+
'fleet.secretClear': '删除密钥文件',
|
|
68
|
+
'fleet.secretSaved': '已保存:来源 {source},重新加密 {rotated} 台主机的凭据。',
|
|
69
|
+
'fleet.secretCleared': '密钥文件已删除。',
|
|
70
|
+
'fleet.secretFailed': '操作失败。',
|
|
71
|
+
'fleet.plaintextList': '以下主机的凭据仍是明文:',
|
|
72
|
+
'fleet.keyPath': '密钥文件:',
|
|
73
|
+
'fleet.switchWithoutKey': 'encryptCredentials 已开启,但没有主密钥 —— 凭据仍以明文存储。请设置主密钥。',
|
|
74
|
+
// deploy
|
|
75
|
+
'deploy.form.title': '发布计划',
|
|
76
|
+
'deploy.form.hint': '按批次发布到机群;每一步都必须能回滚。批次之间默认遇错即停。',
|
|
77
|
+
'deploy.form.planId': '计划名称',
|
|
78
|
+
'deploy.form.step': '步骤',
|
|
79
|
+
'deploy.form.stepName': '步骤名',
|
|
80
|
+
'deploy.form.command': '执行命令',
|
|
81
|
+
'deploy.form.rollback': '回滚命令',
|
|
82
|
+
'deploy.form.rollbackWhy': '(必填:没有它就无法回滚)',
|
|
83
|
+
'deploy.form.addStep': '+ 添加步骤',
|
|
84
|
+
'deploy.form.removeStep': '删除',
|
|
85
|
+
'deploy.form.batchSize': '每批主机数',
|
|
86
|
+
'deploy.form.stopOnFailure': '遇错即停',
|
|
87
|
+
'deploy.form.health': '健康检查命令',
|
|
88
|
+
'deploy.form.healthOptional': '(可选)',
|
|
89
|
+
'deploy.form.targets': '目标主机',
|
|
90
|
+
'deploy.form.targetsHint': '(不选=全部)',
|
|
91
|
+
'deploy.form.noHosts': '还没有主机,请先在「主机」页添加。',
|
|
92
|
+
'deploy.form.run': '开始发布',
|
|
93
|
+
'deploy.form.running': '发布中…',
|
|
94
|
+
'deploy.error.noPlanId': '请填写计划名称。',
|
|
95
|
+
'deploy.error.noSteps': '至少需要一个执行命令。',
|
|
96
|
+
'deploy.error.noRollback': '每个步骤都必须填写回滚命令,否则失败批次无法撤销。',
|
|
97
|
+
'deploy.confirm': '确定发布计划「{plan}」到 {count} 台主机吗?命令会在这些远程服务器上真实执行;批次失败时会尝试回滚。',
|
|
98
|
+
'deploy.done': '发布完成:{ok}/{total} 台成功。',
|
|
99
|
+
'deploy.history.title': '发布记录',
|
|
100
|
+
'deploy.history.empty': '还没有发布记录。上面的表单可以发起一次。',
|
|
101
|
+
'deploy.col.time': '时间',
|
|
102
|
+
'deploy.col.plan': '计划',
|
|
103
|
+
'deploy.col.hosts': '主机数',
|
|
104
|
+
'deploy.col.result': '结果',
|
|
105
|
+
'deploy.col.failed': '失败',
|
|
106
|
+
'deploy.col.host': '主机',
|
|
107
|
+
'deploy.col.health': '健康',
|
|
108
|
+
'deploy.col.detail': '详情',
|
|
109
|
+
'deploy.ok': '成功',
|
|
110
|
+
'deploy.failed': '失败',
|
|
111
|
+
'deploy.rolledBack': '已回滚',
|
|
112
|
+
'deploy.show': '展开',
|
|
113
|
+
'deploy.hide': '收起',
|
|
114
|
+
// logs
|
|
115
|
+
'logs.form.title': '跨主机日志检索',
|
|
116
|
+
'logs.form.hint': '一次在多台主机上检索同一关键词,结果按主机归组,便于判断影响面。',
|
|
117
|
+
'logs.form.pattern': '关键词(固定文本,非正则)',
|
|
118
|
+
'logs.form.source': '来源',
|
|
119
|
+
'logs.source.journal': 'systemd journal',
|
|
120
|
+
'logs.source.files': '目录下的日志文件',
|
|
121
|
+
'logs.form.unit': 'unit 过滤',
|
|
122
|
+
'logs.form.optional': '(可选)',
|
|
123
|
+
'logs.form.directory': '日志目录',
|
|
124
|
+
'logs.form.since': '最近多少分钟',
|
|
125
|
+
'logs.form.maxLines': '每台最多返回行数',
|
|
126
|
+
'logs.form.targets': '目标主机',
|
|
127
|
+
'logs.form.targetsHint': '(不选=全部)',
|
|
128
|
+
'logs.form.noHosts': '还没有主机,请先在「主机」页添加。',
|
|
129
|
+
'logs.form.run': '开始检索',
|
|
130
|
+
'logs.form.running': '检索中…',
|
|
131
|
+
'logs.error.noPattern': '请填写关键词。',
|
|
132
|
+
'logs.results.title': '检索结果',
|
|
133
|
+
'logs.results.empty': '还没有检索记录。',
|
|
134
|
+
'logs.results.hosts': '台主机',
|
|
135
|
+
'logs.results.lines': '行',
|
|
136
|
+
'logs.results.matched': '命中',
|
|
137
|
+
'logs.results.failed': '失败',
|
|
138
|
+
// hosts
|
|
139
|
+
'hosts.empty': '尚未配置主机。点击「新增主机」添加,或从 ~/.ssh/config 导入。',
|
|
140
|
+
'hosts.add': '新增主机',
|
|
141
|
+
'hosts.import': '导入 ~/.ssh/config',
|
|
142
|
+
'hosts.localConfigPending': '本地 ~/.ssh/config 中有 {count} 台主机尚未导入:',
|
|
143
|
+
'hosts.search': '搜索别名 / 描述 / 标签…',
|
|
144
|
+
'hosts.groupBy.label': '分组方式',
|
|
145
|
+
'hosts.groupBy.none': '不分组',
|
|
146
|
+
'hosts.groupBy.environment': '按环境分组',
|
|
147
|
+
'hosts.groupBy.tags': '按标签分组',
|
|
148
|
+
'hosts.group.ungrouped': '未设置环境',
|
|
149
|
+
'hosts.group.noTags': '无标签',
|
|
150
|
+
'hosts.group.count': '{count} 台',
|
|
151
|
+
'hosts.group.testAll': '测试全部',
|
|
152
|
+
'hosts.col.host': '主机',
|
|
153
|
+
'hosts.col.auth': '认证',
|
|
154
|
+
'hosts.col.environment': '环境',
|
|
155
|
+
'hosts.col.tags': '标签',
|
|
156
|
+
'hosts.col.description': '备注',
|
|
157
|
+
'hosts.col.actions': '操作',
|
|
158
|
+
'hosts.test': '测试',
|
|
159
|
+
'hosts.edit': '编辑',
|
|
160
|
+
'hosts.delete': '删除',
|
|
161
|
+
'hosts.deleteConfirm': '确定删除主机「{alias}」?将同时停止其隧道。',
|
|
162
|
+
'hosts.imported': '解析 {parsed} 个配置块,新增 {added} 台,修正 {updated} 台,跳过 {skipped} 个。',
|
|
163
|
+
'hosts.proxyBadge': '代理',
|
|
164
|
+
'hosts.forwardAgentBadge': 'Agent 转发',
|
|
165
|
+
'hosts.forwardAgentHint': '仅对可信主机开启:远端可用本机私钥签名(等价 ssh -A)。',
|
|
166
|
+
'import.reason.wildcard': '通配符 pattern,需手动配置',
|
|
167
|
+
'import.reason.existing': '别名已存在',
|
|
168
|
+
'import.reason.match': 'Match 条件块,不支持',
|
|
169
|
+
'import.reason.invalid': '字段不合法,无法导入',
|
|
170
|
+
'import.more': '其余 {count} 个未显示',
|
|
171
|
+
'hosts.testing': '连接测试中…',
|
|
172
|
+
'hosts.testOk': '连接成功({latency} ms)',
|
|
173
|
+
'hosts.testOkShort': '{latency} ms',
|
|
174
|
+
'hosts.testFailShort': '连接失败',
|
|
175
|
+
'hosts.testingShort': '测试中…',
|
|
176
|
+
'hosts.connected': '连接',
|
|
177
|
+
'hosts.notConnected': '未连接',
|
|
178
|
+
// host form
|
|
179
|
+
'form.title.create': '新增主机',
|
|
180
|
+
'form.title.edit': '编辑主机 {alias}',
|
|
181
|
+
'form.alias': '别名',
|
|
182
|
+
'form.aliasHint': '小写字母、数字与单连字符,操作时使用',
|
|
183
|
+
'form.host': '主机地址',
|
|
184
|
+
'form.port': '端口',
|
|
185
|
+
'form.user': '用户名',
|
|
186
|
+
'form.auth': '认证方式',
|
|
187
|
+
'form.auth.key': '密钥',
|
|
188
|
+
'form.auth.password': '密码',
|
|
189
|
+
'form.auth.agent': 'SSH Agent',
|
|
190
|
+
'form.auth.none': '无认证(none)',
|
|
191
|
+
'form.auth.noneHint': '无需密码或私钥,通常用于基于用户名的沙箱或公开接入点。',
|
|
192
|
+
'form.agentPath': 'Agent 路径',
|
|
193
|
+
'form.agentPathHint': '留空自动检测(SSH_AUTH_SOCK;Windows 上为原生 ssh-agent 命名管道);也可填 socket 路径或 pageant',
|
|
194
|
+
'form.authKeepHint': '编辑时密码 / 私钥留空将保留已存凭据;Agent 路径留空是合法的自动检测,选「SSH Agent」即切换到 agent 认证。',
|
|
195
|
+
'form.keyPath': '私钥路径',
|
|
196
|
+
'form.keyPathHint': '如 ~/.ssh/id_ed25519',
|
|
197
|
+
'form.passphrase': '密钥口令',
|
|
198
|
+
'form.password': '密码',
|
|
199
|
+
'form.passwordHint': '明文保存在 $DSH_HOME/dsh-ssh.json(本机私有文件)',
|
|
200
|
+
'form.passwordRequired': '密码认证需要填写密码。',
|
|
201
|
+
'form.proxyJump': '跳板机别名',
|
|
202
|
+
'form.proxyJumpHint': '逗号分隔的本地主机别名,或 [user@]host[:port] 地址,按顺序连接',
|
|
203
|
+
'form.proxyCommand': 'ProxyCommand',
|
|
204
|
+
'form.proxyCommandHint': 'OpenSSH ProxyCommand:%h 主机、%p 端口、%r 用户、%n 别名;留空或填 none 表示不使用。与跳板机别名互斥。',
|
|
205
|
+
'form.forwardAgent': '启用 Agent 转发',
|
|
206
|
+
'form.forwardAgentHint': '把本机 SSH Agent 转发到该主机(等价 ssh -A):远端可用本机私钥签名。仅对可信主机开启。',
|
|
207
|
+
'form.description': '备注',
|
|
208
|
+
'form.environment': '环境',
|
|
209
|
+
'form.environmentHint': '如 development / production',
|
|
210
|
+
'form.tags': '标签',
|
|
211
|
+
'form.tagsHint': '逗号分隔',
|
|
212
|
+
'form.location': '位置',
|
|
213
|
+
'form.save': '保存',
|
|
214
|
+
'form.cancel': '取消',
|
|
215
|
+
'form.required': '请填写必填字段:别名、主机地址、用户名。',
|
|
216
|
+
'form.portInvalid': '端口必须是 1-65535 之间的整数。',
|
|
217
|
+
// terminal
|
|
218
|
+
'terminal.selectHost': '选择主机',
|
|
219
|
+
'terminal.connect': '连接',
|
|
220
|
+
'terminal.disconnect': '断开',
|
|
221
|
+
'terminal.placeholder': '选择主机后点击「连接」打开远程终端。',
|
|
222
|
+
'terminal.connecting': '正在连接…',
|
|
223
|
+
'terminal.ready': '终端已连接({alias})',
|
|
224
|
+
'terminal.exited': '终端已退出({alias})',
|
|
225
|
+
'terminal.error': '终端错误:{error}',
|
|
226
|
+
'terminal.noWebSocket': '当前页面不支持 WebSocket(应用外壳没有可连接的本地主机地址),请改用浏览器打开的 Web 界面使用终端。',
|
|
227
|
+
'terminal.auth.title': '二次身份验证 (2FA / 交互式认证)',
|
|
228
|
+
'terminal.auth.submit': '提交验证码',
|
|
229
|
+
'terminal.auth.cancel': '取消',
|
|
230
|
+
'terminal.auth.placeholder': '请输入验证码或口令',
|
|
231
|
+
'terminal.auth.hint': '服务器请求进行交互式二次验证(输入仅本次生效,不落盘):',
|
|
232
|
+
'terminal.tabs': '终端标签',
|
|
233
|
+
'terminal.newTab': '按当前主机新开标签',
|
|
234
|
+
'terminal.closeTab': '关闭标签',
|
|
235
|
+
'terminal.authPending': '待验证',
|
|
236
|
+
'terminal.tabExited': '已退出',
|
|
237
|
+
'terminal.tabError': '出错',
|
|
238
|
+
'terminal.closeFailed': '无法确认该标签已关闭:关闭帧未送达宿主。标签已保留——可重试,或切到该标签前台,用它自己的连接关闭。',
|
|
239
|
+
// transfer
|
|
240
|
+
'transfer.selectHost': '选择主机',
|
|
241
|
+
'transfer.remotePath': '远程路径',
|
|
242
|
+
'transfer.remotePathHint': '如 /tmp/ 或 /home/user/app.tar.gz',
|
|
243
|
+
'transfer.upload': '上传',
|
|
244
|
+
'transfer.uploading': '正在上传 {file}…',
|
|
245
|
+
'transfer.download': '下载',
|
|
246
|
+
'transfer.downloading': '正在下载…',
|
|
247
|
+
'transfer.done': '完成:{bytes} 字节',
|
|
248
|
+
'transfer.failed': '传输失败:{error}',
|
|
249
|
+
'transfer.browseRemote': '浏览远程目录',
|
|
250
|
+
'transfer.refresh': '刷新',
|
|
251
|
+
'transfer.name': '名称',
|
|
252
|
+
'transfer.upLevel': '上级目录',
|
|
253
|
+
'transfer.size': '大小',
|
|
254
|
+
'transfer.modified': '修改时间',
|
|
255
|
+
'transfer.bytes': '{value} B',
|
|
256
|
+
'transfer.kib': '{value} KB',
|
|
257
|
+
'transfer.mib': '{value} MB',
|
|
258
|
+
'transfer.gib': '{value} GB',
|
|
259
|
+
'transfer.percent': '{value}%',
|
|
260
|
+
'transfer.speed': '{value}/s',
|
|
261
|
+
'transfer.dir': '目录',
|
|
262
|
+
'transfer.emptyDir': '此目录为空。',
|
|
263
|
+
'transfer.file': '文件',
|
|
264
|
+
// tunnels
|
|
265
|
+
'tunnel.empty': '没有活跃的隧道。',
|
|
266
|
+
'tunnel.start': '新建隧道',
|
|
267
|
+
'tunnel.alias': '主机别名',
|
|
268
|
+
'tunnel.remotePort': '远程端口',
|
|
269
|
+
'tunnel.remoteHost': '远程主机',
|
|
270
|
+
'tunnel.remoteHostHint': '默认 127.0.0.1(服务器自身)',
|
|
271
|
+
'tunnel.localPort': '本地端口',
|
|
272
|
+
'tunnel.localPortHint': '留空自动分配',
|
|
273
|
+
'tunnel.name': '服务名称',
|
|
274
|
+
'tunnel.nameHint': '可选项目或服务名称(如 redis、api)',
|
|
275
|
+
'tunnel.description': '备注说明',
|
|
276
|
+
'tunnel.descriptionHint': '可选说明信息',
|
|
277
|
+
'tunnel.stop': '停止',
|
|
278
|
+
'tunnel.stopAll': '全部停止',
|
|
279
|
+
'tunnel.stopAllConfirm': '确定停止全部隧道吗?',
|
|
280
|
+
'tunnel.row': '{alias}: 127.0.0.1:{localPort} -> {remoteHost}:{remotePort}',
|
|
281
|
+
'tunnel.started': '隧道已建立:127.0.0.1:{localPort}',
|
|
282
|
+
'tunnel.failed': '隧道启动失败:{error}',
|
|
283
|
+
'tunnel.externalRow': '{alias}: 127.0.0.1:{localPort} -> {remoteHost}:{remotePort}(外部进程 pid {pid})',
|
|
284
|
+
'tunnel.externalLive': '外部进程 · 端口可连通',
|
|
285
|
+
'tunnel.externalDead': '外部进程 · 端口未监听',
|
|
286
|
+
'tunnel.externalMeta': '外部进程 pid {pid}',
|
|
287
|
+
'tunnel.externalHint': '以下转发由本插件之外的程序建立,只能查看、不能在此停止。',
|
|
288
|
+
'tunnel.edit': '编辑',
|
|
289
|
+
'tunnel.editTitle': '编辑隧道 · {alias}',
|
|
290
|
+
'tunnel.editRestartHint': '修改远程主机、远程端口或本地端口会先停止当前隧道,再按新参数重建;已有连接会中断。',
|
|
291
|
+
'tunnel.editExternalHint': '这条转发由本插件之外的程序建立,转发参数不能在这里修改;名称与备注会写入本机备注库,该进程重启后依然保留。留空保存即恢复为 forwards.conf 的默认名称。',
|
|
292
|
+
'tunnel.remoteHostRequired': '远程主机不能为空。',
|
|
293
|
+
'tunnel.customRemark': '自定义',
|
|
294
|
+
'tunnel.updated': '隧道已更新。',
|
|
295
|
+
'tunnel.rebuilt': '隧道已按新参数重建:127.0.0.1:{localPort}',
|
|
296
|
+
'tunnel.remarkSaved': '备注已保存。',
|
|
297
|
+
'tunnel.remarkCleared': '备注已清除,恢复为默认名称。',
|
|
298
|
+
// cluster
|
|
299
|
+
'cluster.command': '命令',
|
|
300
|
+
'cluster.run': '执行',
|
|
301
|
+
'cluster.confirm': '确定在匹配的主机上执行该命令吗?该操作会真实运行在远程服务器上。',
|
|
302
|
+
'cluster.aliases': '主机别名(逗号分隔,与环境、标签至少填一项)',
|
|
303
|
+
'cluster.environment': '环境过滤',
|
|
304
|
+
'cluster.tags': '标签过滤(逗号分隔)',
|
|
305
|
+
'cluster.results': '执行结果',
|
|
306
|
+
'cluster.empty': '输入命令后点击「执行」。',
|
|
307
|
+
'cluster.needSelector': '请先填写主机别名、环境或标签中的至少一项,以免误在整个机群上执行。',
|
|
308
|
+
'cluster.noMatch': '没有匹配的主机。',
|
|
309
|
+
'cluster.ok': '成功',
|
|
310
|
+
'cluster.fail': '失败',
|
|
311
|
+
'cluster.timeout': '超时',
|
|
312
|
+
'cluster.col.alias': '主机',
|
|
313
|
+
'cluster.col.status': '状态',
|
|
314
|
+
'cluster.col.exit': '退出码',
|
|
315
|
+
'cluster.col.stdout': '标准输出',
|
|
316
|
+
'cluster.col.stderr': '标准错误',
|
|
317
|
+
'cluster.col.error': '错误',
|
|
318
|
+
'cluster.col.duration': '耗时',
|
|
319
|
+
// common
|
|
320
|
+
'common.loading': '加载中…',
|
|
321
|
+
'common.error': '出错:{error}',
|
|
322
|
+
'common.refresh': '刷新',
|
|
323
|
+
'common.confirm': '确定',
|
|
324
|
+
'error.disabled': 'SSH 插件在宿主端未启用。请前往「设置 → Web 插件 → SSH」打开 enabled 开关。',
|
|
325
|
+
} as const
|
|
326
|
+
|
|
327
|
+
export const en: Record<keyof typeof zh, string> = {
|
|
328
|
+
'entry.label': 'SSH',
|
|
329
|
+
'entry.tooltip': 'Remote SSH operations panel',
|
|
330
|
+
'panel.title': 'Remote SSH',
|
|
331
|
+
'panel.backToConversation': 'Back to chat',
|
|
332
|
+
'tab.hosts': 'Hosts',
|
|
333
|
+
'tab.terminal': 'Terminal',
|
|
334
|
+
'tab.transfer': 'Transfer',
|
|
335
|
+
'tab.tunnels': 'Tunnels',
|
|
336
|
+
'tab.cluster': 'Cluster',
|
|
337
|
+
'tab.fleet': 'Fleet',
|
|
338
|
+
'tab.deploy': 'Deploy',
|
|
339
|
+
'tab.logs': 'Logs',
|
|
340
|
+
// fleet
|
|
341
|
+
'fleet.monitor': 'Monitor',
|
|
342
|
+
'fleet.checkNow': 'Check now',
|
|
343
|
+
'fleet.checking': 'Checking…',
|
|
344
|
+
'fleet.loading': 'Loading…',
|
|
345
|
+
'fleet.armed': 'Monitor armed',
|
|
346
|
+
'fleet.notArmed': 'Monitor not armed',
|
|
347
|
+
'fleet.interval': 'every',
|
|
348
|
+
'fleet.hosts': 'hosts',
|
|
349
|
+
'fleet.nextAt': 'next',
|
|
350
|
+
'fleet.security': 'Credential encryption',
|
|
351
|
+
'fleet.encrypted': 'encrypted',
|
|
352
|
+
'fleet.plaintext': 'plaintext',
|
|
353
|
+
'fleet.switchOff': 'encryptCredentials is off',
|
|
354
|
+
'fleet.noSecret': 'no master secret configured',
|
|
355
|
+
'fleet.hostKey': 'Host key',
|
|
356
|
+
'fleet.audit': 'Audit',
|
|
357
|
+
'fleet.on': 'on',
|
|
358
|
+
'fleet.off': 'off',
|
|
359
|
+
'fleet.lastRound': 'Last inspection round',
|
|
360
|
+
'fleet.noRound': 'No rounds yet. Arm the monitor, or press Check now.',
|
|
361
|
+
'fleet.breaches': 'Breaches',
|
|
362
|
+
'fleet.blind': 'Blind probes',
|
|
363
|
+
'fleet.host': 'Host',
|
|
364
|
+
'fleet.check': 'Check',
|
|
365
|
+
'fleet.value': 'Value',
|
|
366
|
+
'fleet.changes': 'Changes since the previous round',
|
|
367
|
+
'fleet.noChanges': 'Nothing changed, or there is only one round to compare.',
|
|
368
|
+
'fleet.before': 'Before',
|
|
369
|
+
'fleet.after': 'Now',
|
|
370
|
+
'fleet.alerts': 'Alerts',
|
|
371
|
+
'fleet.noAlerts': 'No alerts. Note: while the monitor is not armed, an empty list does not mean healthy.',
|
|
372
|
+
'fleet.rule': 'Rule',
|
|
373
|
+
'fleet.state': 'State',
|
|
374
|
+
'fleet.events': 'Recent events',
|
|
375
|
+
'fleet.trigger': 'trigger',
|
|
376
|
+
'fleet.recover': 'recover',
|
|
377
|
+
'fleet.trend': 'Trend',
|
|
378
|
+
'fleet.pickHost': 'Pick a host…',
|
|
379
|
+
'fleet.diskTrend': 'Disk usage',
|
|
380
|
+
'fleet.buckets': 'buckets',
|
|
381
|
+
'fleet.secretTitle': 'Master key (credential encryption)',
|
|
382
|
+
'fleet.secretSource': 'source',
|
|
383
|
+
'fleet.secretHint': 'With a master key set, credentials are stored encrypted. Changing the key re-encrypts every stored credential; if the key is lost, the encrypted credentials cannot be recovered — back it up first.',
|
|
384
|
+
'fleet.secretInput': 'Master secret',
|
|
385
|
+
'fleet.secretPlaceholder': 'Leave blank to generate 32 random bytes',
|
|
386
|
+
'fleet.secretApply': 'Set / rotate key',
|
|
387
|
+
'fleet.secretGenerate': 'Generate one',
|
|
388
|
+
'fleet.secretWorking': 'Working…',
|
|
389
|
+
'fleet.secretClear': 'Delete the key file',
|
|
390
|
+
'fleet.secretSaved': 'Saved: source {source}, re-encrypted {rotated} hosts.',
|
|
391
|
+
'fleet.secretCleared': 'Key file deleted.',
|
|
392
|
+
'fleet.secretFailed': 'The operation failed.',
|
|
393
|
+
'fleet.plaintextList': 'These hosts still hold plaintext credentials:',
|
|
394
|
+
'fleet.keyPath': 'Key file:',
|
|
395
|
+
'fleet.switchWithoutKey': 'encryptCredentials is on but there is no master key — credentials are still stored in plaintext. Set a master key.',
|
|
396
|
+
// deploy
|
|
397
|
+
'deploy.form.title': 'Deployment plan',
|
|
398
|
+
'deploy.form.hint': 'Roll out in batches; every step must be reversible. Batches stop at the first failure by default.',
|
|
399
|
+
'deploy.form.planId': 'Plan name',
|
|
400
|
+
'deploy.form.step': 'Step',
|
|
401
|
+
'deploy.form.stepName': 'Step name',
|
|
402
|
+
'deploy.form.command': 'Command',
|
|
403
|
+
'deploy.form.rollback': 'Rollback command',
|
|
404
|
+
'deploy.form.rollbackWhy': '(required: without it the step cannot be undone)',
|
|
405
|
+
'deploy.form.addStep': '+ Add step',
|
|
406
|
+
'deploy.form.removeStep': 'Remove',
|
|
407
|
+
'deploy.form.batchSize': 'Hosts per batch',
|
|
408
|
+
'deploy.form.stopOnFailure': 'Stop on failure',
|
|
409
|
+
'deploy.form.health': 'Health check command',
|
|
410
|
+
'deploy.form.healthOptional': '(optional)',
|
|
411
|
+
'deploy.form.targets': 'Target hosts',
|
|
412
|
+
'deploy.form.targetsHint': '(none selected = all)',
|
|
413
|
+
'deploy.form.noHosts': 'No hosts yet — add them on the Hosts tab.',
|
|
414
|
+
'deploy.form.run': 'Start deployment',
|
|
415
|
+
'deploy.form.running': 'Deploying…',
|
|
416
|
+
'deploy.error.noPlanId': 'A plan name is required.',
|
|
417
|
+
'deploy.error.noSteps': 'At least one command is required.',
|
|
418
|
+
'deploy.error.noRollback': 'Every step needs a rollback command, or a failed batch cannot be undone.',
|
|
419
|
+
'deploy.confirm': 'Deploy plan "{plan}" to {count} host(s)? The commands execute for real on those servers; a failed batch triggers a rollback attempt.',
|
|
420
|
+
'deploy.done': 'Deployment finished: {ok}/{total} hosts succeeded.',
|
|
421
|
+
'deploy.history.title': 'Deployment history',
|
|
422
|
+
'deploy.history.empty': 'No deployments yet. The form above starts one.',
|
|
423
|
+
'deploy.col.time': 'Time',
|
|
424
|
+
'deploy.col.plan': 'Plan',
|
|
425
|
+
'deploy.col.hosts': 'Hosts',
|
|
426
|
+
'deploy.col.result': 'Result',
|
|
427
|
+
'deploy.col.failed': 'failed',
|
|
428
|
+
'deploy.col.host': 'Host',
|
|
429
|
+
'deploy.col.health': 'Health',
|
|
430
|
+
'deploy.col.detail': 'Detail',
|
|
431
|
+
'deploy.ok': 'ok',
|
|
432
|
+
'deploy.failed': 'failed',
|
|
433
|
+
'deploy.rolledBack': 'rolled back',
|
|
434
|
+
'deploy.show': 'Show',
|
|
435
|
+
'deploy.hide': 'Hide',
|
|
436
|
+
// logs
|
|
437
|
+
'logs.form.title': 'Cross-host log search',
|
|
438
|
+
'logs.form.hint': 'Search one term across many hosts at once; results stay grouped by host so the blast radius is visible.',
|
|
439
|
+
'logs.form.pattern': 'Pattern (fixed text, not a regex)',
|
|
440
|
+
'logs.form.source': 'Source',
|
|
441
|
+
'logs.source.journal': 'systemd journal',
|
|
442
|
+
'logs.source.files': 'Log files under a directory',
|
|
443
|
+
'logs.form.unit': 'Unit filter',
|
|
444
|
+
'logs.form.optional': '(optional)',
|
|
445
|
+
'logs.form.directory': 'Log directory',
|
|
446
|
+
'logs.form.since': 'Last N minutes',
|
|
447
|
+
'logs.form.maxLines': 'Max lines per host',
|
|
448
|
+
'logs.form.targets': 'Target hosts',
|
|
449
|
+
'logs.form.targetsHint': '(none selected = all)',
|
|
450
|
+
'logs.form.noHosts': 'No hosts yet — add them on the Hosts tab.',
|
|
451
|
+
'logs.form.run': 'Search',
|
|
452
|
+
'logs.form.running': 'Searching…',
|
|
453
|
+
'logs.error.noPattern': 'A pattern is required.',
|
|
454
|
+
'logs.results.title': 'Results',
|
|
455
|
+
'logs.results.empty': 'No searches yet.',
|
|
456
|
+
'logs.results.hosts': 'hosts',
|
|
457
|
+
'logs.results.lines': 'lines',
|
|
458
|
+
'logs.results.matched': 'matched',
|
|
459
|
+
'logs.results.failed': 'failed',
|
|
460
|
+
'hosts.empty': 'No hosts configured. Click "Add host" or import from ~/.ssh/config.',
|
|
461
|
+
'hosts.add': 'Add host',
|
|
462
|
+
'hosts.import': 'Import ~/.ssh/config',
|
|
463
|
+
'hosts.localConfigPending': '{count} host(s) in ~/.ssh/config are not imported yet:',
|
|
464
|
+
'hosts.search': 'Search alias / description / tags…',
|
|
465
|
+
'hosts.groupBy.label': 'Group by',
|
|
466
|
+
'hosts.groupBy.none': 'No grouping',
|
|
467
|
+
'hosts.groupBy.environment': 'Group by environment',
|
|
468
|
+
'hosts.groupBy.tags': 'Group by tags',
|
|
469
|
+
'hosts.group.ungrouped': 'No environment',
|
|
470
|
+
'hosts.group.noTags': 'No tags',
|
|
471
|
+
'hosts.group.count': '{count} hosts',
|
|
472
|
+
'hosts.group.testAll': 'Test all',
|
|
473
|
+
'hosts.col.host': 'Host',
|
|
474
|
+
'hosts.col.auth': 'Auth',
|
|
475
|
+
'hosts.col.environment': 'Environment',
|
|
476
|
+
'hosts.col.tags': 'Tags',
|
|
477
|
+
'hosts.col.description': 'Description',
|
|
478
|
+
'hosts.col.actions': 'Actions',
|
|
479
|
+
'hosts.test': 'Test',
|
|
480
|
+
'hosts.edit': 'Edit',
|
|
481
|
+
'hosts.delete': 'Delete',
|
|
482
|
+
'hosts.deleteConfirm': 'Delete host "{alias}"? Its tunnels will be stopped.',
|
|
483
|
+
'hosts.imported': 'Parsed {parsed} blocks, added {added}, repaired {updated}, skipped {skipped}.',
|
|
484
|
+
'hosts.proxyBadge': 'proxy',
|
|
485
|
+
'hosts.forwardAgentBadge': 'agent-fwd',
|
|
486
|
+
'hosts.forwardAgentHint': 'Enable only for hosts you trust: the remote can sign with your local private keys (equivalent to ssh -A).',
|
|
487
|
+
'import.reason.wildcard': 'wildcard pattern — configure it by hand',
|
|
488
|
+
'import.reason.existing': 'alias already configured',
|
|
489
|
+
'import.reason.match': 'Match block — not supported',
|
|
490
|
+
'import.reason.invalid': 'invalid fields — not imported',
|
|
491
|
+
'import.more': '{count} more not shown',
|
|
492
|
+
'hosts.testing': 'Testing connection…',
|
|
493
|
+
'hosts.testOk': 'Connected ({latency} ms)',
|
|
494
|
+
'hosts.testOkShort': '{latency} ms',
|
|
495
|
+
'hosts.testFailShort': 'Failed',
|
|
496
|
+
'hosts.testingShort': 'Testing…',
|
|
497
|
+
'hosts.connected': 'Connect',
|
|
498
|
+
'hosts.notConnected': 'Not connected',
|
|
499
|
+
'form.title.create': 'Add host',
|
|
500
|
+
'form.title.edit': 'Edit host {alias}',
|
|
501
|
+
'form.alias': 'Alias',
|
|
502
|
+
'form.aliasHint': 'Lowercase letters, digits and single hyphens; used in every operation',
|
|
503
|
+
'form.host': 'Host',
|
|
504
|
+
'form.port': 'Port',
|
|
505
|
+
'form.user': 'User',
|
|
506
|
+
'form.auth': 'Authentication',
|
|
507
|
+
'form.auth.key': 'Key',
|
|
508
|
+
'form.auth.password': 'Password',
|
|
509
|
+
'form.auth.agent': 'SSH Agent',
|
|
510
|
+
'form.auth.none': 'None',
|
|
511
|
+
'form.auth.noneHint': 'No password or key required; typical for token-username sandboxes or public endpoints.',
|
|
512
|
+
'form.agentPath': 'Agent path',
|
|
513
|
+
'form.agentPathHint': 'Leave empty to auto-detect (SSH_AUTH_SOCK; the native ssh-agent named pipe on Windows), or set a socket path or "pageant"',
|
|
514
|
+
'form.authKeepHint': 'While editing, an empty password or key field keeps the stored credential; an empty agent path is a valid auto-detect, so choosing SSH Agent switches the host to agent auth.',
|
|
515
|
+
'form.keyPath': 'Private key path',
|
|
516
|
+
'form.keyPathHint': 'e.g. ~/.ssh/id_ed25519',
|
|
517
|
+
'form.passphrase': 'Key passphrase',
|
|
518
|
+
'form.password': 'Password',
|
|
519
|
+
'form.passwordHint': 'Stored in plaintext in $DSH_HOME/dsh-ssh.json (private local file)',
|
|
520
|
+
'form.passwordRequired': 'Password auth requires a password.',
|
|
521
|
+
'form.proxyJump': 'Jump host aliases',
|
|
522
|
+
'form.proxyJumpHint': 'Comma-separated local aliases or [user@]host[:port] addresses, chained in order',
|
|
523
|
+
'form.proxyCommand': 'ProxyCommand',
|
|
524
|
+
'form.proxyCommandHint': 'OpenSSH ProxyCommand: %h host, %p port, %r user, %n alias; empty or none disables it. Mutually exclusive with the jump chain.',
|
|
525
|
+
'form.forwardAgent': 'Enable agent forwarding',
|
|
526
|
+
'form.forwardAgentHint': 'Forward your local SSH agent to this host (equivalent to ssh -A): the remote can sign with your private keys. Enable it only for hosts you trust.',
|
|
527
|
+
'form.description': 'Description',
|
|
528
|
+
'form.environment': 'Environment',
|
|
529
|
+
'form.environmentHint': 'e.g. development / production',
|
|
530
|
+
'form.tags': 'Tags',
|
|
531
|
+
'form.tagsHint': 'Comma-separated',
|
|
532
|
+
'form.location': 'Location',
|
|
533
|
+
'form.save': 'Save',
|
|
534
|
+
'form.cancel': 'Cancel',
|
|
535
|
+
'form.required': 'Required fields missing: alias, host, user.',
|
|
536
|
+
'form.portInvalid': 'Port must be an integer between 1 and 65535.',
|
|
537
|
+
'terminal.selectHost': 'Select host',
|
|
538
|
+
'terminal.connect': 'Connect',
|
|
539
|
+
'terminal.disconnect': 'Disconnect',
|
|
540
|
+
'terminal.placeholder': 'Select a host and click "Connect" to open the remote terminal.',
|
|
541
|
+
'terminal.connecting': 'Connecting…',
|
|
542
|
+
'terminal.ready': 'Terminal connected ({alias})',
|
|
543
|
+
'terminal.exited': 'Terminal exited ({alias})',
|
|
544
|
+
'terminal.error': 'Terminal error: {error}',
|
|
545
|
+
'terminal.noWebSocket': 'This page cannot carry a WebSocket (the application shell published no local host address to reach). Open the Web UI in a browser to use the terminal.',
|
|
546
|
+
'terminal.auth.title': 'Two-Factor Authentication (2FA)',
|
|
547
|
+
'terminal.auth.submit': 'Submit Code',
|
|
548
|
+
'terminal.auth.cancel': 'Cancel',
|
|
549
|
+
'terminal.auth.placeholder': 'Enter code or passphrase',
|
|
550
|
+
'terminal.auth.hint': 'The server requested interactive 2FA (session only, never saved):',
|
|
551
|
+
'terminal.tabs': 'Terminal tabs',
|
|
552
|
+
'terminal.newTab': 'New tab on the current host',
|
|
553
|
+
'terminal.closeTab': 'Close tab',
|
|
554
|
+
'terminal.authPending': '2FA pending',
|
|
555
|
+
'terminal.tabExited': 'exited',
|
|
556
|
+
'terminal.tabError': 'error',
|
|
557
|
+
'terminal.closeFailed': 'Could not confirm the tab closed: the close never reached the host, so the tab was kept. Retry, or bring the tab to the front and close it over its own connection.',
|
|
558
|
+
'transfer.selectHost': 'Select host',
|
|
559
|
+
'transfer.remotePath': 'Remote path',
|
|
560
|
+
'transfer.remotePathHint': 'e.g. /tmp/ or /home/user/app.tar.gz',
|
|
561
|
+
'transfer.upload': 'Upload',
|
|
562
|
+
'transfer.uploading': 'Uploading {file}…',
|
|
563
|
+
'transfer.download': 'Download',
|
|
564
|
+
'transfer.downloading': 'Downloading…',
|
|
565
|
+
'transfer.done': 'Done: {bytes} bytes',
|
|
566
|
+
'transfer.failed': 'Transfer failed: {error}',
|
|
567
|
+
'transfer.browseRemote': 'Browse remote',
|
|
568
|
+
'transfer.refresh': 'Refresh',
|
|
569
|
+
'transfer.name': 'Name',
|
|
570
|
+
'transfer.upLevel': 'Parent directory',
|
|
571
|
+
'transfer.size': 'Size',
|
|
572
|
+
'transfer.modified': 'Modified',
|
|
573
|
+
'transfer.bytes': '{value} B',
|
|
574
|
+
'transfer.kib': '{value} KB',
|
|
575
|
+
'transfer.mib': '{value} MB',
|
|
576
|
+
'transfer.gib': '{value} GB',
|
|
577
|
+
'transfer.percent': '{value}%',
|
|
578
|
+
'transfer.speed': '{value}/s',
|
|
579
|
+
'transfer.dir': 'Directory',
|
|
580
|
+
'transfer.emptyDir': 'This directory is empty.',
|
|
581
|
+
'transfer.file': 'File',
|
|
582
|
+
'tunnel.empty': 'No active tunnels.',
|
|
583
|
+
'tunnel.start': 'New tunnel',
|
|
584
|
+
'tunnel.alias': 'Host alias',
|
|
585
|
+
'tunnel.remotePort': 'Remote port',
|
|
586
|
+
'tunnel.remoteHost': 'Remote host',
|
|
587
|
+
'tunnel.remoteHostHint': 'Default 127.0.0.1 (the server itself)',
|
|
588
|
+
'tunnel.localPort': 'Local port',
|
|
589
|
+
'tunnel.localPortHint': 'Leave empty for auto-assign',
|
|
590
|
+
'tunnel.name': 'Service name',
|
|
591
|
+
'tunnel.nameHint': 'Optional project or service name (e.g. redis, api)',
|
|
592
|
+
'tunnel.description': 'Description',
|
|
593
|
+
'tunnel.descriptionHint': 'Optional remarks',
|
|
594
|
+
'tunnel.stop': 'Stop',
|
|
595
|
+
'tunnel.stopAll': 'Stop all',
|
|
596
|
+
'tunnel.stopAllConfirm': 'Stop all tunnels?',
|
|
597
|
+
'tunnel.row': '{alias}: 127.0.0.1:{localPort} -> {remoteHost}:{remotePort}',
|
|
598
|
+
'tunnel.started': 'Tunnel up: 127.0.0.1:{localPort}',
|
|
599
|
+
'tunnel.failed': 'Tunnel failed: {error}',
|
|
600
|
+
'tunnel.externalRow': '{alias}: 127.0.0.1:{localPort} -> {remoteHost}:{remotePort} (external pid {pid})',
|
|
601
|
+
'tunnel.externalLive': 'external · port accepting',
|
|
602
|
+
'tunnel.externalDead': 'external · port not listening',
|
|
603
|
+
'tunnel.externalMeta': 'external pid {pid}',
|
|
604
|
+
'tunnel.externalHint': 'These forwards belong to processes outside this plugin: visible here, but stopped elsewhere.',
|
|
605
|
+
'tunnel.edit': 'Edit',
|
|
606
|
+
'tunnel.editTitle': 'Edit tunnel · {alias}',
|
|
607
|
+
'tunnel.editRestartHint': 'Changing the remote host, remote port or local port stops this tunnel and rebuilds it from the new values; live connections drop.',
|
|
608
|
+
'tunnel.editExternalHint': 'This forward belongs to a process outside this plugin, so its routing cannot be changed here. The name and remark are stored locally, keyed by local port, and survive that process restarting. Save with both fields empty to fall back to forwards.conf.',
|
|
609
|
+
'tunnel.remoteHostRequired': 'Remote host must not be empty.',
|
|
610
|
+
'tunnel.customRemark': 'custom',
|
|
611
|
+
'tunnel.updated': 'Tunnel updated.',
|
|
612
|
+
'tunnel.rebuilt': 'Tunnel rebuilt on the new parameters: 127.0.0.1:{localPort}',
|
|
613
|
+
'tunnel.remarkSaved': 'Remark saved.',
|
|
614
|
+
'tunnel.remarkCleared': 'Remark cleared; the default name is back.',
|
|
615
|
+
'cluster.command': 'Command',
|
|
616
|
+
'cluster.run': 'Run',
|
|
617
|
+
'cluster.confirm': 'Run this command on the matching hosts? It executes for real on the remote servers.',
|
|
618
|
+
'cluster.aliases': 'Host aliases (comma-separated; require at least one filter)',
|
|
619
|
+
'cluster.environment': 'Environment filter',
|
|
620
|
+
'cluster.tags': 'Tag filter (comma-separated)',
|
|
621
|
+
'cluster.results': 'Results',
|
|
622
|
+
'cluster.empty': 'Type a command and click "Run".',
|
|
623
|
+
'cluster.needSelector': 'Fill in at least one of aliases, environment or tags first, so the command cannot run across the whole fleet by accident.',
|
|
624
|
+
'cluster.noMatch': 'No hosts matched.',
|
|
625
|
+
'cluster.ok': 'OK',
|
|
626
|
+
'cluster.fail': 'Failed',
|
|
627
|
+
'cluster.timeout': 'Timed out',
|
|
628
|
+
'cluster.col.alias': 'Host',
|
|
629
|
+
'cluster.col.status': 'Status',
|
|
630
|
+
'cluster.col.exit': 'Exit',
|
|
631
|
+
'cluster.col.stdout': 'Stdout',
|
|
632
|
+
'cluster.col.stderr': 'Stderr',
|
|
633
|
+
'cluster.col.error': 'Error',
|
|
634
|
+
'cluster.col.duration': 'Duration',
|
|
635
|
+
'common.loading': 'Loading…',
|
|
636
|
+
'common.error': 'Error: {error}',
|
|
637
|
+
'common.refresh': 'Refresh',
|
|
638
|
+
'common.confirm': 'Confirm',
|
|
639
|
+
'error.disabled': 'The SSH plugin is disabled on the host. Please enable it in Settings → Web Plugins → SSH.',
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/** Locale key union. */
|
|
643
|
+
export type SshKey = keyof typeof zh
|
|
644
|
+
|
|
645
|
+
/** Tiny interpolation: {name} -> value. */
|
|
646
|
+
export function t(dictionary: Record<string, string>, key: string, values?: Record<string, string | number>): string {
|
|
647
|
+
let text = dictionary[key] ?? key
|
|
648
|
+
if (values !== undefined) {
|
|
649
|
+
for (const [name, value] of Object.entries(values)) {
|
|
650
|
+
text = text.replaceAll(`{${name}}`, String(value))
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return text
|
|
654
|
+
}
|