feat(export-tracker): 增强导出任务跟踪功能 (#1958)
- 添加了对数据库导出、SQL 文件导出和数据传输任务的支持 - 引入了新的状态和错误处理机制 - 实现了任务的重叠检查,防止同时进行相同目标表的数据传输 - 更新了 API 调用以支持新的任务类型 - 增加了相应的国际化文本 - 添加了单元测试以确保新功能的正确性
This commit is contained in:
15 files changed
+838
-208
No files matched your search
@@ -846,13 +846,20 @@ export default {
|
||||
rowsShort: "rows",
|
||||
cancel: "Cancel",
|
||||
close: "Close",
|
||||
tooltip: "Export Progress",
|
||||
popoverTitle: "Exports",
|
||||
noTasks: "No exports",
|
||||
tooltip: "Background Tasks",
|
||||
failedTooltip: "{count} background task failed | {count} background tasks failed",
|
||||
popoverTitle: "Background Tasks",
|
||||
noTasks: "No background tasks",
|
||||
clearFinished: "Clear finished",
|
||||
showMore: "Show {count} more",
|
||||
showLess: "Show less",
|
||||
delete: "Remove",
|
||||
databaseExportTitle: "Database backup: {name}",
|
||||
sqlFileTitle: "SQL file: {name}",
|
||||
dataTransferTitle: "Data transfer: {name}",
|
||||
objectsCount: "{current} / {total} objects",
|
||||
tablesCount: "{current} / {total} tables",
|
||||
statementsCount: "{done} succeeded, {failed} failed",
|
||||
},
|
||||
welcome: {
|
||||
title: "Database Workspace",
|
||||
@@ -1965,6 +1972,11 @@ export default {
|
||||
tableError: "Table {table} failed: {error}",
|
||||
overallProgress: "Overall progress",
|
||||
dataTransfer: "Data Transfer",
|
||||
runInBackground: "Run in background",
|
||||
newTask: "New transfer",
|
||||
editConfig: "Edit config",
|
||||
retry: "Retry",
|
||||
targetTableBusy: "Another transfer is already writing target table(s): {tables}",
|
||||
},
|
||||
tableImport: {
|
||||
title: "Import Table Data",
|
||||
@@ -2141,6 +2153,7 @@ export default {
|
||||
databasePlaceholder: "Database name",
|
||||
options: "Options",
|
||||
continueOnError: "Continue on error",
|
||||
runInBackground: "Run in background",
|
||||
cancelling: "Cancelling...",
|
||||
cancel: "Cancel",
|
||||
execute: "Execute",
|
||||
@@ -2877,6 +2890,7 @@ export default {
|
||||
exportSuccess: "Database exported successfully",
|
||||
exportError: "Export failed: {error}",
|
||||
exportCancelled: "Export cancelled",
|
||||
runInBackground: "Run in background",
|
||||
},
|
||||
nacos: {
|
||||
configs: "Configs",
|
||||
|
||||
@@ -847,13 +847,20 @@ export default {
|
||||
rowsShort: "行",
|
||||
cancel: "取消",
|
||||
close: "关闭",
|
||||
tooltip: "导出进度",
|
||||
popoverTitle: "导出任务",
|
||||
noTasks: "暂无导出任务",
|
||||
tooltip: "后台任务",
|
||||
failedTooltip: "{count} 个后台任务失败",
|
||||
popoverTitle: "后台任务",
|
||||
noTasks: "暂无后台任务",
|
||||
clearFinished: "清除已完成",
|
||||
showMore: "展开其余 {count} 个",
|
||||
showLess: "收起",
|
||||
delete: "删除",
|
||||
databaseExportTitle: "数据库备份:{name}",
|
||||
sqlFileTitle: "SQL 文件:{name}",
|
||||
dataTransferTitle: "数据传输:{name}",
|
||||
objectsCount: "{current} / {total} 个对象",
|
||||
tablesCount: "{current} / {total} 张表",
|
||||
statementsCount: "成功 {done},失败 {failed}",
|
||||
},
|
||||
welcome: {
|
||||
title: "数据库工作台",
|
||||
@@ -1964,6 +1971,11 @@ export default {
|
||||
tableError: "表 {table} 传输失败:{error}",
|
||||
overallProgress: "整体进度",
|
||||
dataTransfer: "数据传输",
|
||||
runInBackground: "后台运行",
|
||||
newTask: "新建传输",
|
||||
editConfig: "编辑配置",
|
||||
retry: "重新传输",
|
||||
targetTableBusy: "已有传输任务正在写入目标表:{tables}",
|
||||
},
|
||||
tableImport: {
|
||||
title: "导入表数据",
|
||||
@@ -2140,6 +2152,7 @@ export default {
|
||||
databasePlaceholder: "数据库名称",
|
||||
options: "选项",
|
||||
continueOnError: "出错后继续",
|
||||
runInBackground: "后台运行",
|
||||
cancelling: "正在取消...",
|
||||
cancel: "取消",
|
||||
execute: "执行",
|
||||
@@ -2901,6 +2914,7 @@ export default {
|
||||
exportSuccess: "数据库导出成功",
|
||||
exportError: "导出失败: {error}",
|
||||
exportCancelled: "导出已取消",
|
||||
runInBackground: "后台运行",
|
||||
},
|
||||
nacos: {
|
||||
configs: "配置",
|
||||
|
||||
Reference in new issue
Block a user