mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-29 12:44:20 +00:00
55 lines
1.4 KiB
JavaScript
55 lines
1.4 KiB
JavaScript
import Vuex from 'vuex'
|
|
import store from '../store'
|
|
import 'vuetify/dist/vuetify.min.css'
|
|
import '@mdi/font/css/materialdesignicons.css'
|
|
import Vuetify from 'vuetify'
|
|
import fr from 'vuetify/es5/locale/fr'
|
|
import colors from 'vuetify/es5/util/colors'
|
|
|
|
// Stockage des donneés utilisateur dans le navigateur
|
|
store.subscribe((mutation, state) => {
|
|
if (mutation.type.includes('mySpells')) {
|
|
localStorage.setItem('mySpells', JSON.stringify(state.mySpells))
|
|
} else if (mutation.type.includes('myMonsters')) {
|
|
localStorage.setItem('myMonsters', JSON.stringify(state.myMonsters))
|
|
} else if (mutation.type.includes('myMagicItems')) {
|
|
localStorage.setItem('myMagicItems', JSON.stringify(state.myMagicItems))
|
|
}
|
|
})
|
|
|
|
export default ({
|
|
Vue,
|
|
options,
|
|
router,
|
|
siteData
|
|
}) => {
|
|
require('./styles/main.scss')
|
|
Vue.use(Vuex)
|
|
Vue.mixin({
|
|
store: store
|
|
})
|
|
Vue.use(Vuetify)
|
|
options.vuetify = new Vuetify({
|
|
theme: {
|
|
options: {
|
|
customProperties: true,
|
|
},
|
|
themes: {
|
|
light: {
|
|
primary: '#4c6477', // Dragons
|
|
navbar: '#435a3f', // Héros
|
|
accent: '#435a3f', // Héros
|
|
},
|
|
dark: {
|
|
primary: '#4c6477', // Dragons
|
|
navbar: '#435a3f', // Héros
|
|
accent: '#e02867', // Dragons
|
|
}
|
|
}
|
|
},
|
|
lang: {
|
|
locales: { fr },
|
|
current: 'fr',
|
|
},
|
|
})
|
|
}
|