MS-474: Add myKV-specific terms
This commit is contained in:
parent
0d8c95013b
commit
77c355d569
|
|
@ -7,7 +7,6 @@ module.exports = {
|
||||||
VUE_APP_LOGO: '"https://skillbox-my-kv-prod.s3-eu-west-1.amazonaws.com/mykv-logo.png"',
|
VUE_APP_LOGO: '"https://skillbox-my-kv-prod.s3-eu-west-1.amazonaws.com/mykv-logo.png"',
|
||||||
VUE_APP_ENABLE_PORTFOLIO: "true",
|
VUE_APP_ENABLE_PORTFOLIO: "true",
|
||||||
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
||||||
VUE_APP_JS_TITLE: '"My KV"',
|
|
||||||
VUE_APP_ENABLE_FOOTER: "false",
|
VUE_APP_ENABLE_FOOTER: "false",
|
||||||
VUE_APP_SHOW_OBJECTIVES_TITLE: "false",
|
VUE_APP_SHOW_OBJECTIVES_TITLE: "false",
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ const values = {
|
||||||
MATOMO_HOST: JSON.stringify(process.env.MATOMO_HOST),
|
MATOMO_HOST: JSON.stringify(process.env.MATOMO_HOST),
|
||||||
MATOMO_SITE_ID: JSON.stringify(process.env.MATOMO_SITE_ID),
|
MATOMO_SITE_ID: JSON.stringify(process.env.MATOMO_SITE_ID),
|
||||||
LOGOUT_REDIRECT_URL: JSON.stringify(process.env.LOGOUT_REDIRECT_URL),
|
LOGOUT_REDIRECT_URL: JSON.stringify(process.env.LOGOUT_REDIRECT_URL),
|
||||||
VUE_APP_TYPE: JSON.stringify(process.env.APP_TYPE),
|
VUE_APP_FLAVOR: JSON.stringify(process.env.APP_FLAVOR),
|
||||||
/*
|
/*
|
||||||
* ENV variables used in JS code need to be stringyfied, as they will be replaced (in place) in the code,
|
* ENV variables used in JS code need to be stringyfied, as they will be replaced (in place) in the code,
|
||||||
* and JS needs quotes around strings
|
* and JS needs quotes around strings
|
||||||
|
|
@ -16,7 +16,6 @@ const values = {
|
||||||
VUE_APP_LOGO: '"/static/logo.png"',
|
VUE_APP_LOGO: '"/static/logo.png"',
|
||||||
VUE_APP_ENABLE_PORTFOLIO: "true",
|
VUE_APP_ENABLE_PORTFOLIO: "true",
|
||||||
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
VUE_APP_ENABLE_SPELLCHECK: !!process.env.TASKBASE_BASEURL,
|
||||||
VUE_APP_JS_TITLE: '"mySkillbox"',
|
|
||||||
VUE_APP_ENABLE_FOOTER: "true",
|
VUE_APP_ENABLE_FOOTER: "true",
|
||||||
VUE_APP_SHOW_OBJECTIVES_TITLE: "true",
|
VUE_APP_SHOW_OBJECTIVES_TITLE: "true",
|
||||||
|
|
||||||
|
|
@ -30,10 +29,10 @@ const values = {
|
||||||
// ^^^^ HTML PROPERTIES TO HERE, NOT STRINGIFIED ^^^^
|
// ^^^^ HTML PROPERTIES TO HERE, NOT STRINGIFIED ^^^^
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.APP_TYPE === 'my-kv') {
|
if (process.env.APP_FLAVOR === 'my-kv') {
|
||||||
module.exports = merge(values, require('./prod-my-kv.env.js'));
|
module.exports = merge(values, require('./prod-my-kv.env.js'));
|
||||||
} else {
|
} else {
|
||||||
// we are on the skillbox APP_TYPE
|
// we are on the skillbox APP_FLAVOR
|
||||||
module.exports = values;
|
module.exports = values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
<a
|
<a
|
||||||
class="button button--primary submissions-page__back"
|
class="button button--primary submissions-page__back"
|
||||||
@click="$emit('back')"
|
@click="$emit('back')"
|
||||||
>Aufgabe im Modul anzeigen</a>
|
>Aufgabe im {{ flavorTextModul }} anzeigen</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
|
|
@ -64,11 +64,13 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import StudentSubmission from '@/components/StudentSubmission';
|
import StudentSubmission from '@/components/StudentSubmission';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
import {meQuery} from '@/graphql/queries';
|
import { meQuery } from '@/graphql/queries';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['assignment'],
|
props: ['assignment'],
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
StudentSubmission
|
StudentSubmission
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,11 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {MODULE_PAGE} from '@/router/module.names';
|
import { MODULE_PAGE } from '@/router/module.names';
|
||||||
import {ROOMS_PAGE} from '@/router/room.names';
|
import { ROOMS_PAGE } from '@/router/room.names';
|
||||||
import {PROJECTS_PAGE} from '@/router/portfolio.names';
|
import { PROJECTS_PAGE } from '@/router/portfolio.names';
|
||||||
|
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
const ChevronLeft = () => import(/* webpackChunkName: "icons" */'@/components/icons/ChevronLeft');
|
const ChevronLeft = () => import(/* webpackChunkName: "icons" */'@/components/icons/ChevronLeft');
|
||||||
|
|
||||||
|
|
@ -31,6 +33,8 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
ChevronLeft,
|
ChevronLeft,
|
||||||
},
|
},
|
||||||
|
|
@ -51,9 +55,9 @@
|
||||||
fullTitle() {
|
fullTitle() {
|
||||||
switch (this.type) {
|
switch (this.type) {
|
||||||
case 'topic':
|
case 'topic':
|
||||||
return `Thema: ${this.title}`;
|
return `${this.flavorTextThema}: ${this.title}`;
|
||||||
case 'module':
|
case 'module':
|
||||||
return `Modul: ${this.title}`;
|
return `${this.flavorTextModul}: ${this.title}`;
|
||||||
default:
|
default:
|
||||||
return this.title;
|
return this.title;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -81,11 +81,13 @@
|
||||||
import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql';
|
import DELETE_CONTENT_BLOCK_MUTATION from '@/graphql/gql/mutations/deleteContentBlock.gql';
|
||||||
|
|
||||||
import me from '@/mixins/me';
|
import me from '@/mixins/me';
|
||||||
import {hidden} from '@/helpers/visibility';
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
import {CONTENT_TYPE} from '@/consts/types';
|
|
||||||
|
import { hidden } from '@/helpers/visibility';
|
||||||
|
import { CONTENT_TYPE } from '@/consts/types';
|
||||||
import PopoverLink from '@/components/ui/PopoverLink';
|
import PopoverLink from '@/components/ui/PopoverLink';
|
||||||
import {removeAtIndex} from '@/graphql/immutable-operations';
|
import { removeAtIndex } from '@/graphql/immutable-operations';
|
||||||
import {EDIT_CONTENT_BLOCK_PAGE} from '@/router/module.names';
|
import { EDIT_CONTENT_BLOCK_PAGE } from '@/router/module.names';
|
||||||
|
|
||||||
const ContentComponent = () => import(/* webpackChunkName: "content-components" */'@/components/content-blocks/ContentComponent');
|
const ContentComponent = () => import(/* webpackChunkName: "content-components" */'@/components/content-blocks/ContentComponent');
|
||||||
|
|
||||||
|
|
@ -113,7 +115,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [me],
|
mixins: [me, appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
PopoverLink,
|
PopoverLink,
|
||||||
|
|
@ -137,7 +139,7 @@
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return `Instrument - ${instruments[contentType]}`;
|
return `${this.flavorTextInstrument} - ${instruments[contentType]}`;
|
||||||
},
|
},
|
||||||
canEditContentBlock() {
|
canEditContentBlock() {
|
||||||
return this.contentBlock.mine && !this.contentBlock.indent;
|
return this.contentBlock.mine && !this.contentBlock.indent;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
class="content-navigation__link"
|
class="content-navigation__link"
|
||||||
@click.native="close"
|
@click.native="close"
|
||||||
>
|
>
|
||||||
Themen
|
{{ flavorTextThemen }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
<book-topic-navigation
|
<book-topic-navigation
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
class="content-navigation__link"
|
class="content-navigation__link"
|
||||||
@click.native="close"
|
@click.native="close"
|
||||||
>
|
>
|
||||||
Instrumente
|
{{ flavorTextInstrumente }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -99,6 +99,7 @@
|
||||||
<script>
|
<script>
|
||||||
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
||||||
|
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
import sidebarMixin from '@/mixins/sidebar';
|
import sidebarMixin from '@/mixins/sidebar';
|
||||||
import meMixin from '@/mixins/me';
|
import meMixin from '@/mixins/me';
|
||||||
|
|
||||||
|
|
@ -111,7 +112,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [sidebarMixin, meMixin],
|
mixins: [sidebarMixin, meMixin, appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
BookTopicNavigation,
|
BookTopicNavigation,
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,17 @@
|
||||||
:to="{name: 'instrument', params: { slug: value.slug }}"
|
:to="{name: 'instrument', params: { slug: value.slug }}"
|
||||||
class="instrument-widget__button button"
|
class="instrument-widget__button button"
|
||||||
>
|
>
|
||||||
Instrument anzeigen
|
{{ flavorTextInstrument }} anzeigen
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['value']
|
props: ['value'],
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@
|
||||||
<a
|
<a
|
||||||
class="button"
|
class="button"
|
||||||
@click="close"
|
@click="close"
|
||||||
>Zurück zum Modul</a>
|
>Zurück zum {{ flavorTextModul }}</a>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</modal>
|
</modal>
|
||||||
|
|
@ -33,10 +33,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
import {SNAPSHOT_LIST} from '@/router/module.names';
|
import { SNAPSHOT_LIST } from '@/router/module.names';
|
||||||
import dateformat from '@/helpers/date-format';
|
import dateformat from '@/helpers/date-format';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
components: {
|
components: {
|
||||||
Modal,
|
Modal,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@
|
||||||
<checkbox
|
<checkbox
|
||||||
:checked="agreement"
|
:checked="agreement"
|
||||||
data-cy="apply-checkbox"
|
data-cy="apply-checkbox"
|
||||||
label="Ich will die Anpassungen aus diesem Snapshot in das Modul kopieren."
|
:label="`Ich will die Anpassungen aus diesem Snapshot in das ${flavorTextModul} kopieren.`"
|
||||||
@input="agreement = $event"
|
@input="agreement = $event"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -68,9 +68,10 @@
|
||||||
import Checkbox from '@/components/ui/Checkbox';
|
import Checkbox from '@/components/ui/Checkbox';
|
||||||
|
|
||||||
import me from '@/mixins/me';
|
import me from '@/mixins/me';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
import APPLY_SNAPSHOT_MUTATION from 'gql/mutations/snapshots/applySnapshot.gql';
|
import APPLY_SNAPSHOT_MUTATION from 'gql/mutations/snapshots/applySnapshot.gql';
|
||||||
import {MODULE_PAGE} from '@/router/module.names';
|
import { MODULE_PAGE } from '@/router/module.names';
|
||||||
|
|
||||||
const _getChange = (snapshot, index) => {
|
const _getChange = (snapshot, index) => {
|
||||||
try {
|
try {
|
||||||
|
|
@ -88,7 +89,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mixins: [me],
|
mixins: [me, appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Checkbox,
|
Checkbox,
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
<template v-else>
|
<template v-else>
|
||||||
Diese Person kann
|
Diese Person kann
|
||||||
</template>
|
</template>
|
||||||
weiterhin Module und Instrumente lesen.
|
weiterhin {{ flavorTextModule }} und {{ flavorTextInstrumente }} lesen.
|
||||||
</li>
|
</li>
|
||||||
<li class="deactivate-user__text deactivate-user__list-item">
|
<li class="deactivate-user__text deactivate-user__list-item">
|
||||||
<template v-if="myself">
|
<template v-if="myself">
|
||||||
|
|
@ -75,8 +75,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Modal from '@/components/Modal';
|
import Modal from '@/components/Modal';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Modal
|
Modal
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<toggle
|
<toggle
|
||||||
:checked="module.inEditMode"
|
:checked="module.inEditMode"
|
||||||
data-cy="toggle-editing"
|
data-cy="toggle-editing"
|
||||||
label="Modul anpassen"
|
:label="`${flavorTextModul} anpassen`"
|
||||||
@input="toggle"
|
@input="toggle"
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -10,8 +10,10 @@
|
||||||
<script>
|
<script>
|
||||||
import Toggle from '@/components/ui/Toggle';
|
import Toggle from '@/components/ui/Toggle';
|
||||||
// import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/modules/moduleDetailsQuery.gql';
|
// import MODULE_DETAILS_QUERY from '@/graphql/gql/queries/modules/moduleDetailsQuery.gql';
|
||||||
import {gql} from '@apollo/client/core';
|
import { gql } from '@apollo/client/core';
|
||||||
import {setModuleEditMode} from '@/graphql/cache-operations';
|
import { setModuleEditMode } from '@/graphql/cache-operations';
|
||||||
|
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
const QUERY = gql`
|
const QUERY = gql`
|
||||||
query ModuleEditModeQuery ($slug: String) {
|
query ModuleEditModeQuery ($slug: String) {
|
||||||
|
|
@ -23,6 +25,8 @@
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
Toggle
|
Toggle
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,52 @@
|
||||||
|
export default {
|
||||||
|
computed: {
|
||||||
|
flavorPageTitle() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv': return 'My KV';
|
||||||
|
}
|
||||||
|
return 'my Skillbox';
|
||||||
|
},
|
||||||
|
flavorTextModul() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return 'Lernfeld';
|
||||||
|
}
|
||||||
|
return 'Modul';
|
||||||
|
},
|
||||||
|
flavorTextModule() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return 'Lernfelder';
|
||||||
|
}
|
||||||
|
return 'Module';
|
||||||
|
},
|
||||||
|
flavorTextThema() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return 'HKB';
|
||||||
|
}
|
||||||
|
return 'Thema';
|
||||||
|
},
|
||||||
|
flavorTextThemen() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return 'HKB';
|
||||||
|
}
|
||||||
|
return 'Themen';
|
||||||
|
},
|
||||||
|
flavorTextInstrument() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return 'Grundlagenwissen';
|
||||||
|
}
|
||||||
|
return 'Instrument';
|
||||||
|
},
|
||||||
|
flavorTextInstrumente() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return 'Grundlagenwissen';
|
||||||
|
}
|
||||||
|
return 'Instrumente';
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
export default {
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
pageTitle: process.env.VUE_APP_JS_TITLE
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
class="login-actions__title"
|
class="login-actions__title"
|
||||||
data-cy="hello-title"
|
data-cy="hello-title"
|
||||||
>
|
>
|
||||||
Wollen Sie {{ pageTitle }} im Unterricht verwenden?
|
Wollen Sie {{ flavorPageTitle }} im Unterricht verwenden?
|
||||||
</h2>
|
</h2>
|
||||||
<a
|
<a
|
||||||
class="button button--primary button--big actions__submit"
|
class="button button--primary button--big actions__submit"
|
||||||
|
|
@ -71,13 +71,13 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import pageTitleMixin from '@/mixins/page-title';
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
const HepLogoNoClaim = () => import(/* webpackChunkName: "icons" */'@/components/icons/HepLogoNoClaim');
|
const HepLogoNoClaim = () => import(/* webpackChunkName: "icons" */'@/components/icons/HepLogoNoClaim');
|
||||||
const EhbLogo = () => import(/* webpackChunkName: "icons" */'@/components/icons/EhbLogo');
|
const EhbLogo = () => import(/* webpackChunkName: "icons" */'@/components/icons/EhbLogo');
|
||||||
const Logo = () => import(/* webpackChunkName: "icons" */'@/components/icons/Logo');
|
const Logo = () => import(/* webpackChunkName: "icons" */'@/components/icons/Logo');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [pageTitleMixin],
|
mixins: [appFlavorTermsMixin],
|
||||||
components: {
|
components: {
|
||||||
HepLogoNoClaim,
|
HepLogoNoClaim,
|
||||||
EhbLogo,
|
EhbLogo,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<router-link to="/module">
|
<router-link to="/module">
|
||||||
Modul
|
{{ flavorTextModul }}
|
||||||
</router-link>
|
</router-link>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -28,8 +28,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ALL_MODULES from '@/graphql/gql/queries/allModules.gql';
|
import ALL_MODULES from '@/graphql/gql/queries/allModules.gql';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
modules: []
|
modules: []
|
||||||
|
|
|
||||||
|
|
@ -50,13 +50,13 @@
|
||||||
<a
|
<a
|
||||||
:href="teacherEditionUrl"
|
:href="teacherEditionUrl"
|
||||||
class="hep-link"
|
class="hep-link"
|
||||||
>{{ pageTitle }} für Lehrpersonen</a>
|
>{{ flavorPageTitle }} für Lehrpersonen</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="license-links__item">
|
<li class="license-links__item">
|
||||||
<a
|
<a
|
||||||
:href="studentEditionUrl"
|
:href="studentEditionUrl"
|
||||||
class="hep-link"
|
class="hep-link"
|
||||||
>{{ pageTitle }} für Lernende</a>
|
>{{ flavorPageTitle }} für Lernende</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -68,16 +68,16 @@
|
||||||
import REDEEM_COUPON from '@/graphql/gql/mutations/redeemCoupon.gql';
|
import REDEEM_COUPON from '@/graphql/gql/mutations/redeemCoupon.gql';
|
||||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||||
import LoadingButton from '@/components/LoadingButton';
|
import LoadingButton from '@/components/LoadingButton';
|
||||||
import {ValidationObserver} from 'vee-validate';
|
import { ValidationObserver } from 'vee-validate';
|
||||||
|
|
||||||
import me from '@/mixins/me';
|
import me from '@/mixins/me';
|
||||||
import logout from '@/mixins/logout';
|
import logout from '@/mixins/logout';
|
||||||
import pageTitleMixin from '@/mixins/page-title';
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
const ValidatedInput = () => import('@/components/validation/ValidatedInput');
|
const ValidatedInput = () => import('@/components/validation/ValidatedInput');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [me, logout, pageTitleMixin],
|
mixins: [me, logout, appFlavorTermsMixin],
|
||||||
components: {
|
components: {
|
||||||
LoadingButton,
|
LoadingButton,
|
||||||
ValidationObserver,
|
ValidationObserver,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
Lösungen
|
Lösungen
|
||||||
</h2>
|
</h2>
|
||||||
<p class="module-settings__paragraph">
|
<p class="module-settings__paragraph">
|
||||||
Wollen Sie die Lösungen in diesem Modul für die Lernenden der ausgewählten Klasse anzeigen?
|
Wollen Sie die Lösungen in diesem {{ flavorTextModul }} für die Lernenden der ausgewählten Klasse anzeigen?
|
||||||
</p>
|
</p>
|
||||||
<toggle-solutions-for-module />
|
<toggle-solutions-for-module />
|
||||||
</section>
|
</section>
|
||||||
|
|
@ -36,8 +36,11 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ToggleSolutionsForModule from '@/components/toggle-menu/ToggleSolutionsForModule';
|
import ToggleSolutionsForModule from '@/components/toggle-menu/ToggleSolutionsForModule';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
ToggleSolutionsForModule,
|
ToggleSolutionsForModule,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,19 +6,19 @@
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<p class="onboarding__claim">
|
<p class="onboarding__claim">
|
||||||
Schauen Sie sich die Einführung an und lernen Sie {{ pageTitle }} kennen.
|
Schauen Sie sich die Einführung an und lernen Sie {{ flavorPageTitle }} kennen.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import pageTitleMixin from '@/mixins/page-title';
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
const Logo = () => import(/* webpackChunkName: "icons" */'@/components/icons/Logo');
|
const Logo = () => import(/* webpackChunkName: "icons" */'@/components/icons/Logo');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
mixins: [pageTitleMixin],
|
mixins: [appFlavorTermsMixin],
|
||||||
components: {
|
components: {
|
||||||
Logo
|
Logo
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,16 @@
|
||||||
Ihr Lernbereich
|
Ihr Lernbereich
|
||||||
</h1>
|
</h1>
|
||||||
<h2 class="onboarding__heading">
|
<h2 class="onboarding__heading">
|
||||||
Themen
|
{{ flavorTextThemen }}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="onboarding__paragraph">
|
<p class="onboarding__paragraph">
|
||||||
In den «Themen» finden Sie aktuelle Module mit Aufträgen und Situationen.
|
In den «{{ flavorTextThemen }}» finden Sie aktuelle {{ flavorTextModule }} mit Aufträgen und Situationen.
|
||||||
</p>
|
</p>
|
||||||
<h2 class="onboarding__heading">
|
<h2 class="onboarding__heading">
|
||||||
Instrumente
|
{{ flavorTextInstrumente }}
|
||||||
</h2>
|
</h2>
|
||||||
<p class="onboarding__paragraph">
|
<p class="onboarding__paragraph">
|
||||||
Die «Instrumente» helfen Ihnen dabei, Aufträge und Situationen zu bearbeiten. Zudem erweitern Sie so Ihre Kompetenzen.
|
Die «{{ flavorTextInstrumente }}» helfen Ihnen dabei, Aufträge und Situationen zu bearbeiten. Zudem erweitern Sie so Ihre Kompetenzen.
|
||||||
</p>
|
</p>
|
||||||
<h2 class="onboarding__heading">
|
<h2 class="onboarding__heading">
|
||||||
News
|
News
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
<div class="snapshots">
|
<div class="snapshots">
|
||||||
<h1>Snapshots</h1>
|
<h1>Snapshots</h1>
|
||||||
<p class="snapshots__details">
|
<p class="snapshots__details">
|
||||||
Thema: {{ module.topic.title }} - {{ module.metaTitle }}: {{ module.title }}
|
{{ flavorTextThema }}: {{ module.topic.title }} - {{ module.metaTitle }}: {{ module.title }}
|
||||||
</p>
|
</p>
|
||||||
<snapshot-team-menu
|
<snapshot-team-menu
|
||||||
:selected="selectedLink"
|
:selected="selectedLink"
|
||||||
|
|
@ -24,13 +24,14 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SnapshotListItem from '@/components/modules/SnapshotListItem';
|
import SnapshotListItem from '@/components/modules/SnapshotListItem';
|
||||||
|
|
||||||
import MODULE_SNAPSHOTS_QUERY from '@/graphql/gql/queries/moduleSnapshots.gql';
|
import MODULE_SNAPSHOTS_QUERY from '@/graphql/gql/queries/moduleSnapshots.gql';
|
||||||
import SnapshotTeamMenu from '@/components/modules/SnapshotTeamMenu';
|
import SnapshotTeamMenu from '@/components/modules/SnapshotTeamMenu';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
const defaultModule = {topic: {}, snapshots: []};
|
const defaultModule = {topic: {}, snapshots: []};
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
components: {
|
components: {
|
||||||
SnapshotTeamMenu,
|
SnapshotTeamMenu,
|
||||||
SnapshotListItem,
|
SnapshotListItem,
|
||||||
|
|
|
||||||
|
|
@ -9,14 +9,14 @@
|
||||||
class="start-page__heading"
|
class="start-page__heading"
|
||||||
data-cy="start-page-heading"
|
data-cy="start-page-heading"
|
||||||
>
|
>
|
||||||
Letzte Module
|
Letzte {{ flavorTextModule }}
|
||||||
</h2>
|
</h2>
|
||||||
<h3
|
<h3
|
||||||
class="start-page__no-modules"
|
class="start-page__no-modules"
|
||||||
data-cy="no-modules-yet"
|
data-cy="no-modules-yet"
|
||||||
v-if="!me.recentModules.length"
|
v-if="!me.recentModules.length"
|
||||||
>
|
>
|
||||||
Sie haben sich noch kein Modul angeschaut. Legen Sie jetzt los!
|
Sie haben sich noch kein {{ flavorTextModul }} angeschaut. Legen Sie jetzt los!
|
||||||
</h3>
|
</h3>
|
||||||
<div class="start-page__modules-list">
|
<div class="start-page__modules-list">
|
||||||
<module-teaser
|
<module-teaser
|
||||||
|
|
@ -34,7 +34,7 @@
|
||||||
tag="div"
|
tag="div"
|
||||||
class="button"
|
class="button"
|
||||||
>
|
>
|
||||||
Alle Module anzeigen
|
Alle {{ flavorTextModule }} anzeigen
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
|
|
@ -63,10 +63,10 @@
|
||||||
|
|
||||||
<div class="start-page__onboarding">
|
<div class="start-page__onboarding">
|
||||||
<h2 class="start-page__heading">
|
<h2 class="start-page__heading">
|
||||||
Kennen Sie schon alle Bereiche von {{ pageTitle }}?
|
Kennen Sie schon alle Bereiche von {{ flavorPageTitle }}?
|
||||||
</h2>
|
</h2>
|
||||||
<p class="start-page__paragraph">
|
<p class="start-page__paragraph">
|
||||||
Schauen Sie sich jetzt die Einführung zu {{ pageTitle }} an.
|
Schauen Sie sich jetzt die Einführung zu {{ flavorPageTitle }} an.
|
||||||
</p>
|
</p>
|
||||||
<router-link
|
<router-link
|
||||||
:to="{name: 'onboarding-start'}"
|
:to="{name: 'onboarding-start'}"
|
||||||
|
|
@ -82,15 +82,14 @@
|
||||||
import NewsTeaser from '@/components/news/NewsTeaser.vue';
|
import NewsTeaser from '@/components/news/NewsTeaser.vue';
|
||||||
import ModuleTeaser from '@/components/modules/ModuleTeaser';
|
import ModuleTeaser from '@/components/modules/ModuleTeaser';
|
||||||
|
|
||||||
|
|
||||||
import meQuery from '@/mixins/me';
|
import meQuery from '@/mixins/me';
|
||||||
import news from '@/mixins/news';
|
import news from '@/mixins/news';
|
||||||
|
|
||||||
import pageTitleMixin from '@/mixins/page-title';
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
mixins: [meQuery, news, pageTitleMixin],
|
mixins: [meQuery, news, appFlavorTermsMixin],
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
NewsTeaser,
|
NewsTeaser,
|
||||||
|
|
@ -106,7 +105,7 @@
|
||||||
},
|
},
|
||||||
moduleText() {
|
moduleText() {
|
||||||
if (this.me.lastModule && this.me.lastModule.slug) {
|
if (this.me.lastModule && this.me.lastModule.slug) {
|
||||||
return 'Aktuelles Modul anzeigen';
|
return `Aktuelles ${this.flavorTextModul} anzeigen`;
|
||||||
}
|
}
|
||||||
return 'Alle Inhalte anzeigen';
|
return 'Alle Inhalte anzeigen';
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
v-if="me.isTeacher && topic.instructions"
|
v-if="me.isTeacher && topic.instructions"
|
||||||
>
|
>
|
||||||
<bulb-icon class="topic__instruction-icon topic__link-icon" />
|
<bulb-icon class="topic__instruction-icon topic__link-icon" />
|
||||||
<span class="topic__link-description">Anweisungen zum Thema anzeigen</span>
|
<span class="topic__link-description">Anweisungen zum {{ flavorTextThema }} anzeigen</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="topic__modules">
|
<div class="topic__modules">
|
||||||
|
|
@ -48,16 +48,18 @@
|
||||||
import ModuleTeaser from '@/components/modules/ModuleTeaser.vue';
|
import ModuleTeaser from '@/components/modules/ModuleTeaser.vue';
|
||||||
import TOPIC_QUERY from '@/graphql/gql/queries/topicQuery.gql';
|
import TOPIC_QUERY from '@/graphql/gql/queries/topicQuery.gql';
|
||||||
import me from '@/mixins/me';
|
import me from '@/mixins/me';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
import BookTopicNavigation from '@/components/book-navigation/BookTopicNavigation';
|
||||||
|
|
||||||
import UPDATE_LAST_TOPIC_MUTATION from '@/graphql/gql/mutations/updateLastTopic.gql';
|
import UPDATE_LAST_TOPIC_MUTATION from '@/graphql/gql/mutations/updateLastTopic.gql';
|
||||||
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
import ME_QUERY from '@/graphql/gql/queries/meQuery.gql';
|
||||||
|
|
||||||
const PlayIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/Play');
|
const PlayIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/Play');
|
||||||
const BulbIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/BulbIcon');
|
const BulbIcon = () => import(/* webpackChunkName: "icons" */'@/components/icons/BulbIcon');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
mixins: [me],
|
mixins: [me, appFlavorTermsMixin],
|
||||||
components: {
|
components: {
|
||||||
BookTopicNavigation,
|
BookTopicNavigation,
|
||||||
ModuleTeaser,
|
ModuleTeaser,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue