summaryrefslogtreecommitdiff
path: root/app/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-28 20:17:56 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-28 20:17:56 +0200
commitc248031739699775477c838f8e836fedf243c720 (patch)
tree85f6d69f1437c63d4cbb1800e761a435c41abc9f /app/client
parent2664eb3e474f5d03d1782c15673b774d68fb2c58 (diff)
new modules..
Diffstat (limited to 'app/client')
-rw-r--r--app/client/modules/index.js2
-rw-r--r--app/client/modules/samplernn/datasets.component.js21
-rw-r--r--app/client/store.js2
3 files changed, 19 insertions, 6 deletions
diff --git a/app/client/modules/index.js b/app/client/modules/index.js
index 6ca4bc5..bc7c263 100644
--- a/app/client/modules/index.js
+++ b/app/client/modules/index.js
@@ -3,4 +3,4 @@ import samplernn from './samplernn'
export default {
pix2pix, samplernn
-} \ No newline at end of file
+}
diff --git a/app/client/modules/samplernn/datasets.component.js b/app/client/modules/samplernn/datasets.component.js
index 989f145..56024e7 100644
--- a/app/client/modules/samplernn/datasets.component.js
+++ b/app/client/modules/samplernn/datasets.component.js
@@ -12,11 +12,12 @@ import TextInput from '../../common/textInput.component'
class SampleRNNDatasets extends Component {
constructor(props){
super()
+ // fetch file list
this.handleUpload = this.handleUpload.bind(this)
this.handleURL = this.handleURL.bind(this)
}
handleUpload(file) {
-
+
}
handleURL(url) {
@@ -25,7 +26,7 @@ class SampleRNNDatasets extends Component {
return (
<div className='app'>
<div className='heading'>
- <h3>SampleRNN Datasets</h3>
+ <h3>SampleRNN</h3>
</div>
<div className='params row'>
<div className='column'>
@@ -41,13 +42,23 @@ class SampleRNNDatasets extends Component {
</Group>
</div>
</div>
+ <div className='params row'>
+ <h3>Datasets</h3>
+ <div className="media">
+ <div className="filename">foo.mp3</div>
+ <div className="size">1.2 mb</div>
+ <div className="date">30 May 2018</div>
+ <div className="epoch">epoch 30</div>
+ <div className="options">
+ delete
+ </div>
+ </div>
+ </div>
</div>
)
}
}
-function timeInSeconds(n){
- return (n / 10).toFixed(1) + ' s.'
-}
+
const mapStateToProps = state => ({
})
diff --git a/app/client/store.js b/app/client/store.js
index f7eb566..108ac83 100644
--- a/app/client/store.js
+++ b/app/client/store.js
@@ -10,6 +10,7 @@ import systemReducer from './system/system.reducer'
import dashboardReducer from './dashboard/dashboard.reducer'
import liveReducer from './live/live.reducer'
import taskReducer from './task/task.reducer'
+import { moduleReducer } from './modules/module.reducer'
const appReducer = combineReducers({
system: systemReducer,
@@ -17,6 +18,7 @@ const appReducer = combineReducers({
live: liveReducer,
task: taskReducer,
router: routerReducer,
+ module: moduleReducer,
})
export const history = createHistory()