Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { TableRecord } from '../../static/interface';
import OpenRow from '../public-child/OpenRow';
import Compare from '../Modal/Compare';
import Customize from '../Modal/CustomizedTrial';
import '../../static/style/search.scss';
require('../../static/style/tableStatus.css');
require('../../static/style/logPath.scss');
require('../../static/style/search.scss');
require('../../static/style/table.scss');
require('../../static/style/button.scss');
require('../../static/style/openRow.scss');
const echarts = require('echarts/lib/echarts');
require('echarts/lib/chart/line');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
echarts.registerTheme('my_theme', {
color: '#3c8dbc'
});
interface TableListProps {
pageSize: number;
tableSource: Array;
columnList: Array; // user select columnKeys
changeColumn: (val: Array) => void;
trialsUpdateBroadcast: number;
}
interface TableListState {
intermediateOption: object;
modalVisible: boolean;
isObjFinal: boolean;
isShowColumn: boolean;
import * as React from 'react';
import ReactEcharts from 'echarts-for-react';
const echarts = require('echarts/lib/echarts');
echarts.registerTheme('my_theme', {
color: '#3c8dbc'
});
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
interface AccuracyProps {
accuracyData: object;
accNodata: string;
height: number;
}
class Accuracy extends React.Component {
constructor(props: AccuracyProps) {
super(props);
"label": {
"normal": {
"textStyle": {
"color": "#eeeeee"
}
},
"emphasis": {
"textStyle": {
"color": "#eeeeee"
}
}
}
}
};
echarts.registerTheme(themeName, theme);
export default themeName;
label: {
show: false,
},
emphasis: {
itemStyle: {
borderColor: '#999',
borderWidth: 1,
},
label: {
show: false,
},
},
};
}
echarts.registerTheme('api-umbrella-theme', {
color: colorPalette,
graph: {
color: colorPalette,
},
areaStyle: {
opacity: 0.2,
},
timeAxis: axisCommon(),
logAxis: axisCommon(),
valueAxis: axisCommon(),
categoryAxis: axisCommon(),
geo: mapCommon(),
map: mapCommon(),
scatter: {
itemStyle: {
borderColor: '#bbb',
"markPoint": {
"label": {
"normal": {
"textStyle": {
"color": "#eeeeee"
}
},
"emphasis": {
"textStyle": {
"color": "#eeeeee"
}
}
}
}
};
echarts.registerTheme(themeName, theme);
export default themeName;
registerTheme (...args) {
echarts.registerTheme(...args)
}
}
import 'echarts/lib/chart/radar'
import 'echarts/lib/chart/parallel'
import 'echarts/lib/chart/pictorialBar'
import 'echarts-wordcloud'
import 'echarts/lib/component/legend'
import 'echarts/lib/component/legendScroll'
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/toolbox'
import 'echarts/lib/component/dataZoom'
import 'echarts/lib/component/visualMap'
import 'echarts/lib/component/geo'
import 'echarts/lib/component/brush'
import 'assets/js/china.js'
import { DEFAULT_ECHARTS_THEME } from 'app/globalConstants'
echarts.registerTheme('default', DEFAULT_ECHARTS_THEME)
import configureStore from './store'
import createRoutes from './routes'
const initialState = {}
const store = configureStore(initialState, hashHistory)
const MOUNT_NODE = document.getElementById('app')
const history = syncHistoryWithStore(hashHistory, store, {
selectLocationState: makeSelectLocationState()
})
const rootRoute = {
path: '/',
component: hot(module)(App),
childRoutes: createRoutes(store),
indexRoute: {
import * as React from 'react';
import axios from 'axios';
import { MANAGER_IP } from '../const';
import ReactEcharts from 'echarts-for-react';
const echarts = require('echarts/lib/echarts');
echarts.registerTheme('my_theme', {
color: '#3c8dbc'
});
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
require('../style/accuracy.css');
const accStyle = {
width: '100%',
height: 600,
margin: '0 auto'
};
interface ChartState {
option: object;
accNodata: string;
import * as React from 'react';
import { browserHistory } from 'react-router';
import axios from 'axios';
import { Table, Button, Popconfirm, message, Modal } from 'antd';
import { MANAGER_IP, trialJobStatus } from '../const';
import JSONTree from 'react-json-tree';
import ReactEcharts from 'echarts-for-react';
const echarts = require('echarts/lib/echarts');
require('echarts/lib/chart/bar');
require('echarts/lib/chart/line');
require('echarts/lib/chart/scatter');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
require('../style/trialStatus.css');
require('../style/logPath.css');
echarts.registerTheme('my_theme', {
color: '#3c8dbc'
});
interface ErrorPara {
error?: string;
}
interface DescObj {
parameters: ErrorPara;
logPath?: string;
isLink?: boolean;
}
interface TableObj {
key: number;
id: string;
export function registerTheme(themeName: string, theme: object): void {
echarts.registerTheme(themeName, theme);
}