From ce97d24547b5ffcac3e69628ef8ffc2fd8b40a62 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sat, 12 Jun 2021 15:34:20 +0200 Subject: [PATCH] remove components Card and StatsCard --- frontend/src/components/Cards/Card.vue | 71 --------------------- frontend/src/components/Cards/StatsCard.vue | 58 ----------------- frontend/src/components/index.js | 4 -- frontend/src/plugins/globalComponents.js | 4 -- frontend/test/testSetup.js | 2 - 5 files changed, 139 deletions(-) delete mode 100644 frontend/src/components/Cards/Card.vue delete mode 100644 frontend/src/components/Cards/StatsCard.vue diff --git a/frontend/src/components/Cards/Card.vue b/frontend/src/components/Cards/Card.vue deleted file mode 100644 index 5ae76922a..000000000 --- a/frontend/src/components/Cards/Card.vue +++ /dev/null @@ -1,71 +0,0 @@ - - - diff --git a/frontend/src/components/Cards/StatsCard.vue b/frontend/src/components/Cards/StatsCard.vue deleted file mode 100644 index 8c5c364d0..000000000 --- a/frontend/src/components/Cards/StatsCard.vue +++ /dev/null @@ -1,58 +0,0 @@ - - - diff --git a/frontend/src/components/index.js b/frontend/src/components/index.js index d35e88859..60ff67e81 100755 --- a/frontend/src/components/index.js +++ b/frontend/src/components/index.js @@ -2,8 +2,6 @@ import Badge from './Badge' import BaseTable from './BaseTable.vue' -import Card from './Cards/Card.vue' -import StatsCard from './Cards/StatsCard.vue' import BaseNav from './Navbar/BaseNav' import NavbarToggleButton from './Navbar/NavbarToggleButton' @@ -17,8 +15,6 @@ import SidebarPlugin from './SidebarPlugin' export { Badge, - Card, - StatsCard, BaseTable, SidebarPlugin, BaseNav, diff --git a/frontend/src/plugins/globalComponents.js b/frontend/src/plugins/globalComponents.js index 1f3acef96..a16c021d9 100755 --- a/frontend/src/plugins/globalComponents.js +++ b/frontend/src/plugins/globalComponents.js @@ -1,5 +1,3 @@ -import Card from '@/components/Cards/Card.vue' -import StatsCard from '@/components/Cards/StatsCard.vue' import Badge from '@/components/Badge.vue' import BaseNav from '@/components/Navbar/BaseNav' import { ValidationProvider, ValidationObserver } from 'vee-validate' @@ -8,8 +6,6 @@ const GlobalComponents = { install(Vue) { Vue.component(Badge.name, Badge) Vue.component(BaseNav.name, BaseNav) - Vue.component(Card.name, Card) - Vue.component(StatsCard.name, StatsCard) Vue.component('validation-provider', ValidationProvider) Vue.component('validation-observer', ValidationObserver) }, diff --git a/frontend/test/testSetup.js b/frontend/test/testSetup.js index c2e59dbee..0bfd5566a 100644 --- a/frontend/test/testSetup.js +++ b/frontend/test/testSetup.js @@ -10,7 +10,6 @@ import Notifications from '@/components/NotificationPlugin' import SideBar from '@/components/SidebarPlugin' import VueRouter from 'vue-router' import VueQrcode from 'vue-qrcode' -import StatsCard from '@/components/Cards/StatsCard.vue' import VueMoment from 'vue-moment' @@ -37,6 +36,5 @@ global.localVue.use(VueQrcode) global.localVue.use(VueMoment) global.localVue.component('validation-provider', ValidationProvider) global.localVue.component('validation-observer', ValidationObserver) -global.localVue.component(StatsCard.name, StatsCard) global.localVue.directive('click-outside', clickOutside) global.localVue.directive('focus', focus)