feat(editor): add table copy/paste keyboard shortcuts
* feat: add table copy/paste with configurable structure and data options - Implement Navicat-style table copy/paste functionality - Support multi-table selection and batch operations - Configurable paste modes: structure+data (default), structure only, data only - Backend: add build_copy_table_data_sql API (INSERT INTO ... SELECT) - TreeItem.vue: copy/paste context menus, paste dialog with mode selection - ObjectBrowser.vue: batch toolbar buttons, context menu, paste dialog - Refactor TreeClipboard type to support multi-table entries - Add i18n keys for all 7 locale files (en, zh-CN, zh-TW, ja, es, it, pt-BR) * Fix table paste shortcuts * Fix Kafka MQ sidebar detection * Restrict table paste scope * Support data copy for primary SQL databases
This commit is contained in:
1 parent
5d2ce9f189
commit
0c91fecf5d
26 files changed
+943
-34
No files matched your search
@@ -1340,6 +1340,19 @@ export default {
|
||||
tableOperationFailed: "Operation failed: {message}",
|
||||
duplicateNameTitle: "Clone as New Table",
|
||||
duplicateNamePlaceholder: "New table name",
|
||||
copyTable: "Copy Table",
|
||||
pasteTable: "Paste Table",
|
||||
pasteOptionStructureAndData: "Structure and Data",
|
||||
pasteOptionStructureOnly: "Structure Only",
|
||||
pasteOptionDataOnly: "Data Only",
|
||||
pasteTableSuccess: 'Table pasted as "{name}"',
|
||||
pasteTableConfirmTitle: "Paste Table",
|
||||
pasteTableConfirmMessage: "Paste table from clipboard",
|
||||
batchPasteTitle: "Paste Tables",
|
||||
batchPasteSuccess: "Successfully pasted {count} tables",
|
||||
batchPastePartialFail: "Pasted {success} tables, {failed} failed",
|
||||
noTableToPaste: "No tables available to paste",
|
||||
pasteTableClipboardUpdated: "Table copied to clipboard",
|
||||
createDatabase: "Create Database",
|
||||
createDuckDbFile: "Create Database File",
|
||||
dropDatabase: "Drop Database",
|
||||
@@ -1513,6 +1526,8 @@ export default {
|
||||
confirmBatchDropTitle: "Drop Selected Tables",
|
||||
confirmBatchDropMessage: "Are you sure you want to drop {count} selected tables? This cannot be undone.",
|
||||
batchDropSuccess: "Dropped {count} tables",
|
||||
copyTableSelected: "Copy",
|
||||
pasteTableSelected: "Paste",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "Edit Table Structure",
|
||||
|
||||
@@ -1322,6 +1322,19 @@ export default withEnglishFallback({
|
||||
tableOperationFailed: "Error en la operación: {message}",
|
||||
duplicateNameTitle: "Clonar como tabla nueva",
|
||||
duplicateNamePlaceholder: "Nombre de la nueva tabla",
|
||||
copyTable: "Copiar tabla",
|
||||
pasteTable: "Pegar tabla",
|
||||
pasteOptionStructureAndData: "Estructura y datos",
|
||||
pasteOptionStructureOnly: "Solo estructura",
|
||||
pasteOptionDataOnly: "Solo datos",
|
||||
pasteTableSuccess: 'Tabla pegada como "{name}"',
|
||||
pasteTableConfirmTitle: "Pegar tabla",
|
||||
pasteTableConfirmMessage: "Pegar tabla desde el portapapeles",
|
||||
batchPasteTitle: "Pegar tablas",
|
||||
batchPasteSuccess: "{count} tablas pegadas correctamente",
|
||||
batchPastePartialFail: "{success} tablas pegadas, {failed} fallidas",
|
||||
noTableToPaste: "No hay tablas disponibles para pegar",
|
||||
pasteTableClipboardUpdated: "Tabla copiada al portapapeles",
|
||||
createDatabase: "Crear base de datos",
|
||||
createDuckDbFile: "Crear archivo de base de datos",
|
||||
dropDatabase: "Eliminar base de datos",
|
||||
@@ -1495,6 +1508,8 @@ export default withEnglishFallback({
|
||||
confirmBatchDropTitle: "Eliminar tablas seleccionadas",
|
||||
confirmBatchDropMessage: "¿Seguro que quieres eliminar {count} tablas seleccionadas? Esta acción no se puede deshacer.",
|
||||
batchDropSuccess: "{count} tablas eliminadas",
|
||||
copyTableSelected: "Copiar",
|
||||
pasteTableSelected: "Pegar",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "Editar estructura de tabla",
|
||||
|
||||
@@ -1341,6 +1341,19 @@ export default withEnglishFallback({
|
||||
tableOperationFailed: "Operazione non riuscita: {message}",
|
||||
duplicateNameTitle: "Clona as Nuova Tabella",
|
||||
duplicateNamePlaceholder: "Nuovo nome tabella",
|
||||
copyTable: "Copia tabella",
|
||||
pasteTable: "Incolla tabella",
|
||||
pasteOptionStructureAndData: "Struttura e dati",
|
||||
pasteOptionStructureOnly: "Solo struttura",
|
||||
pasteOptionDataOnly: "Solo dati",
|
||||
pasteTableSuccess: 'Tabella incollata come "{name}"',
|
||||
pasteTableConfirmTitle: "Incolla tabella",
|
||||
pasteTableConfirmMessage: "Incolla tabella dagli appunti",
|
||||
batchPasteTitle: "Incolla tabelle",
|
||||
batchPasteSuccess: "{count} tabelle incollate correttamente",
|
||||
batchPastePartialFail: "{success} tabelle incollate, {failed} fallite",
|
||||
noTableToPaste: "Nessuna tabella disponibile da incollare",
|
||||
pasteTableClipboardUpdated: "Tabella copiata negli appunti",
|
||||
createDatabase: "Crea Database",
|
||||
createDuckDbFile: "Crea File Database",
|
||||
dropDatabase: "Elimina Database",
|
||||
@@ -1514,6 +1527,8 @@ export default withEnglishFallback({
|
||||
confirmBatchDropTitle: "Elimina Tabelle Selezionate",
|
||||
confirmBatchDropMessage: "Sei sicuro di voler eliminare {count} tabelle selezionate? Questa azione non può essere annullata.",
|
||||
batchDropSuccess: "Eliminate {count} tabelle",
|
||||
copyTableSelected: "Copia",
|
||||
pasteTableSelected: "Incolla",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "Modifica Struttura Tabella",
|
||||
|
||||
@@ -1319,6 +1319,19 @@ export default withEnglishFallback({
|
||||
tableOperationFailed: "操作に失敗しました: {message}",
|
||||
duplicateNameTitle: "新しいテーブルとして複製",
|
||||
duplicateNamePlaceholder: "新しいテーブル名",
|
||||
copyTable: "テーブルをコピー",
|
||||
pasteTable: "テーブルを貼り付け",
|
||||
pasteOptionStructureAndData: "構造とデータ",
|
||||
pasteOptionStructureOnly: "構造のみ",
|
||||
pasteOptionDataOnly: "データのみ",
|
||||
pasteTableSuccess: "テーブルを「{name}」として貼り付けました",
|
||||
pasteTableConfirmTitle: "テーブルの貼り付け",
|
||||
pasteTableConfirmMessage: "クリップボードからテーブルを貼り付け",
|
||||
batchPasteTitle: "テーブルの貼り付け",
|
||||
batchPasteSuccess: "{count}テーブルを貼り付けました",
|
||||
batchPastePartialFail: "{success}テーブルを貼り付け、{failed}テーブルに失敗しました",
|
||||
noTableToPaste: "貼り付け可能なテーブルがありません",
|
||||
pasteTableClipboardUpdated: "テーブルをクリップボードにコピーしました",
|
||||
createDatabase: "データベースを作成",
|
||||
createDuckDbFile: "データベースファイルを作成",
|
||||
dropDatabase: "データベースを削除",
|
||||
@@ -1529,6 +1542,8 @@ export default withEnglishFallback({
|
||||
confirmBatchDropTitle: "選択したテーブルを削除",
|
||||
confirmBatchDropMessage: "選択した{count}テーブルを削除しますか?この操作は取り消せません。",
|
||||
batchDropSuccess: "{count}テーブルを削除しました",
|
||||
copyTableSelected: "コピー",
|
||||
pasteTableSelected: "貼り付け",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "テーブル構造を編集",
|
||||
|
||||
@@ -1334,6 +1334,19 @@ export default withEnglishFallback({
|
||||
tableOperationFailed: "Falha na operação: {message}",
|
||||
duplicateNameTitle: "Clonar como Nova Tabela",
|
||||
duplicateNamePlaceholder: "Nome da nova tabela",
|
||||
copyTable: "Copiar tabela",
|
||||
pasteTable: "Colar tabela",
|
||||
pasteOptionStructureAndData: "Estrutura e dados",
|
||||
pasteOptionStructureOnly: "Apenas estrutura",
|
||||
pasteOptionDataOnly: "Apenas dados",
|
||||
pasteTableSuccess: 'Tabela colada como "{name}"',
|
||||
pasteTableConfirmTitle: "Colar tabela",
|
||||
pasteTableConfirmMessage: "Colar tabela da área de transferência",
|
||||
batchPasteTitle: "Colar tabelas",
|
||||
batchPasteSuccess: "{count} tabelas coladas com sucesso",
|
||||
batchPastePartialFail: "{success} tabelas coladas, {failed} falharam",
|
||||
noTableToPaste: "Nenhuma tabela disponível para colar",
|
||||
pasteTableClipboardUpdated: "Tabela copiada para a área de transferência",
|
||||
createDatabase: "Criar Banco de Dados",
|
||||
createDuckDbFile: "Criar Arquivo de Banco de Dados",
|
||||
dropDatabase: "Remover Banco de Dados",
|
||||
@@ -1507,6 +1520,8 @@ export default withEnglishFallback({
|
||||
confirmBatchDropTitle: "Remover tabelas selecionadas",
|
||||
confirmBatchDropMessage: "Tem certeza de que deseja remover {count} tabelas selecionadas? Esta ação não pode ser desfeita.",
|
||||
batchDropSuccess: "{count} tabelas removidas",
|
||||
copyTableSelected: "Copiar",
|
||||
pasteTableSelected: "Colar",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "Editar estrutura da tabela",
|
||||
|
||||
@@ -1343,6 +1343,19 @@ export default withEnglishFallback({
|
||||
tableOperationFailed: "操作失败:{message}",
|
||||
duplicateNameTitle: "克隆为新表",
|
||||
duplicateNamePlaceholder: "新表名",
|
||||
copyTable: "复制表",
|
||||
pasteTable: "粘贴表",
|
||||
pasteOptionStructureAndData: "结构和数据",
|
||||
pasteOptionStructureOnly: "仅结构",
|
||||
pasteOptionDataOnly: "仅数据",
|
||||
pasteTableSuccess: "已将表粘贴为「{name}」",
|
||||
pasteTableConfirmTitle: "粘贴表",
|
||||
pasteTableConfirmMessage: "从剪贴板粘贴表",
|
||||
batchPasteTitle: "粘贴表",
|
||||
batchPasteSuccess: "成功粘贴 {count} 张表",
|
||||
batchPastePartialFail: "粘贴成功 {success} 张表,{failed} 张失败",
|
||||
noTableToPaste: "没有可粘贴的表",
|
||||
pasteTableClipboardUpdated: "表已复制到剪贴板",
|
||||
createDatabase: "新建数据库",
|
||||
createDuckDbFile: "新建数据库文件",
|
||||
dropDatabase: "删除数据库",
|
||||
@@ -1516,6 +1529,8 @@ export default withEnglishFallback({
|
||||
confirmBatchDropTitle: "删除所选表",
|
||||
confirmBatchDropMessage: "确定要删除已选择的 {count} 张表吗?此操作不可撤销。",
|
||||
batchDropSuccess: "已删除 {count} 张表",
|
||||
copyTableSelected: "复制",
|
||||
pasteTableSelected: "粘贴",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "编辑表结构",
|
||||
|
||||
@@ -1323,6 +1323,19 @@ export default withEnglishFallback({
|
||||
tableOperationFailed: "操作失敗:{message}",
|
||||
duplicateNameTitle: "克隆為新資料表",
|
||||
duplicateNamePlaceholder: "新資料表名稱",
|
||||
copyTable: "複製資料表",
|
||||
pasteTable: "貼上資料表",
|
||||
pasteOptionStructureAndData: "結構和資料",
|
||||
pasteOptionStructureOnly: "僅結構",
|
||||
pasteOptionDataOnly: "僅資料",
|
||||
pasteTableSuccess: "已將資料表貼上為「{name}」",
|
||||
pasteTableConfirmTitle: "貼上資料表",
|
||||
pasteTableConfirmMessage: "從剪貼簿貼上資料表",
|
||||
batchPasteTitle: "貼上資料表",
|
||||
batchPasteSuccess: "成功貼上 {count} 張資料表",
|
||||
batchPastePartialFail: "貼上成功 {success} 張資料表,{failed} 張失敗",
|
||||
noTableToPaste: "沒有可貼上的資料表",
|
||||
pasteTableClipboardUpdated: "資料表已複製到剪貼簿",
|
||||
createDatabase: "建立資料庫",
|
||||
createDuckDbFile: "建立資料庫檔案",
|
||||
dropDatabase: "刪除資料庫",
|
||||
@@ -1451,6 +1464,8 @@ export default withEnglishFallback({
|
||||
confirmBatchDropTitle: "刪除所選資料表",
|
||||
confirmBatchDropMessage: "確定要刪除已選擇的 {count} 張資料表嗎?此操作無法復原。",
|
||||
batchDropSuccess: "已刪除 {count} 張資料表",
|
||||
copyTableSelected: "複製",
|
||||
pasteTableSelected: "貼上",
|
||||
},
|
||||
structureEditor: {
|
||||
title: "編輯資料表結構",
|
||||
|
||||
Reference in new issue
Block a user