From be3b2bd56550b71a2ffb7eb1604c1b8c1d2dd4a2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 26 May 2018 21:33:26 +0200 Subject: refactor some task stuff --- app/client/system/system.component.js | 79 ++++++++++++++++++++++++----------- 1 file changed, 55 insertions(+), 24 deletions(-) (limited to 'app/client/system/system.component.js') diff --git a/app/client/system/system.component.js b/app/client/system/system.component.js index 7428c22..00c5395 100644 --- a/app/client/system/system.component.js +++ b/app/client/system/system.component.js @@ -6,6 +6,19 @@ import Group from '../common/group.component' import Param from '../common/param.component' import * as systemActions from './system.actions' +import * as taskActions from '../task/task.actions' + +const cpu_test_task = { + id: 1073, + activity: 'train', + library: 'test', + dataset: 'test', + epochs: 1, + opt: {} +} +const gpu_test_task = { + +} class System extends Component { constructor(props){ @@ -20,30 +33,45 @@ class System extends Component {
- - {server.status} - {server.error && - {server.error.message} - } - {relay.status} - {rpc.status} - {rpc.cpu_cmd} - {rpc.gpu_cmd} - train samplernn - - - - - - - - - - - - +
+ + {server.status} + {server.error && + {server.error.message} + } + {relay.status} + {rpc.status} + {rpc.cpu_cmd} + {rpc.gpu_cmd} + train samplernn + + + + + + + + + + + + + + + + + + + + + + + + + +
+ {this.renderCommandOutput()}
- {this.renderCommandOutput()} ) } @@ -76,7 +104,10 @@ const mapStateToProps = state => ({ }) const mapDispatchToProps = (dispatch, ownProps) => ({ - actions: bindActionCreators(systemActions, dispatch) + actions: { + system: bindActionCreators(systemActions, dispatch), + task: bindActionCreators(taskActions, dispatch), + }, }) export default connect(mapStateToProps, mapDispatchToProps)(System) -- cgit v1.2.3-70-g09d2