Commit dd04c73a authored by Lijiao's avatar Lijiao Committed by QuanluZhang
Browse files

Optimization of copy as python (#987)

optimization of copy as python
parent 5ee549db
...@@ -4,7 +4,6 @@ import * as ReactDOM from 'react-dom'; ...@@ -4,7 +4,6 @@ import * as ReactDOM from 'react-dom';
import App from './App'; import App from './App';
import { Router, Route, browserHistory, IndexRedirect } from 'react-router'; import { Router, Route, browserHistory, IndexRedirect } from 'react-router';
import registerServiceWorker from './registerServiceWorker'; import registerServiceWorker from './registerServiceWorker';
import Control from './components/Control';
import Overview from './components/Overview'; import Overview from './components/Overview';
import TrialsDetail from './components/TrialsDetail'; import TrialsDetail from './components/TrialsDetail';
import './index.css'; import './index.css';
...@@ -15,7 +14,6 @@ ReactDOM.render( ...@@ -15,7 +14,6 @@ ReactDOM.render(
<IndexRedirect to="/oview" /> <IndexRedirect to="/oview" />
<Route path="/oview" component={Overview} /> <Route path="/oview" component={Overview} />
<Route path="/detail" component={TrialsDetail} /> <Route path="/detail" component={TrialsDetail} />
<Route path="/control" component={Control} />
</Route> </Route>
</Router>, </Router>,
document.getElementById('root') as HTMLElement document.getElementById('root') as HTMLElement
......
...@@ -25,7 +25,7 @@ const COLUMN_INDEX = [ ...@@ -25,7 +25,7 @@ const COLUMN_INDEX = [
index: 1 index: 1
}, },
{ {
name: 'Id', name: 'ID',
index: 2 index: 2
}, },
{ {
...@@ -45,11 +45,11 @@ const COLUMN_INDEX = [ ...@@ -45,11 +45,11 @@ const COLUMN_INDEX = [
index: 10000 index: 10000
}, },
{ {
name: 'Intermediate Result', name: 'Intermediate result',
index: 10001 index: 10001
} }
]; ];
const COLUMN = ['Trial No.', 'Id', 'Duration', 'Status', 'Default', 'Operation', 'Intermediate Result']; const COLUMN = ['Trial No.', 'ID', 'Duration', 'Status', 'Default', 'Operation', 'Intermediate result'];
export { export {
MANAGER_IP, DOWNLOAD_IP, trialJobStatus, MANAGER_IP, DOWNLOAD_IP, trialJobStatus,
CONTROLTYPE, MONACO, COLUMN, COLUMN_INDEX CONTROLTYPE, MONACO, COLUMN, COLUMN_INDEX
......
...@@ -90,7 +90,7 @@ const intermediateGraphOption = (intermediateArr: number[], id: string) => { ...@@ -90,7 +90,7 @@ const intermediateGraphOption = (intermediateArr: number[], id: string) => {
data: sequence data: sequence
}, },
yAxis: { yAxis: {
name: 'Default Metric', name: 'Default metric',
type: 'value', type: 'value',
data: intermediateArr data: intermediateArr
}, },
...@@ -112,6 +112,7 @@ const killJob = (key: number, id: string, status: string, updateList: Function) ...@@ -112,6 +112,7 @@ const killJob = (key: number, id: string, status: string, updateList: Function)
}) })
.then(res => { .then(res => {
if (res.status === 200) { if (res.status === 200) {
message.destroy();
message.success('Cancel the job successfully'); message.success('Cancel the job successfully');
// render the table // render the table
updateList(); updateList();
......
...@@ -4,4 +4,4 @@ ...@@ -4,4 +4,4 @@
top: 48%; top: 48%;
font-size: 13px; font-size: 13px;
color: #999; color: #999;
} }
\ No newline at end of file
/* website theme color */
$color: #0071bc; $color: #0071bc;
/* bg light grey */
$bgColor: #f2f2f2;
.openRowContent{ .openRowContent{
.ant-tabs-vertical.ant-tabs-left .ant-tabs-bar .ant-tabs-tab{ .ant-tabs-vertical.ant-tabs-left .ant-tabs-bar .ant-tabs-tab{
text-align: left !important; text-align: left !important;
...@@ -12,6 +14,7 @@ $color: #0071bc; ...@@ -12,6 +14,7 @@ $color: #0071bc;
} }
.openRowContent{ .openRowContent{
margin-top: 15px; margin-top: 15px;
background-color: $bgColor;
.card{ .card{
.ant-tabs-vertical .ant-tabs-bar .ant-tabs-tab{ .ant-tabs-vertical .ant-tabs-bar .ant-tabs-tab{
margin: 0; margin: 0;
...@@ -25,7 +28,7 @@ $color: #0071bc; ...@@ -25,7 +28,7 @@ $color: #0071bc;
} }
.ant-tabs-tabpane{ .ant-tabs-tabpane{
background: #f2f2f2; background: #f2f2f2;
padding: 10px 20px; padding: 12px 12px 12px 0;
} }
} }
} }
...@@ -44,3 +47,24 @@ $color: #0071bc; ...@@ -44,3 +47,24 @@ $color: #0071bc;
height: 100%; height: 100%;
} }
} }
#description{
.bgHyper{
background-color: #fff;
margin-bottom: 12px;
}
.copy{
Button{
background-color: #ccc;
color: #191919;
border: none;
outline: none;
}
Button:hover{
background-color: #ccc;
color: #191919;
border: none;
outline: none;
}
}
}
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
} }
div{ div{
font-size: 16px; font-size: 16px;
color: #333; color: #0573bc;
} }
} }
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
*/ */
.inputBox{ .inputBox{
height: 26px; height: 26px;
margin-top: -3px; margin-top: 5px;
.concurrencyInput{ .concurrencyInput{
width: 25%; width: 25%;
height: 26px; height: 26px;
......
/* react-json-tree background */
/* react-json-view background */
#description ul, #allList ul{ #description ul, #allList ul{
background: none !important; background: none !important;
} }
...@@ -10,10 +9,10 @@ ...@@ -10,10 +9,10 @@
#succeTable .commonTableStyle{ #succeTable .commonTableStyle{
overflow-y: scroll; overflow-y: scroll;
} }
} }
#succeTable, #tableList{ #succeTable, #tableList{
.commonTableStyle .idtitle div{ .commonTableStyle .leftTitle div{
text-align: left; text-align: left;
} }
.durationsty{ .durationsty{
...@@ -52,7 +51,6 @@ ...@@ -52,7 +51,6 @@
} }
tr:hover{ tr:hover{
/* cancel antd table default hover style */ /* cancel antd table default hover style */
td{ td{
background-color: transparent; background-color: transparent;
...@@ -85,7 +83,8 @@ ...@@ -85,7 +83,8 @@
} }
} }
pre.hyperpar{ /* let openrow content left*/
.hyperpar{
text-align: left; text-align: left;
line-height: 18px; line-height: 18px;
font-size: 14px; font-size: 14px;
...@@ -102,4 +101,4 @@ pre.hyperpar{ ...@@ -102,4 +101,4 @@ pre.hyperpar{
.ant-modal-title{ .ant-modal-title{
font-size: 20px; font-size: 20px;
} }
\ No newline at end of file
/* all table status font-color */
.RUNNING,.USER_CANCELED{ .RUNNING,.USER_CANCELED{
color: #0071BC; color: #0071BC;
} }
......
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