{"size": 423, "ext": "js", "max_stars_repo_path": "src/core/vuex/store.js", "max_stars_repo_name": "itundret/wordexpress-starter-vue", "max_stars_repo_stars_event_min_datetime": "2018-01-06T05:03:43.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-29T09:42:23.000Z", "max_issues_repo_path": "src/core/vuex/store.js", "max_issues_repo_name": "itundret/wordexpress-starter-vue", "max_issues_repo_issues_event_min_datetime": "2018-02-22T14:06:26.000Z", "max_issues_repo_issues_event_max_datetime": "2020-01-30T08:37:25.000Z", "max_forks_repo_path": "src/core/vuex/store.js", "max_forks_repo_name": "itundret/wordexpress-starter-vue", "max_forks_repo_forks_event_min_datetime": "2018-01-08T16:07:01.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-04T07:04:48.000Z"}
{"max_stars_count": 245, "max_issues_count": 10, "max_forks_count": 33, "avg_line_length": 15.1071428571, "max_line_length": 38, "alphanum_fraction": 0.6501182033}
import Vue from "vue";
import Vuex from "vuex";
import * as actions from "./actions";
import * as getters from "./getters";

Vue.use(Vuex);

const state = {
  activeMenuName: null
};

const mutations = {
  ACTIVE_MENU_NAME: (state, name) => {
    state.activeMenuName = name;
  }
};

function createStore() {
  return new Vuex.Store({
    state,
    actions,
    mutations,
    getters
  });
}

export default createStore;
