filebrowser/frontend/src/store/index.js

38 lines
575 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'
2020-07-08 14:12:33 +00:00
import upload from './modules/upload'
2018-02-01 12:17:04 +00:00
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,
2020-07-14 01:18:53 +00:00
showConfirm: null,
hash: '',
2021-03-01 16:12:17 +00:00
token: ''
2018-02-01 12:17:04 +00:00
}
export default new Vuex.Store({
strict: true,
2018-02-01 12:17:04 +00:00
state,
getters,
2020-07-08 14:12:33 +00:00
mutations,
modules: { upload }
2018-02-01 12:17:04 +00:00
})