This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new 4b13fc3e6 [INLONG-7024][Dashboard] Type readable lowercase and title
optimization in data integration (#7025)
4b13fc3e6 is described below
commit 4b13fc3e6f60fa6e247f8533da4d9d00eb4be436
Author: Lizhen <[email protected]>
AuthorDate: Thu Dec 22 19:42:18 2022 +0800
[INLONG-7024][Dashboard] Type readable lowercase and title optimization in
data integration (#7025)
Co-authored-by: Charles Zhang <[email protected]>
---
inlong-dashboard/src/locales/cn.json | 6 +++---
inlong-dashboard/src/metas/groups/common/GroupDefaultInfo.ts | 4 +++-
inlong-dashboard/src/metas/sinks/common/SinkDefaultInfo.ts | 4 +++-
inlong-dashboard/src/metas/sources/common/SourceDefaultInfo.ts | 4 +++-
4 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/inlong-dashboard/src/locales/cn.json
b/inlong-dashboard/src/locales/cn.json
index 21adc6fb5..b454a8a1f 100644
--- a/inlong-dashboard/src/locales/cn.json
+++ b/inlong-dashboard/src/locales/cn.json
@@ -500,9 +500,9 @@
"pages.GroupDetail.Stream.CreateDataStream": "新建数据流",
"pages.GroupDetail.Info": "数据流组",
"pages.GroupDetail.Streams": "数据流",
- "pages.GroupDetail.Sources": "数据源",
- "pages.GroupDetail.Sinks": "数据存储",
- "pages.GroupDetail.Audit": "审计",
+ "pages.GroupDetail.Sources": "数据来源",
+ "pages.GroupDetail.Sinks": "数据目标",
+ "pages.GroupDetail.Audit": "审计对账",
"pages.GroupDetail.Audit.DataStream": "数据流",
"pages.GroupDetail.Audit.Date": "日期",
"pages.GroupDetail.Audit.AuditIds": "展示内容",
diff --git a/inlong-dashboard/src/metas/groups/common/GroupDefaultInfo.ts
b/inlong-dashboard/src/metas/groups/common/GroupDefaultInfo.ts
index 55108cf3e..fded2e2ee 100644
--- a/inlong-dashboard/src/metas/groups/common/GroupDefaultInfo.ts
+++ b/inlong-dashboard/src/metas/groups/common/GroupDefaultInfo.ts
@@ -117,7 +117,9 @@ export class GroupDefaultInfo implements DataWithBackend,
RenderRow, RenderList
options: groups.filter(item => Boolean(item.value)),
},
})
- @ColumnDecorator()
+ @ColumnDecorator({
+ render: type => groups.find(c => c.value === type)?.label || type,
+ })
@I18n('meta.Group.MQType')
mqType: string;
diff --git a/inlong-dashboard/src/metas/sinks/common/SinkDefaultInfo.ts
b/inlong-dashboard/src/metas/sinks/common/SinkDefaultInfo.ts
index 85fab396b..cd8c2892d 100644
--- a/inlong-dashboard/src/metas/sinks/common/SinkDefaultInfo.ts
+++ b/inlong-dashboard/src/metas/sinks/common/SinkDefaultInfo.ts
@@ -106,7 +106,9 @@ export class SinkDefaultInfo implements DataWithBackend,
RenderRow, RenderList {
})),
}),
})
- @ColumnDecorator()
+ @ColumnDecorator({
+ render: type => sinks.find(c => c.value === type)?.label || type,
+ })
@I18n('meta.Sinks.SinkType')
sinkType: string;
diff --git a/inlong-dashboard/src/metas/sources/common/SourceDefaultInfo.ts
b/inlong-dashboard/src/metas/sources/common/SourceDefaultInfo.ts
index 6a7abf43e..fb379eb9f 100644
--- a/inlong-dashboard/src/metas/sources/common/SourceDefaultInfo.ts
+++ b/inlong-dashboard/src/metas/sources/common/SourceDefaultInfo.ts
@@ -98,7 +98,9 @@ export class SourceDefaultInfo implements DataWithBackend,
RenderRow, RenderList
})),
}),
})
- @ColumnDecorator()
+ @ColumnDecorator({
+ render: type => sources.find(c => c.value === type)?.label || type,
+ })
@I18n('meta.Sources.Type')
sourceType: string;