From 2c65e1b3fd12e453aaae06d459b46e69049be894 Mon Sep 17 00:00:00 2001 From: Mert Sincan Date: Thu, 2 May 2024 23:13:38 +0100 Subject: [PATCH] Enable nuxt-module --- nuxt.config.js | 6 ++---- plugins/app-state.js | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/nuxt.config.js b/nuxt.config.js index fc10650c2..b47b45361 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -22,13 +22,11 @@ export default defineNuxtConfig({ '/installation': { redirect: { to: '/vite', statusCode: 301 } } }, primevue: { - usePrimeVue: false, + usePrimeVue: true, options: { ripple: true }, - unstyled: false, - layerOrder: 'primevue', - //importTheme: { from: '@/themes/app-theme.js' }, + importTheme: { from: '@/themes/app-theme.js' }, resolvePath: function ({ as, from, type }) { const resolvedPath = from.replace('primevue', '@/components/lib'); diff --git a/plugins/app-state.js b/plugins/app-state.js index ca651f711..3a0dbf31d 100644 --- a/plugins/app-state.js +++ b/plugins/app-state.js @@ -1,5 +1,3 @@ -import Noir from '@/themes/app-theme.js'; -import PrimeVue from 'primevue/config'; import { reactive } from 'vue'; const $appState = { @@ -19,5 +17,5 @@ const $appState = { export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use($appState); - nuxtApp.vueApp.use(PrimeVue, { theme: Noir }); + //nuxtApp.vueApp.use(PrimeVue, { theme: Noir }); });