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
217f60cc
Unverified
Commit
217f60cc
authored
Dec 21, 2023
by
Zzm0809
Committed by
GitHub
Dec 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support devops card checkstyle (#2702)
* Spotless Apply * support-devops-card-checkstyle * Spotless Apply --------- Co-authored-by:
Zzm0809
<
Zzm0809@users.noreply.github.com
>
parent
bc9e32b0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
10 deletions
+31
-10
function.tsx
dinky-web/src/components/CustomEditor/CodeEdit/function.tsx
+1
-1
index.tsx
dinky-web/src/components/CustomEditor/CodeEdit/index.tsx
+1
-1
index.tsx
dinky-web/src/components/CustomEditor/CodeShow/index.tsx
+2
-3
DiffModal.tsx
...ges/DataStudio/MiddleContainer/StudioEditor/DiffModal.tsx
+2
-2
StatisticsCard.tsx
...ges/DevOps/JobList/components/Overview/StatisticsCard.tsx
+18
-2
index.tsx
...eb/src/pages/DevOps/JobList/components/Overview/index.tsx
+7
-0
requestErrorConfig.ts
dinky-web/src/requestErrorConfig.ts
+0
-1
No files found.
dinky-web/src/components/CustomEditor/CodeEdit/function.tsx
View file @
217f60cc
...
...
@@ -19,6 +19,7 @@
import
{
SuggestionInfo
}
from
'@/types/Public/data'
;
import
{
loader
}
from
'@monaco-editor/react'
;
import
*
as
monaco
from
'monaco-editor'
;
import
{
editor
,
languages
}
from
'monaco-editor'
;
import
keyWordJsonData
from
'./keyword.json'
;
...
...
@@ -26,7 +27,6 @@ import ITextModel = editor.ITextModel;
import
ProviderResult
=
languages
.
ProviderResult
;
import
CompletionList
=
languages
.
CompletionList
;
import
CompletionItem
=
languages
.
CompletionItem
;
import
{
loader
}
from
"@monaco-editor/react"
;
// 导入 lodash
loader
.
config
({
monaco
});
...
...
dinky-web/src/components/CustomEditor/CodeEdit/index.tsx
View file @
217f60cc
...
...
@@ -25,7 +25,7 @@ import { handleInitEditorAndLanguageOnBeforeMount } from '@/components/CustomEdi
import
{
StateType
}
from
'@/pages/DataStudio/model'
;
import
{
MonacoEditorOptions
,
SuggestionInfo
}
from
'@/types/Public/data'
;
import
{
convertCodeEditTheme
}
from
'@/utils/function'
;
import
{
Editor
,
loader
,
Monaco
,
OnChange
}
from
'@monaco-editor/react'
;
import
{
Editor
,
loader
,
Monaco
,
OnChange
}
from
'@monaco-editor/react'
;
import
{
connect
}
from
'@umijs/max'
;
import
useMemoCallback
from
'rc-menu/es/hooks/useMemoCallback'
;
import
{
memo
,
useCallback
,
useRef
}
from
'react'
;
...
...
dinky-web/src/components/CustomEditor/CodeShow/index.tsx
View file @
217f60cc
...
...
@@ -28,13 +28,12 @@ import { EditorLanguage } from 'monaco-editor/esm/metadata';
import
FullscreenBtn
from
'@/components/CustomEditor/FullscreenBtn'
;
import
{
handleInitEditorAndLanguageOnBeforeMount
}
from
'@/components/CustomEditor/function'
;
import
{
Editor
,
loader
,
Monaco
}
from
'@monaco-editor/react'
;
import
{
Editor
,
loader
,
Monaco
}
from
'@monaco-editor/react'
;
import
*
as
monaco
from
'monaco-editor'
;
import
{
CSSProperties
,
useRef
,
useState
}
from
'react'
;
import
*
as
monaco
from
"monaco-editor"
;
loader
.
config
({
monaco
});
export
type
CodeShowFormProps
=
{
height
?:
string
|
number
;
width
?:
string
;
...
...
dinky-web/src/pages/DataStudio/MiddleContainer/StudioEditor/DiffModal.tsx
View file @
217f60cc
...
...
@@ -24,11 +24,11 @@ import {
}
from
'@/pages/DataStudio/MiddleContainer/StudioEditor/constants'
;
import
{
convertCodeEditTheme
}
from
'@/utils/function'
;
import
{
l
}
from
'@/utils/intl'
;
import
{
DiffEditor
,
loader
}
from
'@monaco-editor/react'
;
import
{
DiffEditor
,
loader
}
from
'@monaco-editor/react'
;
import
{
Col
,
Modal
,
Row
,
Space
,
Table
,
Tabs
,
Typography
}
from
'antd'
;
import
*
as
monaco
from
'monaco-editor'
;
import
React
,
{
memo
}
from
'react'
;
import
styles
from
'./index.less'
;
import
*
as
monaco
from
"monaco-editor"
;
loader
.
config
({
monaco
});
...
...
dinky-web/src/pages/DevOps/JobList/components/Overview/StatisticsCard.tsx
View file @
217f60cc
...
...
@@ -30,12 +30,28 @@ type StatisticsCardParams = {
extra
?:
any
;
divider
?:
boolean
;
atClick
?:
()
=>
void
;
isChecked
?:
boolean
;
// 是否选中
};
const
StatisticsCard
=
(
props
:
StatisticsCardParams
)
=>
{
const
{
title
,
value
,
icon
,
extra
=
<></>,
divider
=
true
,
link
,
atClick
}
=
props
;
const
{
title
,
value
,
isChecked
=
false
,
icon
,
extra
=
<></>,
divider
=
true
,
link
,
atClick
}
=
props
;
return
(
<>
<
ProCard
layout=
{
'center'
}
onClick=
{
()
=>
(
atClick
?
atClick
()
:
{})
}
hoverable=
{
true
}
>
<
ProCard
checked=
{
isChecked
}
boxShadow=
{
isChecked
}
layout=
{
'center'
}
onClick=
{
()
=>
(
atClick
?
atClick
()
:
{})
}
hoverable=
{
true
}
>
<
Space
size=
{
20
}
>
{
icon
}
<
Space
direction=
'vertical'
>
...
...
dinky-web/src/pages/DevOps/JobList/components/Overview/index.tsx
View file @
217f60cc
...
...
@@ -63,6 +63,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
undefined
);
}
}
isChecked=
{
!
statusFilter
}
extra=
{
<
Space
direction=
'vertical'
>
<
Button
type=
{
'text'
}
icon=
{
<
BatchIcons
size=
{
20
}
/>
}
>
...
...
@@ -85,6 +86,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
JOB_STATUS
.
RUNNING
);
}
}
isChecked=
{
statusFilter
===
JOB_STATUS
.
RUNNING
}
/>
<
StatisticsCard
title=
{
l
(
'devops.joblist.status.cancelled'
)
}
...
...
@@ -93,6 +95,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
JOB_STATUS
.
CANCELED
);
}
}
isChecked=
{
statusFilter
===
JOB_STATUS
.
CANCELED
}
/>
<
StatisticsCard
title=
{
l
(
'devops.joblist.status.failed'
)
}
...
...
@@ -101,6 +104,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
JOB_STATUS
.
FAILED
);
}
}
isChecked=
{
statusFilter
===
JOB_STATUS
.
FAILED
}
/>
<
StatisticsCard
title=
{
l
(
'devops.joblist.status.restarting'
)
}
...
...
@@ -109,6 +113,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
JOB_STATUS
.
RESTARTING
);
}
}
isChecked=
{
statusFilter
===
JOB_STATUS
.
RESTARTING
}
/>
<
StatisticsCard
title=
{
l
(
'devops.joblist.status.finished'
)
}
...
...
@@ -117,6 +122,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
JOB_STATUS
.
FINISHED
);
}
}
isChecked=
{
statusFilter
===
JOB_STATUS
.
FINISHED
}
/>
<
StatisticsCard
title=
{
l
(
'devops.joblist.status.unknown'
)
}
...
...
@@ -126,6 +132,7 @@ const JobOverview = (props: any) => {
atClick=
{
()
=>
{
setStatusFilter
(
JOB_STATUS
.
UNKNOWN
);
}
}
isChecked=
{
statusFilter
===
JOB_STATUS
.
UNKNOWN
}
/>
</
ProCard
>
</
Col
>
...
...
dinky-web/src/requestErrorConfig.ts
View file @
217f60cc
...
...
@@ -87,7 +87,6 @@ export const errorConfig: RequestConfig = {
},
// 错误接收及处理
errorHandler
:
(
error
:
any
,
opts
:
any
)
=>
{
if
(
opts
?.
skipErrorHandler
)
throw
error
;
// 我们的 errorThrower 抛出的错误。
if
(
error
.
name
===
'BizError'
)
{
...
...
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