forked from EHV/sejeteralo
8bfa5f98ef
- extends '../../yvv-nuxt-base' (frontend en sous-dossier)
- app/composables/usePalette.ts : moods avec vars précalculées
(--color-primary-dark dérivé + variables SVG), délégation à useMood
(darkClass 'palette-dark', syncColorMode false, storageKey 'sej-palette')
et synchro de useState('theme-dark') lu par la page graphiques
- DisplaySettings.vue : palette inline (~90 lignes) remplacée par le composable ;
font-size/densité inchangés
- README : note layer partagé
Vérifié Playwright : 6 palettes × light/dark × mobile/desktop (bodyBg suit
--color-bg, .palette-dark ne bascule que sur nuit/ocean) ; build npm vert ;
prod :3099 → 200.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
33 lines
605 B
TypeScript
33 lines
605 B
TypeScript
export default defineNuxtConfig({
|
|
extends: ['../../yvv-nuxt-base'],
|
|
|
|
compatibilityDate: '2025-01-01',
|
|
future: { compatibilityVersion: 4 },
|
|
|
|
modules: ['@pinia/nuxt'],
|
|
|
|
devtools: { enabled: true },
|
|
|
|
devServer: {
|
|
port: 3009,
|
|
},
|
|
|
|
runtimeConfig: {
|
|
public: {
|
|
apiBase: 'http://localhost:8000/api/v1',
|
|
},
|
|
},
|
|
|
|
css: ['~/assets/css/main.css'],
|
|
|
|
app: {
|
|
head: {
|
|
title: 'SejeteralO - Tarification participative de l\'eau',
|
|
meta: [
|
|
{ charset: 'utf-8' },
|
|
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
|
|
],
|
|
},
|
|
},
|
|
})
|