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
11520942
Unverified
Commit
11520942
authored
Oct 22, 2020
by
Lijiaoa
Committed by
GitHub
Oct 22, 2020
Browse files
fix bugs on second bug bash (#3016)
Co-authored-by:
Lijiao
<
Lijiaoa@outlook.com
>
parent
6aae16c5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
27 deletions
+24
-27
src/webui/src/components/overview/command/Command1.tsx
src/webui/src/components/overview/command/Command1.tsx
+2
-2
src/webui/src/components/overview/command/Command2.tsx
src/webui/src/components/overview/command/Command2.tsx
+2
-2
src/webui/src/components/overview/count/EditExperimentParam.tsx
...bui/src/components/overview/count/EditExperimentParam.tsx
+1
-0
src/webui/src/components/overview/overviewConst.ts
src/webui/src/components/overview/overviewConst.ts
+3
-3
src/webui/src/components/trial-detail/TableList.tsx
src/webui/src/components/trial-detail/TableList.tsx
+7
-7
src/webui/src/static/style/overview/command.scss
src/webui/src/static/style/overview/command.scss
+7
-2
src/webui/src/static/style/overview/config.scss
src/webui/src/static/style/overview/config.scss
+2
-1
src/webui/src/static/style/overview/overviewTitle.scss
src/webui/src/static/style/overview/overviewTitle.scss
+0
-10
No files found.
src/webui/src/components/overview/command/Command1.tsx
View file @
11520942
...
@@ -28,9 +28,9 @@ export const Command1 = (): any => {
...
@@ -28,9 +28,9 @@ export const Command1 = (): any => {
}
}
return
(
return
(
<
div
className
=
'
command
basic'
>
<
div
className
=
'basic'
>
<
div
>
<
div
>
<
p
>
Training platform
</
p
>
<
p
className
=
'command'
>
Training platform
</
p
>
<
div
className
=
'nowrap'
>
{
EXPERIMENT
.
profile
.
params
.
trainingServicePlatform
}
</
div
>
<
div
className
=
'nowrap'
>
{
EXPERIMENT
.
profile
.
params
.
trainingServicePlatform
}
</
div
>
<
p
className
=
'lineMargin'
>
{
title
}
</
p
>
<
p
className
=
'lineMargin'
>
{
title
}
</
p
>
<
div
className
=
'nowrap'
>
{
builtinName
}
</
div
>
<
div
className
=
'nowrap'
>
{
builtinName
}
</
div
>
...
...
src/webui/src/components/overview/command/Command2.tsx
View file @
11520942
...
@@ -16,8 +16,8 @@ export const Command2 = (): any => {
...
@@ -16,8 +16,8 @@ export const Command2 = (): any => {
}
}
}
}
return
(
return
(
<
div
className
=
'
command
basic'
>
<
div
className
=
'basic'
>
<
p
>
Log directory
</
p
>
<
p
className
=
'command'
>
Log directory
</
p
>
<
div
className
=
'nowrap'
>
<
div
className
=
'nowrap'
>
<
TooltipHost
<
TooltipHost
content
=
{
EXPERIMENT
.
profile
.
logDir
||
'
unknown
'
}
content
=
{
EXPERIMENT
.
profile
.
logDir
||
'
unknown
'
}
...
...
src/webui/src/components/overview/count/EditExperimentParam.tsx
View file @
11520942
...
@@ -154,6 +154,7 @@ export const EditExperimentParam = (): any => {
...
@@ -154,6 +154,7 @@ export const EditExperimentParam = (): any => {
return
val
;
return
val
;
}
}
}
}
return
(
return
(
<
AppContext
.
Consumer
>
<
AppContext
.
Consumer
>
{
(
values
):
React
.
ReactNode
=>
{
{
(
values
):
React
.
ReactNode
=>
{
...
...
src/webui/src/components/overview/overviewConst.ts
View file @
11520942
...
@@ -19,9 +19,9 @@ const entriesOption = [
...
@@ -19,9 +19,9 @@ const entriesOption = [
];
];
const
durationUnit
=
[
const
durationUnit
=
[
{
key
:
'
m
'
,
text
:
'
m
'
},
{
key
:
'
m
'
,
text
:
'
m
in
'
},
{
key
:
'
h
'
,
text
:
'
h
'
},
{
key
:
'
h
'
,
text
:
'
h
our
'
},
{
key
:
'
d
'
,
text
:
'
d
'
}
{
key
:
'
d
'
,
text
:
'
d
ay
'
}
];
];
export
{
itemStyle1
,
itemStyleSucceed
,
itemStyle2
,
entriesOption
,
durationUnit
};
export
{
itemStyle1
,
itemStyleSucceed
,
itemStyle2
,
entriesOption
,
durationUnit
};
src/webui/src/components/trial-detail/TableList.tsx
View file @
11520942
...
@@ -28,6 +28,7 @@ import '../../static/style/pagination.scss';
...
@@ -28,6 +28,7 @@ import '../../static/style/pagination.scss';
import
'
../../static/style/search.scss
'
;
import
'
../../static/style/search.scss
'
;
import
'
../../static/style/table.scss
'
;
import
'
../../static/style/table.scss
'
;
import
'
../../static/style/tableStatus.css
'
;
import
'
../../static/style/tableStatus.css
'
;
import
'
../../static/style/overview/overviewTitle.scss
'
;
import
{
blocked
,
copy
,
LineChart
,
tableListIcon
}
from
'
../buttons/Icon
'
;
import
{
blocked
,
copy
,
LineChart
,
tableListIcon
}
from
'
../buttons/Icon
'
;
import
ChangeColumnComponent
from
'
../modals/ChangeColumnComponent
'
;
import
ChangeColumnComponent
from
'
../modals/ChangeColumnComponent
'
;
import
Compare
from
'
../modals/Compare
'
;
import
Compare
from
'
../modals/Compare
'
;
...
@@ -297,17 +298,16 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -297,17 +298,16 @@ class TableList extends React.Component<TableListProps, TableListState> {
// FIXME: default metric is hacked as latestAccuracy currently
// FIXME: default metric is hacked as latestAccuracy currently
continue
;
continue
;
}
}
const
lengths
=
tableItems
.
map
(
item
=>
`
${
item
[
k
]}
`
.
length
);
const
avgLengths
=
lengths
.
reduce
((
a
,
b
)
=>
a
+
b
)
/
lengths
.
length
;
const
columnTitle
=
_inferColumnTitle
(
k
);
const
columnTitle
=
_inferColumnTitle
(
k
);
const
columnWidth
=
Math
.
max
(
columnTitle
.
length
,
avgLengths
);
// TODO: add blacklist
// TODO: add blacklist
// 0.85: tableWidth / screen
const
widths
=
window
.
innerWidth
*
0.85
;
columns
.
push
({
columns
.
push
({
name
:
columnTitle
,
name
:
columnTitle
,
key
:
k
,
key
:
k
,
fieldName
:
k
,
fieldName
:
k
,
minWidth
:
columnW
idth
*
13
,
minWidth
:
w
idth
s
*
0.12
,
maxWidth
:
columnW
idth
*
18
,
maxWidth
:
w
idth
s
*
0.19
,
isResizable
:
true
,
isResizable
:
true
,
onColumnClick
:
this
.
_onColumnClick
.
bind
(
this
),
onColumnClick
:
this
.
_onColumnClick
.
bind
(
this
),
...(
k
===
'
status
'
&&
{
...(
k
===
'
status
'
&&
{
...
@@ -371,8 +371,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
...
@@ -371,8 +371,8 @@ class TableList extends React.Component<TableListProps, TableListState> {
name
:
'
Operation
'
,
name
:
'
Operation
'
,
key
:
'
_operation
'
,
key
:
'
_operation
'
,
fieldName
:
'
operation
'
,
fieldName
:
'
operation
'
,
minWidth
:
1
6
0
,
minWidth
:
1
5
0
,
maxWidth
:
20
0
,
maxWidth
:
16
0
,
isResizable
:
true
,
isResizable
:
true
,
className
:
'
detail-table
'
,
className
:
'
detail-table
'
,
onRender
:
this
.
_renderOperationColumn
.
bind
(
this
)
onRender
:
this
.
_renderOperationColumn
.
bind
(
this
)
...
...
src/webui/src/static/style/overview/command.scss
View file @
11520942
.command
{
.overviewCommand1
,
p
{
.overviewCommand2
{
.command
{
margin-top
:
0
;
margin-top
:
0
;
font-weight
:
normal
;
}
}
}
.basic
{
.lineMargin
{
.lineMargin
{
margin-top
:
20px
;
margin-top
:
20px
;
font-weight
:
normal
;
}
}
}
}
src/webui/src/static/style/overview/config.scss
View file @
11520942
...
@@ -6,7 +6,8 @@
...
@@ -6,7 +6,8 @@
.ms-Button--default
{
.ms-Button--default
{
padding
:
0
8px
;
padding
:
0
8px
;
margin
:
0
0
12px
0
;
margin
:
0
0
12px
0
;
border
:
1px
solid
#ccc
;
border
:
none
;
box-shadow
:
0
3px
3px
rgba
(
0
,
0
,
0
,
0
.08
);
border-radius
:
18px
0
0
18px
;
border-radius
:
18px
0
0
18px
;
font-size
:
12px
;
font-size
:
12px
;
text-align
:
left
;
text-align
:
left
;
...
...
src/webui/src/static/style/overview/overviewTitle.scss
View file @
11520942
$iconPaddingVal
:
20px
;
$iconPaddingVal
:
20px
;
.panelTitle
{
.panelTitle
{
img
{
height
:
23px
;
/* (38 - 22 ) / 2 */
margin-top
:
8px
;
/* icon right */
padding
:
0
$iconPaddingVal
0
0
;
}
span
{
span
{
font-size
:
18px
;
font-size
:
18px
;
font-weight
:
600
;
font-weight
:
600
;
...
...
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