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
87677df8
"...pointpillars-pytorch.git" did not exist on "0761f6c7592e4311b2bdd75b98c2800e9aed5f24"
Unverified
Commit
87677df8
authored
Oct 12, 2022
by
Lijiaoa
Committed by
GitHub
Oct 12, 2022
Browse files
fix issue 3549: Broken link on webui (#5154)
parent
7811307c
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
900 additions
and
862 deletions
+900
-862
ts/webui/src/components/nav/Nav.tsx
ts/webui/src/components/nav/Nav.tsx
+12
-2
ts/webui/yarn.lock
ts/webui/yarn.lock
+888
-860
No files found.
ts/webui/src/components/nav/Nav.tsx
View file @
87677df8
...
@@ -63,7 +63,12 @@ class NavCon extends React.Component<NavProps, NavState> {
...
@@ -63,7 +63,12 @@ class NavCon extends React.Component<NavProps, NavState> {
method
:
'
GET
'
method
:
'
GET
'
}).
then
(
res
=>
{
}).
then
(
res
=>
{
if
(
res
.
status
===
200
)
{
if
(
res
.
status
===
200
)
{
this
.
setState
({
version
:
res
.
data
});
let
formatVersion
=
res
.
data
;
// 2.0 will get 2.0.0 by node, so delete .0 to get real version
if
(
formatVersion
.
endsWith
(
'
.0
'
))
{
formatVersion
=
formatVersion
.
slice
(
0
,
-
2
);
}
this
.
setState
({
version
:
formatVersion
});
}
}
});
});
};
};
...
@@ -80,7 +85,12 @@ class NavCon extends React.Component<NavProps, NavState> {
...
@@ -80,7 +85,12 @@ class NavCon extends React.Component<NavProps, NavState> {
openGithubNNI
=
():
void
=>
{
openGithubNNI
=
():
void
=>
{
const
{
version
}
=
this
.
state
;
const
{
version
}
=
this
.
state
;
const
nniLink
=
`https://github.com/Microsoft/nni/tree/
${
version
}
`
;
// 999.0.0-developing
let
formatVersion
=
`v
${
version
}
`
;
if
(
version
===
'
999.0.0-developing
'
)
{
formatVersion
=
'
master
'
;
}
const
nniLink
=
`https://github.com/Microsoft/nni/tree/
${
formatVersion
}
`
;
window
.
open
(
nniLink
);
window
.
open
(
nniLink
);
};
};
...
...
ts/webui/yarn.lock
View file @
87677df8
This diff is collapsed.
Click to expand it.
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