Remove unused code
This commit is contained in:
parent
cd2e5c953e
commit
6d5e66c469
|
|
@ -41,9 +41,6 @@
|
||||||
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
import MoreOptionsWidget from '@/components/MoreOptionsWidget';
|
||||||
import UserWidget from '@/components/UserWidget';
|
import UserWidget from '@/components/UserWidget';
|
||||||
import VisibilityAction from '@/components/visibility/VisibilityAction';
|
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 ContentComponent from '@/components/content-blocks/ContentComponent';
|
||||||
|
|
||||||
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
|
import CHAPTER_QUERY from '@/graphql/gql/chapterQuery.gql';
|
||||||
|
|
@ -70,9 +67,6 @@
|
||||||
ContentComponent,
|
ContentComponent,
|
||||||
AddContentButton,
|
AddContentButton,
|
||||||
VisibilityAction,
|
VisibilityAction,
|
||||||
EyeIcon,
|
|
||||||
PenIcon,
|
|
||||||
TrashIcon,
|
|
||||||
MoreOptionsWidget,
|
MoreOptionsWidget,
|
||||||
UserWidget
|
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>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentNavigation from '@/components/ContentNavigation.vue';
|
import ContentNavigation from '@/components/book-navigation/ContentNavigation.vue';
|
||||||
import BookNavigation from '@/components/book-navigation/BookNavigation';
|
import BookNavigation from '@/components/book-navigation/BookNavigation';
|
||||||
import UserWidget from '@/components/UserWidget.vue';
|
import UserWidget from '@/components/UserWidget.vue';
|
||||||
import Logo from '@/components/icons/Logo';
|
import Logo from '@/components/icons/Logo';
|
||||||
|
|
|
||||||
|
|
@ -16,13 +16,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import DocumentIcon from '@/components/icons/DocumentIcon'
|
|
||||||
import StudentSubmissionDocument from '@/components/StudentSubmissionDocument';
|
import StudentSubmissionDocument from '@/components/StudentSubmissionDocument';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['submission'],
|
props: ['submission'],
|
||||||
components: { DocumentIcon, StudentSubmissionDocument },
|
components: {
|
||||||
|
StudentSubmissionDocument
|
||||||
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
name() {
|
name() {
|
||||||
|
|
|
||||||
|
|
@ -9,18 +9,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Cross from '@/components/icons/Cross';
|
import Cross from '@/components/icons/Cross';
|
||||||
import UserWidget from '@/components/UserWidget';
|
import ContentNavigation from '@/components/book-navigation/ContentNavigation';
|
||||||
import ContentNavigation from '@/components/ContentNavigation';
|
|
||||||
import ClassSelectionWidget from '@/components/school-class/ClassSelectionWidget';
|
|
||||||
|
|
||||||
import {meQuery} from '@/graphql/queries';
|
import {meQuery} from '@/graphql/queries';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ContentNavigation,
|
ContentNavigation,
|
||||||
Cross,
|
Cross
|
||||||
UserWidget,
|
|
||||||
ClassSelectionWidget
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -47,25 +47,15 @@
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
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 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 Solution from '@/components/content-blocks/Solution';
|
||||||
import SimpleFileUpload from '@/components/SimpleFileUpload';
|
|
||||||
import SpellCheck from '@/components/content-blocks/assignment/SpellCheck';
|
import SpellCheck from '@/components/content-blocks/assignment/SpellCheck';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['value'],
|
props: ['value'],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
DocumentBlock,
|
|
||||||
DocumentForm,
|
|
||||||
SubmissionInput,
|
|
||||||
FinalSubmission,
|
|
||||||
Solution,
|
Solution,
|
||||||
SimpleFileUpload,
|
|
||||||
SubmissionForm,
|
SubmissionForm,
|
||||||
SpellCheck
|
SpellCheck
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import VisibilityAction from '@/components/visibility/VisibilityAction';
|
|
||||||
import Objective from '@/components/objective-groups/Objective';
|
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 ME_QUERY from '@/graphql/gql/meQuery.gql';
|
||||||
import AddContentButton from '@/components/AddContentButton';
|
import AddContentButton from '@/components/AddContentButton';
|
||||||
|
|
@ -35,10 +32,7 @@
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
AddContentButton,
|
AddContentButton,
|
||||||
VisibilityAction,
|
Objective
|
||||||
Objective,
|
|
||||||
EyeIcon,
|
|
||||||
PenIcon
|
|
||||||
},
|
},
|
||||||
|
|
||||||
apollo: {
|
apollo: {
|
||||||
|
|
|
||||||
|
|
@ -8,16 +8,6 @@
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
|
||||||
import BookNavigation from '@/components/book-navigation/BookNavigation.vue';
|
|
||||||
|
|
||||||
export default {
|
|
||||||
components: {
|
|
||||||
BookNavigation
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "@/styles/_mixins.scss";
|
@import "@/styles/_mixins.scss";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue