Browse Source

refactor: remove unused code and dashboard url correction

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/765/head
Pranav C 3 years ago
parent
commit
c9a7abb462
  1. 1
      packages/nc-gui/layouts/empty.vue
  2. 1
      packages/nc-gui/layouts/shared.vue
  3. 2
      packages/nc-gui/mixins/device.js
  4. 55
      packages/nc-gui/store/progress.js

1
packages/nc-gui/layouts/empty.vue

@ -1,6 +1,5 @@
<template>
<v-app>
<snackbar />
<v-main>
<v-app-bar v-show="false" dark />
<v-container fluid style="">

1
packages/nc-gui/layouts/shared.vue

@ -1,6 +1,5 @@
<template>
<v-app>
<snackbar />
<v-main>
<v-app-bar v-show="false" dark />
<div>

2
packages/nc-gui/mixins/device.js

@ -10,7 +10,7 @@ export default {
},
computed: {
dashboardUrl() {
return `${location.origin}${location.path || ''}`
return `${location.origin}${location.pathname || ''}`
},
isDark() {
return this.$vuetify && this.$vuetify.theme && this.$vuetify.theme.dark

55
packages/nc-gui/store/progress.js

@ -1,55 +0,0 @@
import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
export const store = new Vuex.Store({
// resourceState
state: {
// resourceList : []
list: []
},
// modified state vars
getters: {
},
// state variables are modified here
mutations: {
},
// mutation are performed via actions
actions: {
},
// modules
modules: {
}
})
export default store
/**
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
*
* @author Naveen MR <oof1lab@gmail.com>
* @author Pranav C Balan <pranavxc@gmail.com>
*
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
Loading…
Cancel
Save