2021-03-21 11:51:58 +00:00
|
|
|
import Vue from "vue";
|
|
|
|
import Vuex from "vuex";
|
|
|
|
import mutations from "./mutations";
|
|
|
|
import getters from "./getters";
|
|
|
|
import upload from "./modules/upload";
|
2018-02-01 12:17:04 +00:00
|
|
|
|
2021-03-21 11:51:58 +00:00
|
|
|
Vue.use(Vuex);
|
2018-02-01 12:17:04 +00:00
|
|
|
|
|
|
|
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: {
|
2021-03-21 11:51:58 +00:00
|
|
|
key: "",
|
|
|
|
items: [],
|
2018-02-01 12:17:04 +00:00
|
|
|
},
|
2021-03-21 11:51:58 +00:00
|
|
|
jwt: "",
|
2018-02-01 12:17:04 +00:00
|
|
|
progress: 0,
|
|
|
|
loading: false,
|
|
|
|
reload: false,
|
|
|
|
selected: [],
|
|
|
|
multiple: false,
|
|
|
|
show: null,
|
2019-01-05 16:12:09 +00:00
|
|
|
showShell: false,
|
2021-03-21 11:51:58 +00:00
|
|
|
showConfirm: null,
|
|
|
|
};
|
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,
|
2021-03-21 11:51:58 +00:00
|
|
|
modules: { upload },
|
|
|
|
});
|