Browse Source

Вырезал ненужный код

Book Pauk 2 years ago
parent
commit
91097515f2
3 changed files with 0 additions and 60 deletions
  1. 0 33
      client/components/App.vue
  2. 0 2
      client/store/index.js
  3. 0 25
      client/store/modules/uistate.js

+ 0 - 33
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 '<br><br>';
-        else
-            return `${this.config.name} <br>v${this.config.version}`;
-    }
-
     get apiError() {
         return this.state.apiError;
     }

+ 0 - 2
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,
     },

+ 0 - 25
client/store/modules/uistate.js

@@ -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
-};