How to use the vuex-pathify.plugin function in vuex-pathify

To help you get started, we’ve selected a few vuex-pathify examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pkkid / pushingkarma / src / store.js View on Github external
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),
  },
});
github pnowy / github-stars-history / src / store.js View on Github external
...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: {}
});
github pkkid / pushingkarma / src / store.js View on Github external
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),
  },
});