ludo237/vuejs-carousel

View on GitHub
src/store/store.js

Summary

Maintainability
A
0 mins
Test Coverage
import Vue from "vue";
import Vuex from "vuex";
import {state} from "./states";
import {getters} from "./getters";
import {mutations} from "./mutations";
import {actions} from "./actions";
Vue.use(Vuex);

/**
 * Carousel main store
 *
 * We are using the Vuex store system because
 * it easier to keep track of what's happening
 * between the Photo Gallery and the Theater
 *
 * @type {Store}
 */
export const store = new Vuex.Store({
    state,
    getters,
    mutations,
    actions
});