forked from microsoft/nni
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[webui v1.9 bug bash] fix bugs in v1.9 (microsoft#2989)
- Loading branch information
Showing
31 changed files
with
725 additions
and
409 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ | |
.ms-Callout-main { | ||
p { | ||
font-weight: 500; | ||
color: #333; | ||
color: #fff; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import React from 'react'; | ||
import { TooltipHost, DirectionalHint } from '@fluentui/react'; | ||
import { EXPERIMENT } from '../../../static/datamodel'; | ||
import { TOOLTIP_BACKGROUND_COLOR } from '../../../static/const'; | ||
import '../../../static/style/overview/command.scss'; | ||
|
||
export const Command2 = (): any => { | ||
const clusterMetaData = EXPERIMENT.profile.params.clusterMetaData; | ||
let trialCommand = 'unknown'; | ||
|
||
if (clusterMetaData !== undefined) { | ||
for (const item of clusterMetaData) { | ||
if (item.key === 'command') { | ||
trialCommand = item.value; | ||
} | ||
} | ||
} | ||
return ( | ||
<div className='command basic'> | ||
<p>Log directory</p> | ||
<div className='nowrap'> | ||
<TooltipHost | ||
content={EXPERIMENT.profile.logDir || 'unknown'} | ||
className='nowrap' | ||
directionalHint={DirectionalHint.bottomCenter} | ||
tooltipProps={{ | ||
calloutProps: { | ||
styles: { | ||
beak: { background: TOOLTIP_BACKGROUND_COLOR }, | ||
beakCurtain: { background: TOOLTIP_BACKGROUND_COLOR }, | ||
calloutMain: { background: TOOLTIP_BACKGROUND_COLOR } | ||
} | ||
} | ||
}} | ||
> | ||
{EXPERIMENT.profile.logDir || 'unknown'} | ||
</TooltipHost> | ||
</div> | ||
<p className='lineMargin'>Trial command</p> | ||
<div className='nowrap'> | ||
<TooltipHost | ||
content={trialCommand || 'unknown'} | ||
className='nowrap' | ||
directionalHint={DirectionalHint.bottomCenter} | ||
tooltipProps={{ | ||
calloutProps: { | ||
styles: { | ||
beak: { background: TOOLTIP_BACKGROUND_COLOR }, | ||
beakCurtain: { background: TOOLTIP_BACKGROUND_COLOR }, | ||
calloutMain: { background: TOOLTIP_BACKGROUND_COLOR } | ||
} | ||
} | ||
}} | ||
> | ||
{trialCommand || 'unknown'} | ||
</TooltipHost> | ||
</div> | ||
</div> | ||
); | ||
}; |
Oops, something went wrong.