Initial commit

This commit is contained in:
MakingCG
2020-03-10 19:00:32 +01:00
commit 3285a7e1c2
165 changed files with 31472 additions and 0 deletions

35
resources/js/store/modules/app.js vendored Normal file
View File

@@ -0,0 +1,35 @@
import axios from 'axios'
import { events } from '@/bus'
const defaultState = {
currentView: 'files',
appSize: undefined,
config: undefined,
}
const actions = {
}
const mutations = {
SET_CONFIG(state, config) {
state.config = config
},
SET_CURRENT_VIEW(state, view) {
state.currentView = view
},
SET_APP_WIDTH(state, scale) {
state.appSize = scale
},
}
const getters = {
currentView: state => state.currentView,
appSize: state => state.appSize,
api: state => state.config.api,
config: state => state.config,
}
export default {
state: defaultState,
getters,
actions,
mutations
}