From 9e08754fa2b4fde9b060606fe5851f31590690d6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 27 May 2018 04:16:43 +0200 Subject: test sending events --- app/client/system/system.component.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (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 8c8767f..a663acf 100644 --- a/app/client/system/system.component.js +++ b/app/client/system/system.component.js @@ -6,6 +6,7 @@ import Group from '../common/group.component' import Param from '../common/param.component' import * as systemActions from './system.actions' +import * as liveActions from '../live/live.actions' import * as taskActions from '../task/task.actions' const cpu_test_task = { @@ -29,6 +30,8 @@ const live_test_task = { epochs: 1, opt: {} } +const fruits = ["apple","pear","banana","strawberry"] +function choice(a){ return a[Math.floor(Math.random()*a.length)]} class System extends Component { constructor(props){ @@ -86,6 +89,10 @@ class System extends Component { + + + + {this.renderCommandOutput()} @@ -135,13 +142,15 @@ class System extends Component { } } const mapStateToProps = state => ({ - ...state.system + ...state.system, + ...state.live, }) const mapDispatchToProps = (dispatch, ownProps) => ({ actions: { system: bindActionCreators(systemActions, dispatch), task: bindActionCreators(taskActions, dispatch), + live: bindActionCreators(liveActions, dispatch), }, }) -- cgit v1.2.3-70-g09d2