mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fixed review from moritz
This commit is contained in:
parent
5f6c016ee3
commit
082152ff2f
@ -54,7 +54,7 @@ describe('App', () => {
|
||||
})
|
||||
|
||||
it('has a component DashboardLayout', () => {
|
||||
expect(wrapper.findComponent({ name: 'DashboardTemplate' }).exists()).toBe(true)
|
||||
expect(wrapper.findComponent({ name: 'DashboardLayout' }).exists()).toBe(true)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<b-collapse id="nav-collapse" is-nav class="mt-5 mt-lg-0">
|
||||
<b-navbar-nav class="ml-auto" right>
|
||||
<b-nav-item href="https://gradido.net/de/" target="_blank">
|
||||
{{ $t('auth.navbar.overGradido') }}
|
||||
{{ $t('auth.navbar.aboutGradido') }}
|
||||
</b-nav-item>
|
||||
<b-nav-item to="/register" class="authNavbar ml-lg-5">{{ $t('signup') }}</b-nav-item>
|
||||
<span class="d-none d-lg-block mt-1">{{ $t('|') }}</span>
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
import { mount, RouterLinkStub } from '@vue/test-utils'
|
||||
import AuthLayoutGdd from './AuthLayout_gdd'
|
||||
import VueRouter from 'vue-router'
|
||||
|
||||
const localVue = global.localVue
|
||||
|
||||
@ -16,18 +15,20 @@ describe('AuthLayoutGdd', () => {
|
||||
state: {},
|
||||
commit: jest.fn(),
|
||||
},
|
||||
$route: {
|
||||
meta: {
|
||||
requiresAuth: false,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
localVue.use(VueRouter)
|
||||
const router = new VueRouter()
|
||||
|
||||
const stubs = {
|
||||
RouterLink: RouterLinkStub,
|
||||
RouterView: true,
|
||||
}
|
||||
|
||||
const Wrapper = () => {
|
||||
return mount(AuthLayoutGdd, { localVue, mocks, stubs, router })
|
||||
return mount(AuthLayoutGdd, { localVue, mocks, stubs })
|
||||
}
|
||||
|
||||
describe('mount', () => {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div class="auth-template">
|
||||
<mobile-start v-if="mobileStart" class="d-inline d-lg-none" @is-mobile-start="isMobileStart" />
|
||||
<mobile-start v-if="mobileStart" class="d-inline d-lg-none" @is-mobile-start="setMobileStart" />
|
||||
<div v-else class="h-100 align-middle">
|
||||
<navbar class="zindex10" />
|
||||
|
||||
@ -100,19 +100,20 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
mobileStart: window.innerWidth < 1025,
|
||||
lg: 1025,
|
||||
mobileStart: window.innerWidth < this.lg,
|
||||
windowWidth: window.innerWidth,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
isMobileStart(boolean) {
|
||||
setMobileStart(boolean) {
|
||||
this.mobileStart = boolean
|
||||
},
|
||||
setTextSize(size) {
|
||||
this.$refs.pageFontSize.style.fontSize = size + 'rem'
|
||||
},
|
||||
onResize() {
|
||||
this.mobileStart = window.innerWidth < 1025
|
||||
this.mobileStart = window.innerWidth < this.lg
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
|
||||
@ -45,7 +45,7 @@ import { FadeTransition } from 'vue2-transitions'
|
||||
import CONFIG from '@/config'
|
||||
|
||||
export default {
|
||||
name: 'DashboardTemplate',
|
||||
name: 'DashboardLayout',
|
||||
components: {
|
||||
Navbar,
|
||||
Sidebar,
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"oneAnotherNature": "Für Einander, Für alle, Für die Natur"
|
||||
},
|
||||
"navbar": {
|
||||
"overGradido": "Über Gradido"
|
||||
"aboutGradido": "Über Gradido"
|
||||
}
|
||||
},
|
||||
"back": "Zurück",
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
"oneAnotherNature": "For One Another, For All, For Nature"
|
||||
},
|
||||
"navbar": {
|
||||
"overGradido": "Over Gradido"
|
||||
"aboutGradido": "About Gradido"
|
||||
}
|
||||
},
|
||||
"back": "Back",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user