Move nuxt-primevue to showcase and change plugin names

This commit is contained in:
mertsincan 2023-10-24 11:09:12 +01:00
parent 466ff52431
commit 5440d3d6ea
14 changed files with 583 additions and 303 deletions

9
plugins/app-state.js Normal file
View file

@ -0,0 +1,9 @@
const $appState = {
install: (Vue, options) => {
Vue.config.globalProperties.$appState = reactive({ theme: 'lara-light-teal', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: false, announcement: null, storageKey: 'primevue' });
}
};
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use($appState);
});