import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

// modules
import app from "./app";
import { card, free } from "@/modules/card/store";
import exam from "@/modules/exam/store";
import base from "@/modules/base/store";
import baseConfigs from "@/modules/analysis/components/baseConfig/baseConfigsStore";
import markParam from "@/modules/mark/components/markParam/store";
import report from "@/modules/mark/components/report/store";
import target from "@/modules/target/store";

export default new Vuex.Store({
  state: {
    user: {},
  },
  mutations: {
    setUser(state, user) {
      state.user = user;
    },
  },
  modules: {
    app,
    card,
    free,
    exam,
    base,
    baseConfigs,
    markParam,
    report,
    target,
  },
});
