2019-06-03 03:31:38 +00:00
|
|
|
import Vuex from 'vuex';
|
|
|
|
|
2019-11-15 01:37:17 +00:00
|
|
|
import initUiStore from './ui/ui';
|
2019-06-03 03:31:38 +00:00
|
|
|
import initAuthStore from './auth/auth';
|
2021-03-14 03:54:43 +00:00
|
|
|
import initUsersStore from './users/users';
|
2019-06-03 03:31:38 +00:00
|
|
|
import initReleasesStore from './releases/releases';
|
2020-06-27 00:57:30 +00:00
|
|
|
import initEntitiesStore from './entities/entities';
|
2019-11-10 03:20:22 +00:00
|
|
|
import initActorsStore from './actors/actors';
|
2019-11-11 04:18:28 +00:00
|
|
|
import initTagsStore from './tags/tags';
|
2021-03-14 03:54:43 +00:00
|
|
|
import initStashesStore from './stashes/stashes';
|
2019-06-03 03:31:38 +00:00
|
|
|
|
|
|
|
function initStore(router) {
|
2020-05-14 02:26:05 +00:00
|
|
|
const store = new Vuex.Store();
|
2019-06-03 03:31:38 +00:00
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
store.registerModule('ui', initUiStore(store, router));
|
|
|
|
store.registerModule('auth', initAuthStore(store, router));
|
2021-03-14 03:54:43 +00:00
|
|
|
store.registerModule('users', initUsersStore(store, router));
|
2020-05-14 02:26:05 +00:00
|
|
|
store.registerModule('releases', initReleasesStore(store, router));
|
2020-06-27 00:57:30 +00:00
|
|
|
store.registerModule('entities', initEntitiesStore(store, router));
|
2020-07-05 02:27:46 +00:00
|
|
|
store.registerModule('actors', initActorsStore(store, router));
|
2020-05-14 02:26:05 +00:00
|
|
|
store.registerModule('tags', initTagsStore(store, router));
|
2021-03-14 03:54:43 +00:00
|
|
|
store.registerModule('stashes', initStashesStore(store, router));
|
2019-06-03 03:31:38 +00:00
|
|
|
|
2020-05-14 02:26:05 +00:00
|
|
|
return store;
|
2019-06-03 03:31:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default initStore;
|