mirror of
https://github.com/Syngnat/GoNavi.git
synced 2026-08-04 04:47:49 +08:00
🐛 fix(tool-center): 移除内嵌工具重复标题头
- 工具中心详情页统一承载入口标题和说明 - 数据同步、表结构比对和数据比对嵌入时隐藏内部 hero - 数据目录、快捷键、连接包和安全更新嵌入时隐藏内部 Modal 标题 - 补充工具中心全 pane 标题归属回归断言
This commit is contained in:
@@ -1388,71 +1388,73 @@ const DataSyncModal: React.FC<{
|
||||
const dataSyncContent = (
|
||||
<div style={modalWorkspaceStyle}>
|
||||
<div style={{ flex: "0 0 auto" }}>
|
||||
<div style={heroPanelStyle}>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
gap: 12,
|
||||
alignItems: "flex-start",
|
||||
flexWrap: "wrap",
|
||||
}}
|
||||
>
|
||||
<div style={{ minWidth: 0 }}>
|
||||
<div
|
||||
style={{
|
||||
fontSize: 18,
|
||||
fontWeight: 700,
|
||||
color: darkMode ? "#f8fafc" : "#0f172a",
|
||||
}}
|
||||
>
|
||||
{isMigrationWorkflow
|
||||
? tr("data_sync.title.migration")
|
||||
: isCompareEntry
|
||||
? entryPresentation.heroTitle
|
||||
: tr("data_sync.title.sync")}
|
||||
{!embedded && (
|
||||
<div style={heroPanelStyle}>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
justifyContent: "space-between",
|
||||
gap: 12,
|
||||
alignItems: "flex-start",
|
||||
flexWrap: "wrap",
|
||||
}}
|
||||
>
|
||||
<div style={{ minWidth: 0 }}>
|
||||
<div
|
||||
style={{
|
||||
fontSize: 18,
|
||||
fontWeight: 700,
|
||||
color: darkMode ? "#f8fafc" : "#0f172a",
|
||||
}}
|
||||
>
|
||||
{isMigrationWorkflow
|
||||
? tr("data_sync.title.migration")
|
||||
: isCompareEntry
|
||||
? entryPresentation.heroTitle
|
||||
: tr("data_sync.title.sync")}
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
marginTop: 6,
|
||||
fontSize: 13,
|
||||
lineHeight: 1.7,
|
||||
color: darkMode
|
||||
? "rgba(255,255,255,0.62)"
|
||||
: "rgba(15,23,42,0.62)",
|
||||
}}
|
||||
>
|
||||
{isMigrationWorkflow
|
||||
? tr("data_sync.title.migration_description")
|
||||
: isCompareEntry
|
||||
? entryPresentation.heroDescription
|
||||
: tr("data_sync.title.sync_description")}
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
style={{
|
||||
marginTop: 6,
|
||||
fontSize: 13,
|
||||
lineHeight: 1.7,
|
||||
color: darkMode
|
||||
? "rgba(255,255,255,0.62)"
|
||||
: "rgba(15,23,42,0.62)",
|
||||
}}
|
||||
>
|
||||
{isMigrationWorkflow
|
||||
? tr("data_sync.title.migration_description")
|
||||
: isCompareEntry
|
||||
? entryPresentation.heroDescription
|
||||
: tr("data_sync.title.sync_description")}
|
||||
<div style={{ display: "flex", flexWrap: "wrap", gap: 8 }}>
|
||||
<span style={badgeStyle}>
|
||||
{isMigrationWorkflow ? <RocketOutlined /> : <SwapOutlined />}{" "}
|
||||
{isMigrationWorkflow
|
||||
? tr("data_sync.badge.migration_mode")
|
||||
: isCompareEntry
|
||||
? entryPresentation.badgeText
|
||||
: tr("data_sync.badge.sync_mode")}
|
||||
</span>
|
||||
<span style={badgeStyle}>
|
||||
<DatabaseOutlined />{" "}
|
||||
{sourceConnId
|
||||
? tr("data_sync.badge.source_selected")
|
||||
: tr("data_sync.badge.source_pending")}
|
||||
</span>
|
||||
<span style={badgeStyle}>
|
||||
<TableOutlined />{" "}
|
||||
{tr("data_sync.badge.table_count", {
|
||||
count: selectedTables.length || 0,
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div style={{ display: "flex", flexWrap: "wrap", gap: 8 }}>
|
||||
<span style={badgeStyle}>
|
||||
{isMigrationWorkflow ? <RocketOutlined /> : <SwapOutlined />}{" "}
|
||||
{isMigrationWorkflow
|
||||
? tr("data_sync.badge.migration_mode")
|
||||
: isCompareEntry
|
||||
? entryPresentation.badgeText
|
||||
: tr("data_sync.badge.sync_mode")}
|
||||
</span>
|
||||
<span style={badgeStyle}>
|
||||
<DatabaseOutlined />{" "}
|
||||
{sourceConnId
|
||||
? tr("data_sync.badge.source_selected")
|
||||
: tr("data_sync.badge.source_pending")}
|
||||
</span>
|
||||
<span style={badgeStyle}>
|
||||
<TableOutlined />{" "}
|
||||
{tr("data_sync.badge.table_count", {
|
||||
count: selectedTables.length || 0,
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
<Steps current={currentStep} style={{ marginBottom: 24 }}>
|
||||
<Step title={tr("data_sync.step.configure")} />
|
||||
<Step title={tr("data_sync.step.select_tables")} />
|
||||
|
||||
Reference in New Issue
Block a user