feat: 新增密钥管理界面

#1
This commit is contained in:
Baobhan Sith
2025-05-01 17:40:36 +08:00
parent 2d7434d778
commit 2a201739cb
19 changed files with 1449 additions and 104 deletions
+35 -1
View File
@@ -166,7 +166,11 @@
"sectionAuth": "Authentication",
"sectionAdvanced": "Advanced Options",
"testConnection": "Test Connection",
"testing": "Testing..."
"testing": "Testing...",
"sshKey": "SSH Key",
"privateKeyDirect": "Private Key Content",
"keyUpdateNoteDirect": "Leave private key and passphrase blank to keep the existing key when editing.",
"keyUpdateNoteSelected": "Select another key or use direct input to change the key when editing."
},
"test": {
"success": "Connection test successful!",
@@ -981,5 +985,35 @@
},
"terminalTabBar": {
"selectServerTitle": "Select server to connect"
},
"sshKeys": {
"selector": {
"selectPlaceholder": "Select an SSH key...",
"useDirectInput": "Or input key content directly",
"manageKeysTitle": "Manage SSH Keys",
"loadingKeys": "Loading keys..."
},
"modal": {
"title": "SSH Key Management",
"addKey": "Add Key",
"keyName": "Key Name",
"actions": "Actions",
"loading": "Loading...",
"noKeys": "No SSH keys found. Please add one.",
"close": "Close",
"addTitle": "Add New SSH Key",
"editTitle": "Edit SSH Key",
"privateKey": "Private Key Content",
"passphrase": "Passphrase",
"cancel": "Cancel",
"saveChanges": "Save Changes",
"edit": "Edit",
"delete": "Delete",
"errorFetchDetails": "Failed to fetch key details",
"errorRequiredFields": "Key name and private key content cannot be empty.",
"confirmDelete": "Are you sure you want to delete the key \"{name}\"? This cannot be undone.",
"keyUpdateNote": "Leave private key blank to keep the existing key. Passphrase always needs re-entry if required.",
"passphraseUpdateNote": "Leave blank to keep or remove the passphrase. Enter a new passphrase to update."
}
}
}
+35 -1
View File
@@ -138,7 +138,11 @@
"titleEdit": "接続の編集",
"typeRdp": "RDP",
"typeSsh": "SSH",
"username": "ユーザー名:"
"username": "ユーザー名:",
"sshKey": "SSH キー",
"privateKeyDirect": "秘密鍵の内容",
"keyUpdateNoteDirect": "編集時に既存のキーを保持するには、秘密鍵とパスフレーズを空のままにしてください。",
"keyUpdateNoteSelected": "編集時にキーを変更するには、別のキーを選択するか、直接入力を使用してください。"
},
"noConnections": "接続がありません。'新しい接続を追加'をクリックして作成してください。",
"noUntaggedConnections": "タグなしの接続はありません。",
@@ -984,5 +988,35 @@
"noResults": "\"{searchTerm}\"に一致する接続は見つかりませんでした。",
"searchPlaceholder": "名前またはホストを検索...",
"untagged": "タグなし"
},
"sshKeys": {
"selector": {
"selectPlaceholder": "SSH キーを選択...",
"useDirectInput": "またはキーの内容を直接入力",
"manageKeysTitle": "SSH キーを管理",
"loadingKeys": "キーを読み込み中..."
},
"modal": {
"title": "SSH キー管理",
"addKey": "キーを追加",
"keyName": "キー名",
"actions": "操作",
"loading": "読み込み中...",
"noKeys": "SSH キーが見つかりません。追加してください。",
"close": "閉じる",
"addTitle": "新しい SSH キーを追加",
"editTitle": "SSH キーを編集",
"privateKey": "秘密鍵の内容",
"passphrase": "パスフレーズ",
"cancel": "キャンセル",
"saveChanges": "変更を保存",
"edit": "編集",
"delete": "削除",
"errorFetchDetails": "キーの詳細の取得に失敗しました",
"errorRequiredFields": "キー名と秘密鍵の内容は空にできません。",
"confirmDelete": "キー \"{name}\" を削除しますか?この操作は元に戻せません。",
"keyUpdateNote": "既存のキーを保持するには、秘密鍵を空のままにしてください。パスフレーズは必要に応じて再入力する必要があります。",
"passphraseUpdateNote": "パスフレーズを保持または削除するには空のままにします。更新するには新しいパスフレーズを入力してください。"
}
}
}
+35 -1
View File
@@ -166,7 +166,11 @@
"sectionAuth": "认证信息",
"sectionAdvanced": "高级选项",
"testConnection": "测试连接",
"testing": "测试中..."
"testing": "测试中...",
"sshKey": "SSH 密钥",
"privateKeyDirect": "私钥内容",
"keyUpdateNoteDirect": "编辑时将私钥和密码短语留空以保留现有密钥。",
"keyUpdateNoteSelected": "编辑时选择其他密钥或使用直接输入来更改密钥。"
},
"test": {
"success": "连接测试成功!",
@@ -984,5 +988,35 @@
},
"terminalTabBar": {
"selectServerTitle": "选择要连接的服务器"
},
"sshKeys": {
"selector": {
"selectPlaceholder": "选择一个 SSH 密钥...",
"useDirectInput": "或直接输入密钥内容",
"manageKeysTitle": "管理 SSH 密钥",
"loadingKeys": "正在加载密钥..."
},
"modal": {
"title": "SSH 密钥管理",
"addKey": "添加密钥",
"keyName": "密钥名称",
"actions": "操作",
"loading": "加载中...",
"noKeys": "没有找到 SSH 密钥。请添加一个。",
"close": "关闭",
"addTitle": "添加新 SSH 密钥",
"editTitle": "编辑 SSH 密钥",
"privateKey": "私钥内容",
"passphrase": "私钥密码",
"cancel": "取消",
"saveChanges": "保存更改",
"edit": "编辑",
"delete": "删除",
"errorFetchDetails": "获取密钥详情失败",
"errorRequiredFields": "密钥名称和私钥内容不能为空。",
"confirmDelete": "确定要删除密钥 \"{name}\" 吗?此操作不可撤销。",
"keyUpdateNote": "将私钥留空以保留现有密钥。密码短语始终需要重新输入(如果需要)。",
"passphraseUpdateNote": "留空表示不修改或移除密码短语。输入新密码短语以更新。"
}
}
}