feat: add WebDAV cloud sync with encrypted secrets support

Add WebDAV-based settings sync for desktop app, including connection
configuration, editor settings, and optional encrypted secrets sync.
Also persist WebDAV remember-password preference across sessions.
This commit is contained in:
t8y2 committed 2026-05-27 01:17:23 +08:00
1 parent dacb162248
commit 0c9ee34a82
15 files changed
+1328 -15

No files matched your search

+29
View File
@@ -1317,6 +1317,7 @@ export default {
redisTab: "Redis",
shortcutsTab: "Shortcuts",
snippetsTab: "Snippets",
syncTab: "Sync",
aiTab: "AI",
jdbcTab: "JDBC Drivers",
securityTab: "Security",
@@ -1368,6 +1369,34 @@ export default {
snippetsRestoreDefaults: "Restore Defaults",
snippetsAddTitle: "Add Snippet",
snippetsEditTitle: "Edit Snippet",
syncWebDavTitle: "WebDAV Sync",
syncWebDavDescription: "Upload or restore a DBX snapshot from a WebDAV-compatible storage service.",
syncEndpoint: "WebDAV URL",
syncUsername: "Username",
syncPassword: "Password",
syncRememberWebDavPassword: "Remember WebDAV app password",
syncSavedPassword: "(saved)",
syncRememberWebDavPasswordDescription:
"The password is encrypted and stored on this device only. It is not synced to WebDAV and does not replace the sync password.",
syncRemotePath: "Remote snapshot path",
syncRemotePathDescription: "DBX will create missing parent folders when uploading.",
syncSecretNotice:
"By default, DBX syncs connection details and settings only. Database passwords, SSH passwords, proxy passwords, connection strings, and AI API keys stay local.",
syncSecrets: "Sync encrypted secrets",
syncSecretsDescription:
"When enabled, DBX encrypts database passwords, SSH passwords, and AI API keys before uploading them to WebDAV.",
syncSecretsPassphrase: "Sync password",
syncSecretsPassphraseDescription:
"This password is only used to encrypt and restore sensitive data. DBX does not save it; enter it again on each device.",
syncTest: "Test",
syncUpload: "Upload",
syncDownload: "Download",
syncTestSuccess: "WebDAV target is reachable.",
syncUploadSuccess: "Uploaded {bytes} bytes to {path}.",
syncDownloadSuccess: "Downloaded and applied {bytes} bytes from {path}.",
syncSecretsApplied: "Encrypted secrets were restored.",
syncSecretsSkipped: "Encrypted secrets were present but were not restored.",
syncDownloadConfirm: "Download and apply the remote DBX snapshot? Local metadata and saved SQL will be replaced.",
apply: "Apply",
reset: "Reset",
resetDefaults: "Reset Defaults",
+42
View File
@@ -1212,6 +1212,8 @@ export default {
navigationTab: "Navegación",
redisTab: "Redis",
shortcutsTab: "Atajos",
snippetsTab: "Fragmentos",
syncTab: "Sync",
aiTab: "IA",
jdbcTab: "Drivers JDBC",
securityTab: "Seguridad",
@@ -1252,6 +1254,46 @@ export default {
sidebarHiddenTablePrefixesDescription:
"Un prefijo por linea. Solo acorta etiquetas de tablas, vistas y colecciones en la barra lateral; las acciones y ayudas usan el nombre completo.",
sidebarHiddenTablePrefixesPlaceholder: "Ejemplo:\nODS_\nT8Y2_LONG_",
snippetsDescription: "Personaliza plantillas SQL activadas en el editor.",
snippetsAdd: "Agregar fragmento",
snippetsLabel: "Etiqueta",
snippetsPrefix: "Prefijo",
snippetsBody: "SQL",
snippetsLabelPlaceholder: "p. ej. select *",
snippetsPrefixPlaceholder: "p. ej. sel",
snippetsBodyPlaceholder: "SELECT *\nFROM table\nLIMIT 100;",
snippetsRestoreDefaults: "Restaurar valores por defecto",
snippetsAddTitle: "Agregar fragmento",
snippetsEditTitle: "Editar fragmento",
syncWebDavTitle: "Sincronización WebDAV",
syncWebDavDescription: "Sube o restaura una instantánea de DBX desde almacenamiento compatible con WebDAV.",
syncEndpoint: "URL WebDAV",
syncUsername: "Usuario",
syncPassword: "Contraseña",
syncRememberWebDavPassword: "Recordar contraseña de app WebDAV",
syncSavedPassword: "(guardada)",
syncRememberWebDavPasswordDescription:
"La contraseña se cifra y se guarda solo en este dispositivo. No se sincroniza a WebDAV ni reemplaza la contraseña de sync.",
syncRemotePath: "Ruta remota",
syncRemotePathDescription: "DBX creará las carpetas padre faltantes al subir.",
syncSecretNotice:
"De forma predeterminada, DBX solo sincroniza detalles de conexión y ajustes. Las contraseñas de base de datos, SSH, proxy, cadenas de conexión y API keys de IA quedan locales.",
syncSecrets: "Sincronizar secretos cifrados",
syncSecretsDescription:
"Al activarlo, DBX cifra contraseñas de base de datos, contraseñas SSH y API keys de IA antes de subirlas a WebDAV.",
syncSecretsPassphrase: "Contraseña de sync",
syncSecretsPassphraseDescription:
"Esta contraseña solo se usa para cifrar y restaurar datos sensibles. DBX no la guarda; tendrás que ingresarla en cada dispositivo.",
syncTest: "Probar",
syncUpload: "Subir",
syncDownload: "Descargar",
syncTestSuccess: "El destino WebDAV está disponible.",
syncUploadSuccess: "Se subieron {bytes} bytes a {path}.",
syncDownloadSuccess: "Se descargaron y aplicaron {bytes} bytes desde {path}.",
syncSecretsApplied: "Los secretos cifrados fueron restaurados.",
syncSecretsSkipped: "Había secretos cifrados, pero no fueron restaurados.",
syncDownloadConfirm:
"¿Descargar y aplicar la instantánea remota de DBX? Se reemplazarán metadatos locales y SQL guardado.",
apply: "Aplicar",
reset: "Restablecer",
resetDefaults: "Restablecer valores por defecto",
+25
View File
@@ -1294,6 +1294,7 @@ export default {
redisTab: "Redis",
shortcutsTab: "快捷键",
snippetsTab: "代码片段",
syncTab: "同步",
aiTab: "AI",
jdbcTab: "JDBC 驱动",
securityTab: "安全",
@@ -1342,6 +1343,30 @@ export default {
snippetsRestoreDefaults: "恢复默认",
snippetsAddTitle: "添加片段",
snippetsEditTitle: "编辑片段",
syncWebDavTitle: "WebDAV 同步",
syncWebDavDescription: "将 DBX 快照上传到兼容 WebDAV 的存储服务,或从远端恢复。",
syncEndpoint: "WebDAV 地址",
syncUsername: "用户名",
syncPassword: "密码",
syncRememberWebDavPassword: "记住 WebDAV 应用密码",
syncSavedPassword: "(已保存)",
syncRememberWebDavPasswordDescription: "密码会加密保存在本机,不会同步到 WebDAV,也不会替代同步密码。",
syncRemotePath: "远端快照路径",
syncRemotePathDescription: "上传时 DBX 会自动创建缺失的父目录。",
syncSecretNotice: "默认只同步连接信息和设置,不会同步数据库密码、SSH 密码、代理密码、连接串或 AI API Key。",
syncSecrets: "同步加密后的敏感信息",
syncSecretsDescription: "开启后,DBX 会先加密数据库密码、SSH 密码和 AI API Key,再上传到 WebDAV。",
syncSecretsPassphrase: "同步密码",
syncSecretsPassphraseDescription: "这个密码只用于加密和恢复敏感信息,DBX 不会保存;换设备恢复时需要再次输入。",
syncTest: "测试",
syncUpload: "上传",
syncDownload: "下载",
syncTestSuccess: "WebDAV 目标可访问。",
syncUploadSuccess: "已上传 {bytes} 字节到 {path}。",
syncDownloadSuccess: "已从 {path} 下载并应用 {bytes} 字节。",
syncSecretsApplied: "已恢复加密敏感信息。",
syncSecretsSkipped: "远端包含加密敏感信息,但本次未恢复。",
syncDownloadConfirm: "要下载并应用远端 DBX 快照吗?本地元信息和保存的 SQL 会被替换。",
apply: "应用",
reset: "重置",
resetDefaults: "恢复默认",