Enable nuxt-module

pull/5701/head
Mert Sincan 2024-05-02 23:13:38 +01:00
parent 8574a61891
commit 2c65e1b3fd
2 changed files with 3 additions and 7 deletions

View File

@ -22,13 +22,11 @@ export default defineNuxtConfig({
'/installation': { redirect: { to: '/vite', statusCode: 301 } } '/installation': { redirect: { to: '/vite', statusCode: 301 } }
}, },
primevue: { primevue: {
usePrimeVue: false, usePrimeVue: true,
options: { options: {
ripple: true ripple: true
}, },
unstyled: false, importTheme: { from: '@/themes/app-theme.js' },
layerOrder: 'primevue',
//importTheme: { from: '@/themes/app-theme.js' },
resolvePath: function ({ as, from, type }) { resolvePath: function ({ as, from, type }) {
const resolvedPath = from.replace('primevue', '@/components/lib'); const resolvedPath = from.replace('primevue', '@/components/lib');

View File

@ -1,5 +1,3 @@
import Noir from '@/themes/app-theme.js';
import PrimeVue from 'primevue/config';
import { reactive } from 'vue'; import { reactive } from 'vue';
const $appState = { const $appState = {
@ -19,5 +17,5 @@ const $appState = {
export default defineNuxtPlugin((nuxtApp) => { export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use($appState); nuxtApp.vueApp.use($appState);
nuxtApp.vueApp.use(PrimeVue, { theme: Noir }); //nuxtApp.vueApp.use(PrimeVue, { theme: Noir });
}); });