2023-03-22 15:39:02 +01:00
|
|
|
const minifyTheme = require('minify-css-string').default
|
|
|
|
import { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } from 'vuetify/es5/locale'
|
|
|
|
|
|
|
|
export default ({ res, nuxtState }) => {
|
|
|
|
|
2023-09-25 22:45:34 +02:00
|
|
|
const settings = process.server ? (res.locals.settings || {}) : nuxtState.state.settings || {}
|
2023-03-22 15:39:02 +01:00
|
|
|
|
|
|
|
return {
|
|
|
|
lang: { locales: { ca, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, ru, zhHans } },
|
|
|
|
treeShake: true,
|
|
|
|
theme: {
|
|
|
|
options: {
|
|
|
|
customProperties: false,
|
|
|
|
variations: false,
|
|
|
|
minifyTheme,
|
|
|
|
},
|
|
|
|
dark: settings['theme.is_dark'],
|
|
|
|
themes: {
|
2023-03-24 16:03:08 +01:00
|
|
|
dark: settings.dark_colors,
|
|
|
|
light: settings.light_colors
|
2023-03-22 15:39:02 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
defaultAssets: false
|
|
|
|
}
|
|
|
|
}
|