2018-11-03 01:23:39 +01:00
|
|
|
import Vue from 'vue'
|
2018-11-17 21:07:07 +01:00
|
|
|
import Vuex, { Store } from 'vuex'
|
2018-11-02 15:56:29 +01:00
|
|
|
|
2018-11-26 00:53:05 +01:00
|
|
|
import { IGlobalState } from 'model'
|
2018-11-17 21:07:07 +01:00
|
|
|
import { Route } from 'vue-router'
|
|
|
|
|
import { getStoreBuilder } from 'vuex-typex'
|
2018-11-02 15:56:29 +01:00
|
|
|
|
2018-11-17 20:32:28 +01:00
|
|
|
|
2018-11-15 19:48:37 +01:00
|
|
|
export interface RootState {
|
2018-11-26 00:53:05 +01:00
|
|
|
GlobalModule: IGlobalState
|
2018-11-15 19:48:37 +01:00
|
|
|
route: Route
|
2018-11-02 15:56:29 +01:00
|
|
|
}
|
|
|
|
|
|
2018-11-17 21:07:07 +01:00
|
|
|
Vue.use(Vuex)
|
|
|
|
|
|
2018-11-17 20:32:28 +01:00
|
|
|
export const DebugMode = true
|
2018-11-05 22:28:59 +01:00
|
|
|
|
2018-11-15 19:48:37 +01:00
|
|
|
export * from './Modules'
|
2018-11-17 20:32:28 +01:00
|
|
|
|
2018-11-17 21:07:07 +01:00
|
|
|
export { default as EventBus } from './EventBus'
|
|
|
|
|
export { default as Api } from './Api'
|
|
|
|
|
|
|
|
|
|
const store: Store<RootState> = getStoreBuilder<RootState>().vuexStore()
|
|
|
|
|
export default store
|