This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev-2.1.3
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev-2.1.3 by this push:
new b236e93bc [Improve] FE style improvement
b236e93bc is described below
commit b236e93bcd1cc3b4d6c09e1d0a948b6c04f030a9
Author: benjobs <[email protected]>
AuthorDate: Thu Jan 18 09:42:09 2024 +0800
[Improve] FE style improvement
---
.../src/design/ant/index.less | 4 ++--
.../src/locales/lang/zh-CN/flink/app.ts | 22 +++++++++++-----------
.../src/views/flink/app/components/State.tsx | 4 ++--
3 files changed, 15 insertions(+), 15 deletions(-)
diff --git
a/streampark-console/streampark-console-webapp/src/design/ant/index.less
b/streampark-console/streampark-console-webapp/src/design/ant/index.less
index 587b4e5bd..7ce7f2870 100644
--- a/streampark-console/streampark-console-webapp/src/design/ant/index.less
+++ b/streampark-console/streampark-console-webapp/src/design/ant/index.less
@@ -73,8 +73,8 @@ span.anticon:not(.app-iconify) {
padding: 0 2px !important;
font-weight: 400;
cursor: default;
- font-size: 10px;
- line-height: 18px;
+ font-size: 12px;
+ line-height: 20px;
}
.app-bar,
diff --git
a/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
b/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
index 8768f295b..c07376071 100644
---
a/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
+++
b/streampark-console/streampark-console-webapp/src/locales/lang/zh-CN/flink/app.ts
@@ -66,20 +66,20 @@ export default {
startTime: '启动时间',
endTime: '结束时间',
runState: {
- added: '新增',
+ added: '新增作业',
initializing: '初始化',
- created: '创建',
+ created: '创建中',
starting: '启动中',
restarting: '重启中',
running: '运行中',
failing: '失败中',
- failed: '失败',
- lost: '失联',
+ failed: '作业失败',
+ lost: '作业失联',
cancelling: '取消中',
canceled: '已取消',
finished: '已完成',
suspended: '已暂停',
- reconciling: '调节中',
+ reconciling: '调整中',
mapping: '映射中',
silent: '沉默',
terminated: '终止',
@@ -203,20 +203,20 @@ export default {
totalTaskManagerMemory: 'TaskManager总内存',
},
runStatusOptions: {
- added: '新增',
+ added: '新增作业',
starting: '启动中',
running: '运行中',
- failed: '失败',
- lost: '失联',
+ failed: '作业失败',
+ lost: '作业失联',
canceled: '已取消',
finished: '已完成',
suspended: '暂停',
silent: '静默',
- terminated: '终止',
+ terminated: '作业终止',
},
releaseState: {
- failed: '失败',
- success: '成功',
+ failed: '发布失败',
+ success: '发布成功',
waiting: '待发布',
releasing: '发布中',
pending: '待回滚',
diff --git
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/State.tsx
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/State.tsx
index 990f1a76c..7e425af09 100644
---
a/streampark-console/streampark-console-webapp/src/views/flink/app/components/State.tsx
+++
b/streampark-console/streampark-console-webapp/src/views/flink/app/components/State.tsx
@@ -27,7 +27,7 @@ export const stateMap = {
[AppStateEnum.ADDED]: { color: '#2f54eb', title:
t('flink.app.runState.added') },
[AppStateEnum.INITIALIZING]: {
color: '#738df8',
- title: 'INITIALIZING',
+ title: t('flink.app.runState.initializing'),
class: 'status-processing-initializing',
},
[AppStateEnum.CREATED]: { color: '#2f54eb', title:
t('flink.app.runState.created') },
@@ -159,7 +159,7 @@ export default defineComponent({
// create a dom to calculate the width of the tag
const dom = document.createElement('span');
dom.style.display = 'inline-block';
- dom.style.fontSize = '10px';
+ dom.style.fontSize = '12px';
dom.style.padding = '0 3px';
dom.style.borderRadius = '1px';
dom.textContent = props.maxTitle;