Clean up semicolons
This commit is contained in:
parent
bf42462988
commit
16c587ea59
|
|
@ -27,7 +27,7 @@ module.exports = {
|
||||||
// allow debugger during development
|
// allow debugger during development
|
||||||
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
||||||
'indent': 'off',
|
'indent': 'off',
|
||||||
'semi': 0,
|
'semi': ['error', 'always'],
|
||||||
'space-before-function-paren': 'off',
|
'space-before-function-paren': 'off',
|
||||||
'comma-dangle': 'off',
|
'comma-dangle': 'off',
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,6 @@
|
||||||
import FullscreenInfographic from '@/components/FullscreenInfographic';
|
import FullscreenInfographic from '@/components/FullscreenInfographic';
|
||||||
import FullscreenVideo from '@/components/FullscreenVideo';
|
import FullscreenVideo from '@/components/FullscreenVideo';
|
||||||
import DeactivatePerson from '@/components/profile/DeactivatePerson';
|
import DeactivatePerson from '@/components/profile/DeactivatePerson';
|
||||||
|
|
||||||
import {mapGetters} from 'vuex';
|
import {mapGetters} from 'vuex';
|
||||||
import ScrollUp from '@/components/ScrollUp';
|
import ScrollUp from '@/components/ScrollUp';
|
||||||
|
|
||||||
|
|
@ -79,7 +78,7 @@
|
||||||
return this.$modal.state.component;
|
return this.$modal.state.component;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
components: {
|
components: {
|
||||||
AddIcon
|
AddIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -35,16 +35,16 @@
|
||||||
computed: {
|
computed: {
|
||||||
component() {
|
component() {
|
||||||
// only use the router link if the route prop is provided, otherwise render a normal anchor tag
|
// only use the router link if the route prop is provided, otherwise render a normal anchor tag
|
||||||
return this.route ? 'router-link' : 'a'
|
return this.route ? 'router-link' : 'a';
|
||||||
},
|
},
|
||||||
properties() {
|
properties() {
|
||||||
return this.route ? {
|
return this.route ? {
|
||||||
to: this.route,
|
to: this.route,
|
||||||
tag: 'div'
|
tag: 'div'
|
||||||
} : {}
|
} : {};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
me: {}
|
me: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -72,13 +72,13 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
submissionLink(submission) {
|
submissionLink(submission) {
|
||||||
return `/submission/${submission.id}`
|
return `/submission/${submission.id}`;
|
||||||
},
|
},
|
||||||
belongsToSchool(submission) {
|
belongsToSchool(submission) {
|
||||||
if (this.currentFilter.id === '') {
|
if (this.currentFilter.id === '') {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return submission.student.schoolClasses.edges.some(edge => edge.node.id === this.currentFilter.id)
|
return submission.student.schoolClasses.edges.some(edge => edge.node.id === this.currentFilter.id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -86,7 +86,7 @@
|
||||||
me: meQuery
|
me: meQuery
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -52,14 +52,14 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
me: {}
|
me: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['editModule']),
|
...mapGetters(['editModule']),
|
||||||
filteredContentBlocks() {
|
filteredContentBlocks() {
|
||||||
if (!(this.chapter && this.chapter.contentBlocks)) {
|
if (!(this.chapter && this.chapter.contentBlocks)) {
|
||||||
return []
|
return [];
|
||||||
}
|
}
|
||||||
if (this.editModule) {
|
if (this.editModule) {
|
||||||
return this.chapter.contentBlocks;
|
return this.chapter.contentBlocks;
|
||||||
|
|
@ -102,7 +102,7 @@
|
||||||
chapter.bookmark = {
|
chapter.bookmark = {
|
||||||
__typename: 'ChapterBookmarkNode',
|
__typename: 'ChapterBookmarkNode',
|
||||||
note: null
|
note: null
|
||||||
}
|
};
|
||||||
} else {
|
} else {
|
||||||
chapter.bookmark = null;
|
chapter.bookmark = null;
|
||||||
}
|
}
|
||||||
|
|
@ -138,7 +138,7 @@
|
||||||
apollo: {
|
apollo: {
|
||||||
me: meQuery
|
me: meQuery
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -31,5 +31,5 @@
|
||||||
this.$emit('input', ...arguments);
|
this.$emit('input', ...arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -43,9 +43,9 @@
|
||||||
name: 'green'
|
name: 'green'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
return {
|
return {
|
||||||
showVisibility: false,
|
showVisibility: false,
|
||||||
me: {}
|
me: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -141,7 +141,7 @@
|
||||||
let newContent = this.contentBlock.contents.reduce((newContents, content, index) => {
|
let newContent = this.contentBlock.contents.reduce((newContents, content, index) => {
|
||||||
// collect content_list_items
|
// collect content_list_items
|
||||||
if (content.type === 'content_list_item') {
|
if (content.type === 'content_list_item') {
|
||||||
contentList = [...contentList, content]
|
contentList = [...contentList, content];
|
||||||
if (index === this.contentBlock.contents.length - 1) { // content is last element of contents array
|
if (index === this.contentBlock.contents.length - 1) { // content is last element of contents array
|
||||||
let updatedContent = [...newContents, ...this.createContentListOrBlocks(contentList, startingIndex)];
|
let updatedContent = [...newContents, ...this.createContentListOrBlocks(contentList, startingIndex)];
|
||||||
startingIndex = this.updateStartingIndex(startingIndex, contentList);
|
startingIndex = this.updateStartingIndex(startingIndex, contentList);
|
||||||
|
|
@ -240,7 +240,7 @@
|
||||||
apollo: {
|
apollo: {
|
||||||
me: meQuery
|
me: meQuery
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
return this.$store.state.imageUrl;
|
return this.$store.state.imageUrl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -28,8 +28,8 @@
|
||||||
value() {
|
value() {
|
||||||
return {
|
return {
|
||||||
id: this.id
|
id: this.id
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
return `https://player.vimeo.com/video/${this.vimeoId}`;
|
return `https://player.vimeo.com/video/${this.vimeoId}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
CurrentClass,
|
CurrentClass,
|
||||||
Hamburger
|
Hamburger
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
components: {
|
components: {
|
||||||
InfoIcon
|
InfoIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,11 @@
|
||||||
this.$apollo.mutate({
|
this.$apollo.mutate({
|
||||||
mutation: LOGOUT_MUTATION,
|
mutation: LOGOUT_MUTATION,
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
if (data.logout.success) { location.replace('/logout') }
|
if (data.logout.success) { location.replace('/logout'); }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@
|
||||||
this.$store.dispatch('showMobileNavigation', true);
|
this.$store.dispatch('showMobileNavigation', true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
this.$store.dispatch('hideModal');
|
this.$store.dispatch('hideModal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value', 'error', 'placeholder']
|
props: ['value', 'error', 'placeholder']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -27,9 +27,9 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showMenu: false
|
showMenu: false
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -29,5 +29,5 @@
|
||||||
this.$emit('input', ...arguments);
|
this.$emit('input', ...arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -20,14 +20,14 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
scroll: 0
|
scroll: 0
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
let html = document.scrollingElement;
|
let html = document.scrollingElement;
|
||||||
document.body.onscroll = () => {
|
document.body.onscroll = () => {
|
||||||
this.scroll = html.scrollTop;
|
this.scroll = html.scrollTop;
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
document.scrollingElement.scrollTop = 0;
|
document.scrollingElement.scrollTop = 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
button.click();
|
button.click();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
? `${this.submission.student.firstName} ${this.submission.student.lastName}` : '';
|
? `${this.submission.student.firstName} ${this.submission.student.lastName}` : '';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import DocumentIcon from '@/components/icons/DocumentIcon'
|
import DocumentIcon from '@/components/icons/DocumentIcon';
|
||||||
import filenameFromUrl from '@/helpers/urls';
|
import filenameFromUrl from '@/helpers/urls';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
@ -20,10 +20,10 @@
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
filename() {
|
filename() {
|
||||||
return filenameFromUrl(this.document)
|
return filenameFromUrl(this.document);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
components: {
|
components: {
|
||||||
Avatar
|
Avatar
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
return this.$route.meta.isProfile;
|
return this.$route.meta.isProfile;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
this.$emit('hide-me');
|
this.$emit('hide-me');
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -31,12 +31,12 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
topics: []
|
topics: []
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
topicId(id) {
|
topicId(id) {
|
||||||
return atob(id)
|
return atob(id);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -46,12 +46,12 @@
|
||||||
manual: true,
|
manual: true,
|
||||||
result({data, loading, networkStatus}) {
|
result({data, loading, networkStatus}) {
|
||||||
if (!loading) {
|
if (!loading) {
|
||||||
this.topics = this.$getRidOfEdges(data).topics
|
this.topics = this.$getRidOfEdges(data).topics;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@
|
||||||
this.closeSidebar('navigation');
|
this.closeSidebar('navigation');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
me: {}
|
me: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -48,7 +48,7 @@
|
||||||
apollo: {
|
apollo: {
|
||||||
me: meQuery
|
me: meQuery
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show: false
|
show: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
watch: {
|
watch: {
|
||||||
|
|
@ -47,5 +47,5 @@
|
||||||
this.show = false;
|
this.show = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -137,7 +137,7 @@
|
||||||
isAssignment: this.contentBlock.type && this.contentBlock.type === 'TASK'
|
isAssignment: this.contentBlock.type && this.contentBlock.type === 'TASK'
|
||||||
}),
|
}),
|
||||||
me: {}
|
me: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
apollo: {
|
apollo: {
|
||||||
|
|
@ -169,7 +169,7 @@
|
||||||
case 'document_block':
|
case 'document_block':
|
||||||
return 'document-form';
|
return 'document-form';
|
||||||
}
|
}
|
||||||
return 'content-block-element-chooser-widget'
|
return 'content-block-element-chooser-widget';
|
||||||
},
|
},
|
||||||
_updateProperty(value, index, key) {
|
_updateProperty(value, index, key) {
|
||||||
const content = this.localContentBlock.contents[index];
|
const content = this.localContentBlock.contents[index];
|
||||||
|
|
@ -182,28 +182,28 @@
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
changeLinkUrl(value, index) {
|
changeLinkUrl(value, index) {
|
||||||
this._updateProperty(value, index, 'url')
|
this._updateProperty(value, index, 'url');
|
||||||
},
|
},
|
||||||
changeLinkText(value, index) {
|
changeLinkText(value, index) {
|
||||||
this._updateProperty(value, index, 'text')
|
this._updateProperty(value, index, 'text');
|
||||||
},
|
},
|
||||||
changeVideoUrl(value, index) {
|
changeVideoUrl(value, index) {
|
||||||
this._updateProperty(value, index, 'url')
|
this._updateProperty(value, index, 'url');
|
||||||
},
|
},
|
||||||
changeImageUrl(value, index) {
|
changeImageUrl(value, index) {
|
||||||
this._updateProperty(value, index, 'url')
|
this._updateProperty(value, index, 'url');
|
||||||
},
|
},
|
||||||
changeDocumentUrl(value, index) {
|
changeDocumentUrl(value, index) {
|
||||||
this._updateProperty(value, index, 'url')
|
this._updateProperty(value, index, 'url');
|
||||||
},
|
},
|
||||||
changeTextValue(value, index) {
|
changeTextValue(value, index) {
|
||||||
this._updateProperty(value, index, 'text')
|
this._updateProperty(value, index, 'text');
|
||||||
},
|
},
|
||||||
changeAssignmentTitle(value, index) {
|
changeAssignmentTitle(value, index) {
|
||||||
this._updateProperty(value, index, 'title')
|
this._updateProperty(value, index, 'title');
|
||||||
},
|
},
|
||||||
changeAssignmentAssignment(value, index) {
|
changeAssignmentAssignment(value, index) {
|
||||||
this._updateProperty(value, index, 'assignment')
|
this._updateProperty(value, index, 'assignment');
|
||||||
},
|
},
|
||||||
removeElement(index) {
|
removeElement(index) {
|
||||||
this.localContentBlock.contents.splice(index, 1);
|
this.localContentBlock.contents.splice(index, 1);
|
||||||
|
|
@ -211,7 +211,7 @@
|
||||||
addElement(index) {
|
addElement(index) {
|
||||||
this.localContentBlock.contents.splice(index + 1, 0, {
|
this.localContentBlock.contents.splice(index + 1, 0, {
|
||||||
hideAssignment: this.blockType !== 'ContentBlock'
|
hideAssignment: this.blockType !== 'ContentBlock'
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
updateTitle(title) {
|
updateTitle(title) {
|
||||||
this.localContentBlock.title = title;
|
this.localContentBlock.title = title;
|
||||||
|
|
@ -281,10 +281,10 @@
|
||||||
this.localContentBlock.isAssignment = checked;
|
this.localContentBlock.isAssignment = checked;
|
||||||
},
|
},
|
||||||
switchToDocument(index, value) {
|
switchToDocument(index, value) {
|
||||||
this.changeType(index, 'document_block', value)
|
this.changeType(index, 'document_block', value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
import EDIT_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/mutateContentBlock.gql';
|
import EDIT_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/mutateContentBlock.gql';
|
||||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||||
import CONTENT_BLOCK_QUERY from '@/graphql/gql/contentBlockQuery.gql';
|
import CONTENT_BLOCK_QUERY from '@/graphql/gql/contentBlockQuery.gql';
|
||||||
import { setUserBlockType } from '@/helpers/content-block'
|
import { setUserBlockType } from '@/helpers/content-block';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
contentBlock: {}
|
contentBlock: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
|
|
@ -69,9 +69,9 @@
|
||||||
variables: {
|
variables: {
|
||||||
id: store.state.currentNoteBlock
|
id: store.state.currentNoteBlock
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
import NEW_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/addContentBlock.gql';
|
import NEW_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/addContentBlock.gql';
|
||||||
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
import MODULE_DETAILS_QUERY from '@/graphql/gql/moduleDetailsQuery.gql';
|
||||||
import {setUserBlockType} from '@/helpers/content-block'
|
import {setUserBlockType} from '@/helpers/content-block';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
saving: false
|
saving: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -64,5 +64,5 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
bookmarks: this.parent.bookmarks,
|
bookmarks: this.parent.bookmarks,
|
||||||
notes: this.parent.notes,
|
notes: this.parent.notes,
|
||||||
root: this.parent.id
|
root: this.parent.id
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -50,7 +50,7 @@
|
||||||
return String.fromCharCode(lowerAsciiA + this.startingIndex + index);
|
return String.fromCharCode(lowerAsciiA + this.startingIndex + index);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -33,12 +33,12 @@
|
||||||
urlName: function() {
|
urlName: function() {
|
||||||
if (this.value && this.value.url) {
|
if (this.value && this.value.url) {
|
||||||
const parts = this.value.url.split('/');
|
const parts = this.value.url.split('/');
|
||||||
return parts[parts.length - 1]
|
return parts[parts.length - 1];
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
height: 0
|
height: 0
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -26,13 +26,13 @@
|
||||||
return `https://e.infogram.com/${this.id}?src=embed`;
|
return `https://e.infogram.com/${this.id}?src=embed`;
|
||||||
},
|
},
|
||||||
href() {
|
href() {
|
||||||
return `https://infogram.com/${this.id}`
|
return `https://infogram.com/${this.id}`;
|
||||||
},
|
},
|
||||||
id() {
|
id() {
|
||||||
return this.value.id;
|
return this.value.id;
|
||||||
},
|
},
|
||||||
title() {
|
title() {
|
||||||
return this.value.title || 'Infografik'
|
return this.value.title || 'Infografik';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -63,7 +63,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -24,10 +24,10 @@
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
text() {
|
text() {
|
||||||
return this.value.text ? this.value.text : 'Anweisungen'
|
return this.value.text ? this.value.text : 'Anweisungen';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
return url.startsWith('http') ? this.value.url : `http://${this.value.url}`;
|
return url.startsWith('http') ? this.value.url : `http://${this.value.url}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
visible: false
|
visible: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
this.visible = !this.visible;
|
this.visible = !this.visible;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value'],
|
props: ['value'],
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
return isSrfUrl(this.value.url);
|
return isSrfUrl(this.value.url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
import UPDATE_ASSIGNMENT_MUTATION_WITH_SUCCESS from '@/graphql/gql/mutations/updateAssignmentMutationWithSuccess.gql';
|
import UPDATE_ASSIGNMENT_MUTATION_WITH_SUCCESS from '@/graphql/gql/mutations/updateAssignmentMutationWithSuccess.gql';
|
||||||
import SPELL_CHECK_MUTATION from '@/graphql/gql/mutations/spellCheck.gql';
|
import SPELL_CHECK_MUTATION from '@/graphql/gql/mutations/spellCheck.gql';
|
||||||
import debounce from 'lodash/debounce';
|
import debounce from 'lodash/debounce';
|
||||||
import cloneDeep from 'lodash/cloneDeep'
|
import cloneDeep from 'lodash/cloneDeep';
|
||||||
|
|
||||||
import SubmissionForm from '@/components/content-blocks/assignment/SubmissionForm';
|
import SubmissionForm from '@/components/content-blocks/assignment/SubmissionForm';
|
||||||
import Solution from '@/components/content-blocks/Solution';
|
import Solution from '@/components/content-blocks/Solution';
|
||||||
|
|
@ -82,16 +82,16 @@
|
||||||
saving: 0,
|
saving: 0,
|
||||||
corrections: '',
|
corrections: '',
|
||||||
spellcheckLoading: false
|
spellcheckLoading: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['scrollToAssignmentId']),
|
...mapGetters(['scrollToAssignmentId']),
|
||||||
final() {
|
final() {
|
||||||
return !!this.submission && this.submission.final
|
return !!this.submission && this.submission.final;
|
||||||
},
|
},
|
||||||
submission() {
|
submission() {
|
||||||
return this.assignment.submission ? this.assignment.submission : {}
|
return this.assignment.submission ? this.assignment.submission : {};
|
||||||
},
|
},
|
||||||
isStudent() {
|
isStudent() {
|
||||||
return !this.me.permissions.includes('users.can_manage_school_class_content');
|
return !this.me.permissions.includes('users.can_manage_school_class_content');
|
||||||
|
|
@ -99,10 +99,10 @@
|
||||||
solution() {
|
solution() {
|
||||||
return {
|
return {
|
||||||
text: this.assignment.solution
|
text: this.assignment.solution
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
id() {
|
id() {
|
||||||
return this.assignment.id ? this.assignment.id.replace(/=/g, '') : ''
|
return this.assignment.id ? this.assignment.id.replace(/=/g, '') : '';
|
||||||
},
|
},
|
||||||
feedbackText() {
|
feedbackText() {
|
||||||
let feedback = this.assignment.submission.submissionFeedback;
|
let feedback = this.assignment.submission.submissionFeedback;
|
||||||
|
|
@ -203,7 +203,7 @@
|
||||||
text: '',
|
text: '',
|
||||||
document: '',
|
document: '',
|
||||||
final: false,
|
final: false,
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
spellcheck() {
|
spellcheck() {
|
||||||
let self = this;
|
let self = this;
|
||||||
|
|
@ -231,7 +231,7 @@
|
||||||
variables() {
|
variables() {
|
||||||
return {
|
return {
|
||||||
id: this.value.id
|
id: this.value.id
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
result(response) {
|
result(response) {
|
||||||
const data = response.data;
|
const data = response.data;
|
||||||
|
|
@ -246,7 +246,7 @@
|
||||||
query: ME_QUERY
|
query: ME_QUERY
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
return newLineToParagraph(this.userInput.text);
|
return newLineToParagraph(this.userInput.text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
computed: {
|
computed: {
|
||||||
highlightedText() {
|
highlightedText() {
|
||||||
if (!this.corrections) {
|
if (!this.corrections) {
|
||||||
return ''
|
return '';
|
||||||
}
|
}
|
||||||
let parts = [];
|
let parts = [];
|
||||||
let index = 0;
|
let index = 0;
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
correct: false,
|
correct: false,
|
||||||
text: this.text.substring(realOffset, realOffset + current.length)
|
text: this.text.substring(realOffset, realOffset + current.length)
|
||||||
});
|
});
|
||||||
index = realOffset + current.length
|
index = realOffset + current.length;
|
||||||
});
|
});
|
||||||
parts.push({
|
parts.push({
|
||||||
correct: true,
|
correct: true,
|
||||||
|
|
@ -45,7 +45,7 @@
|
||||||
}, '');
|
}, '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -84,16 +84,16 @@
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
final() {
|
final() {
|
||||||
return !!this.userInput && this.userInput.final
|
return !!this.userInput && this.userInput.final;
|
||||||
},
|
},
|
||||||
allowsDocuments() {
|
allowsDocuments() {
|
||||||
return 'document' in this.userInput;
|
return 'document' in this.userInput;
|
||||||
},
|
},
|
||||||
spellcheckText() {
|
spellcheckText() {
|
||||||
if (!this.spellcheckLoading) {
|
if (!this.spellcheckLoading) {
|
||||||
return 'Rechtschreibung prüfen'
|
return 'Rechtschreibung prüfen';
|
||||||
} else {
|
} else {
|
||||||
return 'Wird geprüft...'
|
return 'Wird geprüft...';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -110,7 +110,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
TickCircleIcon,
|
TickCircleIcon,
|
||||||
LoadingIcon
|
LoadingIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
components: {
|
components: {
|
||||||
InfoIcon
|
InfoIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@import "@/styles/_variables.scss";
|
@import "@/styles/_variables.scss";
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@
|
||||||
SpeechBubbleIcon,
|
SpeechBubbleIcon,
|
||||||
DocumentIcon
|
DocumentIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@
|
||||||
previewLink() {
|
previewLink() {
|
||||||
if (this.value && this.value.url) {
|
if (this.value && this.value.url) {
|
||||||
const parts = this.value.url.split('/');
|
const parts = this.value.url.split('/');
|
||||||
return parts[parts.length - 1]
|
return parts[parts.length - 1];
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
@ -47,10 +47,10 @@
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
uploadcare(this, url => {
|
uploadcare(this, url => {
|
||||||
this.$emit('link-change-url', url, this.index)
|
this.$emit('link-change-url', url, this.index);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
uploadcarePanel: null,
|
uploadcarePanel: null,
|
||||||
url: '',
|
url: '',
|
||||||
filename: ''
|
filename: ''
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
previewUrl: function () {
|
previewUrl: function () {
|
||||||
|
|
@ -62,7 +62,7 @@
|
||||||
this.hadError = false;
|
this.hadError = false;
|
||||||
this.url = fileInfo.cdnUrl;
|
this.url = fileInfo.cdnUrl;
|
||||||
this.filename = fileInfo.name;
|
this.filename = fileInfo.name;
|
||||||
this.$emit('link-change-url', fileInfo.cdnUrl, this.index)
|
this.$emit('link-change-url', fileInfo.cdnUrl, this.index);
|
||||||
});
|
});
|
||||||
|
|
||||||
panelResult.progress(p => {
|
panelResult.progress(p => {
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['value', 'index']
|
props: ['value', 'index']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
return this.value.text ? this.value.text.replace(/<br(\/)?>/, '\n').replace(/(<([^>]+)>)/ig, '') : '';
|
return this.value.text ? this.value.text.replace(/<br(\/)?>/, '\n').replace(/(<([^>]+)>)/ig, '') : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,10 @@
|
||||||
v() {
|
v() {
|
||||||
return {
|
return {
|
||||||
text: this.value
|
text: this.value
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@
|
||||||
return isSrfUrl(this.value.url);
|
return isSrfUrl(this.value.url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['bookmarked']
|
props: ['bookmarked']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -39,5 +39,5 @@
|
||||||
Tick,
|
Tick,
|
||||||
CircleIcon
|
CircleIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
cls: 'interdisciplinary'
|
cls: 'interdisciplinary'
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -61,10 +61,10 @@
|
||||||
this.types
|
this.types
|
||||||
.filter(t => t.enabled)
|
.filter(t => t.enabled)
|
||||||
.map(t => t.prop)
|
.map(t => t.prop)
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.updateLastVisitedModule(this.module.id)
|
this.updateLastVisitedModule(this.module.id);
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
let newRecentModules;
|
let newRecentModules;
|
||||||
let index = recentModules.findIndex(element => element.node.id === lastModule.id);
|
let index = recentModules.findIndex(element => element.node.id === lastModule.id);
|
||||||
if (index > -1) {
|
if (index > -1) {
|
||||||
newRecentModules = [...recentModules.slice(0, index), ...recentModules.slice(index + 1)]
|
newRecentModules = [...recentModules.slice(0, index), ...recentModules.slice(index + 1)];
|
||||||
} else if (recentModules.length >= 3) {
|
} else if (recentModules.length >= 3) {
|
||||||
newRecentModules = recentModules.slice(0, recentModules.length - 1);
|
newRecentModules = recentModules.slice(0, recentModules.length - 1);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -156,7 +156,7 @@
|
||||||
store.writeQuery({query: OBJECTIVE_QUERY, data, variables});
|
store.writeQuery({query: OBJECTIVE_QUERY, data, variables});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
bookmark(bookmarked) {
|
bookmark(bookmarked) {
|
||||||
const slug = this.module.slug;
|
const slug = this.module.slug;
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
data.bookmark = {
|
data.bookmark = {
|
||||||
__typename: 'ModuleBookmarkNode',
|
__typename: 'ModuleBookmarkNode',
|
||||||
note: null
|
note: null
|
||||||
}
|
};
|
||||||
} else {
|
} else {
|
||||||
data.bookmark = null;
|
data.bookmark = null;
|
||||||
}
|
}
|
||||||
|
|
@ -210,7 +210,7 @@
|
||||||
this.$store.dispatch('editNote', this.module.bookmark.note);
|
this.$store.dispatch('editNote', this.module.bookmark.note);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -90,7 +90,7 @@
|
||||||
me: {
|
me: {
|
||||||
permissions: []
|
permissions: []
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -116,7 +116,7 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
chapterId(index) {
|
chapterId(index) {
|
||||||
return `#chapter-${index}`
|
return `#chapter-${index}`;
|
||||||
},
|
},
|
||||||
submissionsLink(assignment) {
|
submissionsLink(assignment) {
|
||||||
return `/module/${this.module.slug}/submissions/${assignment.value.id}`;
|
return `/module/${this.module.slug}/submissions/${assignment.value.id}`;
|
||||||
|
|
@ -152,7 +152,7 @@
|
||||||
node.value.forEach(contentNode => {
|
node.value.forEach(contentNode => {
|
||||||
foundAssignments = this.concatAssignments(foundAssignments, contentNode);
|
foundAssignments = this.concatAssignments(foundAssignments, contentNode);
|
||||||
});
|
});
|
||||||
return this.flattenArray(foundAssignments)
|
return this.flattenArray(foundAssignments);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
@ -162,7 +162,7 @@
|
||||||
return [].concat.apply([], arrayToFlatten);
|
return [].concat.apply([], arrayToFlatten);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -26,10 +26,10 @@
|
||||||
params: {
|
params: {
|
||||||
slug: this.slug
|
slug: this.slug
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -21,11 +21,11 @@
|
||||||
teaser: {
|
teaser: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: () => {
|
default: () => {
|
||||||
return {}
|
return {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['title', 'date', 'url']
|
props: ['title', 'date', 'url']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
<script>
|
<script>
|
||||||
import NewsTeaser from '@/components/news/NewsTeaser';
|
import NewsTeaser from '@/components/news/NewsTeaser';
|
||||||
|
|
||||||
import news from '@/mixins/news'
|
import news from '@/mixins/news';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [news],
|
mixins: [news],
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
AddNoteIcon,
|
AddNoteIcon,
|
||||||
NoteIcon
|
NoteIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -43,14 +43,14 @@
|
||||||
variables: {
|
variables: {
|
||||||
slug
|
slug
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
} else {
|
} else {
|
||||||
query = {
|
query = {
|
||||||
query: MODULE_DETAILS_QUERY,
|
query: MODULE_DETAILS_QUERY,
|
||||||
variables: {
|
variables: {
|
||||||
slug
|
slug
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
return [query];
|
return [query];
|
||||||
}
|
}
|
||||||
|
|
@ -62,5 +62,5 @@
|
||||||
this.$store.dispatch('hideModal');
|
this.$store.dispatch('hideModal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
note: {}
|
note: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -40,12 +40,12 @@
|
||||||
block,
|
block,
|
||||||
text,
|
text,
|
||||||
type
|
type
|
||||||
}
|
};
|
||||||
} else {
|
} else {
|
||||||
note = {
|
note = {
|
||||||
parent,
|
parent,
|
||||||
text
|
text
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$apollo
|
this.$apollo
|
||||||
|
|
@ -56,5 +56,5 @@
|
||||||
this.$store.dispatch('hideModal');
|
this.$store.dispatch('hideModal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
...this.note
|
...this.note
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
return {
|
return {
|
||||||
text: '',
|
text: '',
|
||||||
saving: false
|
saving: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -88,5 +88,5 @@
|
||||||
this.$store.dispatch('hideModal');
|
this.$store.dispatch('hideModal');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -47,13 +47,13 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
me: {}
|
me: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(['editModule']),
|
...mapGetters(['editModule']),
|
||||||
hidden() {
|
hidden() {
|
||||||
return isHidden(this.objective, this.schoolClass)
|
return isHidden(this.objective, this.schoolClass);
|
||||||
},
|
},
|
||||||
canEdit() {
|
canEdit() {
|
||||||
return this.objective.mine;
|
return this.objective.mine;
|
||||||
|
|
@ -95,7 +95,7 @@
|
||||||
apollo: {
|
apollo: {
|
||||||
me: meQuery
|
me: meQuery
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
ModalInput,
|
ModalInput,
|
||||||
TrashIcon
|
TrashIcon
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@
|
||||||
return this.me.selectedClass;
|
return this.me.selectedClass;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
me: {
|
me: {
|
||||||
permissions: []
|
permissions: []
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -61,5 +61,5 @@
|
||||||
this.$emit('updateObjectiveProgress', checked, id);
|
this.$emit('updateObjectiveProgress', checked, id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: ['title']
|
props: ['title']
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
id: null
|
id: null
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -39,14 +39,14 @@
|
||||||
return `page-form-input__${this.type} skillbox-${this.type}`;
|
return `page-form-input__${this.type} skillbox-${this.type}`;
|
||||||
},
|
},
|
||||||
cyId() {
|
cyId() {
|
||||||
return `page-form-input-${this.label.toLowerCase()}`
|
return `page-form-input-${this.label.toLowerCase()}`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
this.id = this._uid;
|
this.id = this._uid;
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@
|
||||||
components: {
|
components: {
|
||||||
AddWidget
|
AddWidget
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -19,5 +19,5 @@
|
||||||
this.$store.dispatch('addProjectEntry', this.project);
|
this.$store.dispatch('addProjectEntry', this.project);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -37,5 +37,5 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
projectEntry: {}
|
projectEntry: {}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
apollo: {
|
apollo: {
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
variables: {
|
variables: {
|
||||||
id: this.currentProjectEntry
|
id: this.currentProjectEntry
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -56,5 +56,5 @@
|
||||||
this.$store.dispatch('hideModal');
|
this.$store.dispatch('hideModal');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
nextSteps: '',
|
nextSteps: '',
|
||||||
documentUrl: ''
|
documentUrl: ''
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -68,5 +68,5 @@
|
||||||
this.$store.dispatch('hideModal');
|
this.$store.dispatch('hideModal');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -21,10 +21,10 @@
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
name() {
|
name() {
|
||||||
return `${this.owner.firstName} ${this.owner.lastName}`
|
return `${this.owner.firstName} ${this.owner.lastName}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -43,12 +43,12 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showMenu: false
|
showMenu: false
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
toggleMenu: function () {
|
toggleMenu: function () {
|
||||||
this.showMenu = !this.showMenu
|
this.showMenu = !this.showMenu;
|
||||||
},
|
},
|
||||||
editProject(id) {
|
editProject(id) {
|
||||||
this.$router.push({name: 'edit-project', params: {id}});
|
this.$router.push({name: 'edit-project', params: {id}});
|
||||||
|
|
@ -99,10 +99,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -80,10 +80,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@
|
||||||
localProjectEntry: Object.assign({}, {
|
localProjectEntry: Object.assign({}, {
|
||||||
...this.projectEntry
|
...this.projectEntry
|
||||||
})
|
})
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -71,5 +71,5 @@
|
||||||
this.localProjectEntry.documentUrl = url;
|
this.localProjectEntry.documentUrl = url;
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
localProject: Object.assign({}, this.project),
|
localProject: Object.assign({}, this.project),
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -74,5 +74,5 @@
|
||||||
this.$store.dispatch('setSpecialContainerClass', newColor);
|
this.$store.dispatch('setSpecialContainerClass', newColor);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
components: {
|
components: {
|
||||||
ChevronRight
|
ChevronRight
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
|
|
@ -23,9 +23,9 @@
|
||||||
{tag: 'bookmarks', label: 'Lesezeichen'},
|
{tag: 'bookmarks', label: 'Lesezeichen'},
|
||||||
{tag: 'notes', label: 'Notizen'},
|
{tag: 'notes', label: 'Notizen'},
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue