feat: 后端: 在建立 SSH 连接时应用代理配置

This commit is contained in:
Baobhan Sith
2025-04-15 07:31:25 +08:00
parent 0e863456a2
commit 4f2f8b9f07
19 changed files with 1444 additions and 197 deletions
+53 -1
View File
@@ -3,6 +3,7 @@
"nav": {
"dashboard": "Dashboard",
"connections": "Connections",
"proxies": "Proxies",
"login": "Login",
"logout": "Logout"
},
@@ -53,13 +54,17 @@
"errorRequiredFields": "Please fill in all required fields.",
"errorPasswordRequired": "Password is required for password authentication.",
"errorPrivateKeyRequired": "Private key is required for key authentication.",
"errorPasswordRequiredOnSwitch": "Password is required when switching to password authentication.",
"errorPrivateKeyRequiredOnSwitch": "Private key is required when switching to key authentication.",
"errorPort": "Port must be between 1 and 65535.",
"errorAdd": "Failed to add connection: {error}",
"titleEdit": "Edit Connection",
"confirmEdit": "Confirm Edit",
"saving": "Saving...",
"errorUpdate": "Failed to update connection: {error}",
"keyUpdateNote": "Leave private key and passphrase blank to keep the existing key."
"keyUpdateNote": "Leave private key and passphrase blank to keep the existing key.",
"proxy": "Proxy:",
"noProxy": "No Proxy"
},
"prompts": {
"confirmDelete": "Are you sure you want to delete the connection \"{name}\"? This cannot be undone."
@@ -71,6 +76,53 @@
"never": "Never"
}
},
"proxies": {
"title": "Proxy Management",
"addProxy": "Add New Proxy",
"loading": "Loading proxies...",
"error": "Failed to load proxies: {error}",
"noProxies": "No proxies yet. Click 'Add New Proxy' to create one!",
"table": {
"name": "Name",
"type": "Type",
"host": "Host",
"port": "Port",
"user": "User",
"updatedAt": "Updated At",
"actions": "Actions"
},
"actions": {
"edit": "Edit",
"delete": "Delete"
},
"form": {
"title": "Add New Proxy",
"titleEdit": "Edit Proxy",
"name": "Name:",
"type": "Type:",
"host": "Host/IP:",
"port": "Port:",
"username": "Username:",
"password": "Password:",
"optional": "Optional",
"confirm": "Confirm Add",
"confirmEdit": "Confirm Edit",
"adding": "Adding...",
"saving": "Saving...",
"cancel": "Cancel",
"errorRequiredFields": "Please fill in all required fields.",
"errorPort": "Port must be between 1 and 65535.",
"errorAdd": "Failed to add proxy: {error}",
"errorUpdate": "Failed to update proxy: {error}",
"passwordUpdateNote": "Leave password blank to keep the existing password."
},
"prompts": {
"confirmDelete": "Are you sure you want to delete the proxy \"{name}\"? This cannot be undone."
},
"errors": {
"deleteFailed": "Failed to delete proxy: {error}"
}
},
"workspace": {
"statusBar": "Status: {status} (Connection ID: {id})",
"status": {
+53 -1
View File
@@ -3,6 +3,7 @@
"nav": {
"dashboard": "仪表盘",
"connections": "连接管理",
"proxies": "代理管理",
"login": "登录",
"logout": "登出"
},
@@ -53,13 +54,17 @@
"errorRequiredFields": "请填写所有必填字段。",
"errorPasswordRequired": "使用密码认证时,密码为必填项。",
"errorPrivateKeyRequired": "使用密钥认证时,私钥为必填项。",
"errorPasswordRequiredOnSwitch": "切换到密码认证时,密码为必填项。",
"errorPrivateKeyRequiredOnSwitch": "切换到密钥认证时,私钥为必填项。",
"errorPort": "端口号必须在 1 到 65535 之间。",
"errorAdd": "添加连接失败: {error}",
"titleEdit": "编辑连接",
"confirmEdit": "确认编辑",
"saving": "正在保存...",
"errorUpdate": "更新连接失败: {error}",
"keyUpdateNote": "将私钥和密码短语留空以保留现有密钥。"
"keyUpdateNote": "将私钥和密码短语留空以保留现有密钥。",
"proxy": "代理:",
"noProxy": "无代理"
},
"prompts": {
"confirmDelete": "确定要删除连接 \"{name}\" 吗?此操作不可撤销。"
@@ -71,6 +76,53 @@
"never": "从未"
}
},
"proxies": {
"title": "代理管理",
"addProxy": "添加新代理",
"loading": "正在加载代理...",
"error": "加载代理列表失败: {error}",
"noProxies": "还没有任何代理配置。点击“添加新代理”来创建一个吧!",
"table": {
"name": "名称",
"type": "类型",
"host": "主机",
"port": "端口",
"user": "用户名",
"updatedAt": "更新时间",
"actions": "操作"
},
"actions": {
"edit": "编辑",
"delete": "删除"
},
"form": {
"title": "添加新代理",
"titleEdit": "编辑代理",
"name": "名称:",
"type": "类型:",
"host": "主机/IP:",
"port": "端口:",
"username": "用户名:",
"password": "密码:",
"optional": "可选",
"confirm": "确认添加",
"confirmEdit": "确认编辑",
"adding": "正在添加...",
"saving": "正在保存...",
"cancel": "取消",
"errorRequiredFields": "请填写所有必填字段。",
"errorPort": "端口号必须在 1 到 65535 之间。",
"errorAdd": "添加代理失败: {error}",
"errorUpdate": "更新代理失败: {error}",
"passwordUpdateNote": "将密码留空以保留现有密码。"
},
"prompts": {
"confirmDelete": "确定要删除代理 \"{name}\" 吗?此操作不可撤销。"
},
"errors": {
"deleteFailed": "删除代理失败: {error}"
}
},
"workspace": {
"statusBar": "状态: {status} (连接 ID: {id})",
"status": {