1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { bindActionCreators } from 'redux'
// import { actions as crudActions } from './api'
import * as siteActions from 'site/site/site.actions'
import * as audioActions from 'app/views/audio/audio.actions'
import * as viewerActions from 'app/views/viewer/viewer.actions'
import * as transcriptActions from 'app/views/editor/paragraph/transcript.actions'
import { store } from './store'
export default
// Object.keys(crudActions)
// .map(a => [a, crudActions[a]])
// .concat(
[
['site', siteActions],
['audio', audioActions],
['viewer', viewerActions],
['transcript', transcriptActions]
] //)
.map(p => [p[0], bindActionCreators(p[1], store.dispatch)])
.concat([
// ['socket', socketActions],
])
.reduce((a,b) => (a[b[0]] = b[1])&&a,{})
|