Refactoring de l'interface : migration d'un monolithe HTMx vers un client Nuxt + serveur Axum #66
Binary file not shown.
@ -6,6 +6,7 @@ export default defineNuxtConfig({
|
|||||||
devtools: { enabled: true },
|
devtools: { enabled: true },
|
||||||
modules: [
|
modules: [
|
||||||
'@nuxtjs/tailwindcss',
|
'@nuxtjs/tailwindcss',
|
||||||
|
'@nuxtjs/color-mode',
|
||||||
],
|
],
|
||||||
// Disable SSR for Tauri
|
// Disable SSR for Tauri
|
||||||
ssr: false,
|
ssr: false,
|
||||||
@ -28,5 +29,11 @@ export default defineNuxtConfig({
|
|||||||
port: 5183,
|
port: 5183,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
|
colorMode: {
|
||||||
|
// Add `data-theme` attribute to the `html` tag, allowing DaisyUI to handle dark mode automatically
|
||||||
|
dataValue: 'theme',
|
||||||
|
// Remove the default `-mode` suffix from the class name, letting have `dark` and `light` as class names, for DaisyUI compatibility
|
||||||
|
classSuffix: '',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
"postinstall": "nuxi prepare"
|
"postinstall": "nuxi prepare"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@nuxtjs/color-mode": "^3.5.1",
|
||||||
|
"daisyui": "^4.12.10",
|
||||||
"nuxt": "^3.13.0",
|
"nuxt": "^3.13.0",
|
||||||
"vue": "latest",
|
"vue": "latest",
|
||||||
|
|||||||
"vue-router": "latest"
|
"vue-router": "latest"
|
||||||
|
7
frontend/tailwind.config.ts
Normal file
7
frontend/tailwind.config.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import type { Config } from 'tailwindcss'
|
||||||
|
|
||||||
|
export default <Partial<Config>>{
|
||||||
|
plugins: [
|
||||||
|
require('daisyui'),
|
||||||
|
],
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user
faudrait surement mettre les version sur vue et vue-router plutôt que latest
Je n'ai rien trouvé à ce sujet dans la documentation. J'ai posé la question : https://github.com/nuxt/nuxt/discussions/29137