Remove unused code
This commit is contained in:
parent
cd2e5c953e
commit
6d5e66c469
|
|
@ -41,9 +41,6 @@
|
|||
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||
import UserWidget from '@/components/UserWidget';
|
||||
import VisibilityAction from '@/components/visibility/VisibilityAction';
|
||||
import EyeIcon from '@/components/icons/EyeIcon';
|
||||
import PenIcon from '@/components/icons/PenIcon';
|
||||
import TrashIcon from '@/components/icons/TrashIcon';
|
||||
import ContentComponent from '@/components/content-blocks/ContentComponent';
|
||||
|
||||
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
|
||||
|
|
@ -70,9 +67,6 @@
|
|||
ContentComponent,
|
||||
AddContentButton,
|
||||
VisibilityAction,
|
||||
EyeIcon,
|
||||
PenIcon,
|
||||
TrashIcon,
|
||||
MoreOptionsWidget,
|
||||
UserWidget
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,103 +0,0 @@
|
|||
<template>
|
||||
<nav class="top-navigation" :class="{'top-navigation--mobile': mobile}">
|
||||
<div class="top-navigation__item">
|
||||
<router-link to="/book/topic/berufliche-grundbildung" active-class="top-navigation__link--active"
|
||||
:class="{'top-navigation__link--active': isActive('book')}"
|
||||
@click.native="hideMobileNavigation"
|
||||
class="top-navigation__link">Inhalte
|
||||
</router-link>
|
||||
|
||||
<mobile-subnavigation v-if="mobile"></mobile-subnavigation>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="top-navigation__item">
|
||||
<router-link to="/rooms" active-class="top-navigation__link--active" @click.native="hideMobileNavigation"
|
||||
class="top-navigation__link">Räume
|
||||
</router-link>
|
||||
</div>
|
||||
|
||||
<div class="top-navigation__item">
|
||||
<router-link to="/portfolio" active-class="top-navigation__link--active" @click.native="hideMobileNavigation"
|
||||
class="top-navigation__link">Portfolio
|
||||
</router-link>
|
||||
</div>
|
||||
|
||||
</nav>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MobileSubnavigation from '@/components/book-navigation/MobileSubnavigation';
|
||||
|
||||
export default {
|
||||
props: {
|
||||
mobile: {
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
components: {
|
||||
MobileSubnavigation
|
||||
},
|
||||
|
||||
methods: {
|
||||
isActive(linkName) {
|
||||
return linkName === 'book' && this.$route.path.indexOf('module') > -1;
|
||||
},
|
||||
hideMobileNavigation() {
|
||||
this.$store.dispatch('showMobileNavigation', false);
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/_variables.scss";
|
||||
@import "@/styles/_mixins.scss";
|
||||
|
||||
.top-navigation {
|
||||
display: flex;
|
||||
|
||||
&__link {
|
||||
padding: 0 24px;
|
||||
@include default-link;
|
||||
}
|
||||
|
||||
$parent: &;
|
||||
|
||||
&--mobile {
|
||||
flex-direction: column;
|
||||
|
||||
#{$parent}__link {
|
||||
color: $color-white;
|
||||
@include heading-4;
|
||||
line-height: 2.5em;
|
||||
padding: 0;
|
||||
display: block;
|
||||
margin-bottom: 0.5*$small-spacing;
|
||||
|
||||
&:only-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#{$parent}__item {
|
||||
border-bottom: 1px solid $color-white;
|
||||
|
||||
&:nth-child(1) {
|
||||
order: 3;
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
&:nth-child(2) {
|
||||
order: 1;
|
||||
}
|
||||
|
||||
&:nth-child(3) {
|
||||
order: 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import ContentNavigation from '@/components/ContentNavigation.vue';
|
||||
import ContentNavigation from '@/components/book-navigation/ContentNavigation.vue';
|
||||
import BookNavigation from '@/components/book-navigation/BookNavigation';
|
||||
import UserWidget from '@/components/UserWidget.vue';
|
||||
import Logo from '@/components/icons/Logo';
|
||||
|
|
|
|||
|
|
@ -16,13 +16,13 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import DocumentIcon from '@/components/icons/DocumentIcon'
|
||||
import StudentSubmissionDocument from '@/components/StudentSubmissionDocument';
|
||||
|
||||
export default {
|
||||
props: ['submission'],
|
||||
components: { DocumentIcon, StudentSubmissionDocument },
|
||||
components: {
|
||||
StudentSubmissionDocument
|
||||
},
|
||||
|
||||
computed: {
|
||||
name() {
|
||||
|
|
|
|||
|
|
@ -9,18 +9,14 @@
|
|||
|
||||
<script>
|
||||
import Cross from '@/components/icons/Cross';
|
||||
import UserWidget from '@/components/UserWidget';
|
||||
import ContentNavigation from '@/components/ContentNavigation';
|
||||
import ClassSelectionWidget from '@/components/school-class/ClassSelectionWidget';
|
||||
import ContentNavigation from '@/components/book-navigation/ContentNavigation';
|
||||
|
||||
import {meQuery} from '@/graphql/queries';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
ContentNavigation,
|
||||
Cross,
|
||||
UserWidget,
|
||||
ClassSelectionWidget
|
||||
Cross
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
|
|
|||
|
|
@ -47,25 +47,15 @@
|
|||
import debounce from 'lodash/debounce';
|
||||
import cloneDeep from 'lodash/cloneDeep'
|
||||
|
||||
import FinalSubmission from '@/components/content-blocks/assignment/FinalSubmission';
|
||||
import SubmissionInput from '@/components/content-blocks/assignment/SubmissionInput';
|
||||
import SubmissionForm from '@/components/content-blocks/assignment/SubmissionForm';
|
||||
import DocumentForm from '@/components/content-forms/DocumentForm';
|
||||
import DocumentBlock from '@/components/content-blocks/DocumentBlock';
|
||||
import Solution from '@/components/content-blocks/Solution';
|
||||
import SimpleFileUpload from '@/components/SimpleFileUpload';
|
||||
import SpellCheck from '@/components/content-blocks/assignment/SpellCheck';
|
||||
|
||||
export default {
|
||||
props: ['value'],
|
||||
|
||||
components: {
|
||||
DocumentBlock,
|
||||
DocumentForm,
|
||||
SubmissionInput,
|
||||
FinalSubmission,
|
||||
Solution,
|
||||
SimpleFileUpload,
|
||||
SubmissionForm,
|
||||
SpellCheck
|
||||
},
|
||||
|
|
|
|||
|
|
@ -15,10 +15,7 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import VisibilityAction from '@/components/visibility/VisibilityAction';
|
||||
import Objective from '@/components/objective-groups/Objective';
|
||||
import EyeIcon from '@/components/icons/EyeIcon';
|
||||
import PenIcon from '@/components/icons/PenIcon';
|
||||
|
||||
import ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||
import AddContentButton from '@/components/AddContentButton';
|
||||
|
|
@ -35,10 +32,7 @@
|
|||
|
||||
components: {
|
||||
AddContentButton,
|
||||
VisibilityAction,
|
||||
Objective,
|
||||
EyeIcon,
|
||||
PenIcon
|
||||
Objective
|
||||
},
|
||||
|
||||
apollo: {
|
||||
|
|
|
|||
|
|
@ -8,16 +8,6 @@
|
|||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import BookNavigation from '@/components/book-navigation/BookNavigation.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
BookNavigation
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
@import "@/styles/_mixins.scss";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue