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