Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
5d177d69
Unverified
Commit
5d177d69
authored
Jan 04, 2021
by
Lijiaoa
Committed by
GitHub
Jan 04, 2021
Browse files
fix some issues about webui overview page (#3237)
parent
fdd22cba
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
23 additions
and
7 deletions
+23
-7
ts/webui/src/components/managementExp/ExperimentManager.tsx
ts/webui/src/components/managementExp/ExperimentManager.tsx
+3
-1
ts/webui/src/components/overview/params/BasicInfo.tsx
ts/webui/src/components/overview/params/BasicInfo.tsx
+1
-1
ts/webui/src/static/model/experimentsManager.ts
ts/webui/src/static/model/experimentsManager.ts
+2
-1
ts/webui/src/static/style/experiment/experiment.scss
ts/webui/src/static/style/experiment/experiment.scss
+4
-0
ts/webui/src/static/style/overview/basic.scss
ts/webui/src/static/style/overview/basic.scss
+11
-3
ts/webui/src/static/style/overview/overview.scss
ts/webui/src/static/style/overview/overview.scss
+2
-1
No files found.
ts/webui/src/components/managementExp/ExperimentManager.tsx
View file @
5d177d69
...
...
@@ -211,7 +211,9 @@ class Experiment extends React.Component<{}, ExpListState> {
onColumnClick
:
this
.
onColumnClick
,
onRender
:
(
item
:
any
):
React
.
ReactNode
=>
(
<
div
className
=
'succeed-padding'
>
<
div
>
{
item
.
port
!==
undefined
?
item
.
port
:
'
--
'
}
</
div
>
<
div
className
=
{
item
.
status
===
'
STOPPED
'
?
'
gray-port
'
:
''
}
>
{
item
.
port
!==
undefined
?
item
.
port
:
'
--
'
}
</
div
>
</
div
>
)
},
...
...
ts/webui/src/components/overview/params/BasicInfo.tsx
View file @
5d177d69
...
...
@@ -36,7 +36,7 @@ export const BasicInfo = (): any => {
<
span
className
=
{
`
${
EXPERIMENT
.
status
}
status-text`
}
>
{
EXPERIMENT
.
status
}
</
span
>
{
EXPERIMENT
.
status
===
'
ERROR
'
?
(
<
div
>
<
div
className
=
{
styles
.
buttonArea
}
ref
=
{
ref
}
>
<
div
className
=
{
`
${
styles
.
buttonArea
}
error-info-icon`
}
ref
=
{
ref
}
>
<
IconButton
iconProps
=
{
{
iconName
:
'
info
'
}
}
onClick
=
{
isCalloutVisible
?
onDismiss
:
showCallout
}
...
...
ts/webui/src/static/model/experimentsManager.ts
View file @
5d177d69
...
...
@@ -31,7 +31,8 @@ class ExperimentsManager {
}
platforms
.
add
(
item
.
platform
);
}
this
.
experimentList
=
data
;
// this.experimentList = data.reverse();
this
.
experimentList
=
data
.
sort
((
a
,
b
)
=>
b
.
startTime
-
a
.
startTime
);
this
.
platform
=
Array
.
from
(
platforms
);
})
.
catch
(
error
=>
{
...
...
ts/webui/src/static/style/experiment/experiment.scss
View file @
5d177d69
...
...
@@ -79,3 +79,7 @@ $pageMargin: 24px;
background
:
#e1dfdd
;
}
}
.gray-port
{
color
:
#E2E2E2
;
}
ts/webui/src/static/style/overview/basic.scss
View file @
5d177d69
.status
{
height
:
21px
;
color
:
#0573bc
;
font-size
:
20px
;
font-weight
:
600
;
...
...
@@ -6,10 +7,17 @@
.status-text
{
display
:
inline-block
;
}
}
.color
{
color
:
#333
;
}
/* for overview page: status error info icon's style */
.error-info-icon
{
position
:
relative
;
top
:
-4px
;
}
/* error body font-color */
.color
{
color
:
#333
!
important
;
}
.inputBox
{
...
...
ts/webui/src/static/style/overview/overview.scss
View file @
5d177d69
...
...
@@ -66,6 +66,7 @@ $boxGapPadding: 10px;
p
{
font-size
:
14px
;
font-weight
:
normal
;
color
:
#8f8f8f
;
span
{
...
...
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