filebrowser/frontend/src/store/index.js

35 lines
540 B
JavaScript
Raw Normal View History

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 = {
user: null,
2018-02-01 12:17:04 +00:00
req: {},
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,
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({
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 },
});