mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
99 lines
No EOL
2.4 KiB
JavaScript
99 lines
No EOL
2.4 KiB
JavaScript
// const minifyTheme = require('minify-css-string').default
|
|
import { ca, cs, de, en, es, fr, it, nl, pl, pt, tr, sk, sv, ro, ru, zhHans } from 'vuetify/lib/locale/index.mjs'
|
|
// import { ca, cs, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, tr, sk, sv, ro, ru, zhHans } from 'vuetify/lib/locale'
|
|
|
|
import { aliases, mdi } from 'vuetify/iconsets/mdi'
|
|
export default (ctx) => {
|
|
|
|
// const settings = process.server ? (res.locals.settings || {}) : nuxtState.state.settings || {}
|
|
// const is_dark = nuxtState?.state?.localSettings['theme.is_dark'] ?? settings['theme.is_dark']
|
|
|
|
return {
|
|
// lang: { locales: { ca, cs, de, en, es, eu, fr, gl, it, nb, nl, pl, pt, sk, sv, tr, ro, ru, zhHans } },
|
|
lang: { locales: { ca, cs, de, en, es, fr, it, nl, pl, pt, sk, sv, tr, ro, ru, zhHans } },
|
|
theme: {
|
|
options: {
|
|
customProperties: false,
|
|
variations: false,
|
|
// minifyTheme,
|
|
},
|
|
icons: {
|
|
defaultSet: 'mdi',
|
|
aliases,
|
|
sets: {
|
|
mdi,
|
|
},
|
|
},
|
|
// dark: is_dark,
|
|
// themes: {
|
|
// dark: settings.dark_colors,
|
|
// light: settings.light_colors
|
|
// }
|
|
},
|
|
defaults: {
|
|
global: {
|
|
elevation: 0,
|
|
// rounded: 0,
|
|
},
|
|
VDialog: {
|
|
maxWidth: '800',
|
|
},
|
|
VFileInput: {
|
|
prependIcon: '',
|
|
prependInnerIcon: 'mdi-attachment',
|
|
density: 'compact'
|
|
},
|
|
VSelect: {
|
|
density: 'compact'
|
|
},
|
|
VBtn: {
|
|
elevation: 0,
|
|
variant: 'flat',
|
|
ripple: 0
|
|
},
|
|
VTextField: {
|
|
autocomplete: 'off',
|
|
density: 'compact',
|
|
clearable: true,
|
|
variant: 'underlined'
|
|
},
|
|
VComboBox: {
|
|
autocomplete: 'off',
|
|
density: 'compact',
|
|
clearable: true
|
|
},
|
|
VAutocomplete :{
|
|
VChip: {
|
|
closable: true,
|
|
closeIcon: "mdi-close-circle",
|
|
},
|
|
autocomplete: 'off',
|
|
density: 'compact',
|
|
clearable: true
|
|
},
|
|
VAlert: {
|
|
border: 'start',
|
|
type: 'warning',
|
|
variant: 'tonal',
|
|
rounded: 0
|
|
},
|
|
VSwitch: {
|
|
density: 'compact',
|
|
inset: true,
|
|
color: 'indigo'
|
|
},
|
|
VSelect: {
|
|
density: 'compact'
|
|
},
|
|
VDataTableServer: {
|
|
density: 'compact',
|
|
},
|
|
VDataTableRow: {
|
|
density: 'compact'
|
|
},
|
|
VDataTableItem: {
|
|
density: 'compact'
|
|
}
|
|
},
|
|
}
|
|
} |