debian-mirror-gitlab/app/assets/javascripts/notes/stores/index.js

27 lines
510 B
JavaScript
Raw Normal View History

2018-03-17 18:26:18 +05:30
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,
2018-03-27 19:54:05 +05:30
// View layer
isToggleStateButtonLoading: false,
2018-03-17 18:26:18 +05:30
// holds endpoints and permissions provided through haml
notesData: {},
userData: {},
noteableData: {},
},
actions,
getters,
mutations,
});