v1.6 released

This commit is contained in:
carodej
2020-05-28 13:00:54 +02:00
parent a76d1dec3b
commit 252b6fd0bf
63 changed files with 1205 additions and 938 deletions
+13 -5
View File
@@ -1,10 +1,21 @@
import i18n from '@/i18n/index'
const defaultState = {
fileInfoPanelVisible: localStorage.getItem('file_info_visibility') == 'true' || false,
FilePreviewType: localStorage.getItem('preview_type') || 'list',
appSize: undefined,
config: undefined,
authorized: undefined,
homeDirectory: undefined,
roles: [
{
label: i18n.t('roles.admin'),
value: 'admin',
},
{
label: i18n.t('roles.user'),
value: 'user',
},
],
}
const actions = {
changePreviewType: ({commit, dispatch, state, getters}) => {
@@ -40,9 +51,6 @@ const mutations = {
localStorage.setItem('file_info_visibility', isVisible)
},
SET_APP_WIDTH(state, scale) {
state.appSize = scale
},
SET_AUTHORIZED(state, data) {
state.authorized = data
},
@@ -53,7 +61,7 @@ const mutations = {
const getters = {
fileInfoVisible: state => state.fileInfoPanelVisible,
FilePreviewType: state => state.FilePreviewType,
appSize: state => state.appSize,
roles: state => state.roles,
api: state => state.config.api,
config: state => state.config,
homeDirectory: state => state.homeDirectory,