"...targets/git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "f4fc7dbc8ecb63674955a74ac8f859e143441219"
Unverified Commit f84d90d6 authored by Lijiaoa's avatar Lijiaoa Committed by GitHub
Browse files

WebUI dispatcher log / nnimanager log wrap (#3461)

parent 636ca9b5
import * as React from 'react';
import { Spinner } from '@fluentui/react';
import { DRAWEROPTION } from '../../static/const';
import MonacoEditor from 'react-monaco-editor';
interface MonacoEditorProps {
......@@ -10,20 +9,10 @@ interface MonacoEditorProps {
}
class MonacoHTML extends React.Component<MonacoEditorProps, {}> {
public _isMonacoMount!: boolean;
constructor(props: MonacoEditorProps) {
super(props);
}
componentDidMount(): void {
this._isMonacoMount = true;
}
componentWillUnmount(): void {
this._isMonacoMount = false;
}
render(): React.ReactNode {
const { content, loading, height } = this.props;
return (
......@@ -40,11 +29,27 @@ class MonacoHTML extends React.Component<MonacoEditorProps, {}> {
height={height}
language='json'
value={content}
options={DRAWEROPTION}
options={{
minimap: { enabled: false },
readOnly: true,
automaticLayout: true,
wordWrap: 'on'
}}
/>
</Spinner>
) : (
<MonacoEditor width='100%' height={height} language='json' value={content} options={DRAWEROPTION} />
<MonacoEditor
width='100%'
height={height}
language='json'
value={content}
options={{
minimap: { enabled: false },
readOnly: true,
automaticLayout: true,
wordWrap: 'on'
}}
/>
)}
</React.Fragment>
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment