mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 11:42:57 +00:00
35 lines
540 B
JavaScript
35 lines
540 B
JavaScript
import Vue from "vue";
|
|
import Vuex from "vuex";
|
|
import mutations from "./mutations";
|
|
import getters from "./getters";
|
|
import upload from "./modules/upload";
|
|
|
|
Vue.use(Vuex);
|
|
|
|
const state = {
|
|
user: null,
|
|
req: {},
|
|
oldReq: {},
|
|
clipboard: {
|
|
key: "",
|
|
items: [],
|
|
},
|
|
jwt: "",
|
|
progress: 0,
|
|
loading: false,
|
|
reload: false,
|
|
selected: [],
|
|
multiple: false,
|
|
show: null,
|
|
showShell: false,
|
|
showConfirm: null,
|
|
};
|
|
|
|
export default new Vuex.Store({
|
|
strict: true,
|
|
state,
|
|
getters,
|
|
mutations,
|
|
modules: { upload },
|
|
});
|