From 0890fdd951d021308550a0db2e7b6f2593512957 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 30 May 2020 17:27:04 +0200 Subject: initial site copied in --- frontend/actions.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 frontend/actions.js (limited to 'frontend/actions.js') 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 -- cgit v1.2.3-70-g09d2