25 lines
622 B
JavaScript
25 lines
622 B
JavaScript
import Noir from '@/themes/app-theme';
|
|
import PrimeVue from 'primevue/config';
|
|
import { reactive } from 'vue';
|
|
|
|
const $appState = {
|
|
install: (Vue, options) => {
|
|
Vue.config.globalProperties.$appState = reactive({
|
|
preset: 'Nora',
|
|
darkTheme: false,
|
|
codeSandbox: false,
|
|
sourceType: 'options-api',
|
|
newsActive: false,
|
|
announcement: null,
|
|
storageKey: 'primevue'
|
|
});
|
|
}
|
|
};
|
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
nuxtApp.vueApp.use($appState);
|
|
nuxtApp.vueApp.use(PrimeVue, {
|
|
theme: Noir
|
|
});
|
|
});
|