24 lines
452 B
JavaScript
24 lines
452 B
JavaScript
|
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,
|
||
|
|
||
|
// holds endpoints and permissions provided through haml
|
||
|
notesData: {},
|
||
|
userData: {},
|
||
|
noteableData: {},
|
||
|
},
|
||
|
actions,
|
||
|
getters,
|
||
|
mutations,
|
||
|
});
|