Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangpeng
dinky
Commits
ed477bcb
Unverified
Commit
ed477bcb
authored
Oct 20, 2022
by
aiwenmo
Committed by
GitHub
Oct 20, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-1126] [web] Fix internationalization does not take effect (#1127)
Co-authored-by:
wenmo
<
32723967+wenmo@users.noreply.github.com
>
parent
f0909054
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
78 additions
and
79 deletions
+78
-79
routes.ts
dlink-web/config/routes.ts
+18
-18
index.tsx
dlink-web/src/components/Footer/index.tsx
+4
-4
index.tsx
dlink-web/src/components/Studio/StudioConsole/index.tsx
+2
-2
index.tsx
dlink-web/src/components/Studio/StudioHome/index.tsx
+4
-2
index.tsx
dlink-web/src/components/Studio/StudioLeftTool/index.tsx
+3
-2
index.tsx
...c/components/Studio/StudioRightTool/StudioGuide/index.tsx
+2
-2
index.tsx
...mponents/Studio/StudioRightTool/StudioSqlConfig/index.tsx
+2
-3
en-US.ts
dlink-web/src/locales/en-US.ts
+1
-1
menu.ts
dlink-web/src/locales/en-US/menu.ts
+7
-7
pages.ts
dlink-web/src/locales/en-US/pages.ts
+2
-2
zh-CN.ts
dlink-web/src/locales/zh-CN.ts
+1
-1
menu.ts
dlink-web/src/locales/zh-CN/menu.ts
+6
-6
pages.ts
dlink-web/src/locales/zh-CN/pages.ts
+2
-2
Admin.tsx
dlink-web/src/pages/Admin.tsx
+2
-2
ClusterForm.tsx
dlink-web/src/pages/Cluster/components/ClusterForm.tsx
+4
-5
index.tsx
dlink-web/src/pages/Cluster/index.tsx
+2
-2
index.tsx
dlink-web/src/pages/DataBase/Columns/index.tsx
+2
-3
index.tsx
dlink-web/src/pages/DataCenter/MetaData/TableData/index.tsx
+2
-2
index.tsx
dlink-web/src/pages/DataCenter/MetaData/index.tsx
+2
-2
index.tsx
dlink-web/src/pages/DevOps/JobInstanceTable/index.tsx
+2
-2
index.tsx
dlink-web/src/pages/DevOps/index.tsx
+2
-2
flinkConfig.tsx
...es/SettingCenter/FlinkSettings/components/flinkConfig.tsx
+3
-3
Welcome.tsx
dlink-web/src/pages/Welcome.tsx
+3
-4
No files found.
dlink-web/config/routes.ts
View file @
ed477bcb
...
...
@@ -35,8 +35,8 @@ export default [
],
},
{
path
:
'/data
s
tudio'
,
name
:
'data
s
tudio'
,
path
:
'/data
S
tudio'
,
name
:
'data
S
tudio'
,
icon
:
'consoleSql'
,
footerRender
:
false
,
component
:
'./DataStudio'
,
...
...
@@ -131,31 +131,31 @@ export default [
],
},
{
name
:
'authentication
c
enter'
,
name
:
'authentication
C
enter'
,
icon
:
'SafetyCertificateOutlined'
,
path
:
'/authentication
c
enter'
,
path
:
'/authentication
C
enter'
,
routes
:
[
{
path
:
'/authentication
center/userm
anager'
,
name
:
'user
m
anager'
,
path
:
'/authentication
Center/userM
anager'
,
name
:
'user
M
anager'
,
icon
:
'UserOutlined'
,
component
:
'./AuthenticationCenter/UserManager'
,
},
{
path
:
'/authentication
center/rolem
anager'
,
name
:
'role
m
anager'
,
path
:
'/authentication
Center/roleM
anager'
,
name
:
'role
M
anager'
,
icon
:
'TeamOutlined'
,
component
:
'./AuthenticationCenter/RoleManager'
,
},
{
path
:
'/authentication
center/namespacem
anager'
,
name
:
'namespace
m
anager'
,
path
:
'/authentication
Center/namespaceM
anager'
,
name
:
'namespace
M
anager'
,
icon
:
'BulbOutlined'
,
component
:
'./AuthenticationCenter/NamespaceManager'
,
},
{
path
:
'/authentication
center/tenantm
anager'
,
name
:
'tenant
m
anager'
,
path
:
'/authentication
Center/tenantM
anager'
,
name
:
'tenant
M
anager'
,
icon
:
'SecurityScanOutlined'
,
component
:
'./AuthenticationCenter/TenantManager'
,
},
...
...
@@ -163,33 +163,33 @@ export default [
},
{
path
:
'/'
,
redirect
:
'/data
s
tudio'
,
redirect
:
'/data
S
tudio'
,
},
{
name
:
'settings'
,
icon
:
'setting'
,
path
:
'/setting
c
enter'
,
path
:
'/setting
C
enter'
,
routes
:
[
{
path
:
'/setting
center/flinks
ettings'
,
path
:
'/setting
Center/flinkS
ettings'
,
name
:
'flinkConfig'
,
icon
:
'setting'
,
component
:
'./SettingCenter/FlinkSettings'
,
},
{
path
:
'/setting
c
enter/udfTemplate'
,
path
:
'/setting
C
enter/udfTemplate'
,
name
:
'udfTemplate'
,
icon
:
'setting'
,
component
:
'./SettingCenter/UDFTemplate'
,
},
{
path
:
'/setting
center/systemi
nfo'
,
path
:
'/setting
Center/systemI
nfo'
,
name
:
'systemInfo'
,
icon
:
'desktop'
,
component
:
'./SettingCenter/SystemInfo'
,
},
{
path
:
'/setting
c
enter/processList'
,
path
:
'/setting
C
enter/processList'
,
name
:
'processList'
,
icon
:
'desktop'
,
component
:
'./SettingCenter/ProcessList'
,
...
...
dlink-web/src/components/Footer/index.tsx
View file @
ed477bcb
...
...
@@ -23,13 +23,13 @@ import {GithubOutlined} from '@ant-design/icons';
import
{
DefaultFooter
}
from
'@ant-design/pro-layout'
;
export
default
()
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
defaultMessage
=
l
(
'app.copyright.produced'
,
'Dinky'
);
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
}
);
return
(
<
DefaultFooter
copyright=
{
`2022 ${defaultMessage}`
}
copyright=
{
l
(
'app.copyright.produced'
,
'Produced by Dinky Community'
)
}
links=
{
[
{
key
:
'Dinky'
,
...
...
dlink-web/src/components/Studio/StudioConsole/index.tsx
View file @
ed477bcb
...
...
@@ -41,8 +41,8 @@ const {TabPane} = Tabs;
const
StudioConsole
=
(
props
:
any
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
height
,
current
}
=
props
;
let
consoleHeight
=
(
height
-
37.6
);
...
...
dlink-web/src/components/Studio/StudioHome/index.tsx
View file @
ed477bcb
...
...
@@ -27,8 +27,10 @@ import {VERSION} from "@/components/Common/Version";
const
{
Title
,
Paragraph
,
Text
}
=
Typography
;
const
StudioHome
=
(
props
:
any
)
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
toolHeight
}
=
props
;
return
(
...
...
dlink-web/src/components/Studio/StudioLeftTool/index.tsx
View file @
ed477bcb
...
...
@@ -42,8 +42,9 @@ import StudioFragment from "@/components/Studio/StudioLeftTool/StudioFragment";
const
{
TabPane
}
=
Tabs
;
const
StudioLeftTool
=
(
props
:
any
)
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
useIntl
().
formatMessage
({
id
,
defaultMessage
})
const
{
toolHeight
}
=
props
;
return
(
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioGuide/index.tsx
View file @
ed477bcb
...
...
@@ -28,8 +28,8 @@ import { history,useIntl } from 'umi';
const
{
Title
,
Paragraph
,
Link
,
Text
}
=
Typography
;
const
StudioGuide
=
(
props
:
any
)
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
useIntl
().
formatMessage
({
id
,
defaultMessage
});
const
{
toolHeight
}
=
props
;
...
...
dlink-web/src/components/Studio/StudioRightTool/StudioSqlConfig/index.tsx
View file @
ed477bcb
...
...
@@ -32,14 +32,13 @@ const { Option } = Select;
const
StudioSqlConfig
=
(
props
:
any
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
current
,
form
,
dispatch
,
tabs
,
database
,
toolHeight
}
=
props
;
form
.
setFieldsValue
(
current
.
task
);
const
onValuesChange
=
(
change
:
any
,
all
:
any
)
=>
{
let
newTabs
=
tabs
;
for
(
let
i
=
0
;
i
<
newTabs
.
panes
.
length
;
i
++
){
...
...
dlink-web/src/locales/en-US.ts
View file @
ed477bcb
...
...
@@ -32,7 +32,7 @@ export default {
'layout.user.link.help'
:
'Help'
,
'layout.user.link.privacy'
:
'Privacy'
,
'layout.user.link.terms'
:
'Terms'
,
'app.copyright.produced'
:
'
Produced by DataLink
Community'
,
'app.copyright.produced'
:
'
2022 Produced by Dinky
Community'
,
'app.preview.down.block'
:
'Download this page to your local project'
,
'app.welcome.link.fetch-blocks'
:
'Get all block'
,
'app.welcome.link.block-list'
:
'Quickly build standard, pages based on `block` development'
,
...
...
dlink-web/src/locales/en-US/menu.ts
View file @
ed477bcb
...
...
@@ -74,7 +74,7 @@ export default {
'menu.account.logout'
:
'Logout'
,
'menu.data
s
tudio'
:
'Data Studio'
,
'menu.data
S
tudio'
:
'Data Studio'
,
'menu.devops'
:
'Devops'
,
'menu.job'
:
'Job Instance'
,
...
...
@@ -82,7 +82,7 @@ export default {
'menu.datacenter'
:
'Meta Data Center'
,
'menu.datacenter.metadata'
:
'Meta Data'
,
'menu.registration'
:
'Regist Center'
,
'menu.registration'
:
'Regist
ration
Center'
,
'menu.registration.cluster'
:
'Cluster Management'
,
'menu.registration.cluster.clusterInstance'
:
'Cluster Instance'
,
'menu.registration.cluster.clusterConfiguration'
:
'Cluster Config'
,
...
...
@@ -94,11 +94,11 @@ export default {
'menu.registration.document'
:
'Document Management'
,
'menu.registration.fragment'
:
'Global Variable Management'
,
'menu.authentication
c
enter'
:
'Authentication Center'
,
'menu.authentication
center.userm
anager'
:
'User Management'
,
'menu.authentication
center.namespacem
anager'
:
'NameSpace Management'
,
'menu.authentication
center.rolem
anager'
:
'Role Management'
,
'menu.authentication
center.tenantm
anager'
:
'Tenant Management'
,
'menu.authentication
C
enter'
:
'Authentication Center'
,
'menu.authentication
Center.userM
anager'
:
'User Management'
,
'menu.authentication
Center.namespaceM
anager'
:
'NameSpace Management'
,
'menu.authentication
Center.roleM
anager'
:
'Role Management'
,
'menu.authentication
Center.tenantM
anager'
:
'Tenant Management'
,
'menu.settings'
:
'Setting Center'
,
'menu.settings.flinkConfig'
:
'Flink Settings'
,
...
...
dlink-web/src/locales/en-US/pages.ts
View file @
ed477bcb
...
...
@@ -46,7 +46,7 @@ export default {
'pages.welcome.advancedComponent'
:
'Advanced Component'
,
'pages.welcome.link'
:
'Welcome'
,
'pages.welcome.advancedLayout'
:
'Advanced Layout'
,
'pages.welcome.alertMessage'
:
'Faster And Stronger Heavy-duty Components Have Been Released'
,
'pages.welcome.alertMessage'
:
'Faster And Stronger Heavy-duty Components Have Been Released
{version}.
'
,
'pages.admin.subPage.title'
:
'This Page Can Only Be Viewed By Admin'
,
'pages.admin.subPage.alertMessage'
:
'Umi UI Is Now Released, Welcome To Use Npm Run UI To Start The Experience.'
,
...
...
@@ -85,7 +85,7 @@ export default {
'pages.searchTable.item'
:
'Item'
,
'pages.searchTable.totalServiceCalls'
:
'Total Number Of Service Calls'
,
'pages.searchTable.tenThousand'
:
'0000'
,
'pages.searchTable.batchDeletion'
:
'Ba
ct
h Deletion'
,
'pages.searchTable.batchDeletion'
:
'Ba
tc
h Deletion'
,
'pages.searchTable.batchApproval'
:
'Batch Approval'
,
...
...
dlink-web/src/locales/zh-CN.ts
View file @
ed477bcb
...
...
@@ -35,7 +35,7 @@ export default {
'app.preview.down.block'
:
'下载此页面到本地项目'
,
'app.welcome.link.fetch-blocks'
:
'获取全部区块'
,
'app.welcome.link.block-list'
:
'基于 block 开发,快速构建标准页面'
,
'app.copyright.produced'
:
'
Produced by DataLink
Community'
,
'app.copyright.produced'
:
'
2022 Produced by Dinky
Community'
,
...
pages
,
...
globalHeader
,
...
menu
,
...
...
dlink-web/src/locales/zh-CN/menu.ts
View file @
ed477bcb
...
...
@@ -78,7 +78,7 @@ export default {
'menu.account.checkTenant'
:
'切换租户'
,
'menu.account.logout'
:
'退出登录'
,
'menu.data
s
tudio'
:
'数据开发'
,
'menu.data
S
tudio'
:
'数据开发'
,
'menu.devops'
:
'运维中心'
,
'menu.job'
:
'作业实例'
,
...
...
@@ -98,11 +98,11 @@ export default {
'menu.registration.document'
:
'文档管理'
,
'menu.registration.fragment'
:
'全局变量管理'
,
'menu.authentication
c
enter'
:
'认证中心'
,
'menu.authentication
center.userm
anager'
:
'用户管理'
,
'menu.authentication
center.namespacem
anager'
:
'命名空间管理'
,
'menu.authentication
center.rolem
anager'
:
'角色管理'
,
'menu.authentication
center.tenantm
anager'
:
'租户管理'
,
'menu.authentication
C
enter'
:
'认证中心'
,
'menu.authentication
Center.userM
anager'
:
'用户管理'
,
'menu.authentication
Center.namespaceM
anager'
:
'命名空间管理'
,
'menu.authentication
Center.roleM
anager'
:
'角色管理'
,
'menu.authentication
Center.tenantM
anager'
:
'租户管理'
,
'menu.settings'
:
'配置中心'
,
'menu.settings.flinkConfig'
:
'Flink 配置'
,
...
...
dlink-web/src/locales/zh-CN/pages.ts
View file @
ed477bcb
...
...
@@ -49,7 +49,7 @@ export default {
'pages.welcome.link'
:
'欢迎加入'
,
'pages.welcome.star'
:
'欢迎 Star '
,
'pages.welcome.advancedLayout'
:
'Github'
,
'pages.welcome.alertMessage'
:
'实时计算平台 Dinky 即将发布,目前为体验版,版本号为 '
,
'pages.welcome.alertMessage'
:
'实时计算平台 Dinky 即将发布,目前为体验版,版本号为
{version}。
'
,
'pages.admin.subPage.title'
:
' 这个页面只有 admin 权限才能查看'
,
'pages.admin.subPage.alertMessage'
:
'umi ui 现已发布,欢迎使用 npm run ui 启动体验。'
,
'pages.searchTable.createForm.newRule'
:
'新建规则'
,
...
...
@@ -111,7 +111,7 @@ export default {
'pages.settings.Flink'
:
'Flink 设置'
,
'pages.settings.FlinkURL'
:
'提交 Jar 文件路径到 FlinkSQL'
,
'pages.settings.FlinkSQLJarMainParameter'
:
'
将主类条目提交到 FlinkSQL 的 Jar
'
,
'pages.settings.FlinkSQLJarMainParameter'
:
'
提交FlinkSQL的Jar的主类入参
'
,
'pages.settings.FlinkSQLJarMainClass'
:
'提交FlinkSQL的Jar主类'
,
'pages.settings.FlinkRestAPI'
:
'使用 Rest API'
,
'pages.settings.FlinkURLSplit'
:
'FlinkSQL 语句分隔符'
,
...
...
dlink-web/src/pages/Admin.tsx
View file @
ed477bcb
...
...
@@ -26,8 +26,8 @@ import {useIntl} from 'umi';
export
default
():
React
.
ReactNode
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
return
(
<
PageHeaderWrapper
...
...
dlink-web/src/pages/Cluster/components/ClusterForm.tsx
View file @
ed477bcb
...
...
@@ -40,10 +40,8 @@ const formLayout = {
const
ClusterForm
:
React
.
FC
<
ClusterFormProps
>
=
(
props
)
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
[
form
]
=
Form
.
useForm
();
const
[
formVals
,
setFormVals
]
=
useState
<
Partial
<
ClusterTableListItem
>>
({
...
...
@@ -88,8 +86,9 @@ const ClusterForm: React.FC<ClusterFormProps> = (props) => {
<
Form
.
Item
name=
"type"
label=
"类型"
rules=
{
[{
required
:
true
,
message
:
'请选择集群类型!'
}]
}
>
<
Select
defaultValue=
{
RUN_MODE
.
YARN_SESSION
}
allowClear
>
<
Select
>
<
Option
value=
{
RUN_MODE
.
STANDALONE
}
>
Standalone
</
Option
>
<
Option
value=
{
RUN_MODE
.
YARN_SESSION
}
>
Yarn Session
</
Option
>
<
Option
value=
{
RUN_MODE
.
YARN_PER_JOB
}
>
Yarn Per-Job
</
Option
>
...
...
dlink-web/src/pages/Cluster/index.tsx
View file @
ed477bcb
...
...
@@ -48,8 +48,8 @@ const url = '/api/cluster';
const
ClusterTableList
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
dispatch
}
=
props
;
const
[
modalVisible
,
handleModalVisible
]
=
useState
<
boolean
>
(
false
);
...
...
dlink-web/src/pages/DataBase/Columns/index.tsx
View file @
ed477bcb
...
...
@@ -25,9 +25,8 @@ import {useIntl} from 'umi';
const
Columns
=
(
props
:
any
)
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
dbId
,
table
,
schema
,
scroll
}
=
props
;
...
...
dlink-web/src/pages/DataCenter/MetaData/TableData/index.tsx
View file @
ed477bcb
...
...
@@ -29,8 +29,8 @@ import {useIntl} from 'umi';
const
TableData
=
(
props
:
any
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
// 数据库id,数据库名称,表名称
const
{
dbId
,
table
,
schema
}
=
props
;
...
...
dlink-web/src/pages/DataCenter/MetaData/index.tsx
View file @
ed477bcb
...
...
@@ -50,8 +50,8 @@ const {TabPane} = Tabs;
const
MetaDataContainer
:
React
.
FC
<
{}
>
=
(
props
:
any
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
let
[
database
,
setDatabase
]
=
useState
<
[{
id
:
number
,
...
...
dlink-web/src/pages/DevOps/JobInstanceTable/index.tsx
View file @
ed477bcb
...
...
@@ -44,8 +44,8 @@ const url = '/api/jobInstance';
const
JobInstanceTable
=
(
props
:
any
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
status
,
activeKey
,
isHistory
,
taskStatus
}
=
props
;
const
[
time
,
setTime
]
=
useState
(()
=>
Date
.
now
());
...
...
dlink-web/src/pages/DevOps/index.tsx
View file @
ed477bcb
...
...
@@ -32,8 +32,8 @@ const {Statistic} = StatisticCard;
const
DevOps
=
()
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
[
isHistory
,
setIsHistory
]
=
useState
<
boolean
>
(
false
);
...
...
dlink-web/src/pages/SettingCenter/FlinkSettings/components/flinkConfig.tsx
View file @
ed477bcb
...
...
@@ -37,8 +37,8 @@ type FlinkConfigProps = {
const
FlinkConfigView
:
React
.
FC
<
FlinkConfigProps
>
=
(
props
)
=>
{
const
int
ernationa
l
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
)
=>
intl
.
formatMessage
({
id
,
defaultMessage
});
const
{
sqlSubmitJarPath
,
...
...
@@ -127,7 +127,7 @@ const FlinkConfigView: React.FC<FlinkConfigProps> = (props) => {
},
{
title
:
l
(
'pages.settings.FlinkSQLLogic'
,
'使用逻辑计划计算血缘'
),
description
:
l
(
'pages.settings.Flink
NoUseSetting
'
,
'在计算 Flink 任务的字段血缘分析时是否基于逻辑计划进行,只支持 1.14 版本'
),
description
:
l
(
'pages.settings.Flink
Logic
'
,
'在计算 Flink 任务的字段血缘分析时是否基于逻辑计划进行,只支持 1.14 版本'
),
actions
:
[
<
Form
.
Item
name=
"useLogicalPlan"
valuePropName=
"checked"
...
...
dlink-web/src/pages/Welcome.tsx
View file @
ed477bcb
...
...
@@ -34,15 +34,14 @@ const CodePreview: React.FC = ({children}) => (
export
default
():
React
.
ReactNode
=>
{
const
international
=
useIntl
();
const
l
=
(
key
:
string
,
defaultMsg
?:
string
)
=>
international
.
formatMessage
({
id
:
key
,
defaultMessage
:
defaultMsg
})
const
intl
=
useIntl
();
const
l
=
(
id
:
string
,
defaultMessage
?:
string
,
value
?:
{})
=>
intl
.
formatMessage
({
id
,
defaultMessage
},
value
);
return
(
<>
<
Card
>
<
Alert
message=
{
l
(
'pages.welcome.alertMessage'
,
'实时计算平台 Dinky 即将发布,目前为体验版,版本号为 '
)
+
VERSION
+
'。'
}
message=
{
l
(
'pages.welcome.alertMessage'
,
'实时计算平台 Dinky 即将发布,目前为体验版,版本号为 '
,
{
version
:
VERSION
})
}
type=
"success"
showIcon
banner
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment