diff --git a/components/lib/themes/utils/themeUtils.js b/components/lib/themes/utils/themeUtils.js index 2b97ca379..9a3251aeb 100644 --- a/components/lib/themes/utils/themeUtils.js +++ b/components/lib/themes/utils/themeUtils.js @@ -132,16 +132,15 @@ export default { return ''; }, getCommonStyleSheet({ name = '', theme = {}, params, props = {}, set, defaults }) { - const { primitive, semantic } = this.getCommon({ name, theme, params, set, defaults }); - const common_css = `${primitive.css}${semantic.css}`; + const common = this.getCommon({ name, theme, params, set, defaults }); const _props = Object.entries(props) .reduce((acc, [k, v]) => acc.push(`${k}="${v}"`) && acc, []) .join(' '); - return Object.entries(common_css || {}) + return Object.entries(common || {}) .reduce((acc, [key, value]) => { - if (value) { - const _css = SharedUtils.object.minifyCSS(value); + if (value?.css) { + const _css = SharedUtils.object.minifyCSS(value?.css); const id = `${key}-variables`; acc.push(``); diff --git a/nuxt.config.js b/nuxt.config.js index 2a38b06ee..5ec878474 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -22,11 +22,8 @@ export default defineNuxtConfig({ '/installation': { redirect: { to: '/vite', statusCode: 301 } } }, primevue: { - usePrimeVue: false, - options: { - ripple: true - }, - //importTheme: { from: '@/themes/app-theme.js' }, + usePrimeVue: true, + 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 78f65161f..9f59c443c 100644 --- a/plugins/app-state.js +++ b/plugins/app-state.js @@ -1,5 +1,5 @@ -import Noir from '@/themes/app-theme'; -import PrimeVue from 'primevue/config'; +//import Noir from '@/themes/app-theme'; +//import PrimeVue from 'primevue/config'; import { reactive } from 'vue'; const $appState = { @@ -18,8 +18,7 @@ const $appState = { export default defineNuxtPlugin((nuxtApp) => { nuxtApp.vueApp.use($appState); - nuxtApp.vueApp.use(PrimeVue, { - + /*nuxtApp.vueApp.use(PrimeVue, { theme: Noir - }); + });*/ });