1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-30 13:14:20 +00:00

rebrand generic 5e

This commit is contained in:
Maxime Moraine 2021-02-06 15:39:30 +01:00
parent 1b7ffe97ad
commit c06ad4d468
60 changed files with 164 additions and 548 deletions

View file

@ -117,19 +117,19 @@ export default {
this.$store.commit('setDrawer', this.$vuetify.breakpoint.lgAndUp)
// Cookie consent
const COOKIECONSENT = Cookies.get('heros-et-dragons-cookies')
const COOKIECONSENT = Cookies.get('5e-drs-cookies')
if (COOKIECONSENT == 'compris') {
this.cookieConsentDialog = false
}
// Dark theme
const THEMEISDARK = Cookies.get('heros-et-dragons-is-dark')
const THEMEISDARK = Cookies.get('5e-drs-is-dark')
if (THEMEISDARK === 'true') {
this.$vuetify.theme.dark = true
}
// Variante 5 royaumes pour les monstres
const L5R = Cookies.get('heros-et-dragons-l5r')
const L5R = Cookies.get('5e-drs-l5r')
if (L5R === 'true') {
this.$store.state.l5r = true
}
@ -154,7 +154,7 @@ export default {
methods: {
setCookieConsent () {
Cookies.set('heros-et-dragons-cookies', 'compris', { expires: 365 })
Cookies.set('5e-drs-cookies', 'compris', { expires: 365 })
this.cookieConsentDialog = false
},

View file

@ -436,7 +436,7 @@ export default {
},
setShowColumn () {
Cookies.set('heros-et-dragons-grimoire-colonnes', this.showColumn, { expires: 365 })
Cookies.set('5e-drs-grimoire-colonnes', this.showColumn, { expires: 365 })
},
},
@ -456,7 +456,7 @@ export default {
}
// Choix des colonnes à afficher
const showColumn = Cookies.get('heros-et-dragons-grimoire-colonnes')
const showColumn = Cookies.get('5e-drs-grimoire-colonnes')
if (showColumn) {
this.showColumn = JSON.parse(showColumn)
}