From 91097515f22098e3ab9716613482f3991e574af4 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Sun, 8 Jan 2023 18:08:17 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D1=80=D0=B5=D0=B7=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D0=B9=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/App.vue | 33 --------------------------------- client/store/index.js | 2 -- client/store/modules/uistate.js | 25 ------------------------- 3 files changed, 60 deletions(-) delete mode 100644 client/store/modules/uistate.js diff --git a/client/components/App.vue b/client/components/App.vue index 331af373..246920ca 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -20,7 +20,6 @@ import StdDialog from './share/StdDialog.vue'; import sanitizeHtml from 'sanitize-html'; import miscApi from '../api/misc'; -import * as utils from '../share/utils'; const componentOptions = { components: { @@ -145,38 +144,6 @@ class App { })(); } - toggleCollapse() { - this.commit('uistate/setAsideBarCollapse', !this.uistate.asideBarCollapse); - this.$root.eventHook('resize'); - } - - get isCollapse() { - return this.uistate.asideBarCollapse; - } - - get asideWidth() { - if (this.uistate.asideBarCollapse) { - return 64; - } else { - return 170; - } - } - - get buttonCollapseIcon() { - if (this.uistate.asideBarCollapse) { - return 'el-icon-d-arrow-right'; - } else { - return 'el-icon-d-arrow-left'; - } - } - - get appName() { - if (this.isCollapse) - return '

'; - else - return `${this.config.name}
v${this.config.version}`; - } - get apiError() { return this.state.apiError; } diff --git a/client/store/index.js b/client/store/index.js index e9e73ce9..da00355a 100644 --- a/client/store/index.js +++ b/client/store/index.js @@ -3,7 +3,6 @@ import { createStore } from 'vuex'; import VuexPersistence from 'vuex-persist'; import root from './root.js'; -import uistate from './modules/uistate'; import config from './modules/config'; import reader from './modules/reader'; @@ -13,7 +12,6 @@ const vuexLocal = new VuexPersistence(); export default createStore(Object.assign({}, root, { modules: { - uistate, config, reader, }, diff --git a/client/store/modules/uistate.js b/client/store/modules/uistate.js deleted file mode 100644 index 4f36b482..00000000 --- a/client/store/modules/uistate.js +++ /dev/null @@ -1,25 +0,0 @@ -// initial state -const state = { - asideBarCollapse: false, -}; - -// getters -const getters = {}; - -// actions -const actions = {}; - -// mutations -const mutations = { - setAsideBarCollapse(state, value) { - state.asideBarCollapse = value; - }, -}; - -export default { - namespaced: true, - state, - getters, - actions, - mutations -};