mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
rename files DashboardLayout, AuthLayout
This commit is contained in:
parent
8ec0d68dcd
commit
274365fb88
@ -43,8 +43,8 @@ describe('App', () => {
|
||||
expect(wrapper.find('#app').exists()).toBe(true)
|
||||
})
|
||||
|
||||
it('has a component AuthLayoutGDD', () => {
|
||||
expect(wrapper.findComponent({ name: 'AuthTemplate' }).exists()).toBe(true)
|
||||
it('has a component AuthLayout', () => {
|
||||
expect(wrapper.findComponent({ name: 'AuthLayout' }).exists()).toBe(true)
|
||||
})
|
||||
|
||||
describe('route requires authorization', () => {
|
||||
|
||||
@ -1,19 +1,19 @@
|
||||
<template>
|
||||
<div id="app" :class="$route.meta.requiresAuth ? 'font-sans text-gray-800' : ''" class="h-100">
|
||||
<component :is="$route.meta.requiresAuth ? 'DashboardLayout' : 'AuthLayoutGDD'" />
|
||||
<component :is="$route.meta.requiresAuth ? 'DashboardLayout' : 'AuthLayout'" />
|
||||
<div class="goldrand position-fixed w-100 fixed-bottom zindex10"></div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import DashboardLayout from '@/layouts/DashboardLayout_gdd.vue'
|
||||
import AuthLayoutGDD from '@/layouts/AuthLayout_gdd.vue'
|
||||
import DashboardLayout from '@/layouts/DashboardLayout.vue'
|
||||
import AuthLayout from '@/layouts/AuthLayout.vue'
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
components: {
|
||||
DashboardLayout,
|
||||
AuthLayoutGDD,
|
||||
AuthLayout,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -27,7 +27,7 @@ a,
|
||||
|
||||
/* Button */
|
||||
.btn {
|
||||
border-radius: 17px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
|
||||
.btn-gradido {
|
||||
@ -38,6 +38,8 @@ a,
|
||||
border-style: none;
|
||||
box-shadow: 10px 10px 50px 10px rgb(56 56 56 / 31%);
|
||||
color: #fff;
|
||||
padding-right: 50px;
|
||||
padding-left: 50px;
|
||||
}
|
||||
|
||||
.btn-gradido:hover {
|
||||
|
||||
@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils'
|
||||
import TransactionForm from './TransactionForm'
|
||||
import flushPromises from 'flush-promises'
|
||||
import { SEND_TYPES } from '@/pages/Send.vue'
|
||||
import DashboardLayout from '@/layouts/DashboardLayout_gdd.vue'
|
||||
import DashboardLayout from '@/layouts/DashboardLayout.vue'
|
||||
|
||||
const localVue = global.localVue
|
||||
|
||||
|
||||
@ -1,9 +1,9 @@
|
||||
import { mount, RouterLinkStub } from '@vue/test-utils'
|
||||
import AuthLayoutGdd from './AuthLayout_gdd'
|
||||
import AuthLayout from './AuthLayout'
|
||||
|
||||
const localVue = global.localVue
|
||||
|
||||
describe('AuthLayoutGdd', () => {
|
||||
describe('AuthLayout', () => {
|
||||
let wrapper
|
||||
|
||||
const mocks = {
|
||||
@ -28,7 +28,7 @@ describe('AuthLayoutGdd', () => {
|
||||
}
|
||||
|
||||
const Wrapper = () => {
|
||||
return mount(AuthLayoutGdd, { localVue, mocks, stubs })
|
||||
return mount(AuthLayout, { localVue, mocks, stubs })
|
||||
}
|
||||
|
||||
describe('mount', () => {
|
||||
@ -90,7 +90,7 @@ import LanguageSwitch from '@/components/LanguageSwitch2'
|
||||
import AuthFooter from '@/components/Auth/Footer.vue'
|
||||
|
||||
export default {
|
||||
name: 'AuthTemplate',
|
||||
name: 'AuthLayout',
|
||||
components: {
|
||||
MobileStart,
|
||||
Navbar,
|
||||
@ -1,6 +1,6 @@
|
||||
import { mount, RouterLinkStub } from '@vue/test-utils'
|
||||
import flushPromises from 'flush-promises'
|
||||
import DashboardLayoutGdd from './DashboardLayout_gdd'
|
||||
import DashboardLayout from './DashboardLayout'
|
||||
|
||||
import { toastErrorSpy } from '@test/testSetup'
|
||||
|
||||
@ -19,7 +19,7 @@ const apolloMock = jest.fn().mockResolvedValue({
|
||||
},
|
||||
})
|
||||
|
||||
describe('DashboardLayoutGdd', () => {
|
||||
describe('DashboardLayout', () => {
|
||||
let wrapper
|
||||
|
||||
const mocks = {
|
||||
@ -61,7 +61,7 @@ describe('DashboardLayoutGdd', () => {
|
||||
}
|
||||
|
||||
const Wrapper = () => {
|
||||
return mount(DashboardLayoutGdd, { localVue, mocks, stubs })
|
||||
return mount(DashboardLayout, { localVue, mocks, stubs })
|
||||
}
|
||||
|
||||
describe('mount', () => {
|
||||
@ -3,7 +3,7 @@ import Send, { SEND_TYPES } from './Send'
|
||||
import { toastErrorSpy, toastSuccessSpy } from '@test/testSetup'
|
||||
import { TRANSACTION_STEPS } from '@/components/GddSend.vue'
|
||||
import { sendCoins, createTransactionLink } from '@/graphql/mutations.js'
|
||||
import DashboardLayout from '@/layouts/DashboardLayout_gdd.vue'
|
||||
import DashboardLayout from '@/layouts/DashboardLayout.vue'
|
||||
import flushPromises from 'flush-promises'
|
||||
|
||||
const apolloMutationMock = jest.fn()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user