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 = {
|
2019-01-05 16:12:09 +00:00
|
|
|
user: null,
|
2018-02-01 12:17:04 +00:00
|
|
|
req: {},
|
2019-01-05 16:12:09 +00:00
|
|
|
oldReq: {},
|
2018-02-01 12:17:04 +00:00
|
|
|
clipboard: {
|
|
|
|
key: '',
|
|
|
|
items: []
|
|
|
|
},
|
|
|
|
jwt: '',
|
|
|
|
progress: 0,
|
|
|
|
loading: false,
|
|
|
|
reload: false,
|
|
|
|
selected: [],
|
|
|
|
multiple: false,
|
|
|
|
show: null,
|
2019-01-05 16:12:09 +00:00
|
|
|
showShell: false,
|
2018-02-01 12:17:04 +00:00
|
|
|
showMessage: null,
|
2020-07-14 01:18:53 +00:00
|
|
|
showConfirm: null,
|
2021-03-02 11:00:18 +00:00
|
|
|
hash: '',
|
2021-03-01 16:12:17 +00:00
|
|
|
token: ''
|
2018-02-01 12:17:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export default new Vuex.Store({
|
2019-01-05 16:12:09 +00:00
|
|
|
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
|
|
|
})
|