debian-mirror-gitlab/app/assets/javascripts/notes/stores/index.js
2018-03-27 19:54:05 +05:30

26 lines
510 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,
// View layer
isToggleStateButtonLoading: false,
// holds endpoints and permissions provided through haml
notesData: {},
userData: {},
noteableData: {},
},
actions,
getters,
mutations,
});