2019-06-03 03:31:38 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
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';
|
|
|
|
import initReleasesStore from './releases/releases';
|
2019-11-11 02:20:00 +00:00
|
|
|
import initSitesStore from './sites/sites';
|
2019-11-09 03:43:58 +00:00
|
|
|
import initNetworksStore from './networks/networks';
|
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';
|
2019-06-03 03:31:38 +00:00
|
|
|
|
|
|
|
function initStore(router) {
|
2020-05-14 02:26:05 +00:00
|
|
|
Vue.use(Vuex);
|
2019-06-03 03:31:38 +00:00
|
|
|
|
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));
|
|
|
|
store.registerModule('releases', initReleasesStore(store, router));
|
|
|
|
store.registerModule('actors', initActorsStore(store, router));
|
|
|
|
store.registerModule('sites', initSitesStore(store, router));
|
|
|
|
store.registerModule('networks', initNetworksStore(store, router));
|
|
|
|
store.registerModule('tags', initTagsStore(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;
|