Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dlink
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
zhaowei
dlink
Commits
edb23f49
Commit
edb23f49
authored
Jan 23, 2022
by
wenmo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化 作业配置查看及全屏开发按钮
parent
61199f15
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
50 deletions
+60
-50
index.tsx
...c/components/Studio/StudioConsole/StudioHistory/index.tsx
+36
-13
index.tsx
dlink-web/src/components/Studio/StudioConsole/index.tsx
+0
-26
index.tsx
dlink-web/src/components/Studio/StudioMenu/index.tsx
+14
-1
index.tsx
dlink-web/src/components/Studio/StudioRightTool/index.tsx
+1
-3
Welcome.tsx
dlink-web/src/pages/Welcome.tsx
+4
-1
document.ejs
dlink-web/src/pages/document.ejs
+5
-6
No files found.
dlink-web/src/components/Studio/StudioConsole/StudioHistory/index.tsx
View file @
edb23f49
...
@@ -39,19 +39,24 @@ type HistoryItem = {
...
@@ -39,19 +39,24 @@ type HistoryItem = {
};
};
type
HistoryConfig
=
{
type
HistoryConfig
=
{
useSession
:
boolean
;
useSession
:
boolean
;
session
:
string
;
session
:
string
;
useRemote
:
boolean
;
useRemote
:
boolean
;
clusterId
:
number
;
type
:
string
;
host
:
string
;
clusterId
:
number
;
useResult
:
boolean
;
clusterConfigurationId
:
number
;
maxRowNum
:
number
;
host
:
string
;
taskId
:
number
;
useResult
:
boolean
;
jobName
:
string
;
useChangeLog
:
boolean
;
useSqlFragment
:
boolean
;
maxRowNum
:
number
;
checkpoint
:
number
;
useAutoCancel
:
boolean
;
parallelism
:
number
;
taskId
:
number
;
savePointPath
:
string
;
jobName
:
string
;
useSqlFragment
:
boolean
;
useStatementSet
:
boolean
;
checkpoint
:
number
;
parallelism
:
number
;
savePointPath
:
string
;
};
};
const
url
=
'/api/history'
;
const
url
=
'/api/history'
;
...
@@ -289,15 +294,27 @@ const StudioHistory = (props: any) => {
...
@@ -289,15 +294,27 @@ const StudioHistory = (props: any) => {
<
ProDescriptions
.
Item
label=
"执行方式"
>
<
ProDescriptions
.
Item
label=
"执行方式"
>
{
config
.
useRemote
?
'远程'
:
'本地'
}
{
config
.
useRemote
?
'远程'
:
'本地'
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"任务类型"
>
{
config
.
type
}
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"集群ID"
>
<
ProDescriptions
.
Item
label=
"集群ID"
>
{
config
.
clusterId
}
{
config
.
clusterId
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"集群配置ID"
>
{
config
.
clusterConfigurationId
}
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"预览结果"
>
<
ProDescriptions
.
Item
label=
"预览结果"
>
{
config
.
useResult
?
'启用'
:
'禁用'
}
{
config
.
useResult
?
'启用'
:
'禁用'
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"打印流"
>
{
config
.
useChangeLog
?
'启用'
:
'禁用'
}
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"最大行数"
>
<
ProDescriptions
.
Item
label=
"最大行数"
>
{
config
.
maxRowNum
}
{
config
.
maxRowNum
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"自动停止"
>
{
config
.
useAutoCancel
?
'启用'
:
'禁用'
}
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
span=
{
2
}
label=
"JobManagerAddress"
>
<
ProDescriptions
.
Item
span=
{
2
}
label=
"JobManagerAddress"
>
{
row
.
jobManagerAddress
}
{
row
.
jobManagerAddress
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
...
@@ -310,12 +327,18 @@ const StudioHistory = (props: any) => {
...
@@ -310,12 +327,18 @@ const StudioHistory = (props: any) => {
<
ProDescriptions
.
Item
label=
"片段机制"
>
<
ProDescriptions
.
Item
label=
"片段机制"
>
{
config
.
useSqlFragment
?
'启用'
:
'禁用'
}
{
config
.
useSqlFragment
?
'启用'
:
'禁用'
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"语句集"
>
{
config
.
useStatementSet
?
'启用'
:
'禁用'
}
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"并行度"
>
<
ProDescriptions
.
Item
label=
"并行度"
>
{
config
.
parallelism
}
{
config
.
parallelism
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"CheckPoint"
>
<
ProDescriptions
.
Item
label=
"CheckPoint"
>
{
config
.
checkpoint
}
{
config
.
checkpoint
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"savePoint 机制"
>
{
config
.
savePointStrategy
}
</
ProDescriptions
.
Item
>
<
ProDescriptions
.
Item
label=
"SavePointPath"
>
<
ProDescriptions
.
Item
label=
"SavePointPath"
>
{
config
.
savePointPath
}
{
config
.
savePointPath
}
</
ProDescriptions
.
Item
>
</
ProDescriptions
.
Item
>
...
...
dlink-web/src/components/Studio/StudioConsole/index.tsx
View file @
edb23f49
...
@@ -64,19 +64,6 @@ const StudioConsole = (props: any) => {
...
@@ -64,19 +64,6 @@ const StudioConsole = (props: any) => {
{
current
?
<
Chart
height=
{
consoleHeight
}
/>:<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
{
current
?
<
Chart
height=
{
consoleHeight
}
/>:<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
}
</
Scrollbars
>
</
Scrollbars
>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
{
<
span
>
<
RadarChartOutlined
/>
指标
</
span
>
}
key=
"StudioMetrics"
>
<
Scrollbars
style=
{
{
height
:
consoleHeight
}
}
>
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
</
Scrollbars
>
</
TabPane
>
<
TabPane
<
TabPane
tab=
{
tab=
{
<
span
>
<
span
>
...
@@ -129,19 +116,6 @@ const StudioConsole = (props: any) => {
...
@@ -129,19 +116,6 @@ const StudioConsole = (props: any) => {
<
StudioFX
/>
<
StudioFX
/>
</
Scrollbars
>
</
Scrollbars
>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
{
<
span
>
<
FileSearchOutlined
/>
文档
</
span
>
}
key=
"StudioDocument"
>
<
Scrollbars
style=
{
{
height
:
consoleHeight
}
}
>
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
</
Scrollbars
>
</
TabPane
>
</
Tabs
>
</
Tabs
>
);
);
};
};
...
...
dlink-web/src/components/Studio/StudioMenu/index.tsx
View file @
edb23f49
...
@@ -2,7 +2,7 @@ import styles from "./index.less";
...
@@ -2,7 +2,7 @@ import styles from "./index.less";
import
{
Menu
,
Dropdown
,
Tooltip
,
Row
,
Col
,
Popconfirm
,
notification
,
Modal
,
message
}
from
"antd"
;
import
{
Menu
,
Dropdown
,
Tooltip
,
Row
,
Col
,
Popconfirm
,
notification
,
Modal
,
message
}
from
"antd"
;
import
{
import
{
PauseCircleTwoTone
,
CopyTwoTone
,
DeleteTwoTone
,
PlayCircleTwoTone
,
DiffTwoTone
,
SnippetsTwoTone
,
PauseCircleTwoTone
,
CopyTwoTone
,
DeleteTwoTone
,
PlayCircleTwoTone
,
DiffTwoTone
,
SnippetsTwoTone
,
FileAddTwoTone
,
FolderOpenTwoTone
,
SafetyCertificateTwoTone
,
SaveTwoTone
,
FlagTwoTone
,
FileAddTwoTone
,
FolderOpenTwoTone
,
SafetyCertificateTwoTone
,
SaveTwoTone
,
FlagTwoTone
,
CodeTwoTone
,
EnvironmentOutlined
,
SmileOutlined
,
RocketTwoTone
,
QuestionCircleTwoTone
,
MessageOutlined
,
ClusterOutlined
EnvironmentOutlined
,
SmileOutlined
,
RocketTwoTone
,
QuestionCircleTwoTone
,
MessageOutlined
,
ClusterOutlined
}
from
"@ant-design/icons"
;
}
from
"@ant-design/icons"
;
import
Space
from
"antd/es/space"
;
import
Space
from
"antd/es/space"
;
...
@@ -246,6 +246,12 @@ const StudioMenu = (props: any) => {
...
@@ -246,6 +246,12 @@ const StudioMenu = (props: any) => {
return
str
.
replace
(
/&
(
lt|gt|nbsp|amp|quot
)
;/ig
,
function
(
all
,
t
){
return
arrEntities
[
t
];});
return
str
.
replace
(
/&
(
lt|gt|nbsp|amp|quot
)
;/ig
,
function
(
all
,
t
){
return
arrEntities
[
t
];});
}
}
const
toFullScreen
=
()
=>
{
if
(
current
)
{
props
.
changeFullScreen
(
true
);
}
};
const
saveSqlAndSettingToTask
=
()
=>
{
const
saveSqlAndSettingToTask
=
()
=>
{
props
.
saveTask
(
current
);
props
.
saveTask
(
current
);
};
};
...
@@ -336,6 +342,13 @@ const StudioMenu = (props: any) => {
...
@@ -336,6 +342,13 @@ const StudioMenu = (props: any) => {
</
Col
>
</
Col
>
{
current
?
{
current
?
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
Tooltip
title=
"全屏开发"
>
<
Button
type=
"text"
icon=
{
<
CodeTwoTone
/>
}
onClick=
{
toFullScreen
}
/>
</
Tooltip
>
<
Button
<
Button
type=
"text"
type=
"text"
icon=
{
<
FileAddTwoTone
twoToneColor=
"#ddd"
/>
}
icon=
{
<
FileAddTwoTone
twoToneColor=
"#ddd"
/>
}
...
...
dlink-web/src/components/Studio/StudioRightTool/index.tsx
View file @
edb23f49
...
@@ -64,9 +64,7 @@ const StudioRightTool = (props: any) => {
...
@@ -64,9 +64,7 @@ const StudioRightTool = (props: any) => {
<
TabPane
tab=
{
<
span
><
ScheduleOutlined
/>
保存点
</
span
>
}
key=
"StudioSavePoint"
>
<
TabPane
tab=
{
<
span
><
ScheduleOutlined
/>
保存点
</
span
>
}
key=
"StudioSavePoint"
>
<
StudioSavePoint
/>
<
StudioSavePoint
/>
</
TabPane
>
</
TabPane
>
<
TabPane
tab=
{
<
span
><
AuditOutlined
/>
审计
</
span
>
}
key=
"Other"
>
</>)
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
</
TabPane
></>)
};
};
return
(
return
(
...
...
dlink-web/src/pages/Welcome.tsx
View file @
edb23f49
...
@@ -564,7 +564,7 @@ export default (): React.ReactNode => {
...
@@ -564,7 +564,7 @@ export default (): React.ReactNode => {
</
ul
>
</
ul
>
</
Paragraph
>
</
Paragraph
>
</
Timeline
.
Item
>
</
Timeline
.
Item
>
<
Timeline
.
Item
><
Text
code
>
0.5.1
</
Text
>
<
Text
type=
"secondary"
>
2022-01-
?
</
Text
>
<
Timeline
.
Item
><
Text
code
>
0.5.1
</
Text
>
<
Text
type=
"secondary"
>
2022-01-
23
</
Text
>
<
p
>
</
p
>
<
p
>
</
p
>
<
Paragraph
>
<
Paragraph
>
<
ul
>
<
ul
>
...
@@ -616,6 +616,9 @@ export default (): React.ReactNode => {
...
@@ -616,6 +616,9 @@ export default (): React.ReactNode => {
<
li
>
<
li
>
<
Link
>
修复 Flink 1.14 提交任务报错缺类 bug
</
Link
>
<
Link
>
修复 Flink 1.14 提交任务报错缺类 bug
</
Link
>
</
li
>
</
li
>
<
li
>
<
Link
>
优化 作业配置查看及全屏开发按钮
</
Link
>
</
li
>
</
ul
>
</
ul
>
</
Paragraph
>
</
Paragraph
>
</
Timeline
.
Item
>
</
Timeline
.
Item
>
...
...
dlink-web/src/pages/document.ejs
View file @
edb23f49
...
@@ -14,15 +14,14 @@
...
@@ -14,15 +14,14 @@
/>
/>
<meta
<meta
name=
"description"
name=
"description"
content=
"
content=
"实时计算平台"
开箱即用的中台前端/设计解决方案。"
/>
/>
<meta
<meta
name=
"viewport"
name=
"viewport"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
content=
"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
/>
/>
<title>
Ant Design Pro
</title>
<title>
Dinky
</title>
<link
rel=
"icon"
href=
"<%= context.config.publicPath +'
favicon.ico
'%>"
type=
"image/x-icon"
/>
<link
rel=
"icon"
href=
"<%= context.config.publicPath +'
dinky.svg
'%>"
type=
"image/x-icon"
/>
</head>
</head>
<body>
<body>
<noscript>
Out-of-the-box mid-stage front/design solution!
</noscript>
<noscript>
Out-of-the-box mid-stage front/design solution!
</noscript>
...
@@ -201,11 +200,11 @@
...
@@ -201,11 +200,11 @@
</div>
</div>
<div
style=
"display: flex; align-items: center; justify-content: center"
>
<div
style=
"display: flex; align-items: center; justify-content: center"
>
<img
<img
src=
"
https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg
"
src=
"
<%= context.config.publicPath +'dinky.svg'%>
"
width=
"32"
width=
"32"
style=
"margin-right: 8px"
style=
"margin-right: 8px"
/>
/>
Ant Design
Dinky
</div>
</div>
</div>
</div>
</div>
</div>
...
...
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