summaryrefslogtreecommitdiff
path: root/app/client/queue/queue.reducer.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-06-01 03:59:25 +0200
committerJules Laplace <julescarbon@gmail.com>2018-06-01 03:59:25 +0200
commitdbbeffd02629209f42affe3fb4bb4c46639ba0e3 (patch)
treefbd15c10cd5303eaaccbf0162401424209b684e6 /app/client/queue/queue.reducer.js
parent964ac7009e6db5a06233bdc07fa63778eebf2db7 (diff)
remote IPC... done so sweetly, with promises and async
Diffstat (limited to 'app/client/queue/queue.reducer.js')
-rw-r--r--app/client/queue/queue.reducer.js71
1 files changed, 71 insertions, 0 deletions
diff --git a/app/client/queue/queue.reducer.js b/app/client/queue/queue.reducer.js
new file mode 100644
index 0000000..c3995b1
--- /dev/null
+++ b/app/client/queue/queue.reducer.js
@@ -0,0 +1,71 @@
+import types from '../types'
+import moment from 'moment'
+
+const queueInitialState = {
+ loading: false,
+ error: null,
+
+ queue: [
+ {
+ id: 1073,
+ activity: 'train',
+ module: 'samplernn',
+ dataset: 'bobby_brown_-_every_little_step',
+ epochs: 6,
+ },
+ {
+ id: 1073,
+ activity: 'train',
+ module: 'pix2pix',
+ checkpoint: 'lyra_voice_layers',
+ dataset: 'audio/lyra_improv',
+ epochs: 30,
+ },
+ {
+ id: 1073,
+ activity: 'train',
+ module: 'pix2pix',
+ checkpoint: 'lyra_melody_lines',
+ dataset: 'audio/lyra_improv',
+ epochs: 30,
+ },
+ {
+ id: 1073,
+ activity: 'train',
+ module: 'pix2pix',
+ checkpoint: 'ensemble_chords',
+ dataset: 'audio/lyra_improv',
+ epochs: 30,
+ },
+ {
+ id: 1073,
+ activity: 'generate',
+ module: 'samplernn',
+ dataset: 'coccoglass3',
+ opt: { time: 5, count: 6 },
+ },
+ {
+ id: 1073,
+ activity: 'train',
+ module: 'pix2pix',
+ dataset: 'video/woods_green',
+ epochs: 100,
+ },
+ {
+ id: 1073,
+ activity: 'train',
+ module: 'samplernn',
+ dataset: 'bobby_brown_-_every_little_step',
+ epochs: 6,
+ },
+ ],
+}
+
+const queueReducer = (state = queueInitialState, action) => {
+ switch(action.type) {
+ default:
+ return state
+ }
+}
+
+export default queueReducer