30 lines
531 B
TypeScript
30 lines
531 B
TypeScript
import Vue from "vue";
|
|
import Vuex, { StoreOptions } from "vuex";
|
|
import { AppState } from "./types";
|
|
|
|
Vue.use(Vuex);
|
|
|
|
import actions from "./actions";
|
|
import mutations from "./mutations";
|
|
import getters from "./getters";
|
|
|
|
import network from "./network";
|
|
import draft from "./draft";
|
|
|
|
const store: StoreOptions<AppState> = {
|
|
state: {
|
|
loaded: false,
|
|
loading: false,
|
|
loadingMessage: ""
|
|
},
|
|
actions,
|
|
mutations,
|
|
getters,
|
|
modules: {
|
|
network,
|
|
draft
|
|
}
|
|
};
|
|
|
|
export default new Vuex.Store<AppState>(store);
|