index.js 696 B

123456789101112131415161718192021222324252627282930313233
  1. import Vue from 'vue'
  2. import Vuex from 'vuex'
  3. import fabchange from './fabchange'
  4. import bardata from './bardata'
  5. import scanedsolve from './scanedsolve'
  6. Vue.use(Vuex)
  7. /*
  8. * If not building with SSR mode, you can
  9. * directly export the Store instantiation;
  10. *
  11. * The function below can be async too; either use
  12. * async/await or return a Promise which resolves
  13. * with the Store instance.
  14. */
  15. export default function (/* { ssrContext } */) {
  16. const Store = new Vuex.Store({
  17. modules: {
  18. fabchange,
  19. bardata,
  20. scanedsolve
  21. },
  22. // enable strict mode (adds overhead!)
  23. // for dev mode and --debug builds only
  24. strict: process.env.DEBUGGING
  25. })
  26. return Store
  27. }