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
dbd3c017
Unverified
Commit
dbd3c017
authored
Jan 24, 2024
by
Zzm0809
Committed by
GitHub
Jan 24, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HotFix i18n file (#3060)
Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
79107117
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
27 deletions
+28
-27
messages_zh_CN.properties
...-common/src/main/resources/i18n/messages_zh_CN.properties
+0
-0
index.tsx
dinky-web/src/pages/DevOps/JobDetail/index.tsx
+28
-27
No files found.
dinky-common/src/main/resources/i18n/messages_zh_CN.properties
View file @
dbd3c017
This diff is collapsed.
Click to expand it.
dinky-web/src/pages/DevOps/JobDetail/index.tsx
View file @
dbd3c017
...
@@ -28,15 +28,15 @@ import JobMetrics from '@/pages/DevOps/JobDetail/JobMetrics';
...
@@ -28,15 +28,15 @@ import JobMetrics from '@/pages/DevOps/JobDetail/JobMetrics';
import
JobOperator
from
'@/pages/DevOps/JobDetail/JobOperator/JobOperator'
;
import
JobOperator
from
'@/pages/DevOps/JobDetail/JobOperator/JobOperator'
;
import
JobConfigTab
from
'@/pages/DevOps/JobDetail/JobOverview/JobOverview'
;
import
JobConfigTab
from
'@/pages/DevOps/JobDetail/JobOverview/JobOverview'
;
import
JobVersionTab
from
'@/pages/DevOps/JobDetail/JobVersion/JobVersionTab'
;
import
JobVersionTab
from
'@/pages/DevOps/JobDetail/JobVersion/JobVersionTab'
;
import
{
refeshJobInstance
}
from
'@/pages/DevOps/JobDetail/srvice'
;
import
{
refeshJobInstance
}
from
'@/pages/DevOps/JobDetail/srvice'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
Jobs
}
from
'@/types/DevOps/data'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
ClusterOutlined
,
FireOutlined
,
RocketOutlined
}
from
'@ant-design/icons
'
;
import
{
history
}
from
'@@/core/history
'
;
import
{
PageContainer
}
from
'@ant-design/pro-component
s'
;
import
{
ClusterOutlined
,
FireOutlined
,
RocketOutlined
}
from
'@ant-design/icon
s'
;
import
{
Tag
}
from
'antd
'
;
import
{
PageContainer
}
from
'@ant-design/pro-components
'
;
import
{
useState
}
from
'react
'
;
import
{
Tag
}
from
'antd
'
;
import
{
useLocation
}
from
'umi
'
;
import
{
useState
}
from
'react
'
;
import
{
history
}
from
"@@/core/history"
;
import
{
useLocation
}
from
'umi'
;
/**
/**
* Enum defining different operators for the JobDetail component.
* Enum defining different operators for the JobDetail component.
...
@@ -64,7 +64,7 @@ const JobDetail = (props: any) => {
...
@@ -64,7 +64,7 @@ const JobDetail = (props: any) => {
history
.
push
(
`/devops/`
);
history
.
push
(
`/devops/`
);
}
}
const
{
data
,
run
}
=
useHookRequest
(
refeshJobInstance
,
{
const
{
data
,
run
}
=
useHookRequest
(
refeshJobInstance
,
{
defaultParams
:
[
id
,
false
],
defaultParams
:
[
id
,
false
],
pollingInterval
:
3000
pollingInterval
:
3000
});
});
...
@@ -75,13 +75,13 @@ const JobDetail = (props: any) => {
...
@@ -75,13 +75,13 @@ const JobDetail = (props: any) => {
// Define the components for each job operator
// Define the components for each job operator
const
JobOperatorItems
=
{
const
JobOperatorItems
=
{
[
OperatorEnum
.
JOB_BASE_INFO
]:
<
JobConfigTab
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_BASE_INFO
]:
<
JobConfigTab
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_LOGS
]:
<
JobLogsTab
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_LOGS
]:
<
JobLogsTab
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_VERSION
]:
<
JobVersionTab
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_VERSION
]:
<
JobVersionTab
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_CHECKPOINTS
]:
<
CheckPoints
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_CHECKPOINTS
]:
<
CheckPoints
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_METRICS
]:
<
JobMetrics
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_METRICS
]:
<
JobMetrics
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_LINEAGE
]:
<
JobLineage
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_LINEAGE
]:
<
JobLineage
jobDetail
=
{
jobInfoDetail
}
/>
,
[
OperatorEnum
.
JOB_ALERT
]:
<
AlertHistory
jobDetail
=
{
jobInfoDetail
}
/
>
[
OperatorEnum
.
JOB_ALERT
]:
<
AlertHistory
jobDetail
=
{
jobInfoDetail
}
/
>
};
};
// Define the tabs config for job operators
// Define the tabs config for job operators
...
@@ -90,7 +90,7 @@ const JobDetail = (props: any) => {
...
@@ -90,7 +90,7 @@ const JobDetail = (props: any) => {
tab
:
l
(
'devops.jobinfo.config.JobInfo'
),
tab
:
l
(
'devops.jobinfo.config.JobInfo'
),
key
:
OperatorEnum
.
JOB_BASE_INFO
key
:
OperatorEnum
.
JOB_BASE_INFO
},
},
{
tab
:
l
(
'devops.jobinfo.config.JobLogs'
),
key
:
OperatorEnum
.
JOB_LOGS
},
{
tab
:
l
(
'devops.jobinfo.config.JobLogs'
),
key
:
OperatorEnum
.
JOB_LOGS
},
{
{
tab
:
l
(
'devops.jobinfo.config.JobVersion'
),
tab
:
l
(
'devops.jobinfo.config.JobVersion'
),
key
:
OperatorEnum
.
JOB_VERSION
key
:
OperatorEnum
.
JOB_VERSION
...
@@ -107,30 +107,31 @@ const JobDetail = (props: any) => {
...
@@ -107,30 +107,31 @@ const JobDetail = (props: any) => {
tab
:
l
(
'devops.jobinfo.config.JobLineage'
),
tab
:
l
(
'devops.jobinfo.config.JobLineage'
),
key
:
OperatorEnum
.
JOB_LINEAGE
key
:
OperatorEnum
.
JOB_LINEAGE
},
},
{
tab
:
l
(
'devops.jobinfo.config.JobAlert'
),
key
:
OperatorEnum
.
JOB_ALERT
}
{
tab
:
l
(
'devops.jobinfo.config.JobAlert'
),
key
:
OperatorEnum
.
JOB_ALERT
}
];
];
console
.
log
(
!!
data
)
console
.
log
(
!!
data
);
return
(
return
(
<
PageContainer
loading=
{
!
data
}
<
PageContainer
loading=
{
!
data
}
title=
{
jobInfoDetail
?.
instance
?.
name
}
title=
{
jobInfoDetail
?.
instance
?.
name
}
subTitle=
{
<
JobLifeCycleTag
status=
{
jobInfoDetail
?.
instance
?.
step
}
/>
}
subTitle=
{
<
JobLifeCycleTag
status=
{
jobInfoDetail
?.
instance
?.
step
}
/>
}
ghost=
{
false
}
ghost=
{
false
}
extra=
{
<
JobOperator
jobDetail=
{
jobInfoDetail
}
refesh=
{
(
isForce
)
=>
run
(
id
,
isForce
)
}
/>
}
extra=
{
<
JobOperator
jobDetail=
{
jobInfoDetail
}
refesh=
{
(
isForce
)
=>
run
(
id
,
isForce
)
}
/>
}
onBack=
{
()
=>
window
.
history
.
back
()
}
onBack=
{
()
=>
window
.
history
.
back
()
}
breadcrumb=
{
{}
}
breadcrumb=
{
{}
}
tabList=
{
JobOperatorTabs
}
tabList=
{
JobOperatorTabs
}
onTabChange=
{
(
key
)
=>
setTabKey
(
key
)
}
onTabChange=
{
(
key
)
=>
setTabKey
(
key
)
}
tags=
{
[
tags=
{
[
<
StatusTag
status=
{
jobInfoDetail
?.
instance
?.
status
}
/>,
<
StatusTag
status=
{
jobInfoDetail
?.
instance
?.
status
}
/>,
<
Tag
key=
{
'tg1'
}
color=
'blue'
>
<
Tag
key=
{
'tg1'
}
color=
'blue'
>
<
FireOutlined
/>
{
jobInfoDetail
?.
instance
?.
jid
}
<
FireOutlined
/>
{
jobInfoDetail
?.
instance
?.
jid
}
</
Tag
>,
</
Tag
>,
<
Tag
key=
{
'tg2'
}
color=
'blue'
>
<
Tag
key=
{
'tg2'
}
color=
'blue'
>
<
RocketOutlined
/>
{
jobInfoDetail
?.
history
?.
type
}
<
RocketOutlined
/>
{
jobInfoDetail
?.
history
?.
type
}
</
Tag
>,
</
Tag
>,
<
Tag
key=
{
'tg3'
}
color=
'green'
>
<
Tag
key=
{
'tg3'
}
color=
'green'
>
<
ClusterOutlined
/>
{
jobInfoDetail
?.
clusterInstance
?.
alias
}
<
ClusterOutlined
/>
{
jobInfoDetail
?.
clusterInstance
?.
alias
}
</
Tag
>
</
Tag
>
]
}
]
}
>
>
...
...
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