mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 11:42:57 +00:00
37 lines
572 B
JavaScript
37 lines
572 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,
|
|
showMessage: null,
|
|
showConfirm: null,
|
|
previewMode: false
|
|
}
|
|
|
|
export default new Vuex.Store({
|
|
strict: true,
|
|
state,
|
|
getters,
|
|
mutations,
|
|
modules: { upload }
|
|
})
|