feat(schema-diff): professional DDL diff view with deployment-aware colors and custom themes (#1112)

Co-authored-by: Sam <14344444@@qq.com>
This commit is contained in:
polempandSam authored and GitHub committed 2026-06-12 17:14:05 +08:00
1 parent 2554ed95be
commit ef5ed05ae7
41 files changed
+5695 -1215

No files matched your search

+92 -1
View File
@@ -1679,12 +1679,17 @@
},
},
diff: {
title: "Compare Databases",
title: "Compare Schemas",
source: "Source",
target: "Target",
selectConnection: "Select connection",
selectDatabase: "Select database",
selectSchema: "Select schema",
connection: "Connection",
database: "Database",
schema: "Schema",
recentConfigs: "Recent Configs",
selectRecentConfig: "Select recent config",
ignoreComments: "Ignore comment differences",
compare: "Compare",
comparing: "Comparing schemas...",
@@ -1708,6 +1713,92 @@
swap: "Swap source and target",
syncProgress: "Executing: {current}/{total}",
syncSummary: "Succeeded {success}, failed {failed}",
configSaved: "Config saved",
selectObjectToCompare: "Select an object to view DDL comparison",
noDdlAvailable: "No DDL available",
sourceDdl: "Source DDL",
targetDdl: "Target DDL",
objectNotExistsInSource: "This object does not exist in the source database",
objectNotExistsInTarget: "This object does not exist in the target database",
nextStepDeploy: "Next (Review Deploy)",
deployReview: "Deploy Review",
backToResult: "Back to Result",
copyScript: "Copy Script",
exportSql: "Export .sql",
deployToServer: "Deploy to Server",
deployConfirmTitle: "Final Confirmation",
deployConfirmMessage: "You are about to deploy the following changes to the target database",
targetServer: "Target Server",
dbVersion: "Database Version",
targetDatabase: "Target Database",
targetSchema: "Target Schema",
useTransaction: "Execute in transaction (auto-rollback on failure)",
confirmDeploy: "Confirm Deploy",
exportSuccess: "Export successful",
create: "Create",
delete: "Delete",
modify: "Modify",
cancel: "Cancel",
operationLabel: {
modify: "Objects to modify",
create: "Objects to create",
delete: "Objects to delete",
none: "No operation",
},
objectKindLabel: {
table: "Table",
view: "View",
function: "Function",
sequence: "Sequence",
rule: "Rule",
owner: "Owner",
index: "Index",
foreignKey: "Foreign Key",
trigger: "Trigger",
},
noObjectsSelected: "Please select objects to deploy",
deploySuccess: "Deploy Successful",
deployFailed: "Deploy Failed",
deploySuccessMessage: "SQL script executed successfully on target database",
deployFailedMessage: "An error occurred during execution",
affectedRows: "Affected Rows",
executedStatements: "Executed Statements",
serverVersion: "Server Version",
close: "Close",
},
schemaDiff: {
optionsTitle: "Compare Options",
selectConfig: "Select config",
newConfigName: "New Config",
newConfig: "New Config",
renameConfig: "Rename Config",
duplicateConfig: "Duplicate Config",
deleteConfig: "Delete Config",
exportConfig: "Export Config",
exportAllConfigs: "Export All Configs",
importConfig: "Import Config",
importFromFile: "Import from File",
importFromText: "Import from Text",
importPlaceholder: "Paste JSON config...",
importInvalidJson: "Invalid JSON format",
configName: "Config Name",
options: {
tables: "Compare tables",
primaryKeys: "Compare primary keys",
foreignKeys: "Compare foreign keys",
uniqueKeys: "Compare unique keys",
checks: "Compare check constraints",
exclusions: "Compare exclusion constraints",
views: "Compare views",
functions: "Compare functions",
indexes: "Compare indexes",
sequences: "Compare sequences",
triggers: "Compare triggers",
rules: "Compare rules",
owners: "Compare owners",
cascadeDelete: "Use CASCADE delete",
sequenceLastValues: "Compare sequence last values",
},
},
dataCompare: {
title: "Compare Data",
+52 -1
View File
@@ -1438,7 +1438,7 @@
},
},
diff: {
title: "Comparar bases de datos",
title: "Comparar esquemas",
source: "Origen",
target: "Destino",
selectConnection: "Seleccionar conexión",
@@ -1467,6 +1467,57 @@
swap: "Intercambiar origen y destino",
syncProgress: "Ejecutando: {current}/{total}",
syncSummary: "Exitosos {success}, fallidos {failed}",
operationLabel: {
modify: "Objetos a modificar",
create: "Objetos a crear",
delete: "Objetos a eliminar",
none: "Sin operación",
},
objectKindLabel: {
table: "Tabla",
view: "Vista",
function: "Función",
sequence: "Secuencia",
rule: "Regla",
owner: "Propietario",
index: "Índice",
foreignKey: "Clave foránea",
trigger: "Disparador",
},
},
schemaDiff: {
optionsTitle: "Opciones de comparación",
selectConfig: "Select config",
newConfigName: "New Config",
newConfig: "New Config",
renameConfig: "Rename Config",
duplicateConfig: "Duplicate Config",
deleteConfig: "Delete Config",
exportConfig: "Export Config",
exportAllConfigs: "Export All Configs",
importConfig: "Import Config",
importFromFile: "Import from File",
importFromText: "Import from Text",
importPlaceholder: "Paste JSON config...",
importInvalidJson: "Invalid JSON format",
configName: "Config Name",
options: {
tables: "Compare tables",
primaryKeys: "Compare primary keys",
foreignKeys: "Compare foreign keys",
uniqueKeys: "Compare unique keys",
checks: "Compare check constraints",
exclusions: "Compare exclusion constraints",
views: "Compare views",
functions: "Compare functions",
indexes: "Compare indexes",
sequences: "Compare sequences",
triggers: "Compare triggers",
rules: "Compare rules",
owners: "Compare owners",
cascadeDelete: "Use CASCADE delete",
sequenceLastValues: "Compare sequence last values",
},
},
dataCompare: {
title: "Comparar datos",
+1 -1
View File
@@ -1555,7 +1555,7 @@
},
},
diff: {
title: "Confronta Database",
title: "Confronta Schemi",
source: "Sorgente",
target: "Destinazione",
selectConnection: "Seleziona connessione",
+1 -1
View File
@@ -1566,7 +1566,7 @@
},
},
diff: {
title: "Comparar Bancos de Dados",
title: "Comparar Esquemas",
source: "Origem",
target: "Destino",
selectConnection: "Selecionar conexão",
+117 -1
View File
@@ -1678,12 +1678,17 @@
},
},
diff: {
title: "比较数据库",
title: "比较架构",
source: "源数据库",
target: "目标数据库",
selectConnection: "选择连接",
selectDatabase: "选择数据库",
selectSchema: "选择 Schema",
connection: "连接",
database: "数据库",
schema: "模式",
recentConfigs: "最近配置",
selectRecentConfig: "选择最近配置",
ignoreComments: "忽略注释差异",
compare: "开始比较",
comparing: "正在比较结构...",
@@ -1707,6 +1712,117 @@
swap: "交换源和目标",
syncProgress: "执行中: {current}/{total}",
syncSummary: "成功 {success} 条,失败 {failed} 条",
sourceObject: "源对象",
targetObject: "目标对象",
operation: "操作",
selectedCount: "已选择 {selected} 个 (共 {total} 个)",
saveConfig: "保存配置",
loadConfig: "加载配置",
options: "选项",
ddlCompare: "DDL 比较",
deployScript: "部署脚本",
selectObjectToCompare: "选择对象查看 DDL 对比",
noDdlAvailable: "无可用的 DDL",
objectNotExistsInSource: "此对象在源库中不存在",
objectNotExistsInTarget: "此对象在目标库中不存在",
sourceDdl: "源 DDL",
targetDdl: "目标 DDL",
deployScriptTitle: "部署脚本",
deployScriptAll: "全部部署脚本",
deployScriptAllTitle: "全部部署脚本",
copyScript: "复制脚本",
executeScript: "执行脚本",
executeSuccess: "执行成功",
prevStep: "上一步",
recompare: "重新比较",
deploy: "下一步",
nextStepDeploy: "下一步(审核部署)",
deployReview: "部署审核",
backToResult: "返回结果",
exportSql: "导出 .sql",
deployToServer: "部署到服务器",
deployConfirmTitle: "最终确认",
deployConfirmMessage: "您即将在目标数据库执行以下部署操作",
targetServer: "目标服务器",
dbVersion: "数据库版本",
targetDatabase: "目标数据库",
targetSchema: "目标 Schema",
useTransaction: "在事务中执行(失败自动回滚)",
confirmDeploy: "确认部署",
exportSuccess: "导出成功",
create: "创建",
delete: "删除",
modify: "修改",
cancel: "取消",
operationLabel: {
modify: "要修改的对象",
create: "要创建的对象",
delete: "要删除的对象",
none: "无操作",
},
objectKindLabel: {
table: "表",
view: "视图",
function: "函数",
sequence: "序列",
rule: "规则",
owner: "所有者",
index: "索引",
foreignKey: "外键",
trigger: "触发器",
},
noObjectsSelected: "请选择要部署的对象",
deploySuccess: "部署成功",
deployFailed: "部署失败",
deploySuccessMessage: "SQL 脚本已成功执行到目标数据库",
deployFailedMessage: "执行过程中发生错误",
affectedRows: "影响行数",
executedStatements: "执行语句数",
close: "关闭",
info: "信息",
connType: "连接类型",
connName: "连接名称",
host: "主机",
port: "端口",
serverVersion: "服务器版本",
copied: "已复制到剪贴板",
configSaved: "配置已保存",
configDeleted: "配置已删除",
saveConfigPrompt: "请输入配置名称:",
},
schemaDiff: {
optionsTitle: "比较选项",
selectConfig: "选择配置",
newConfigName: "新配置",
newConfig: "新建配置",
renameConfig: "重命名配置",
duplicateConfig: "复制配置",
deleteConfig: "删除配置",
exportConfig: "导出配置",
exportAllConfigs: "导出全部配置",
importConfig: "导入配置",
importFromFile: "从文件导入",
importFromText: "从文本导入",
importPlaceholder: "粘贴 JSON 配置...",
importInvalidJson: "无效的 JSON 格式",
configName: "配置名称",
options: {
tables: "比较表",
primaryKeys: "比较主键",
foreignKeys: "比较外键",
uniqueKeys: "比较唯一键",
checks: "比较检查约束",
exclusions: "比较排除约束",
views: "比较视图",
functions: "比较函数",
indexes: "比较索引",
sequences: "比较序列",
triggers: "比较触发器",
rules: "比较规则",
owners: "比较所有者",
cascadeDelete: "使用级联删除",
sequenceLastValues: "比较序列最后值",
},
},
dataCompare: {
title: "比较数据",
+52 -1
View File
@@ -1543,7 +1543,7 @@
},
},
diff: {
title: "比較資料庫",
title: "比較架構",
source: "來源資料庫",
target: "目標資料庫",
selectConnection: "選擇連線",
@@ -1572,6 +1572,57 @@
swap: "交換來源與目標",
syncProgress: "執行中: {current}/{total}",
syncSummary: "成功 {success} 條,失敗 {failed} 條",
operationLabel: {
modify: "要修改的物件",
create: "要建立的物件",
delete: "要刪除的物件",
none: "無操作",
},
objectKindLabel: {
table: "資料表",
view: "視圖",
function: "函數",
sequence: "序列",
rule: "規則",
owner: "擁有者",
index: "索引",
foreignKey: "外鍵",
trigger: "觸發器",
},
},
schemaDiff: {
optionsTitle: "比較選項",
selectConfig: "選擇配置",
newConfigName: "新配置",
newConfig: "新建配置",
renameConfig: "重新命名配置",
duplicateConfig: "複製配置",
deleteConfig: "刪除配置",
exportConfig: "匯出配置",
exportAllConfigs: "匯出全部配置",
importConfig: "匯入配置",
importFromFile: "從檔案匯入",
importFromText: "從文字匯入",
importPlaceholder: "貼上 JSON 配置...",
importInvalidJson: "無效的 JSON 格式",
configName: "配置名稱",
options: {
tables: "比較資料表",
primaryKeys: "比較主鍵",
foreignKeys: "比較外鍵",
uniqueKeys: "比較唯一鍵",
checks: "比較檢查約束",
exclusions: "比較排除約束",
views: "比較視圖",
functions: "比較函數",
indexes: "比較索引",
sequences: "比較序列",
triggers: "比較觸發器",
rules: "比較規則",
owners: "比較擁有者",
cascadeDelete: "使用級聯刪除",
sequenceLastValues: "比較序列最後值",
},
},
dataCompare: {
title: "比較資料",