Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(plugins): confirm dependent connections before plugin uninstall

Abeautifulsnow95f4511b0dc6
diff --git a/apps/desktop/src/components/plugins/PluginContributionsPanel.vue b/apps/desktop/src/components/plugins/PluginContributionsPanel.vue
index 6827693041..94bc8a1beb 100644
--- a/apps/desktop/src/components/plugins/PluginContributionsPanel.vue
+++ b/apps/desktop/src/components/plugins/PluginContributionsPanel.vue
@@ -46,7 +46,7 @@ import type { PluginCenterFocus } from "@/lib/plugins/pluginCenterNavigation";
import { useConnectionStore } from "@/stores/connectionStore";
import { useQueryStore } from "@/stores/queryStore";
import { useSettingsStore } from "@/stores/settingsStore";
-import type { InstalledPlugin, PluginInstallResult, PluginRepository, PluginRepositoryCatalogResult, PluginTrustedKey } from "@/types/database";
+import type { ConnectionConfig, InstalledPlugin, PluginInstallResult, PluginRepository, PluginRepositoryCatalogResult, PluginTrustedKey } from "@/types/database";
import { useI18n } from "vue-i18n";
import { safeLocalStorageGet, safeLocalStorageSet } from "@/lib/backend/safeStorage";
import { translateBackendError } from "@/i18n/backend-errors";
@@ -554,6 +554,66 @@ function proceedUpdateSourceChange() {
function cancelUpdateSourceChange() {
pendingSourceChange.value = null;
}
+// 卸载预检:后端守卫(src-tauri/src/commands/plugins.rs)会拒绝卸载仍被已保存连接引用的插件,
+// 这里先把依赖连接交给用户确认,避免撞到原始英文报错。
+const uninstallDependents = ref<{ pluginId: string; pluginName: string; connections: ConnectionConfig[] } | null>(null);
+
+function pluginDependentConnections(pluginId: string): ConnectionConfig[] {
+ return connectionStore.connections.filter((connection) => connection.db_type === "plugin" && connection.plugin_id === pluginId);
+}
+
+async function performUninstall(pluginId: string, pluginName: string) {
+ operating.value = true;
+ try {
+ applyInstalledPlugins(await api.uninstallPlugin(pluginId));
+ forgetGraphicsEngineGrant(pluginId);
+ retireBatchFailure(pluginId);
+ notifyComponentUpdatesChanged();
+ window.dispatchEvent(new CustomEvent("dbx:plugins-changed"));
+ clearPluginIconCache();
+ toast(t("pluginPlatform.uninstallSuccess", { name: pluginName }));
+ selectFirstProvider();
+ } catch (cause) {
+ toast(translateBackendError(t, cause), 5000);
+ // A failed uninstall can still have changed the store (the container is renamed out of the
+ // plugin store before its physical delete, for instance), so re-read the installed list
+ // instead of leaving the panel on state it may no longer describe.
+ await refreshAfterBatch();
+ } finally {
+ operating.value = false;
+ }
+}
+
+async function confirmUninstallWithDependents() {
+ const pending = uninstallDependents.value;
+ uninstallDependents.value = null;
+ // 整个级联过程(删连接 + 卸载)持有 operating 锁:removeConnections 期间
+ // mutationRunning 必须为真,否则并发的单个/批量卸载会与本次删除竞争。
+ if (!pending || mutationRunning.value) return;
+ operating.value = true;
+ try {
+ const dependentIds = pending.connections.map((connection) => connection.id);
+ await connectionStore.removeConnections(dependentIds);
+ for (const connectionId of dependentIds) {
+ // 与侧边栏删除流程相同的清理契约:页签已由 removeConnections 处理,
+ // 这里只做会话清理,且失败不能把已成功的删除变成失败。
+ connectionStore.disconnect(connectionId, { skipTabHandling: true, markClosedByUser: false }).catch((error) => {
+ console.warn("[DBX][plugin:uninstall:dependent-disconnect-failed]", { connectionId, error });
+ });
+ }
+ } catch (cause) {
+ toast(translateBackendError(t, cause), 5000);
+ await refreshAfterBatch();
+ return;
+ } finally {
+ operating.value = false;
+ }
+ await performUninstall(pending.pluginId, pending.pluginName);
+}
+
+function cancelUninstallDependents() {
+ uninstallDependents.value = null;
+}
async function installListing(listing: MarketplacePluginListing, allowSourceChange = false): Promise<PluginInstallResult> {
const result = await api.installMarketplacePlugin({
@@ -782,14 +842,20 @@ async function runBatchInstallUpdate() {
async function runBatchUninstall() {
const targets = batchSelectedInstalled.value;
if (!targets.length || mutationRunning.value) return;
- const names = targets.map((definition) => definition.plugin.manifest.name).join("、");
- if (!window.confirm(t("pluginPlatform.batchUninstallConfirm", { count: targets.length, names }))) return;
+ // 有已保存依赖连接的插件会被后端守卫拒绝;批量里不做静默级联删除,
+ // 跳过并提示用户逐个卸载(走级联确认),与批量更新的 source-change 跳过模式一致。
+ const blocked = targets.filter((definition) => pluginDependentConnections(definition.plugin.manifest.id).length > 0);
+ const runnable = targets.filter((definition) => !blocked.includes(definition));
+ if (blocked.length) toast(t("pluginPlatform.batchUninstallDependentsSkipped", { names: blocked.map((definition) => definition.plugin.manifest.name).join("、") }), 8000);
+ if (!runnable.length) return;
+ const names = runnable.map((definition) => definition.plugin.manifest.name).join("、");
+ if (!window.confirm(t("pluginPlatform.batchUninstallConfirm", { count: runnable.length, names }))) return;
batchRunning.value = true;
loadError.value = "";
- const descriptors: BatchFailureDescriptor[] = targets.map((definition) => ({ pluginId: definition.plugin.manifest.id, kind: "uninstall" }));
+ const descriptors: BatchFailureDescriptor[] = runnable.map((definition) => ({ pluginId: definition.plugin.manifest.id, kind: "uninstall" }));
try {
const outcome = await runBatch(
- targets,
+ runnable,
(definition) => definition.plugin.manifest.name,
async (definition) => {
await api.uninstallPlugin(definition.plugin.manifest.id);
@@ -1171,26 +1237,14 @@ async function rollbackSelectedPlugin() {
async function uninstallSelectedPlugin() {
const definition = selectedDefinition.value;
- if (mutationRunning.value || !definition || !window.confirm(t("pluginPlatform.uninstallConfirm", { name: definition.plugin.manifest.name }))) return;
- operating.value = true;
- try {
- applyInstalledPlugins(await api.uninstallPlugin(definition.plugin.manifest.id));
- forgetGraphicsEngineGrant(definition.plugin.manifest.id);
- retireBatchFailure(definition.plugin.manifest.id);
- notifyComponentUpdatesChanged();
- window.dispatchEvent(new CustomEvent("dbx:plugins-changed"));
- clearPluginIconCache();
- toast(t("pluginPlatform.uninstallSuccess", { name: definition.plugin.manifest.name }));
- selectFirstProvider();
- } catch (cause) {
- toast(cause instanceof Error ? cause.message : String(cause), 5000);
- // A failed uninstall can still have changed the store (the container is renamed out of the
- // plugin store before its physical delete, for instance), so re-read the installed list
- // instead of leaving the panel on state it may no longer describe.
- await refreshAfterBatch();
- } finally {
- operating.value = false;
+ if (mutationRunning.value || !definition) return;
+ const dependents = pluginDependentConnections(definition.plugin.manifest.id);
+ if (dependents.length) {
+ uninstallDependents.value = { pluginId: definition.plugin.manifest.id, pluginName: definition.plugin.manifest.name, connections: dependents };
+ return;
}
+ if (!window.confirm(t("pluginPlatform.uninstallConfirm", { name: definition.plugin.manifest.name }))) return;
+ await performUninstall(definition.plugin.manifest.id, definition.plugin.manifest.name);
}
watch(connectionProviders, (providers) => {
@@ -2151,6 +2205,29 @@ onBeforeUnmount(() => {
</DialogContent>
</Dialog>
+ <Dialog
+ :open="!!uninstallDependents"
+ @update:open="
+ (open: boolean) => {
+ if (!open) cancelUninstallDependents();
+ }
+ "
+ >
+ <DialogContent class="max-w-md gap-4">
+ <DialogHeader>
+ <DialogTitle class="text-sm">{{ t("pluginPlatform.uninstallDependentsTitle") }}</DialogTitle>
+ <DialogDescription class="text-xs leading-5">{{ t("pluginPlatform.uninstallDependentsBody", { name: uninstallDependents?.pluginName ?? "" }) }}</DialogDescription>
+ </DialogHeader>
+ <div v-if="uninstallDependents" class="max-h-40 overflow-y-auto rounded-md border p-2 text-xs">
+ <div v-for="connection in uninstallDependents.connections" :key="connection.id" class="truncate py-0.5">{{ connection.name }}</div>
+ </div>
+ <DialogFooter class="gap-2">
+ <Button variant="outline" size="sm" @click="cancelUninstallDependents">{{ t("common.cancel") }}</Button>
+ <Button variant="destructive" size="sm" :disabled="mutationRunning" @click="confirmUninstallWithDependents">{{ t("pluginPlatform.uninstallDependentsConfirm") }}</Button>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+
<div v-if="draggingPackage" class="pointer-events-none absolute inset-0 z-20 flex flex-col items-center justify-center gap-2 rounded-xl border-2 border-dashed border-primary/60 bg-primary/5">
<FileUp class="size-8 text-primary" />
<div class="text-sm font-medium text-primary">{{ t("pluginPlatform.dropToInstall") }}</div>
diff --git a/apps/desktop/src/components/plugins/__tests__/PluginContributionsPanelBatch.spec.ts b/apps/desktop/src/components/plugins/__tests__/PluginContributionsPanelBatch.spec.ts
index f81ef56d29..3cada889aa 100644
--- a/apps/desktop/src/components/plugins/__tests__/PluginContributionsPanelBatch.spec.ts
+++ b/apps/desktop/src/components/plugins/__tests__/PluginContributionsPanelBatch.spec.ts
@@ -19,6 +19,8 @@ const mocks = vi.hoisted(() => ({
installPluginPackage: vi.fn(),
installPluginPackageFromUrl: vi.fn(),
uninstallPlugin: vi.fn(),
+ removeConnections: vi.fn(),
+ disconnect: vi.fn(),
rollbackPlugin: vi.fn(),
savePluginRepository: vi.fn(),
removePluginRepository: vi.fn(),
@@ -32,7 +34,7 @@ const mocks = vi.hoisted(() => ({
vi.mock("@/lib/backend/api", () => mocks);
vi.mock("@/composables/useToast", () => ({ useToast: () => ({ toast: mocks.toast }) }));
-vi.mock("@/stores/connectionStore", () => ({ useConnectionStore: () => ({ connections: mocks.connections }) }));
+vi.mock("@/stores/connectionStore", () => ({ useConnectionStore: () => ({ connections: mocks.connections, removeConnections: mocks.removeConnections, disconnect: mocks.disconnect }) }));
vi.mock("@/stores/queryStore", () => ({ useQueryStore: () => ({ openPluginWorkbench: mocks.openPluginWorkbench, openPluginConnection: mocks.openPluginConnection }) }));
vi.mock("@/stores/settingsStore", () => ({
useSettingsStore: () => ({ editorSettings: { pluginGraphicsEngineIds: [] }, updateEditorSettings: vi.fn() }),
@@ -89,6 +91,7 @@ type PanelState = {
launchDetailEntry: (entry: string) => Promise<void>;
openDetailPlugin: () => void;
batchRunning: boolean;
+ mutationRunning: boolean;
batchMode: boolean;
marketplaceViewMode: "grid" | "list";
marketplaceSortMode: string;
@@ -124,6 +127,9 @@ type PanelState = {
installPlugin: (source: string | File) => Promise<void>;
installPluginFromUrl: () => Promise<void>;
uninstallSelectedPlugin: () => Promise<void>;
+ uninstallDependents: { pluginId: string; pluginName: string; connections: import("@/types/database").ConnectionConfig[] } | null;
+ confirmUninstallWithDependents: () => Promise<void>;
+ cancelUninstallDependents: () => void;
rollbackSelectedPlugin: () => Promise<void>;
saveRepository: () => Promise<void>;
toggleRepository: (repository: PluginRepositoryCatalogResult["repository"]) => Promise<void>;
@@ -239,6 +245,8 @@ beforeEach(async () => {
mocks.fetchPluginMarketplaceCatalogs.mockResolvedValue([catalog("first", ["a", "b", "c"])]);
for (const mock of mutationApis) mock.mockResolvedValue({ plugin: installed("a", "3.0.0") });
mocks.uninstallPlugin.mockResolvedValue([]);
+ mocks.removeConnections.mockResolvedValue(undefined);
+ mocks.disconnect.mockResolvedValue(undefined);
mocks.savePluginRepository.mockResolvedValue([]);
mocks.removePluginRepository.mockResolvedValue([]);
mocks.savePluginTrustedKey.mockResolvedValue([]);
@@ -1716,3 +1724,125 @@ describe("marketplace detail focus", () => {
expect(document.activeElement).toBe(destination);
});
});
+
+describe("PluginContributionsPanel uninstall with dependent connections", () => {
+ function pluginConnection(id: string, pluginId: string): import("@/types/database").ConnectionConfig {
+ return { id, name: `待办 ${id}`, db_type: "plugin", plugin_id: pluginId } as import("@/types/database").ConnectionConfig;
+ }
+
+ it("opens the cascade dialog instead of uninstalling while saved plugin connections exist", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+
+ await state.uninstallSelectedPlugin();
+
+ expect(state.uninstallDependents).toMatchObject({ pluginId: "a", pluginName: "a" });
+ expect(state.uninstallDependents?.connections.map((connection) => connection.id)).toEqual(["conn-1"]);
+ expect(mocks.uninstallPlugin).not.toHaveBeenCalled();
+ expect(mocks.removeConnections).not.toHaveBeenCalled();
+ });
+
+ it("deletes the dependent connections first and then uninstalls on confirm", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+ await state.uninstallSelectedPlugin();
+
+ await state.confirmUninstallWithDependents();
+
+ expect(mocks.removeConnections).toHaveBeenCalledWith(["conn-1"]);
+ expect(mocks.disconnect).toHaveBeenCalledWith("conn-1", { skipTabHandling: true, markClosedByUser: false });
+ expect(mocks.uninstallPlugin).toHaveBeenCalledWith("a");
+ expect(mocks.toast).toHaveBeenCalledWith('pluginPlatform.uninstallSuccess:{"name":"a"}');
+ expect(state.uninstallDependents).toBeNull();
+ });
+
+ it("deletes nothing and keeps the dialog contract when removal fails", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+ await state.uninstallSelectedPlugin();
+ mocks.removeConnections.mockRejectedValueOnce(new Error("storage offline"));
+
+ await state.confirmUninstallWithDependents();
+
+ expect(mocks.uninstallPlugin).not.toHaveBeenCalled();
+ expect(state.uninstallDependents).toBeNull();
+ expect(mocks.toast).toHaveBeenLastCalledWith("storage offline", 5000);
+ });
+
+ it("keeps the plugin and its connections when the cascade dialog is cancelled", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+ await state.uninstallSelectedPlugin();
+
+ state.cancelUninstallDependents();
+ await flushUi();
+
+ expect(state.uninstallDependents).toBeNull();
+ expect(mocks.removeConnections).not.toHaveBeenCalled();
+ expect(mocks.uninstallPlugin).not.toHaveBeenCalled();
+ });
+
+ it("keeps the plain confirm flow when no dependent connections exist", async () => {
+ await state.uninstallSelectedPlugin();
+
+ expect(state.uninstallDependents).toBeNull();
+ expect(window.confirm).toHaveBeenCalledWith('pluginPlatform.uninstallConfirm:{"name":"a"}');
+ expect(mocks.uninstallPlugin).toHaveBeenCalledWith("a");
+ expect(mocks.removeConnections).not.toHaveBeenCalled();
+ });
+
+ it("translates a known uninstall-blocked backend error on the single uninstall path", async () => {
+ mocks.uninstallPlugin.mockRejectedValueOnce(new Error("Cannot uninstall plugin 'a' while these connections still use it: 待办 Todo"));
+
+ await state.uninstallSelectedPlugin();
+
+ // 该消息命中 backend-errors 的 pattern,走 t(key, params) 而不是原始消息直传。
+ expect(mocks.toast).toHaveBeenLastCalledWith('pluginPlatform.uninstallBlockedByConnections:{"plugin":"a","labels":"待办 Todo"}', 5000);
+ });
+});
+
+describe("PluginContributionsPanel uninstall cascade locking and batch skip", () => {
+ function pluginConnection(id: string, pluginId: string): import("@/types/database").ConnectionConfig {
+ return { id, name: `待办 ${id}`, db_type: "plugin", plugin_id: pluginId } as import("@/types/database").ConnectionConfig;
+ }
+
+ it("holds the mutation lock so concurrent uninstall actions cannot race the removal", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+ await state.uninstallSelectedPlugin();
+ const pendingRemoval = deferred<void>();
+ mocks.removeConnections.mockReturnValueOnce(pendingRemoval.promise);
+
+ const cascade = state.confirmUninstallWithDependents();
+ await flushUi();
+ expect(state.mutationRunning).toBe(true);
+
+ // 连接删除在途时,单个卸载必须被 mutationRunning 挡住,不能开第二个对话框或重复删除。
+ await state.uninstallSelectedPlugin();
+ expect(state.uninstallDependents).toBeNull();
+ expect(mocks.removeConnections).toHaveBeenCalledTimes(1);
+ expect(mocks.uninstallPlugin).not.toHaveBeenCalled();
+
+ pendingRemoval.resolve();
+ await cascade;
+
+ expect(state.mutationRunning).toBe(false);
+ expect(mocks.uninstallPlugin).toHaveBeenCalledWith("a");
+ });
+
+ it("skips plugins with dependent connections from a batch uninstall and explains why", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+ state.selectedInstalledIds = new Set(["a", "b"]);
+
+ await state.runBatchUninstall();
+
+ expect(mocks.uninstallPlugin).toHaveBeenCalledTimes(1);
+ expect(mocks.uninstallPlugin).toHaveBeenCalledWith("b");
+ expect(mocks.toast).toHaveBeenCalledWith('pluginPlatform.batchUninstallDependentsSkipped:{"names":"a"}', 8000);
+ });
+
+ it("runs no batch uninstall when every selection still has dependent connections", async () => {
+ mocks.connections.push(pluginConnection("conn-1", "a"));
+ state.selectedInstalledIds = new Set(["a"]);
+
+ await state.runBatchUninstall();
+
+ expect(mocks.toast).toHaveBeenCalledWith('pluginPlatform.batchUninstallDependentsSkipped:{"names":"a"}', 8000);
+ expect(mocks.uninstallPlugin).not.toHaveBeenCalled();
+ });
+});
diff --git a/apps/desktop/src/i18n/__tests__/backendErrors.spec.ts b/apps/desktop/src/i18n/__tests__/backendErrors.spec.ts
index 0f3109c3ba..b34fb758a3 100644
--- a/apps/desktop/src/i18n/__tests__/backendErrors.spec.ts
+++ b/apps/desktop/src/i18n/__tests__/backendErrors.spec.ts
@@ -70,6 +70,12 @@ const CASES: { name: string; message: string; key: string; params?: Record<strin
key: "pluginPlatform.updateBlockedByConnections",
params: { labels: "Production S3, Local storage" },
},
+ {
+ name: "plugin uninstall blocked by saved plugin connections",
+ message: "Cannot uninstall plugin 'com.lwai.todo' while these connections still use it: 待办 Todo, Todo (Copy)",
+ key: "pluginPlatform.uninstallBlockedByConnections",
+ params: { plugin: "com.lwai.todo", labels: "待办 Todo, Todo (Copy)" },
+ },
{
name: "plugin update waits for active operations",
message: "Plugin update blocked by active operations. Please wait for them to finish.",
diff --git a/apps/desktop/src/i18n/backend-errors.ts b/apps/desktop/src/i18n/backend-errors.ts
index 11d9bc561e..9bed76749f 100644
--- a/apps/desktop/src/i18n/backend-errors.ts
+++ b/apps/desktop/src/i18n/backend-errors.ts
@@ -97,6 +97,8 @@ const exactMessageKeys: Record<string, string> = {
const patterns: [RegExp, string][] = [
[/^Plugin update blocked by active connections: ([\s\S]+)$/, "pluginPlatform.updateBlockedByConnections"],
+ // src-tauri/src/commands/plugins.rs and crates/dbx-web/src/routes/plugins.rs uninstall guard.
+ [/^Cannot uninstall plugin '(.+?)' while these connections still use it: ([\s\S]+)$/, "pluginPlatform.uninstallBlockedByConnections"],
// crates/dbx-plugin-runtime provenance guard (installer.rs / marketplace.rs)
[/^Plugin update source change requires confirmation:/, "pluginPlatform.updateSourceChangeRequired"],
[/^Plugin downgrade to version .+ is not allowed/, "pluginPlatform.updateDowngradeRejected"],
@@ -184,6 +186,7 @@ const patterns: [RegExp, string][] = [
// A bare string is shorthand for a single capture group.
const paramNames: Record<string, string | string[]> = {
"pluginPlatform.updateBlockedByConnections": "labels",
+ "pluginPlatform.uninstallBlockedByConnections": ["plugin", "labels"],
"connection.driverNotInstalled": "driver",
"connection.jreNotInstalled": "jre",
"ai.configNameExists": "name",
diff --git a/apps/desktop/src/i18n/locales/az.ts b/apps/desktop/src/i18n/locales/az.ts
index bdb7bcb077..9aef70614a 100644
--- a/apps/desktop/src/i18n/locales/az.ts
+++ b/apps/desktop/src/i18n/locales/az.ts
@@ -107,6 +107,11 @@ export default withEnglishFallback({
shortcutsVisiblePlugins: "Görünən plaginlər",
shortcutsShowInSidebar: "Yan paneldə göstər",
shortcutsResize: "Hündürlüyü dəyişmək üçün sürükləyin; avtomatik hündürlük üçün iki dəfə klikləyin",
+ uninstallBlockedByConnections: "Bu bağlantılar '{plugin}' plagini hələ istifadə etdiyi üçün silinə bilmir: {labels}. Əvvəlcə bu bağlantıları silin, sonra yenidən silməyə çalışın.",
+ uninstallDependentsTitle: "Praqin bağlantıları əvvəlcə silinməlidir",
+ uninstallDependentsBody: "{name} hələ bu saxlanmış bağlantılar tərəfindən istifadə olunur. Bağlantını silmək onun saxlanmış tənzimləmələrini də silir:",
+ uninstallDependentsConfirm: "Bağlantıları sil və qaldır",
+ batchUninstallDependentsSkipped: "Bu praqinlərin hələ saxlanmış bağlantıları var və silinmədi: {names}. İstifadə etdikləri bağlantıları nəzərdən keçirib silmək üçün praqinləri tək-tək silin.",
},
cellTransform: {
title: "Çevirmə önizləməsi",
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index ae4c217335..7682b52f8c 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -394,6 +394,11 @@ export default {
rollbackSuccess: "Rolled back to {version}",
uninstallConfirm: "Uninstall {name}?",
uninstallSuccess: "Uninstalled {name}",
+ uninstallBlockedByConnections: "Cannot uninstall plugin '{plugin}' while these connections still use it: {labels}. Delete these connections first, then uninstall again.",
+ uninstallDependentsTitle: "Plugin connections must be removed first",
+ uninstallDependentsBody: "{name} is still used by these saved connections. Deleting a connection also removes its stored settings:",
+ uninstallDependentsConfirm: "Delete connections and uninstall",
+ batchUninstallDependentsSkipped: "These plugins still have saved connections and were not uninstalled: {names}. Uninstall them one by one to review and remove the connections they use.",
installSuccess: "Installed {name} {version}",
batchManage: "Batch",
batchDone: "Done",
diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.ts
index 423ade9c7c..b8ac3d04dd 100644
--- a/apps/desktop/src/i18n/locales/es.ts
+++ b/apps/desktop/src/i18n/locales/es.ts
@@ -388,6 +388,11 @@ export default withEnglishFallback({
rollbackSuccess: "Se revirtió a {version}",
uninstallConfirm: "¿Desinstalar {name}?",
uninstallSuccess: "Se desinstaló {name}",
+ uninstallBlockedByConnections: "No se puede desinstalar el plugin '{plugin}' mientras lo sigan usando estas conexiones: {labels}. Elimina primero estas conexiones y vuelve a intentarlo.",
+ uninstallDependentsTitle: "Primero hay que eliminar las conexiones del plugin",
+ uninstallDependentsBody: "Estas conexiones guardadas todavía usan {name}. Al eliminar una conexión también se elimina su configuración guardada:",
+ uninstallDependentsConfirm: "Eliminar conexiones y desinstalar",
+ batchUninstallDependentsSkipped: "Estos plugins todavía tienen conexiones guardadas y no se desinstalaron: {names}. Desinstálalos uno a uno para revisar y eliminar las conexiones que usan.",
installSuccess: "Se instaló {name} {version}",
batchManage: "Lote",
batchDone: "Listo",
diff --git a/apps/desktop/src/i18n/locales/id.ts b/apps/desktop/src/i18n/locales/id.ts
index 296eeecf5c..04d61d6f46 100644
--- a/apps/desktop/src/i18n/locales/id.ts
+++ b/apps/desktop/src/i18n/locales/id.ts
@@ -291,6 +291,11 @@ export default withEnglishFallback({
rollbackSuccess: "Dikembalikan ke {version}",
uninstallConfirm: "Copot {name}?",
uninstallSuccess: "{name} dicopot",
+ uninstallBlockedByConnections: "Tidak dapat meng-uninstall plugin '{plugin}' karena masih digunakan oleh koneksi berikut: {labels}. Hapus dulu koneksi ini, lalu coba uninstall lagi.",
+ uninstallDependentsTitle: "Hapus koneksi plugin terlebih dahulu",
+ uninstallDependentsBody: "Koneksi tersimpan berikut masih menggunakan {name}. Menghapus koneksi juga menghapus pengaturan tersimpannya:",
+ uninstallDependentsConfirm: "Hapus koneksi dan uninstall",
+ batchUninstallDependentsSkipped: "Plugin berikut masih memiliki koneksi tersimpan dan tidak di-uninstall: {names}. Uninstall satu per satu untuk meninjau dan menghapus koneksinya.",
installSuccess: "{name} {version} terpasang",
batchManage: "Batch",
batchDone: "Selesai",
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index 8ef981cb81..58cf4e9c7e 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -383,6 +383,11 @@ export default withEnglishFallback({
rollbackSuccess: "Ripristinata la versione {version}",
uninstallConfirm: "Disinstallare {name}?",
uninstallSuccess: "{name} disinstallato",
+ uninstallBlockedByConnections: "Impossibile disinstallare il plugin '{plugin}' mentre queste connessioni lo utilizzano ancora: {labels}. Eliminare prima queste connessioni, poi riprovare la disinstallazione.",
+ uninstallDependentsTitle: "Le connessioni del plugin devono essere rimosse prima",
+ uninstallDependentsBody: "{name} è ancora utilizzato da queste connessioni salvate. Eliminare una connessione rimuove anche le relative impostazioni memorizzate:",
+ uninstallDependentsConfirm: "Elimina le connessioni e disinstalla",
+ batchUninstallDependentsSkipped: "Questi plugin hanno ancora connessioni salvate e non sono stati disinstallati: {names}. Disinstallali uno per uno per esaminare e rimuovere le connessioni che utilizzano.",
installSuccess: "Installato {name} {version}",
batchManage: "Batch",
batchDone: "Fine",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index 9d0f16bb1a..89776468de 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -384,6 +384,11 @@ export default withEnglishFallback({
rollbackSuccess: "{version} にロールバックしました",
uninstallConfirm: "{name} をアンインストールしますか?",
uninstallSuccess: "{name} をアンインストールしました",
+ uninstallBlockedByConnections: "これらの接続がまだプラグイン '{plugin}' を使用しているため、アンインストールできません: {labels}。先にこれらの接続を削除してから、再度アンインストールしてください。",
+ uninstallDependentsTitle: "プラグインの接続を先に削除する必要があります",
+ uninstallDependentsBody: "{name} は以下の保存済み接続でまだ使用されています。接続を削除すると、保存された設定も一緒に削除されます:",
+ uninstallDependentsConfirm: "接続を削除してアンインストール",
+ batchUninstallDependentsSkipped: "これらのプラグインには保存済み接続が残っているため、アンインストールされませんでした: {names}。使用中の接続を確認して削除するには、プラグインを一つずつアンインストールしてください。",
installSuccess: "{name} {version} をインストールしました",
batchManage: "一括",
batchDone: "完了",
diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.ts
index 7f1b2cc714..21551e800f 100644
--- a/apps/desktop/src/i18n/locales/ko.ts
+++ b/apps/desktop/src/i18n/locales/ko.ts
@@ -392,6 +392,11 @@ export default withEnglishFallback({
rollbackSuccess: "{version}(으)로 롤백했습니다",
uninstallConfirm: "{name}을 제거하시겠습니까?",
uninstallSuccess: "{name}을 제거했습니다",
+ uninstallBlockedByConnections: "다음 연결이 아직 플러그인 '{plugin}'을(를) 사용 중이라 제거할 수 없습니다: {labels}. 먼저 이 연결들을 삭제한 다음 다시 제거하세요.",
+ uninstallDependentsTitle: "플러그인 연결을 먼저 제거해야 합니다",
+ uninstallDependentsBody: "{name}은(는) 아래 저장된 연결에서 사용 중입니다. 연결을 삭제하면 저장된 설정도 함께 제거됩니다:",
+ uninstallDependentsConfirm: "연결 삭제 후 제거",
+ batchUninstallDependentsSkipped: "다음 플러그인은 저장된 연결이 남아 있어 제거되지 않았습니다: {names}. 사용 중인 연결을 확인하고 제거하려면 플러그인을 하나씩 제거하세요.",
installSuccess: "{name} {version}을 설치했습니다",
batchManage: "일괄",
batchDone: "완료",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index 893e7cdac6..b7aabdbd97 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -384,6 +384,11 @@ export default withEnglishFallback({
rollbackSuccess: "Revertido para {version}",
uninstallConfirm: "Desinstalar {name}?",
uninstallSuccess: "{name} desinstalado",
+ uninstallBlockedByConnections: "Não é possível desinstalar o plugin '{plugin}' enquanto estas conexões ainda o utilizam: {labels}. Exclua estas conexões primeiro e desinstale novamente.",
+ uninstallDependentsTitle: "As conexões do plugin devem ser removidas primeiro",
+ uninstallDependentsBody: "{name} ainda é usado por estas conexões salvas. Excluir uma conexão também remove as configurações armazenadas dela:",
+ uninstallDependentsConfirm: "Excluir conexões e desinstalar",
+ batchUninstallDependentsSkipped: "Estes plugins ainda têm conexões salvas e não foram desinstalados: {names}. Desinstale-os um por um para revisar e remover as conexões que utilizam.",
installSuccess: "{name} {version} instalado",
batchManage: "Lote",
batchDone: "Concluído",
diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.ts
index dce0819a83..015730cd3c 100644
--- a/apps/desktop/src/i18n/locales/ru.ts
+++ b/apps/desktop/src/i18n/locales/ru.ts
@@ -362,6 +362,11 @@ export default withEnglishFallback({
rollbackSuccess: "Выполнен откат к {version}",
uninstallConfirm: "Удалить {name}?",
uninstallSuccess: "{name} удалён",
+ uninstallBlockedByConnections: "Нельзя удалить плагин «{plugin}», пока его используют эти соединения: {labels}. Сначала удалите эти соединения и повторите удаление.",
+ uninstallDependentsTitle: "Сначала нужно удалить соединения плагина",
+ uninstallDependentsBody: "Эти сохранённые соединения ещё используют {name}. При удалении соединения также удаляются его сохранённые настройки:",
+ uninstallDependentsConfirm: "Удалить соединения и плагин",
+ batchUninstallDependentsSkipped: "У этих плагинов всё ещё есть сохранённые соединения, они не были удалены: {names}. Удаляйте их по одному, чтобы проверить и удалить используемые соединения.",
installSuccess: "{name} {version} установлен",
batchManage: "Пакетно",
batchDone: "Готово",
diff --git a/apps/desktop/src/i18n/locales/tr.ts b/apps/desktop/src/i18n/locales/tr.ts
index 7d4615280d..210413ba18 100644
--- a/apps/desktop/src/i18n/locales/tr.ts
+++ b/apps/desktop/src/i18n/locales/tr.ts
@@ -107,6 +107,11 @@ export default withEnglishFallback({
shortcutsVisiblePlugins: "Görünür eklentiler",
shortcutsShowInSidebar: "Kenar çubuğunda göster",
shortcutsResize: "Yüksekliği ayarlamak için sürükleyin; otomatik yükseklik için çift tıklayın",
+ uninstallBlockedByConnections: "Bu bağlantılar '{plugin}' eklentisini hâlâ kullandığından kaldırılamıyor: {labels}. Önce bu bağlantıları silin, sonra kaldırmayı tekrar deneyin.",
+ uninstallDependentsTitle: "Eklenti bağlantılarının önce kaldırılması gerekiyor",
+ uninstallDependentsBody: "{name} hâlâ bu kayıtlı bağlantılar tarafından kullanılıyor. Bir bağlantıyı silmek, kayıtlı ayarlarını da kaldırır:",
+ uninstallDependentsConfirm: "Bağlantıları sil ve kaldır",
+ batchUninstallDependentsSkipped: "Bu eklentilerin hâlâ kayıtlı bağlantıları var ve kaldırılmadılar: {names}. Kullandıkları bağlantıları inceleyip kaldırmak için eklentileri tek tek kaldırın.",
},
cellTransform: {
title: "Dönüştürme önizlemesi",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index 82d1aa5da3..ab43f3ea84 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -331,6 +331,11 @@ export default withEnglishFallback({
rollbackSuccess: "已回滚到 {version}",
uninstallConfirm: "卸载 {name}?",
uninstallSuccess: "已卸载 {name}",
+ uninstallBlockedByConnections: "插件 '{plugin}' 仍被以下连接使用,无法卸载:{labels}。请先删除这些连接,再重试卸载。",
+ uninstallDependentsTitle: "需要先删除插件连接",
+ uninstallDependentsBody: "{name} 仍被以下已保存的连接使用,删除连接会同时移除其保存的配置:",
+ uninstallDependentsConfirm: "删除连接并卸载",
+ batchUninstallDependentsSkipped: "以下插件仍有已保存的连接,本次未卸载:{names}。请逐个卸载以确认并删除其使用的连接。",
installSuccess: "已安装 {name} {version}",
batchManage: "批量管理",
batchDone: "完成",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index ee4ff07835..3e95b19e5c 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -389,6 +389,11 @@ export default withEnglishFallback({
rollbackSuccess: "已回復到 {version}",
uninstallConfirm: "解除安裝 {name}?",
uninstallSuccess: "已解除安裝 {name}",
+ uninstallBlockedByConnections: "外掛 '{plugin}' 仍被以下連線使用,無法解除安裝:{labels}。請先刪除這些連線,再重試解除安裝。",
+ uninstallDependentsTitle: "需要先刪除外掛連線",
+ uninstallDependentsBody: "{name} 仍被以下已儲存的連線使用,刪除連線會一併移除其儲存的設定:",
+ uninstallDependentsConfirm: "刪除連線並解除安裝",
+ batchUninstallDependentsSkipped: "以下外掛仍有已儲存的連線,本次未解除安裝:{names}。請逐個解除安裝以確認並刪除其使用的連線。",
installSuccess: "已安裝 {name} {version}",
batchManage: "批次管理",
batchDone: "完成",