-
@@ -48,7 +47,6 @@ import PerfectScrollbar from 'perfect-scrollbar' import 'perfect-scrollbar/css/perfect-scrollbar.css' import loginAPI from '../../apis/loginAPI' -import DashboardNavbar from './DashboardNavbar.vue' import ContentFooter from './ContentFooter.vue' // import DashboardContent from './Content.vue'; import { FadeTransition } from 'vue2-transitions' @@ -72,7 +70,6 @@ function initScrollbar(className) { export default { components: { - DashboardNavbar, ContentFooter, // DashboardContent, FadeTransition, diff --git a/frontend/src/views/Layout/DashboardNavbar.vue b/frontend/src/views/Layout/DashboardNavbar.vue deleted file mode 100755 index 4cbcb3ca5..000000000 --- a/frontend/src/views/Layout/DashboardNavbar.vue +++ /dev/null @@ -1,48 +0,0 @@ - - - From af20dfd5846f265051a1315e6a218d9da8dae5b9 Mon Sep 17 00:00:00 2001 From: ogerly Date: Sun, 13 Jun 2021 12:45:09 +0200 Subject: [PATCH 22/27] remove GddStatus.vue, show balance in sidebar and navbar --- .../components/SidebarPlugin/SideBar.spec.js | 4 +- .../src/components/SidebarPlugin/SideBar.vue | 23 ++++---- .../src/views/Pages/AccountOverview.spec.js | 4 -- frontend/src/views/Pages/AccountOverview.vue | 2 - .../Pages/AccountOverview/GddStatus.spec.js | 53 ------------------- .../views/Pages/AccountOverview/GddStatus.vue | 30 ----------- 6 files changed, 15 insertions(+), 101 deletions(-) delete mode 100644 frontend/src/views/Pages/AccountOverview/GddStatus.spec.js delete mode 100644 frontend/src/views/Pages/AccountOverview/GddStatus.vue diff --git a/frontend/src/components/SidebarPlugin/SideBar.spec.js b/frontend/src/components/SidebarPlugin/SideBar.spec.js index 9f9ce8a8f..4612f6f9e 100644 --- a/frontend/src/components/SidebarPlugin/SideBar.spec.js +++ b/frontend/src/components/SidebarPlugin/SideBar.spec.js @@ -43,7 +43,7 @@ describe('SideBar', () => { describe('balance', () => { it('shows em-dash as balance while loading', () => { - expect(wrapper.find('div.row.text-center').text()).toBe('— GDD') + expect(wrapper.find('.gddBalance').text()).toBe('— GDD') }) it('shows the when loaded', async () => { @@ -51,7 +51,7 @@ describe('SideBar', () => { pending: false, }) await wrapper.vm.$nextTick() - expect(wrapper.find('div.row.text-center').text()).toBe('1234.56 GDD') + expect(wrapper.find('.gddBalance').text()).toBe('1234.56 GDD') }) }) diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index 60d835a1a..138c802e9 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -4,21 +4,24 @@ id="sidenav-main" >
- - - From 18b587a4e4da6d1d99360844a2997faf89ebb2c8 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Sun, 13 Jun 2021 18:34:53 +0200 Subject: [PATCH 23/27] included gdd status again. --- .github/workflows/test.yml | 2 +- frontend/src/plugins/dashboard-plugin.js | 6 +-- .../src/views/Pages/AccountOverview.spec.js | 4 ++ frontend/src/views/Pages/AccountOverview.vue | 2 + .../Pages/AccountOverview/GddStatus.spec.js | 53 +++++++++++++++++++ .../views/Pages/AccountOverview/GddStatus.vue | 30 +++++++++++ 6 files changed, 92 insertions(+), 5 deletions(-) create mode 100644 frontend/src/views/Pages/AccountOverview/GddStatus.spec.js create mode 100644 frontend/src/views/Pages/AccountOverview/GddStatus.vue diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 104b85502..b9f4083a3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -212,7 +212,7 @@ jobs: report_name: Coverage Frontend type: lcov result_path: ./coverage/lcov.info - min_coverage: 21 + min_coverage: 27 token: ${{ github.token }} ############################################################################## diff --git a/frontend/src/plugins/dashboard-plugin.js b/frontend/src/plugins/dashboard-plugin.js index fa5b2ebf9..3cb1cd862 100755 --- a/frontend/src/plugins/dashboard-plugin.js +++ b/frontend/src/plugins/dashboard-plugin.js @@ -1,5 +1,5 @@ import '@/polyfills' -import { configure, extend, localize } from 'vee-validate' +import { configure, extend } from 'vee-validate' import GlobalComponents from './globalComponents' import GlobalDirectives from './globalDirectives' import SideBar from '@/components/SidebarPlugin' @@ -7,7 +7,7 @@ import SideBar from '@/components/SidebarPlugin' import '@/assets/scss/argon.scss' import '@/assets/vendor/nucleo/css/nucleo.css' import * as rules from 'vee-validate/dist/rules' -import en, { messages } from 'vee-validate/dist/locale/en.json' +import { messages } from 'vee-validate/dist/locale/en.json' import VueQrcodeReader from 'vue-qrcode-reader' import VueQrcode from 'vue-qrcode' @@ -22,8 +22,6 @@ import 'vue-loading-overlay/dist/vue-loading.css' import { BootstrapVue, IconsPlugin } from 'bootstrap-vue' -localize('en', en) - Object.keys(rules).forEach((rule) => { extend(rule, { ...rules[rule], // copies rule configuration diff --git a/frontend/src/views/Pages/AccountOverview.spec.js b/frontend/src/views/Pages/AccountOverview.spec.js index 9f320cb67..031828129 100644 --- a/frontend/src/views/Pages/AccountOverview.spec.js +++ b/frontend/src/views/Pages/AccountOverview.spec.js @@ -19,6 +19,10 @@ describe('AccountOverview', () => { wrapper = Wrapper() }) + it('has a status line', () => { + expect(wrapper.find('gdd-status-stub').exists()).toBeTruthy() + }) + it('has a send field', () => { expect(wrapper.find('gdd-send-stub').exists()).toBeTruthy() }) diff --git a/frontend/src/views/Pages/AccountOverview.vue b/frontend/src/views/Pages/AccountOverview.vue index 5cc86860e..561edbf9c 100644 --- a/frontend/src/views/Pages/AccountOverview.vue +++ b/frontend/src/views/Pages/AccountOverview.vue @@ -41,6 +41,7 @@
From 22211a883cce342cf8d0123cb1d674d4d7811caa Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 14 Jun 2021 13:27:52 +0200 Subject: [PATCH 24/27] add content header again --- .../components/SidebarPlugin/SideBar.spec.js | 14 ------------- .../src/components/SidebarPlugin/SideBar.vue | 9 --------- .../src/views/Layout/DashboardLayout_gdd.vue | 20 ++++++++++++++++++- 3 files changed, 19 insertions(+), 24 deletions(-) diff --git a/frontend/src/components/SidebarPlugin/SideBar.spec.js b/frontend/src/components/SidebarPlugin/SideBar.spec.js index 4612f6f9e..f9e0780d4 100644 --- a/frontend/src/components/SidebarPlugin/SideBar.spec.js +++ b/frontend/src/components/SidebarPlugin/SideBar.spec.js @@ -41,20 +41,6 @@ describe('SideBar', () => { expect(wrapper.find('#sidenav-main').exists()).toBeTruthy() }) - describe('balance', () => { - it('shows em-dash as balance while loading', () => { - expect(wrapper.find('.gddBalance').text()).toBe('— GDD') - }) - - it('shows the when loaded', async () => { - wrapper.setProps({ - pending: false, - }) - await wrapper.vm.$nextTick() - expect(wrapper.find('.gddBalance').text()).toBe('1234.56 GDD') - }) - }) - describe('navbar button', () => { it('has a navbar button', () => { expect(wrapper.find('button.navbar-toggler').exists()).toBeTruthy() diff --git a/frontend/src/components/SidebarPlugin/SideBar.vue b/frontend/src/components/SidebarPlugin/SideBar.vue index 138c802e9..d2373e1de 100755 --- a/frontend/src/components/SidebarPlugin/SideBar.vue +++ b/frontend/src/components/SidebarPlugin/SideBar.vue @@ -9,13 +9,6 @@ Gradido Logo