2016-12-09 07:01:59 +00:00
|
|
|
import { flattenAndNamespace } from '../helpers/internals';
|
2017-03-03 18:38:17 +00:00
|
|
|
|
2016-12-09 07:01:59 +00:00
|
|
|
import * as user from './user';
|
2017-03-03 18:38:17 +00:00
|
|
|
import * as tasks from './tasks';
|
|
|
|
|
import * as guilds from './guilds';
|
2016-09-29 11:32:36 +00:00
|
|
|
|
2017-03-03 18:38:17 +00:00
|
|
|
// Actions should be named as 'actionName' and can be accessed as 'namespace:actionName'
|
|
|
|
|
// Example: fetch in user.js -> 'user:fetch'
|
2016-12-09 07:01:59 +00:00
|
|
|
|
|
|
|
|
const actions = flattenAndNamespace({
|
2016-12-07 01:11:40 +00:00
|
|
|
user,
|
2016-12-09 07:01:59 +00:00
|
|
|
tasks,
|
2017-03-03 18:38:17 +00:00
|
|
|
guilds,
|
2016-12-09 07:01:59 +00:00
|
|
|
});
|
2016-09-29 11:32:36 +00:00
|
|
|
|
2016-12-07 01:11:40 +00:00
|
|
|
export default actions;
|