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
f4183616
Unverified
Commit
f4183616
authored
Oct 06, 2023
by
gaoyan
Committed by
GitHub
Oct 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formate code (#2352)
parent
67bd6278
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
23 deletions
+37
-23
AvatarDropdown.tsx
dinky-web/src/components/RightContent/AvatarDropdown.tsx
+8
-2
global.ts
dinky-web/src/locales/en-US/global.ts
+0
-0
index.tsx
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
+0
-1
JobManagerLogsTab.tsx
...DevOps/JobDetail/JobLogs/components/JobManagerLogsTab.tsx
+14
-4
index.tsx
dinky-web/src/pages/DevOps/JobList/index.tsx
+1
-1
index.tsx
dinky-web/src/pages/Home/JobOverView/JobErrorView/index.tsx
+0
-0
index.tsx
dinky-web/src/pages/Home/JobOverView/index.tsx
+14
-15
No files found.
dinky-web/src/components/RightContent/AvatarDropdown.tsx
View file @
f4183616
...
@@ -19,7 +19,13 @@ import { chooseTenantSubmit, outLogin } from '@/services/BusinessCrud';
...
@@ -19,7 +19,13 @@ 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
{
ClearOutlined
,
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'
;
...
@@ -216,7 +222,7 @@ const AvatarDropdown = () => {
...
@@ -216,7 +222,7 @@ const AvatarDropdown = () => {
key
:
'clearPageCache'
,
key
:
'clearPageCache'
,
icon
:
<
ClearOutlined
/>,
icon
:
<
ClearOutlined
/>,
label
:
l
(
'menu.account.clearPageCache'
),
label
:
l
(
'menu.account.clearPageCache'
),
onClick
:
()
=>
{
onClick
:
()
=>
{
window
.
localStorage
.
removeItem
(
'persist:root'
);
window
.
localStorage
.
removeItem
(
'persist:root'
);
window
.
location
.
reload
();
window
.
location
.
reload
();
}
}
...
...
dinky-web/src/locales/en-US/global.ts
View file @
f4183616
dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
View file @
f4183616
...
@@ -44,7 +44,6 @@ import { SettingConfigKeyEnum } from '@/pages/SettingCenter/GlobalSetting/Settin
...
@@ -44,7 +44,6 @@ import { SettingConfigKeyEnum } from '@/pages/SettingCenter/GlobalSetting/Settin
import
{
handlePutDataJson
}
from
'@/services/BusinessCrud'
;
import
{
handlePutDataJson
}
from
'@/services/BusinessCrud'
;
import
{
BaseConfigProperties
}
from
'@/types/SettingCenter/data'
;
import
{
BaseConfigProperties
}
from
'@/types/SettingCenter/data'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
ErrorNotification
}
from
'@/utils/messages'
;
import
{
connect
}
from
'@@/exports'
;
import
{
connect
}
from
'@@/exports'
;
import
{
import
{
EnvironmentOutlined
,
EnvironmentOutlined
,
...
...
dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/JobManagerLogsTab.tsx
View file @
f4183616
...
@@ -23,7 +23,7 @@ import { API_CONSTANTS } from '@/services/endpoints';
...
@@ -23,7 +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"
;
import
{
EditorLanguage
}
from
'monaco-editor/esm/metadata'
;
const
{
Text
,
Paragraph
}
=
Typography
;
const
{
Text
,
Paragraph
}
=
Typography
;
...
@@ -46,7 +46,7 @@ const JobManagerLogsTab = (props: JobProps) => {
...
@@ -46,7 +46,7 @@ const JobManagerLogsTab = (props: JobProps) => {
params
:
{
address
:
jmaddr
}
params
:
{
address
:
jmaddr
}
});
});
const
getLog
=
(
ur
:
any
,
language
?:
EditorLanguage
)
=>
{
const
getLog
=
(
ur
:
any
,
language
?:
EditorLanguage
)
=>
{
return
(
return
(
<
Spin
spinning=
{
ur
.
loading
}
>
<
Spin
spinning=
{
ur
.
loading
}
>
<
CodeShow
language=
{
language
}
code=
{
ur
.
data
?
ur
.
data
:
'No Log'
}
height=
{
600
}
/>
<
CodeShow
language=
{
language
}
code=
{
ur
.
data
?
ur
.
data
:
'No Log'
}
height=
{
600
}
/>
...
@@ -56,7 +56,17 @@ const JobManagerLogsTab = (props: JobProps) => {
...
@@ -56,7 +56,17 @@ const JobManagerLogsTab = (props: JobProps) => {
const
getDump
=
(
ur
:
any
)
=>
{
const
getDump
=
(
ur
:
any
)
=>
{
return
(
return
(
<
Spin
spinning=
{
ur
.
loading
}
>
<
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
}
/>
<
CodeShow
language=
{
'kotlin'
}
code=
{
ur
.
data
?
(
JSON
.
parse
(
ur
.
data
)[
'threadInfos'
]
as
any
[])
.
map
((
x
)
=>
x
[
'stringifiedThreadInfo'
])
.
join
(
''
)
:
'No Log'
}
height=
{
600
}
/>
</
Spin
>
</
Spin
>
);
);
};
};
...
@@ -66,7 +76,7 @@ const JobManagerLogsTab = (props: JobProps) => {
...
@@ -66,7 +76,7 @@ const JobManagerLogsTab = (props: JobProps) => {
<
Tabs
<
Tabs
size=
{
'small'
}
size=
{
'small'
}
items=
{
[
items=
{
[
{
label
:
'Log'
,
key
:
'LOG'
,
children
:
getLog
(
log
,
"java"
)
},
{
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
:
getDump
(
dump
)
}
{
label
:
'Thread Dump'
,
key
:
'DUMP'
,
children
:
getDump
(
dump
)
}
]
}
]
}
...
...
dinky-web/src/pages/DevOps/JobList/index.tsx
View file @
f4183616
...
@@ -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
{
parseMilliSecondStr
,
parseSecondStr
}
from
'@/utils/function'
;
import
{
parseMilliSecondStr
}
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'
;
...
...
dinky-web/src/pages/Home/JobOverView/JobErrorView/index.tsx
View file @
f4183616
dinky-web/src/pages/Home/JobOverView/index.tsx
View file @
f4183616
...
@@ -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'
,
...
@@ -48,7 +48,7 @@ const JobOverView: React.FC = () => {
...
@@ -48,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'
)
}
</>
</>
}
}
...
@@ -60,30 +60,29 @@ const JobOverView: React.FC = () => {
...
@@ -60,30 +60,29 @@ 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
>
</
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