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
ef15fc81
Unverified
Commit
ef15fc81
authored
Jun 21, 2021
by
liuzhe-lz
Committed by
GitHub
Jun 21, 2021
Browse files
Bump node.js version to v16 (#3828)
parent
b2225436
Changes
45
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6068 additions
and
6315 deletions
+6068
-6315
ts/webui/src/index.tsx
ts/webui/src/index.tsx
+1
-1
ts/webui/src/static/function.ts
ts/webui/src/static/function.ts
+4
-6
ts/webui/src/static/interface.ts
ts/webui/src/static/interface.ts
+3
-3
ts/webui/src/static/model/trial.ts
ts/webui/src/static/model/trial.ts
+1
-0
ts/webui/yarn.lock
ts/webui/yarn.lock
+6059
-6305
No files found.
ts/webui/src/index.tsx
View file @
ef15fc81
...
...
@@ -17,7 +17,7 @@ ReactDOM.render(
<
Suspense
fallback
=
{
<
div
className
=
'loading'
>
<
img
src
=
{
require
(
'
./static/img
/loading.gif
'
)
}
/>
<
img
src
=
'
/loading.gif'
/>
</
div
>
}
>
...
...
ts/webui/src/static/function.ts
View file @
ef15fc81
...
...
@@ -133,6 +133,7 @@ const getFinal = (final?: MetricDataRecord[]): FinalType | undefined => {
}
else
if
(
isArrayType
(
showDefault
))
{
// not support final type
return
undefined
;
// eslint-disable-next-line no-prototype-builtins
}
else
if
(
typeof
showDefault
===
'
object
'
&&
showDefault
.
hasOwnProperty
(
'
default
'
))
{
return
showDefault
;
}
...
...
@@ -232,7 +233,7 @@ const downFile = (content: string, fileName: string): void => {
}
if
(
navigator
.
userAgent
.
indexOf
(
'
Firefox
'
)
>
-
1
)
{
const
downTag
=
document
.
createElement
(
'
a
'
);
downTag
.
addEventListener
(
'
click
'
,
function
()
{
downTag
.
addEventListener
(
'
click
'
,
function
()
{
downTag
.
download
=
fileName
;
downTag
.
href
=
URL
.
createObjectURL
(
file
);
});
...
...
@@ -270,10 +271,7 @@ function metricAccuracy(metric: MetricDataRecord): number {
function
formatAccuracy
(
accuracy
:
number
):
string
{
// TODO: how to format NaN?
return
accuracy
.
toFixed
(
6
)
.
replace
(
/0+$/
,
''
)
.
replace
(
/
\.
$/
,
''
);
return
accuracy
.
toFixed
(
6
).
replace
(
/0+$/
,
''
).
replace
(
/
\.
$/
,
''
);
}
function
formatComplexTypeValue
(
value
:
any
):
string
|
number
{
...
...
@@ -297,7 +295,7 @@ function caclMonacoEditorHeight(height): number {
function
copyAndSort
<
T
>
(
items
:
T
[],
columnKey
:
string
,
isSortedDescending
?:
boolean
):
any
{
const
key
=
columnKey
as
keyof
T
;
return
items
.
slice
(
0
).
sort
(
function
(
a
:
T
,
b
:
T
):
any
{
return
items
.
slice
(
0
).
sort
(
function
(
a
:
T
,
b
:
T
):
any
{
if
(
a
[
key
]
===
undefined
||
Object
.
is
(
a
[
key
],
NaN
)
||
...
...
ts/webui/src/static/interface.ts
View file @
ef15fc81
...
...
@@ -150,9 +150,9 @@ interface TrialJobInfo {
stderrPath
?:
string
;
}
interface
ClusterItem
{
command
?:
string
;
}
//
interface ClusterItem {
//
command?: string;
//
}
interface
ExperimentProfile
{
params
:
ExperimentConfig
;
...
...
ts/webui/src/static/model/trial.ts
View file @
ef15fc81
...
...
@@ -115,6 +115,7 @@ class Trial implements TableObj {
return
undefined
;
}
else
if
(
typeof
parseMetrics
(
temp
.
data
)
===
'
object
'
&&
// eslint-disable-next-line no-prototype-builtins
parseMetrics
(
temp
.
data
).
hasOwnProperty
(
'
default
'
)
)
{
return
parseMetrics
(
temp
.
data
).
default
;
...
...
ts/webui/yarn.lock
View file @
ef15fc81
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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