diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2020-05-30 17:27:04 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2020-05-30 17:27:04 +0200 |
| commit | 0890fdd951d021308550a0db2e7b6f2593512957 (patch) | |
| tree | a0050b153242ccde662fc0a957a79fc7a7edc4b4 /frontend/actions.js | |
initial site copied in
Diffstat (limited to 'frontend/actions.js')
| -rw-r--r-- | frontend/actions.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/frontend/actions.js b/frontend/actions.js new file mode 100644 index 0000000..fcbb6fc --- /dev/null +++ b/frontend/actions.js @@ -0,0 +1,18 @@ +import { bindActionCreators } from 'redux' +import { actions as crudActions } from './api' + +// import * as dashboardActions from './views/dashboard/dashboard.actions' + +import { store } from './store' + +export default + Object.keys(crudActions) + .map(a => [a, crudActions[a]]) + .concat([ + // ['dashboard', dashboardActions], + ]) + .map(p => [p[0], bindActionCreators(p[1], store.dispatch)]) + .concat([ + ['socket', socketActions], + ]) + .reduce((a,b) => (a[b[0]] = b[1])&&a,{})
\ No newline at end of file |
