debian-mirror-gitlab/app/assets/javascripts/notes/stores/index.js
2018-03-17 18:26:18 +05:30

23 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,
});