Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
firstName: null,
lastName: null,
dateJoined: null,
lastLogin: null,
};
const globals = {
globals: {},
layout: 'topnav',
user: DEFAULT_USER,
avatar: '',
gauth: null,
};
export default new Vuex.Store({
plugins: [pathify.plugin],
modules: {
global: makeModule(globals),
notes: makeModule(notes),
budget: makeModule(budget),
},
});
...make.mutations(state),
addStack(state, { stack }) {
state.stacks.push(stack);
},
deleteStack(state, { stack }) {
state.stacks.splice(findIndexByStackId(stack), 1);
},
editStack(state, { stack }) {
state.stacks[findIndexByStackId(stack)] = stack;
}
};
export default new Vuex.Store({
plugins: [
VuexPathify.plugin,
createPersistedState({ key: appConfig.defaults.persistedStore.name })
],
state,
mutations,
getters,
actions: {}
});
var makeModule = function(store) {
return {
namespaced: true,
state: store,
getters: make.getters(store),
actions: make.actions(store),
mutations: make.mutations(store),
};
};
const site = {
layout: 'navtop',
};
export default new Vuex.Store({
plugins: [pathify.plugin],
modules: {
site: makeModule(site),
notes: makeModule(notes),
},
});