feat(sync): support self-managed GitLab snippets

This commit is contained in:
ccq authored and GitHub committed 2026-09-20 17:30:23 +08:00
1 parent f909f85075
commit b9cd24f718
18 files changed
+734 -98

No files matched your search

+7 -4
View File
@@ -7637,7 +7637,7 @@ export default {
syncSecretNotice: "By default, DBX syncs connection details and settings only. Database passwords, SSH passwords, proxy passwords, HTTP tunnel tokens, connection strings, and AI API keys stay local.",
syncSecrets: "Sync encrypted secrets",
syncSecretsDescription: "When enabled, DBX encrypts database passwords, SSH passwords, proxy passwords, HTTP tunnel tokens, and AI API keys before uploading them to remote storage.",
syncSecretsSharedDescription: "For WebDAV, this password encrypts included credentials. GitHub Gist and Gitee snippets use independent encryption and credential controls.",
syncSecretsSharedDescription: "For WebDAV, this password encrypts included credentials. GitHub, Gitee, and GitLab snippets use independent encryption and credential controls.",
syncSecretsPassphrase: "Sync password",
syncSecretsPassphraseDescription: "This password is only used to encrypt and restore sensitive data. It is encrypted in the current DBX instance; enter it again in other instances.",
syncTest: "Test",
@@ -7654,17 +7654,20 @@ export default {
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.",
syncSnippetTitle: "GitHub / Gitee Snippet Sync",
syncSnippetTitle: "Snippet Sync",
syncSnippetDescription: "Store the same DBX snapshot in a private code snippet. The first upload creates a snippet and saves its ID.",
syncSnippetProvider: "Provider",
syncSnippetProviderGitee: "Gitee Snippets",
syncGitLabInstance: "GitLab instance URL",
syncGitLabInstanceInvalid: "Enter an HTTP or HTTPS URL without credentials, query, or fragment.",
syncGitLabHttpWarning: "HTTP sends the access token in cleartext. Use it only on a trusted internal network; prefer HTTPS.",
syncSnippetId: "Snippet ID",
syncSnippetIdPlaceholder: "Leave empty for the first upload",
syncSnippetToken: "Access token",
syncSnippetRememberToken: "Store encrypted on this device",
syncSnippetTokenDescription: "GitHub tokens need Gists write permission. Tokens are never included in the sync snapshot.",
syncSnippetTokenDescription: "GitHub tokens need Gists write permission; GitLab personal access tokens need api scope. Tokens are never included in the sync snapshot.",
syncSnippetPassphrase: "Snippet encryption password",
syncSnippetPassphraseDescription: "Encrypts the complete GitHub/Gitee snapshot. It is not saved and is separate from the password for synced credentials.",
syncSnippetPassphraseDescription: "Encrypts the complete snippet snapshot. It is not saved and is separate from the password for synced credentials.",
syncSnippetIncludeSecrets: "Include encrypted credentials when uploading",
syncSnippetRestoreSecrets: "Restore encrypted credentials when downloading",
syncSnippetTestSuccess: "The snippet sync target is accessible.",
+3
View File
@@ -7113,6 +7113,9 @@ export default withEnglishFallback({
sidebarShowTooltipsDescription: "Muestra sugerencias con detalles al pasar el cursor sobre conexiones y objetos de la base de datos en la barra lateral. Desactívalo para ocultarlas.",
snippetsDescription: "Personaliza plantillas SQL activadas en el editor.",
syncSnippetProviderGitee: "Fragmentos de Gitee",
syncGitLabInstance: "URL de la instancia de GitLab",
syncGitLabInstanceInvalid: "Introduce una URL HTTP o HTTPS sin credenciales, parámetros de consulta ni fragmentos.",
syncGitLabHttpWarning: "HTTP envía el token de acceso en texto sin cifrar. Úsalo solo en una red interna de confianza; se recomienda HTTPS.",
snippetsPlaceholderHint: "Usa {'${número:texto predeterminado}'} para crear un marcador editable. Los marcadores con el mismo número permanecen vinculados. Por ejemplo:",
snippetsAdd: "Agregar fragmento",
snippetsLabel: "Etiqueta",
+3
View File
@@ -7112,6 +7112,9 @@ export default withEnglishFallback({
sidebarShowTooltipsDescription: "Mostra tooltip con dettagli al passaggio del mouse su connessioni e oggetti del database nella barra laterale. Disattiva per nasconderli.",
snippetsDescription: "Personalizza i modelli di snippet SQL attivati nell'editor.",
syncSnippetProviderGitee: "Snippet Gitee",
syncGitLabInstance: "URL dell'istanza GitLab",
syncGitLabInstanceInvalid: "Inserisci un URL HTTP o HTTPS senza credenziali, parametri di query o frammenti.",
syncGitLabHttpWarning: "HTTP trasmette il token di accesso in chiaro. Usalo solo su una rete interna attendibile; preferisci HTTPS.",
snippetsPlaceholderHint: "Usa {'${numero:testo predefinito}'} per creare un segnaposto modificabile. I segnaposto con lo stesso numero restano collegati. Ad esempio:",
snippetsAdd: "Aggiungi Snippet",
snippetsLabel: "Etichetta",
+3
View File
@@ -7135,6 +7135,9 @@ export default withEnglishFallback({
sidebarShowTooltipsDescription: "サイドバーで接続やデータベースオブジェクトにホバーしたときに詳細ツールチップを表示します。オフにすると表示されません。",
snippetsDescription: "エディタでトリガーされるSQLスニペットテンプレートをカスタマイズします。",
syncSnippetProviderGitee: "Gitee コードスニペット",
syncGitLabInstance: "GitLab インスタンス URL",
syncGitLabInstanceInvalid: "認証情報、クエリ、フラグメントを含まない HTTP または HTTPS の URL を入力してください。",
syncGitLabHttpWarning: "HTTP ではアクセストークンが平文で送信されます。信頼できる内部ネットワークでのみ使用し、HTTPS を優先してください。",
snippetsPlaceholderHint: "{'${番号:デフォルトテキスト}'} で編集可能なプレースホルダーを作成できます。同じ番号のプレースホルダーは連動します。例:",
snippetsAdd: "スニペットを追加",
snippetsLabel: "ラベル",
+3
View File
@@ -6954,6 +6954,9 @@ export default withEnglishFallback({
syncSnippetDescription: "동일한 DBX 스냅샷을 비공개 코드 스니펫에 저장합니다. 첫 업로드가 스니펫을 만들고 ID를 저장합니다.",
syncSnippetProvider: "공급자",
syncSnippetProviderGitee: "Gitee 스니펫",
syncGitLabInstance: "GitLab 인스턴스 URL",
syncGitLabInstanceInvalid: "자격 증명, 쿼리 또는 프래그먼트가 없는 HTTP 또는 HTTPS URL을 입력하세요.",
syncGitLabHttpWarning: "HTTP는 액세스 토큰을 평문으로 전송합니다. 신뢰할 수 있는 내부 네트워크에서만 사용하고 HTTPS를 우선 사용하세요.",
syncSnippetId: "스니펫 ID",
syncSnippetIdPlaceholder: "첫 업로드의 경우 비워 두세요",
syncSnippetToken: "액세스 토큰",
+3
View File
@@ -7114,6 +7114,9 @@ export default withEnglishFallback({
sidebarShowTooltipsDescription: "Mostra dicas com detalhes ao passar o mouse sobre conexões e objetos do banco de dados na barra lateral. Desative para ocultá-las.",
snippetsDescription: "Personalize os modelos de snippets SQL acionados no editor.",
syncSnippetProviderGitee: "Snippets do Gitee",
syncGitLabInstance: "URL da instância do GitLab",
syncGitLabInstanceInvalid: "Insira uma URL HTTP ou HTTPS sem credenciais, parâmetros de consulta ou fragmentos.",
syncGitLabHttpWarning: "O HTTP envia o token de acesso em texto simples. Use-o somente em uma rede interna confiável; prefira HTTPS.",
snippetsPlaceholderHint: "Use {'${número:texto padrão}'} para criar um espaço reservado editável. Espaços reservados com o mesmo número permanecem vinculados. Por exemplo:",
snippetsAdd: "Adicionar snippet",
snippetsLabel: "Rótulo",
+7 -4
View File
@@ -7608,7 +7608,7 @@ export default withEnglishFallback({
syncSecretNotice: "默认只同步连接信息和设置,不会同步数据库密码、SSH 密码、代理密码、HTTP 隧道 Token、连接串或 AI API Key。",
syncSecrets: "同步加密后的敏感信息",
syncSecretsDescription: "开启后,DBX 会先加密数据库密码、SSH 密码、代理密码、HTTP 隧道 Token 和 AI API Key,再上传到远端存储。",
syncSecretsSharedDescription: "WebDAV 使用此密码加密包含的敏感信息。GitHub Gist 和 Gitee 代码片段使用独立的加密和敏感信息选项。",
syncSecretsSharedDescription: "WebDAV 使用此密码加密包含的敏感信息。GitHub、Gitee 和 GitLab 代码片段使用独立的加密和敏感信息选项。",
syncSecretsPassphrase: "同步密码",
syncSecretsPassphraseDescription: "这个密码只用于加密和恢复敏感信息,并会加密保存在当前 DBX 实例中;在其他实例恢复时需要再次输入。",
syncTest: "测试",
@@ -7625,17 +7625,20 @@ export default withEnglishFallback({
syncSecretsApplied: "已恢复加密敏感信息。",
syncSecretsSkipped: "远端包含加密敏感信息,但本次未恢复。",
syncDownloadConfirm: "要下载并应用远端 DBX 快照吗?本地元信息和保存的 SQL 会被替换。",
syncSnippetTitle: "GitHub / Gitee 代码片段同步",
syncSnippetTitle: "代码片段同步",
syncSnippetDescription: "将同一份 DBX 快照保存到私有代码片段。首次上传会自动创建代码片段并保存其 ID。",
syncSnippetProvider: "平台",
syncSnippetProviderGitee: "Gitee 代码片段",
syncGitLabInstance: "GitLab 实例地址",
syncGitLabInstanceInvalid: "请输入不含账号、查询参数或片段的 HTTP 或 HTTPS 地址。",
syncGitLabHttpWarning: "HTTP 会明文传输访问令牌。仅在可信内网使用,建议优先配置 HTTPS。",
syncSnippetId: "代码片段 ID",
syncSnippetIdPlaceholder: "首次上传可留空",
syncSnippetToken: "访问令牌",
syncSnippetRememberToken: "加密保存在本机",
syncSnippetTokenDescription: "GitHub 令牌需要 Gists 写权限;令牌不会写入同步快照。",
syncSnippetTokenDescription: "GitHub 需要 Gists 写权限;GitLab 个人访问令牌需要 api 权限。令牌不会写入同步快照。",
syncSnippetPassphrase: "代码片段加密密码",
syncSnippetPassphraseDescription: "用于加密完整的 GitHub/Gitee 快照,不会保存,且与敏感信息同步密码相互独立。",
syncSnippetPassphraseDescription: "用于加密完整的代码片段快照,不会保存,且与敏感信息同步密码相互独立。",
syncSnippetIncludeSecrets: "上传时包含加密敏感信息",
syncSnippetRestoreSecrets: "下载时恢复加密敏感信息",
syncSnippetTestSuccess: "代码片段同步目标可访问。",
+3
View File
@@ -6435,6 +6435,9 @@ export default withEnglishFallback({
sidebarShowTooltipsDescription: "在側邊欄的連線與資料庫物件上懸浮時顯示詳細提示;關閉後懸浮不再彈出。",
snippetsDescription: "自訂編輯器中觸發的 SQL 程式碼片段範本。",
syncSnippetProviderGitee: "Gitee 程式碼片段",
syncGitLabInstance: "GitLab 執行個體網址",
syncGitLabInstanceInvalid: "請輸入不含認證資訊、查詢參數或片段的 HTTP 或 HTTPS 網址。",
syncGitLabHttpWarning: "HTTP 會以明文傳輸存取權杖。僅限在受信任的內部網路使用,並優先使用 HTTPS。",
snippetsPlaceholderHint: "使用 {'${編號:預設文字}'} 建立可編輯的佔位符;編號相同的佔位符會同步修改,例如:",
snippetsAdd: "新增片段",
snippetsLabel: "顯示名",