remove unused code / comments

This commit is contained in:
ogerly 2022-05-11 08:15:44 +02:00
parent 6864080e7a
commit 30a4f59f76
9 changed files with 5 additions and 79 deletions

View File

@ -1,10 +1,7 @@
import { mount, RouterLinkStub } from '@vue/test-utils'
import App from './App'
// import VueRouter from 'vue-router'
const localVue = global.localVue
// localVue.use(VueRouter)
// const router = new VueRouter()
const mockStoreCommit = jest.fn()
const stubs = {

View File

@ -1,14 +1,6 @@
<template>
<div>
<b-carousel
id="carousel-1"
v-model="slide"
:interval="30000"
controls
indicators
@sliding-start="onSlideStart"
@sliding-end="onSlideEnd"
>
<b-carousel :interval="30000">
<b-carousel-slide img-src="/img/template/Foto_01.jpg"></b-carousel-slide>
<b-carousel-slide img-src="https://picsum.photos/1324/2324/?image=50"></b-carousel-slide>
<b-carousel-slide img-src="https://picsum.photos/1024/2024/?image=58"></b-carousel-slide>
@ -20,33 +12,17 @@
<script>
export default {
name: 'AuthCarousel',
data() {
return {
slide: 0,
sliding: null,
}
},
methods: {
onSlideStart(slide) {
this.sliding = true
},
onSlideEnd(slide) {
this.sliding = false
},
},
}
</script>
<style>
.carousel {
position: relative;
height: 120%;
top: -138px;
bottom: -369px;
height: 110%;
top: -16px;
}
.carousel-inner {
background-color: brown;
height: 100%;
border-radius: 0 94% 63% 0/0 78% 54% 0;
border-radius: 0% 49% 49% 0% / 0% 51% 49% 0%;
}
</style>

View File

@ -13,7 +13,6 @@
<b-navbar-toggle target="nav-collapse"></b-navbar-toggle>
<b-collapse id="nav-collapse" is-nav>
<!-- Right aligned nav items -->
<b-navbar-nav class="ml-auto" right>
<b-nav-item href="https://gradido.net/de/" target="_blank">
{{ $t('auth.navbar.overGradido') }}
@ -69,19 +68,6 @@ export default {
padding-bottom: 10px;
}
.g-logo-radius {
-webkit-border-top-right-radius: 77px;
-webkit-border-bottom-right-radius: 137px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-topright: 77px;
-moz-border-radius-bottomright: 137px;
-moz-border-radius-bottomleft: 0px;
border-top-right-radius: 77px;
border-bottom-right-radius: 137px;
border-bottom-left-radius: 0px;
z-index: 1;
}
.header-img {
position: absolute;
top: -11px;

View File

@ -30,7 +30,7 @@ export default {
this.currentLanguage = this.getLocaleObject(locale)
},
async saveLocale(locale) {
// if (this.$i18n.locale === locale) return
if (this.$i18n.locale === locale) return
this.setLocale(locale)
if (this.$store.state.email) {
this.$apollo

View File

@ -59,16 +59,5 @@ describe('AuthLayoutGdd', () => {
wrapper.vm.setTextSize('85')
expect(wrapper.vm.$refs.pageFontSize.style.fontSize).toBe('85rem')
})
// describe('check LanguageSwitch on register page', () => {
// beforeEach(() => {
// mocks.$route.path = '/register'
// wrapper = Wrapper()
// })
//
// it('has not LanguageSwitch', () => {
// expect(wrapper.findComponent({ name: 'LanguageSwitch' }).exists()).toBeFalsy()
// })
// })
})
})

View File

@ -116,30 +116,18 @@ export default {
.left-content-box {
position: fixed;
width: 40%;
/* background-color: aquamarine; */
top: 0px;
bottom: 0px;
}
.bg-img-box {
/* background-color: red; */
position: absolute;
top: 0px;
bottom: 0px;
/* margin-top: -308px;
margin-left: -118px;
position: absolute;
top: 33px;
bottom: -228px;
min-width: 86%;
max-width: 800px;
/* background-color: bisque; */
/* border-radius: 0% 48% 74% 0%/59% 70% 73% 47%; */
}
/* right */
.right-content {
/* height: 100%; */
flex-direction: column-reverse;
}
.right-content-box {
@ -162,7 +150,6 @@ export default {
.bg-txt-box {
position: relative;
margin-top: 317px;
/* padding-bottom: 20px; */
text-shadow: 2px 2px 8px #000000;
max-width: 733px;
}

View File

@ -121,8 +121,6 @@ describe('ForgotPassword', () => {
})
it.skip('click redirects to "/login"', async () => {
// wrapper.find('.test-message-button').trigger('click')
// await wrapper.vm.$nextTick()
expect(mockRouterPush).toBeCalledWith('/login')
})
@ -154,10 +152,6 @@ describe('ForgotPassword', () => {
it('button link redirects to "/login"', () => {
expect(wrapper.find('.test-message-button').attributes('href')).toBe('/login')
})
it.skip('click redirects to "/login"', () => {
// expect(mockRouterPush).toBeCalledWith('/login')
})
})
})
})

View File

@ -126,10 +126,8 @@ export default {
this.errorLinkTo = '/reset-password/login'
this.toastError(this.$t('error.no-account'))
} else if (error.message.includes('No user with this credentials')) {
// don't show any error on the page! against boots
this.toastError(this.$t('error.no-user'))
} else {
// don't show any error on the page! against boots
this.toastError(this.$t('error.unknown-error') + error.message)
}
loader.hide()

View File

@ -164,7 +164,6 @@ export default {
this.showPageMessage = true
})
.catch((error) => {
// don't show any error on the page! against boots
let errorMessage
switch (error.message) {
case 'GraphQL error: User already exists.':