Remove unused imports
This commit is contained in:
parent
c130219ed0
commit
e4ffecfcac
|
|
@ -16,18 +16,18 @@
|
|||
|
||||
export default {
|
||||
components: {
|
||||
Module
|
||||
Module,
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
module: {}
|
||||
module: {},
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
...mapState({
|
||||
editModule: 'editModule'
|
||||
editModule: 'editModule',
|
||||
}),
|
||||
},
|
||||
|
||||
|
|
@ -36,19 +36,19 @@
|
|||
return {
|
||||
query: MODULE_DETAILS_QUERY,
|
||||
variables: {
|
||||
slug: this.$route.params.slug
|
||||
slug: this.$route.params.slug,
|
||||
},
|
||||
update(data) {
|
||||
return this.$getRidOfEdges(data).module || {};
|
||||
update({module}) {
|
||||
return this.$getRidOfEdges(module) || {};
|
||||
},
|
||||
result() {
|
||||
// scroll only after the module has been loaded completely
|
||||
this.scrollTo();
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
scrollPosition: {
|
||||
query: SCROLL_POSITION
|
||||
query: SCROLL_POSITION,
|
||||
},
|
||||
},
|
||||
|
||||
|
|
@ -68,19 +68,19 @@
|
|||
// scrolling has been interrupted
|
||||
},
|
||||
x: false,
|
||||
y: true
|
||||
y: true,
|
||||
};
|
||||
setTimeout(() => {
|
||||
this.$scrollTo(`[data-scrollto="${this.scrollPosition.scrollTo}"]`, 1000, options);
|
||||
this.$apollo.mutate({
|
||||
mutation: SCROLL_TO_MUTATION,
|
||||
variables: {
|
||||
scrollTo: ''
|
||||
}
|
||||
scrollTo: '',
|
||||
},
|
||||
});
|
||||
}, 250); // unfortunately this timeout is needed as it is hard to tell when everything is rendered
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
|
|
@ -1,9 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
import topic from '@/pages/topic';
|
||||
import rooms from '@/pages/rooms';
|
||||
import room from '@/pages/room';
|
||||
import newRoom from '@/pages/newRoom';
|
||||
import editRoom from '@/pages/editRoom';
|
||||
import article from '@/pages/article';
|
||||
import instrument from '@/pages/instrument';
|
||||
import instrumentOverview from '@/pages/instrumentOverview';
|
||||
|
|
@ -17,11 +13,6 @@ import activity from '@/pages/activity';
|
|||
import Router from 'vue-router';
|
||||
import surveyPage from '@/pages/survey';
|
||||
import styleGuidePage from '@/pages/styleguide';
|
||||
import moduleRoom from '@/pages/module/moduleRoom';
|
||||
import login from '@/pages/login';
|
||||
import betaLogin from '@/pages/beta-login';
|
||||
import hello from '@/pages/hello';
|
||||
import registration from '@/pages/registration';
|
||||
import checkEmail from '@/pages/check-email';
|
||||
import emailVerification from '@/pages/email-verification';
|
||||
import licenseActivation from '@/pages/license-activation';
|
||||
|
|
|
|||
8451
client/yarn.lock
8451
client/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue