diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 15:47:18 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-05-21 15:47:18 +0200 |
| commit | 34573a4f34c862ee884d0a3fd5badb1d4af1d9c2 (patch) | |
| tree | fcdaf6b6182b92a91447c6fbad733eea7acdda56 /app/client/live | |
| parent | ceb342df85308e45729067d4b56aa5b2fbaabc49 (diff) | |
cmdz
Diffstat (limited to 'app/client/live')
| -rw-r--r-- | app/client/live/actions.js | 6 | ||||
| -rw-r--r-- | app/client/live/components/player.component.js | 4 | ||||
| -rw-r--r-- | app/client/live/index.js | 2 | ||||
| -rw-r--r-- | app/client/live/reducer.js | 6 |
4 files changed, 10 insertions, 8 deletions
diff --git a/app/client/live/actions.js b/app/client/live/actions.js index b604c67..5ee030a 100644 --- a/app/client/live/actions.js +++ b/app/client/live/actions.js @@ -16,7 +16,7 @@ export const list_checkpoints = () => { return { type: 'LOADING_CHECKPOINTS', } } -export const list_datasets = () => { - socket.list_datasets() - return { type: 'LOADING_DATASETS', } +export const list_sequences = () => { + socket.list_sequences() + return { type: 'LOADING_SEQUENCES', } } diff --git a/app/client/live/components/player.component.js b/app/client/live/components/player.component.js index 3c5fc9e..42776ac 100644 --- a/app/client/live/components/player.component.js +++ b/app/client/live/components/player.component.js @@ -3,7 +3,9 @@ import { connect } from 'react-redux' function Player(props) { return ( - <div className='player' /> + <div className='player'> + <canvas width='424' height='256' /> + </div> ) } diff --git a/app/client/live/index.js b/app/client/live/index.js index 51190b2..c438e4b 100644 --- a/app/client/live/index.js +++ b/app/client/live/index.js @@ -14,7 +14,7 @@ class App extends Component { super() props.actions.get_params() props.actions.list_checkpoints() - props.actions.list_datasets() + props.actions.list_sequences() } render(){ const props = this.props diff --git a/app/client/live/reducer.js b/app/client/live/reducer.js index 4c5dba7..c667689 100644 --- a/app/client/live/reducer.js +++ b/app/client/live/reducer.js @@ -5,7 +5,7 @@ const liveInitialState = { error: null, opt: {}, checkpoints: [], - datasets: [], + sequences: [], } const liveReducer = (state = liveInitialState, action) => { @@ -38,10 +38,10 @@ const liveReducer = (state = liveInitialState, action) => { checkpoints: action.checkpoints, } - case 'LIST_DATASETS': + case 'LIST_SEQUENCES': return { ...state, - datasets: action.datasets, + sequences: action.sequences, } default: |
