MS-475: My KV Instrumente/Grundlagenwissenseite
This commit is contained in:
parent
77c355d569
commit
c0b6ff6fa6
|
|
@ -7,8 +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_ENABLE_FOOTER: "false",
|
|
||||||
VUE_APP_SHOW_OBJECTIVES_TITLE: "false",
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
|
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
|
||||||
|
|
|
||||||
|
|
@ -16,8 +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_ENABLE_FOOTER: "true",
|
|
||||||
VUE_APP_SHOW_OBJECTIVES_TITLE: "true",
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
|
* Vars used in HTML templates don't need to be stringyfied, as HTML does not need them to have quotes
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,9 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {INTERDISCIPLINARY, LANGUAGE_COMMUNICATION, SOCIETY} from '@/consts/instrument.consts';
|
import { INTERDISCIPLINARY, LANGUAGE_COMMUNICATION, SOCIETY } from '@/consts/instrument.consts';
|
||||||
import instrumentType from '@/helpers/instrumentType';
|
import instrumentType from '@/helpers/instrumentType';
|
||||||
|
import appFlavorTermsMixin from '@/mixins/app-flavor-terms';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
|
@ -25,6 +26,8 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
mixins: [appFlavorTermsMixin],
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
typeClass() {
|
typeClass() {
|
||||||
return {
|
return {
|
||||||
|
|
@ -34,7 +37,11 @@
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
categoryName() {
|
categoryName() {
|
||||||
return instrumentType(this.instrument);
|
if (process.env.VUE_APP_FLAVOR === 'my-kv') {
|
||||||
|
return this.flavorTextInstrumente;
|
||||||
|
} else {
|
||||||
|
return instrumentType(this.instrument);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h3 id="objectives">
|
<h3 id="objectives">
|
||||||
<span v-show="showObjectivesTitle">Lernziele</span>
|
<span v-show="flavorShowObjectivesTitle">Lernziele</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<div class="module__objective-groups">
|
<div class="module__objective-groups">
|
||||||
|
|
@ -65,6 +65,7 @@
|
||||||
import ObjectiveGroups from '@/components/objective-groups/ObjectiveGroups.vue';
|
import ObjectiveGroups from '@/components/objective-groups/ObjectiveGroups.vue';
|
||||||
import Chapter from '@/components/Chapter.vue';
|
import Chapter from '@/components/Chapter.vue';
|
||||||
import BookmarkActions from '@/components/notes/BookmarkActions';
|
import BookmarkActions from '@/components/notes/BookmarkActions';
|
||||||
|
import appFlavorFlagsMixin from '@/mixins/app-flavor-flags';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
|
|
@ -74,6 +75,7 @@
|
||||||
default: () => ({}),
|
default: () => ({}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
mixins: [appFlavorFlagsMixin],
|
||||||
components: {
|
components: {
|
||||||
BookmarkActions,
|
BookmarkActions,
|
||||||
ObjectiveGroups,
|
ObjectiveGroups,
|
||||||
|
|
@ -99,9 +101,6 @@
|
||||||
}
|
}
|
||||||
return this.module.bookmark.note;
|
return this.module.bookmark.note;
|
||||||
},
|
},
|
||||||
showObjectivesTitle() {
|
|
||||||
return process.env.VUE_APP_SHOW_OBJECTIVES_TITLE;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
const enableFooter = () => process.env.VUE_APP_ENABLE_FOOTER;
|
|
||||||
|
|
||||||
export default enableFooter;
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
import {LANGUAGE_COMMUNICATION, SOCIETY} from '@/consts/instrument.consts';
|
import { LANGUAGE_COMMUNICATION, SOCIETY } from '@/consts/instrument.consts';
|
||||||
|
|
||||||
const instrumentType = ({type: {category}}) => {
|
const instrumentType = ({type: {category}}) => {
|
||||||
if (category === LANGUAGE_COMMUNICATION) {
|
if (category === LANGUAGE_COMMUNICATION) {
|
||||||
return 'Sprache & Kommunikation';
|
return 'Sprache & Kommunikation';
|
||||||
} else if (category === SOCIETY) {
|
} else if (category === SOCIETY) {
|
||||||
return 'Gesellschaft';
|
return 'Gesellschaft';
|
||||||
} else {
|
} else {
|
||||||
return 'Überfachliches Instrument';
|
return 'Überfachliches Instrument';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default instrumentType;
|
export default instrumentType;
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,10 @@
|
||||||
import ProfileSidebar from '@/components/profile/ProfileSidebar';
|
import ProfileSidebar from '@/components/profile/ProfileSidebar';
|
||||||
import DefaultFooter from '@/layouts/DefaultFooter';
|
import DefaultFooter from '@/layouts/DefaultFooter';
|
||||||
import NavigationSidebar from '@/components/book-navigation/NavigationSidebar';
|
import NavigationSidebar from '@/components/book-navigation/NavigationSidebar';
|
||||||
import enableFooter from '@/helpers/footer';
|
import appFlavorFlagsMixin from '@/mixins/app-flavor-flags';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorFlagsMixin],
|
||||||
components: {
|
components: {
|
||||||
HeaderBar,
|
HeaderBar,
|
||||||
ProfileSidebar,
|
ProfileSidebar,
|
||||||
|
|
@ -56,7 +57,7 @@
|
||||||
return classes;
|
return classes;
|
||||||
},
|
},
|
||||||
enableFooter() {
|
enableFooter() {
|
||||||
return enableFooter() && (!this.$route.meta || !this.$route.meta.hideFooter);
|
return this.flavorShowFooter && (!this.$route.meta || !this.$route.meta.hideFooter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,24 +11,22 @@
|
||||||
<router-view class="public__content layout__content" />
|
<router-view class="public__content layout__content" />
|
||||||
<default-footer
|
<default-footer
|
||||||
class="skillbox__footer public__footer footer"
|
class="skillbox__footer public__footer footer"
|
||||||
v-if="enableFooter"
|
v-if="flavorShowFooter"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import DefaultFooter from '@/layouts/DefaultFooter';
|
import DefaultFooter from '@/layouts/DefaultFooter';
|
||||||
import enableFooter from '@/helpers/footer';
|
import appFlavorFlagsMixin from '@/mixins/app-flavor-flags';
|
||||||
|
|
||||||
const Logo = () => import(/* webpackChunkName: "icons" */'@/components/icons/Logo');
|
const Logo = () => import(/* webpackChunkName: "icons" */'@/components/icons/Logo');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorFlagsMixin],
|
||||||
components: {
|
components: {
|
||||||
Logo,
|
Logo,
|
||||||
DefaultFooter
|
DefaultFooter
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
|
||||||
enableFooter: enableFooter
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,10 +19,12 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SimpleFooter from '@/layouts/SimpleFooter';
|
import SimpleFooter from '@/layouts/SimpleFooter';
|
||||||
import enableFooter from '@/helpers/footer';
|
import appFlavorFlagsMixin from '@/mixins/app-flavor-flags';
|
||||||
|
|
||||||
const Cross = () => import(/* webpackChunkName: "icons" */'@/components/icons/CrossIcon');
|
const Cross = () => import(/* webpackChunkName: "icons" */'@/components/icons/CrossIcon');
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorFlagsMixin],
|
||||||
components: {
|
components: {
|
||||||
Cross,
|
Cross,
|
||||||
SimpleFooter
|
SimpleFooter
|
||||||
|
|
@ -33,7 +35,7 @@
|
||||||
if (this.$route.meta.hideFooter) {
|
if (this.$route.meta.hideFooter) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return enableFooter();
|
return this.flavorShowFooter;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,24 @@
|
||||||
|
export default {
|
||||||
|
computed: {
|
||||||
|
flavorShowObjectivesTitle() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv': return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
flavorShowFooter() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
},
|
||||||
|
flavorShowInstrumentFilterSidebar() {
|
||||||
|
switch(process.env.VUE_APP_FLAVOR) {
|
||||||
|
case 'my-kv':
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
@ -2,8 +2,10 @@
|
||||||
<div class="instrument-overview">
|
<div class="instrument-overview">
|
||||||
<instrument-filter
|
<instrument-filter
|
||||||
class="instrument-overview__filter"
|
class="instrument-overview__filter"
|
||||||
|
v-if="flavorShowInstrumentFilterSidebar"
|
||||||
@filter="updateFilter"
|
@filter="updateFilter"
|
||||||
/>
|
/>
|
||||||
|
<div class="instrument-overview__filter" v-else />
|
||||||
<div class="instrument-overview__list">
|
<div class="instrument-overview__list">
|
||||||
<router-link
|
<router-link
|
||||||
:to="{name: 'instrument', params: {slug: instrument.slug}}"
|
:to="{name: 'instrument', params: {slug: instrument.slug}}"
|
||||||
|
|
@ -23,8 +25,10 @@
|
||||||
import InstrumentEntry from '@/components/instruments/InstrumentEntry';
|
import InstrumentEntry from '@/components/instruments/InstrumentEntry';
|
||||||
import INSTRUMENTS_QUERY from '@/graphql/gql/queries/instrumentsQuery.gql';
|
import INSTRUMENTS_QUERY from '@/graphql/gql/queries/instrumentsQuery.gql';
|
||||||
import INSTRUMENT_FILTER_QUERY from 'gql/local/instrumentFilter.gql';
|
import INSTRUMENT_FILTER_QUERY from 'gql/local/instrumentFilter.gql';
|
||||||
|
import appFlavorFlagsMixin from '@/mixins/app-flavor-flags';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
mixins: [appFlavorFlagsMixin],
|
||||||
components: {
|
components: {
|
||||||
InstrumentFilter,
|
InstrumentFilter,
|
||||||
InstrumentEntry,
|
InstrumentEntry,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue