feat: add configuration export/import with passphrase encryption

This commit is contained in:
t8y2
2026-05-03 12:46:49 +08:00
parent 1b8d56a43b
commit a66cffb692
7 changed files with 347 additions and 11 deletions
+19
View File
@@ -222,6 +222,25 @@ export default {
cancel: "Cancel",
refresh: "Analyze Again",
},
configExport: {
passphraseTitle: "Encrypt & Export",
passphraseImportTitle: "Decrypt & Import",
passphraseExportHint: "To include connection passwords in the export, set a passphrase for encryption. You will need the same passphrase to import.",
passphraseImportHint: "This file is encrypted. Enter the passphrase to decrypt and import.",
passphrase: "Passphrase",
passphraseConfirm: "Confirm Passphrase",
passphrasePlaceholder: "Enter passphrase",
passphraseConfirmPlaceholder: "Re-enter passphrase",
passphraseRequired: "Passphrase is required",
passphraseMismatch: "Passphrases do not match",
passphraseTooShort: "Passphrase must be at least 4 characters",
exportEncrypted: "Export",
decryptImport: "Decrypt & Import",
wrongPassphrase: "Wrong passphrase or corrupted file",
exportSuccess: "Connections exported successfully",
importSuccess: "Imported {count} connection(s)",
importNone: "No new connections to import",
},
ai: {
placeholder: "Describe your query in natural language...",
settings: "AI Settings",
+19
View File
@@ -222,6 +222,25 @@ export default {
cancel: "取消读取",
refresh: "重新分析",
},
configExport: {
passphraseTitle: "加密导出",
passphraseImportTitle: "解密导入",
passphraseExportHint: "如需导出连接密码,请设置密码短语进行加密保护。导入时需要输入相同的密码短语才能解密。",
passphraseImportHint: "此文件已加密,请输入密码短语来解密并导入。",
passphrase: "密码短语",
passphraseConfirm: "确认密码短语",
passphrasePlaceholder: "输入密码短语",
passphraseConfirmPlaceholder: "再次输入密码短语",
passphraseRequired: "请输入密码短语",
passphraseMismatch: "两次输入的密码短语不一致",
passphraseTooShort: "密码短语至少需要 4 个字符",
exportEncrypted: "导出",
decryptImport: "解密并导入",
wrongPassphrase: "密码短语错误或文件已损坏",
exportSuccess: "连接配置导出成功",
importSuccess: "已导入 {count} 个连接",
importNone: "没有新的连接需要导入",
},
ai: {
placeholder: "描述你想查什么...",
settings: "AI 设置",