diff options
Diffstat (limited to 'app/assets/javascripts/vue_shared/notes/stores/index.js')
-rw-r--r-- | app/assets/javascripts/vue_shared/notes/stores/index.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/notes/stores/index.js b/app/assets/javascripts/vue_shared/notes/stores/index.js new file mode 100644 index 00000000000..488a9ca38d3 --- /dev/null +++ b/app/assets/javascripts/vue_shared/notes/stores/index.js @@ -0,0 +1,23 @@ +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, +}); |