CoreFiles by mySites.guru
store.js20 lines, 612 bytes, from Joomla_4.0.0-alpha9-Alpha-Full_Package.zip
Raw History Compare with 4.0.0-alpha8
md5
8c57dc9052c90b2262bc57f0fbbf3cee
sha1
6bf7541d5ddcc09162f9039106c4852e50fc67f2
sha256
f9651c14978309e491b49773a128a06223af660dbe9d70b3a91ef11eb0a0cabc
import Vue from 'vue'
import Vuex from 'vuex'
import state from './state';
import * as getters from './getters';
import * as actions from './actions';
import mutations from './mutations';
import createPersistedState from 'vuex-persistedstate'
import {persistedStateOptions} from "./plugins/persisted-state";

Vue.use(Vuex);

// A Vuex instance is created by combining the state, mutations, actions, and getters.
export default new Vuex.Store({
    state,
    getters,
    actions,
    mutations,
    plugins: [createPersistedState(persistedStateOptions)],
    strict: (process.env.NODE_ENV !== 'production'),
})

The same content is in 4 releases, Joomla 4.0.0-alpha9 to 4.0.0-alpha12. See them all, or every version of this file.