BigW Consortium Gitlab

index.js 449 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    notes: [],
    targetNoteHash: null,
    lastFetchedAt: null,
14 15 16 17 18

    // holds endpoints and permissions provided through haml
    notesData: {},
    userData: {},
    issueData: {},
19 20 21 22 23
  },
  actions,
  getters,
  mutations,
});