filebrowser/frontend/src/store/index.js

34 lines
489 B
JavaScript
Raw Normal View History

2018-02-01 12:17:04 +00:00
import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import getters from './getters'
Vue.use(Vuex)
const state = {
user: null,
2018-02-01 12:17:04 +00:00
req: {},
oldReq: {},
2018-02-01 12:17:04 +00:00
clipboard: {
key: '',
items: []
},
jwt: '',
progress: 0,
loading: false,
reload: false,
selected: [],
multiple: false,
show: null,
showShell: false,
2018-02-01 12:17:04 +00:00
showMessage: null,
showConfirm: null
}
export default new Vuex.Store({
strict: true,
2018-02-01 12:17:04 +00:00
state,
getters,
mutations
})