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
20272b32
Unverified
Commit
20272b32
authored
Sep 28, 2023
by
ZackYoung
Committed by
GitHub
Sep 28, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add_clear_page_cache (#2348)
parent
21b2c228
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
91 additions
and
58 deletions
+91
-58
index.tsx
dinky-web/src/components/FlinkDag/index.tsx
+25
-13
AvatarDropdown.tsx
dinky-web/src/components/RightContent/AvatarDropdown.tsx
+13
-1
global.ts
dinky-web/src/locales/en-US/global.ts
+1
-0
menu.ts
dinky-web/src/locales/en-US/menu.ts
+1
-0
global.ts
dinky-web/src/locales/zh-CN/global.ts
+2
-0
menu.ts
dinky-web/src/locales/zh-CN/menu.ts
+1
-0
index.tsx
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
+0
-16
JobManagerLogsTab.tsx
...DevOps/JobDetail/JobLogs/components/JobManagerLogsTab.tsx
+12
-4
index.tsx
dinky-web/src/pages/DevOps/JobList/index.tsx
+2
-2
index.tsx
dinky-web/src/pages/Home/JobOverView/JobErrorView/index.tsx
+17
-8
index.tsx
dinky-web/src/pages/Home/JobOverView/index.tsx
+17
-14
No files found.
dinky-web/src/components/FlinkDag/index.tsx
View file @
20272b32
...
@@ -19,14 +19,16 @@
...
@@ -19,14 +19,16 @@
import
DagDataNode
from
'@/components/FlinkDag/component/DagDataNode'
;
import
DagDataNode
from
'@/components/FlinkDag/component/DagDataNode'
;
import
DagPlanNode
from
'@/components/FlinkDag/component/DagPlanNode'
;
import
DagPlanNode
from
'@/components/FlinkDag/component/DagPlanNode'
;
import
{
edgeConfig
,
graphConfig
,
layoutConfig
,
portConfig
}
from
'@/components/FlinkDag/config'
;
import
{
edgeConfig
,
graphConfig
,
layoutConfig
,
portConfig
}
from
'@/components/FlinkDag/config'
;
import
{
buildDag
,
regConnect
,
updateDag
}
from
'@/components/FlinkDag/functions'
;
import
{
buildDag
,
regConnect
,
updateDag
}
from
'@/components/FlinkDag/functions'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
DagreLayout
}
from
'@antv/layout'
;
import
{
DagreLayout
}
from
'@antv/layout'
;
import
{
Edge
,
Graph
}
from
'@antv/x6'
;
import
{
Edge
,
Graph
}
from
'@antv/x6'
;
import
{
register
}
from
'@antv/x6-react-shape'
;
import
{
register
}
from
'@antv/x6-react-shape'
;
import
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
{
useEffect
,
useRef
,
useState
}
from
'react'
;
import
'./index.css'
;
import
'./index.css'
;
import
{
Slider
}
from
"antd"
;
import
{
z
}
from
"@umijs/utils/compiled/zod"
;
export
type
DagProps
=
{
export
type
DagProps
=
{
job
:
Jobs
.
Job
;
job
:
Jobs
.
Job
;
...
@@ -36,10 +38,11 @@ export type DagProps = {
...
@@ -36,10 +38,11 @@ export type DagProps = {
const
FlinkDag
=
(
props
:
DagProps
)
=>
{
const
FlinkDag
=
(
props
:
DagProps
)
=>
{
const
container
=
useRef
(
null
);
const
container
=
useRef
(
null
);
const
{
job
,
onlyPlan
=
false
}
=
props
;
const
{
job
,
onlyPlan
=
false
}
=
props
;
const
[
graph
,
setGraph
]
=
useState
<
Graph
>
();
const
[
graph
,
setGraph
]
=
useState
<
Graph
>
();
const
[
curentJob
,
setCurentJob
]
=
useState
<
string
>
();
const
[
zoom
,
setZoom
]
=
useState
<
number
>
(
1
);
const
[
currentJob
,
setCurrentJob
]
=
useState
<
string
>
();
const
initGraph
=
(
flinkData
:
any
)
=>
{
const
initGraph
=
(
flinkData
:
any
)
=>
{
register
({
register
({
...
@@ -71,10 +74,11 @@ const FlinkDag = (props: DagProps) => {
...
@@ -71,10 +74,11 @@ const FlinkDag = (props: DagProps) => {
left
:
50
,
left
:
50
,
right
:
50
,
right
:
50
,
bottom
:
100
bottom
:
100
}
},
};
};
graph
.
zoomToFit
(
zoomOptions
);
graph
.
zoomToFit
(
zoomOptions
);
graph
.
centerContent
();
graph
.
centerContent
();
graph
.
on
(
'scale'
,
({
sx
})
=>
setZoom
(
sx
))
updateDag
(
job
.
vertices
,
graph
);
updateDag
(
job
.
vertices
,
graph
);
return
graph
;
return
graph
;
};
};
...
@@ -86,16 +90,23 @@ const FlinkDag = (props: DagProps) => {
...
@@ -86,16 +90,23 @@ const FlinkDag = (props: DagProps) => {
graph
.
clearCells
();
graph
.
clearCells
();
}
}
setGraph
(
initGraph
(
flinkData
));
setGraph
(
initGraph
(
flinkData
));
},
[
curentJob
]);
},
[
currentJob
]);
useEffect
(()
=>
{
graph
?.
zoomTo
(
zoom
)
},
[
zoom
]);
useEffect
(()
=>
{
useEffect
(()
=>
{
updateDag
(
job
.
vertices
,
graph
);
updateDag
(
job
.
vertices
,
graph
);
if
(
cu
rentJob
!=
job
.
jid
)
{
if
(
cur
rentJob
!=
job
.
jid
)
{
setCu
rentJob
(
job
.
jid
);
setCur
rentJob
(
job
.
jid
);
}
}
},
[
job
]);
},
[
job
]);
return
(
return
(
<
span
>
<
div
style=
{
{
height
:
200
,
position
:
"absolute"
,
top
:
"50%"
,
right
:
12
,
marginTop
:
-
100
,
zIndex
:
999999999
}
}
>
<
Slider
vertical
value=
{
zoom
}
min=
{
0.5
}
max=
{
1.5
}
tooltip=
{
{
open
:
false
}
}
step=
{
0.01
}
onChange=
{
setZoom
}
/>
</
div
>
<
div
<
div
style=
{
{
style=
{
{
height
:
'100%'
,
height
:
'100%'
,
...
@@ -103,6 +114,7 @@ const FlinkDag = (props: DagProps) => {
...
@@ -103,6 +114,7 @@ const FlinkDag = (props: DagProps) => {
}
}
}
}
ref=
{
container
}
ref=
{
container
}
/>
/>
</
span
>
);
);
};
};
...
...
dinky-web/src/components/RightContent/AvatarDropdown.tsx
View file @
20272b32
...
@@ -19,7 +19,7 @@ import { chooseTenantSubmit, outLogin } from '@/services/BusinessCrud';
...
@@ -19,7 +19,7 @@ import { chooseTenantSubmit, outLogin } from '@/services/BusinessCrud';
import
{
setTenantStorageAndCookie
}
from
'@/utils/function'
;
import
{
setTenantStorageAndCookie
}
from
'@/utils/function'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
ErrorNotification
,
SuccessNotification
}
from
'@/utils/messages'
;
import
{
ErrorNotification
,
SuccessNotification
}
from
'@/utils/messages'
;
import
{
LogoutOutlined
,
TeamOutlined
,
UserOutlined
,
UserSwitchOutlined
}
from
'@ant-design/icons'
;
import
{
ClearOutlined
,
LogoutOutlined
,
TeamOutlined
,
UserOutlined
,
UserSwitchOutlined
}
from
'@ant-design/icons'
;
import
{
setAlpha
}
from
'@ant-design/pro-components'
;
import
{
setAlpha
}
from
'@ant-design/pro-components'
;
import
{
useEmotionCss
}
from
'@ant-design/use-emotion-css'
;
import
{
useEmotionCss
}
from
'@ant-design/use-emotion-css'
;
import
{
history
,
useModel
}
from
'@umijs/max'
;
import
{
history
,
useModel
}
from
'@umijs/max'
;
...
@@ -212,6 +212,18 @@ const AvatarDropdown = () => {
...
@@ -212,6 +212,18 @@ const AvatarDropdown = () => {
{
{
type
:
'divider'
as
const
type
:
'divider'
as
const
},
},
{
key
:
'clearPageCache'
,
icon
:
<
ClearOutlined
/>,
label
:
l
(
'menu.account.clearPageCache'
),
onClick
:
()
=>
{
window
.
localStorage
.
removeItem
(
'persist:root'
);
window
.
location
.
reload
();
}
},
{
type
:
'divider'
as
const
},
{
{
key
:
'logout'
,
key
:
'logout'
,
icon
:
<
LogoutOutlined
/>,
icon
:
<
LogoutOutlined
/>,
...
...
dinky-web/src/locales/en-US/global.ts
View file @
20272b32
...
@@ -134,6 +134,7 @@ export default {
...
@@ -134,6 +134,7 @@ export default {
'global.table.isEnable'
:
'Is Enable'
,
'global.table.isEnable'
:
'Is Enable'
,
'global.table.note'
:
'Note'
,
'global.table.note'
:
'Note'
,
'global.table.status'
:
'Status'
,
'global.table.status'
:
'Status'
,
'global.table.jobid'
:
'Job ID'
,
'global.table.notePlaceholder'
:
'please input Note'
,
'global.table.notePlaceholder'
:
'please input Note'
,
'global.table.status.normal'
:
'Normal'
,
'global.table.status.normal'
:
'Normal'
,
...
...
dinky-web/src/locales/en-US/menu.ts
View file @
20272b32
...
@@ -31,6 +31,7 @@ export default {
...
@@ -31,6 +31,7 @@ export default {
'menu.account.tenant'
:
'Tenant: {tenantCode}'
,
'menu.account.tenant'
:
'Tenant: {tenantCode}'
,
'menu.account.center'
:
'Account Center'
,
'menu.account.center'
:
'Account Center'
,
'menu.account.logout'
:
'Logout'
,
'menu.account.logout'
:
'Logout'
,
'menu.account.clearPageCache'
:
'Clear Page Cache'
,
'menu.account.changePassword'
:
'Change Password'
,
'menu.account.changePassword'
:
'Change Password'
,
'menu.account.checkTenant'
:
'Switch Tenant'
,
'menu.account.checkTenant'
:
'Switch Tenant'
,
'menu.account.checkTenantConfirm'
:
'Are you sure to switch tenant [ {tenantCode} ] ?'
,
'menu.account.checkTenantConfirm'
:
'Are you sure to switch tenant [ {tenantCode} ] ?'
,
...
...
dinky-web/src/locales/zh-CN/global.ts
View file @
20272b32
...
@@ -132,6 +132,8 @@ export default {
...
@@ -132,6 +132,8 @@ export default {
'global.table.isEnable'
:
'是否启用'
,
'global.table.isEnable'
:
'是否启用'
,
'global.table.note'
:
'备注'
,
'global.table.note'
:
'备注'
,
'global.table.notePlaceholder'
:
'请输入描述/备注!'
,
'global.table.notePlaceholder'
:
'请输入描述/备注!'
,
'global.table.jobid'
:
'作业 ID'
,
'global.table.status'
:
'状态'
,
'global.table.status'
:
'状态'
,
'global.table.status.normal'
:
'正常'
,
'global.table.status.normal'
:
'正常'
,
'global.table.status.abnormal'
:
'异常'
,
'global.table.status.abnormal'
:
'异常'
,
...
...
dinky-web/src/locales/zh-CN/menu.ts
View file @
20272b32
...
@@ -31,6 +31,7 @@ export default {
...
@@ -31,6 +31,7 @@ export default {
'menu.account.tenant'
:
'租户: {tenantCode}'
,
'menu.account.tenant'
:
'租户: {tenantCode}'
,
'menu.account.settings'
:
'个人设置'
,
'menu.account.settings'
:
'个人设置'
,
'menu.account.logout'
:
'退出登录'
,
'menu.account.logout'
:
'退出登录'
,
'menu.account.clearPageCache'
:
'清除页面缓存'
,
'menu.account.changePassword'
:
'修改密码'
,
'menu.account.changePassword'
:
'修改密码'
,
'menu.account.checkTenant'
:
'切换租户'
,
'menu.account.checkTenant'
:
'切换租户'
,
'menu.account.checkTenantConfirm'
:
'你确定切换租户【{tenantCode}】吗?'
,
'menu.account.checkTenantConfirm'
:
'你确定切换租户【{tenantCode}】吗?'
,
...
...
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
View file @
20272b32
...
@@ -181,23 +181,7 @@ const HeaderContainer = (props: any) => {
...
@@ -181,23 +181,7 @@ const HeaderContainer = (props: any) => {
(
getCurrentTab
(
panes
,
activeKey
)?.
params
as
DataStudioParams
).
taskData
.
jobInstanceId
=
(
getCurrentTab
(
panes
,
activeKey
)?.
params
as
DataStudioParams
).
taskData
.
jobInstanceId
=
res
.
datas
.
jobInstanceId
;
res
.
datas
.
jobInstanceId
;
saveTabs
({
...
props
.
tabs
});
saveTabs
({
...
props
.
tabs
});
}
else
{
ErrorNotification
(
res
.
datas
.
error
,
l
(
'pages.datastudio.editor.exec.error'
,
''
,
{
jobName
:
param
.
name
}),
null
);
}
}
// let newTabs = tabs;
// for (const element of newTabs.panes) {
// if (element.key == key) {
// element.console.result = res.datas;
// break;
// }
// }
// props.saveTabs(newTabs);
// useSession && showTables(currentSession.session, dispatch);
}
}
);
);
};
};
...
...
dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/JobManagerLogsTab.tsx
View file @
20272b32
...
@@ -23,6 +23,7 @@ import { API_CONSTANTS } from '@/services/endpoints';
...
@@ -23,6 +23,7 @@ import { API_CONSTANTS } from '@/services/endpoints';
import
{
useRequest
}
from
'@@/exports'
;
import
{
useRequest
}
from
'@@/exports'
;
import
{
ProCard
}
from
'@ant-design/pro-components'
;
import
{
ProCard
}
from
'@ant-design/pro-components'
;
import
{
Spin
,
Tabs
,
Typography
}
from
'antd'
;
import
{
Spin
,
Tabs
,
Typography
}
from
'antd'
;
import
{
EditorLanguage
}
from
"monaco-editor/esm/metadata"
;
const
{
Text
,
Paragraph
}
=
Typography
;
const
{
Text
,
Paragraph
}
=
Typography
;
...
@@ -45,10 +46,17 @@ const JobManagerLogsTab = (props: JobProps) => {
...
@@ -45,10 +46,17 @@ const JobManagerLogsTab = (props: JobProps) => {
params
:
{
address
:
jmaddr
}
params
:
{
address
:
jmaddr
}
});
});
const
getLog
=
(
ur
:
any
)
=>
{
const
getLog
=
(
ur
:
any
,
language
?:
EditorLanguage
)
=>
{
return
(
return
(
<
Spin
spinning=
{
ur
.
loading
}
>
<
Spin
spinning=
{
ur
.
loading
}
>
<
CodeShow
code=
{
ur
.
data
?
ur
.
data
:
'No Log'
}
height=
{
600
}
/>
<
CodeShow
language=
{
language
}
code=
{
ur
.
data
?
ur
.
data
:
'No Log'
}
height=
{
600
}
/>
</
Spin
>
);
};
const
getDump
=
(
ur
:
any
)
=>
{
return
(
<
Spin
spinning=
{
ur
.
loading
}
>
<
CodeShow
language=
{
"kotlin"
}
code=
{
ur
.
data
?
(
JSON
.
parse
(
ur
.
data
)[
'threadInfos'
]
as
any
[]).
map
(
x
=>
x
[
'stringifiedThreadInfo'
]).
join
(
""
)
:
'No Log'
}
height=
{
600
}
/>
</
Spin
>
</
Spin
>
);
);
};
};
...
@@ -58,9 +66,9 @@ const JobManagerLogsTab = (props: JobProps) => {
...
@@ -58,9 +66,9 @@ const JobManagerLogsTab = (props: JobProps) => {
<
Tabs
<
Tabs
size=
{
'small'
}
size=
{
'small'
}
items=
{
[
items=
{
[
{
label
:
'Log'
,
key
:
'LOG'
,
children
:
getLog
(
log
)
},
{
label
:
'Log'
,
key
:
'LOG'
,
children
:
getLog
(
log
,
"java"
)
},
{
label
:
'Std Out'
,
key
:
'STDOUT'
,
children
:
getLog
(
stdout
)
},
{
label
:
'Std Out'
,
key
:
'STDOUT'
,
children
:
getLog
(
stdout
)
},
{
label
:
'Thread Dump'
,
key
:
'DUMP'
,
children
:
get
Log
(
dump
)
}
{
label
:
'Thread Dump'
,
key
:
'DUMP'
,
children
:
get
Dump
(
dump
)
}
]
}
]
}
/>
/>
</
ProCard
>
</
ProCard
>
...
...
dinky-web/src/pages/DevOps/JobList/index.tsx
View file @
20272b32
...
@@ -6,7 +6,7 @@ import { queryList } from '@/services/api';
...
@@ -6,7 +6,7 @@ import { queryList } from '@/services/api';
import
{
PROTABLE_OPTIONS_PUBLIC
}
from
'@/services/constants'
;
import
{
PROTABLE_OPTIONS_PUBLIC
}
from
'@/services/constants'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
import
{
API_CONSTANTS
}
from
'@/services/endpoints'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
parseSecondStr
}
from
'@/utils/function'
;
import
{
parseMilliSecondStr
,
parseSecondStr
}
from
'@/utils/function'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
ClockCircleTwoTone
,
EyeTwoTone
}
from
'@ant-design/icons'
;
import
{
ClockCircleTwoTone
,
EyeTwoTone
}
from
'@ant-design/icons'
;
import
type
{
ActionType
,
ProColumns
}
from
'@ant-design/pro-components'
;
import
type
{
ActionType
,
ProColumns
}
from
'@ant-design/pro-components'
;
...
@@ -53,7 +53,7 @@ const JobList = () => {
...
@@ -53,7 +53,7 @@ const JobList = () => {
{
{
title
:
l
(
'global.table.useTime'
),
title
:
l
(
'global.table.useTime'
),
hideInSearch
:
true
,
hideInSearch
:
true
,
render
:
(
_
:
any
,
row
:
Jobs
.
JobInstance
)
=>
parseSecondStr
(
row
.
duration
)
render
:
(
_
:
any
,
row
:
Jobs
.
JobInstance
)
=>
parse
Milli
SecondStr
(
row
.
duration
)
},
},
{
{
title
:
l
(
'global.table.status'
),
title
:
l
(
'global.table.status'
),
...
...
dinky-web/src/pages/Home/JobOverView/JobErrorView/index.tsx
View file @
20272b32
...
@@ -32,6 +32,7 @@ interface DataType {
...
@@ -32,6 +32,7 @@ interface DataType {
rank
:
React
.
Key
;
rank
:
React
.
Key
;
name
:
string
;
name
:
string
;
value
:
number
;
value
:
number
;
key
:
string
;
}
}
const
JobErrorView
:
React
.
FC
=
()
=>
{
const
JobErrorView
:
React
.
FC
=
()
=>
{
...
@@ -39,42 +40,50 @@ const JobErrorView: React.FC = () => {
...
@@ -39,42 +40,50 @@ const JobErrorView: React.FC = () => {
{
{
rank
:
1
,
rank
:
1
,
name
:
'任务1'
,
name
:
'任务1'
,
value
:
10000
value
:
10000
,
key
:
'任务1'
},
},
{
{
rank
:
2
,
rank
:
2
,
name
:
'任务2'
,
name
:
'任务2'
,
value
:
20000
value
:
20000
,
key
:
'任务2'
},
},
{
{
rank
:
3
,
rank
:
3
,
name
:
'任务3'
,
name
:
'任务3'
,
value
:
30000
value
:
30000
,
key
:
'任务3'
},
},
{
{
rank
:
4
,
rank
:
4
,
name
:
'任务4'
,
name
:
'任务4'
,
value
:
40000
value
:
40000
,
key
:
'任务4'
},
},
{
{
rank
:
5
,
rank
:
5
,
name
:
'任务5'
,
name
:
'任务5'
,
value
:
50000
value
:
50000
,
key
:
'任务5'
},
},
{
{
rank
:
6
,
rank
:
6
,
name
:
'任务6'
,
name
:
'任务6'
,
value
:
60000
value
:
60000
,
key
:
'任务6'
},
},
{
{
rank
:
7
,
rank
:
7
,
name
:
'任务7'
,
name
:
'任务7'
,
value
:
70000
value
:
70000
,
key
:
'任务7'
},
},
{
{
rank
:
8
,
rank
:
8
,
name
:
'任务8'
,
name
:
'任务8'
,
value
:
80000
value
:
80000
,
key
:
'任务8'
}
}
]);
]);
...
...
dinky-web/src/pages/Home/JobOverView/index.tsx
View file @
20272b32
...
@@ -23,11 +23,11 @@ import JobRecoveryView from '@/pages/Home/JobOverView/JobRecoveryView';
...
@@ -23,11 +23,11 @@ import JobRecoveryView from '@/pages/Home/JobOverView/JobRecoveryView';
import
JobRunView
from
'@/pages/Home/JobOverView/JobRunView'
;
import
JobRunView
from
'@/pages/Home/JobOverView/JobRunView'
;
import
JobStatusPie
from
'@/pages/Home/JobOverView/JobStatusPie'
;
import
JobStatusPie
from
'@/pages/Home/JobOverView/JobStatusPie'
;
import
LoadScoreGauge
from
'@/pages/Home/JobOverView/LoadScoreGauge'
;
import
LoadScoreGauge
from
'@/pages/Home/JobOverView/LoadScoreGauge'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
ProCard
}
from
'@ant-design/pro-components'
;
import
{
ProCard
}
from
'@ant-design/pro-components'
;
import
{
Badge
}
from
'antd'
;
import
{
Badge
}
from
'antd'
;
import
RcResizeObserver
from
'rc-resize-observer'
;
import
RcResizeObserver
from
'rc-resize-observer'
;
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
}
from
'react'
;
const
noPadding
=
{
const
noPadding
=
{
paddingInline
:
'0'
,
paddingInline
:
'0'
,
...
@@ -38,6 +38,7 @@ const JobOverView: React.FC = () => {
...
@@ -38,6 +38,7 @@ const JobOverView: React.FC = () => {
const
[
split
,
setSplit
]
=
useState
<
'vertical'
|
'horizontal'
|
undefined
>
(
'vertical'
);
const
[
split
,
setSplit
]
=
useState
<
'vertical'
|
'horizontal'
|
undefined
>
(
'vertical'
);
return
(
return
(
<
RcResizeObserver
.
Collection
>
<
RcResizeObserver
<
RcResizeObserver
key=
'resize-observer'
key=
'resize-observer'
onResize=
{
(
offset
)
=>
{
onResize=
{
(
offset
)
=>
{
...
@@ -47,7 +48,7 @@ const JobOverView: React.FC = () => {
...
@@ -47,7 +48,7 @@ const JobOverView: React.FC = () => {
<
ProCard
<
ProCard
title=
{
title=
{
<>
<>
<
Badge
status=
'processing'
/>
<
Badge
status=
'processing'
/>
{
l
(
'home.job.metrics'
)
}
{
l
(
'home.job.metrics'
)
}
</>
</>
}
}
...
@@ -59,30 +60,32 @@ const JobOverView: React.FC = () => {
...
@@ -59,30 +60,32 @@ const JobOverView: React.FC = () => {
>
>
<
ProCard
split=
{
split
}
bodyStyle=
{
noPadding
}
>
<
ProCard
split=
{
split
}
bodyStyle=
{
noPadding
}
>
<
ProCard
split=
'horizontal'
>
<
ProCard
split=
'horizontal'
>
<
ProCard
bodyStyle=
{
{
padding
:
'0 12px'
}
}
>
<
ProCard
bodyStyle=
{
{
padding
:
'0 12px'
}
}
>
<
JobRunView
/>
<
JobRunView
/>
</
ProCard
>
</
ProCard
>
<
ProCard
bodyStyle=
{
{
padding
:
'0 12px'
}
}
>
<
ProCard
bodyStyle=
{
{
padding
:
'0 12px'
}
}
>
<
JobFinishedView
/>
<
JobFinishedView
/>
</
ProCard
>
</
ProCard
>
<
ProCard
bodyStyle=
{
{
padding
:
'0 12px'
}
}
>
<
ProCard
bodyStyle=
{
{
padding
:
'0 12px'
}
}
>
<
JobRecoveryView
/>
<
JobRecoveryView
/>
</
ProCard
>
</
ProCard
>
</
ProCard
>
</
ProCard
>
<
ProCard
title=
{
l
(
'home.job.running.status'
)
}
bodyStyle=
{
noPadding
}
>
<
ProCard
title=
{
l
(
'home.job.running.status'
)
}
bodyStyle=
{
noPadding
}
>
<
JobStatusPie
/>
<
JobStatusPie
/>
</
ProCard
>
</
ProCard
>
</
ProCard
>
</
ProCard
>
<
ProCard
split=
{
split
}
bodyStyle=
{
noPadding
}
>
<
ProCard
split=
{
split
}
bodyStyle=
{
noPadding
}
>
<
ProCard
title=
{
l
(
'home.server.load'
)
}
bodyStyle=
{
noPadding
}
>
<
ProCard
title=
{
l
(
'home.server.load'
)
}
bodyStyle=
{
noPadding
}
>
<
LoadScoreGauge
/>
<
LoadScoreGauge
/>
</
ProCard
>
</
ProCard
>
<
ProCard
split=
'horizontal'
bodyStyle=
{
noPadding
}
>
<
ProCard
split=
'horizontal'
bodyStyle=
{
noPadding
}
>
<
JobErrorView
/>
<
JobErrorView
/>
</
ProCard
>
</
ProCard
>
</
ProCard
>
</
ProCard
>
</
ProCard
>
</
ProCard
>
</
RcResizeObserver
>
</
RcResizeObserver
>
</
RcResizeObserver
.
Collection
>
);
);
};
};
...
...
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