Clean up code
This commit is contained in:
parent
10cc8ca3ba
commit
44e7e4c322
|
|
@ -149,7 +149,7 @@ Cypress.Commands.add('register', (prefix, firstname, lastname, street, city, pos
|
||||||
if (acceptTerms) {
|
if (acceptTerms) {
|
||||||
cy.get('[data-cy="acceptedTerms-input"] > input').first().check({force: true}).then(() => {
|
cy.get('[data-cy="acceptedTerms-input"] > input').first().check({force: true}).then(() => {
|
||||||
cy.get('[data-cy="acceptedTerms-input"] > input:checkbox').should('be.checked');
|
cy.get('[data-cy="acceptedTerms-input"] > input:checkbox').should('be.checked');
|
||||||
}); ;
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
cy.get('[data-cy="passwordConfirmation-input"]').type(passwordConfirmation);
|
cy.get('[data-cy="passwordConfirmation-input"]').type(passwordConfirmation);
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
<script>
|
<script>
|
||||||
import DefaultLayout from '@/layouts/DefaultLayout';
|
import DefaultLayout from '@/layouts/DefaultLayout';
|
||||||
import SimpleLayout from '@/layouts/SimpleLayout';
|
import SimpleLayout from '@/layouts/SimpleLayout';
|
||||||
import BlankLayout from '@/layouts/BlankLayout';
|
|
||||||
import FullScreenLayout from '@/layouts/FullScreenLayout';
|
import FullScreenLayout from '@/layouts/FullScreenLayout';
|
||||||
import PublicLayout from '@/layouts/PublicLayout';
|
import PublicLayout from '@/layouts/PublicLayout';
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
|
|
@ -47,7 +46,6 @@
|
||||||
ScrollUp,
|
ScrollUp,
|
||||||
DefaultLayout,
|
DefaultLayout,
|
||||||
SimpleLayout,
|
SimpleLayout,
|
||||||
BlankLayout,
|
|
||||||
FullScreenLayout,
|
FullScreenLayout,
|
||||||
PublicLayout,
|
PublicLayout,
|
||||||
Modal,
|
Modal,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: $color-white;
|
background-color: $color-white;
|
||||||
border: 1px solid $color-silver;
|
border: 1px solid $color-silver;
|
||||||
z-index: 90;
|
z-index: 2;
|
||||||
|
|
||||||
&__icon {
|
&__icon {
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
<a :href="teaser.newsArticleUrl">
|
<a :href="teaser.newsArticleUrl">
|
||||||
<img
|
<img
|
||||||
:src="teaser.imageUrl"
|
:src="teaser.imageUrl"
|
||||||
class="news-news-teaser__image">
|
class="news-teaser__image">
|
||||||
<p class="news-teaser__image-source">
|
<p class="news-teaser__image-source">
|
||||||
<a
|
<a
|
||||||
:href="teaser.imageSource"
|
:href="teaser.imageSource"
|
||||||
|
|
|
||||||
|
|
@ -1,28 +0,0 @@
|
||||||
<template>
|
|
||||||
<div class="blank-layout">
|
|
||||||
<profile-sidebar/>
|
|
||||||
<navigation-sidebar/>
|
|
||||||
<router-view/>
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style lang="scss">
|
|
||||||
.blank-layout {
|
|
||||||
/*
|
|
||||||
For IE11
|
|
||||||
*/
|
|
||||||
display: flex;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
import ProfileSidebar from '@/components/profile/ProfileSidebar';
|
|
||||||
import NavigationSidebar from '@/components/book-navigation/NavigationSidebar';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
ProfileSidebar,
|
|
||||||
NavigationSidebar
|
|
||||||
},
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
@ -125,17 +125,6 @@
|
||||||
margin-bottom: 60px;
|
margin-bottom: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__my {
|
|
||||||
color: $color-white;
|
|
||||||
/*font-size: 2rem;*/
|
|
||||||
font-weight: 800;
|
|
||||||
-webkit-text-stroke: 1px $color-brand;
|
|
||||||
/*text-shadow: -1px -1px 0 $color-brand,
|
|
||||||
1px -1px 0 $color-brand,
|
|
||||||
-1px 1px 0 $color-brand,
|
|
||||||
1px 1px 0 $color-brand;*/
|
|
||||||
}
|
|
||||||
|
|
||||||
&__heading {
|
&__heading {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@include meta-title;
|
@include meta-title;
|
||||||
|
|
@ -161,7 +150,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__modules-list {
|
&__modules-list {
|
||||||
/*margin: 0 30px;*/
|
|
||||||
display: -ms-grid;
|
display: -ms-grid;
|
||||||
-ms-grid-column-align: center;
|
-ms-grid-column-align: center;
|
||||||
-ms-grid-columns: 1fr 1fr 1fr;
|
-ms-grid-columns: 1fr 1fr 1fr;
|
||||||
|
|
@ -204,7 +192,7 @@
|
||||||
.news {
|
.news {
|
||||||
padding-bottom: $large-spacing;
|
padding-bottom: $large-spacing;
|
||||||
|
|
||||||
& &__list {
|
&__list {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
grid-row-gap: $large-spacing;
|
grid-row-gap: $large-spacing;
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,7 @@ const routes = [
|
||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
name: 'home',
|
name: 'home',
|
||||||
component: start,
|
component: start
|
||||||
// meta: {layout: 'blank'}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/login',
|
path: '/login',
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ DEFAULT_SCHOOL_ID = 1
|
||||||
|
|
||||||
class User(AbstractUser):
|
class User(AbstractUser):
|
||||||
last_module = models.ForeignKey('books.Module', related_name='+', on_delete=models.SET_NULL, null=True)
|
last_module = models.ForeignKey('books.Module', related_name='+', on_delete=models.SET_NULL, null=True)
|
||||||
# recent_modules = models.ManyToManyField('books.Module', related_name='+', through='books.RecentModule')
|
recent_modules = models.ManyToManyField('books.Module', related_name='+', through='books.RecentModule')
|
||||||
last_topic = models.ForeignKey('books.Topic', related_name='+', on_delete=models.SET_NULL, null=True)
|
last_topic = models.ForeignKey('books.Topic', related_name='+', on_delete=models.SET_NULL, null=True)
|
||||||
avatar_url = models.CharField(max_length=254, blank=True, default='')
|
avatar_url = models.CharField(max_length=254, blank=True, default='')
|
||||||
email = models.EmailField(_('email address'), unique=True)
|
email = models.EmailField(_('email address'), unique=True)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue