2024-03-31 04:44:48 +00:00
|
|
|
import { reactive } from 'vue';
|
|
|
|
|
2022-09-06 11:52:18 +00:00
|
|
|
const $appState = {
|
2023-02-28 08:29:30 +00:00
|
|
|
install: (Vue, options) => {
|
2023-12-30 22:26:14 +00:00
|
|
|
Vue.config.globalProperties.$appState = reactive({
|
2024-03-22 13:02:01 +00:00
|
|
|
//theme: 'aura-light-green',
|
2023-12-30 22:26:14 +00:00
|
|
|
darkTheme: false,
|
|
|
|
codeSandbox: false,
|
|
|
|
sourceType: 'options-api',
|
|
|
|
newsActive: false,
|
|
|
|
announcement: null,
|
2024-01-19 21:35:05 +00:00
|
|
|
ripple: false,
|
2024-02-06 06:16:39 +00:00
|
|
|
storageKey: 'primevue'
|
2023-12-30 22:26:14 +00:00
|
|
|
});
|
2022-09-14 14:26:41 +00:00
|
|
|
}
|
|
|
|
};
|
2022-12-09 20:47:50 +00:00
|
|
|
|
2022-09-06 11:52:18 +00:00
|
|
|
export default defineNuxtPlugin((nuxtApp) => {
|
2022-09-14 14:26:41 +00:00
|
|
|
nuxtApp.vueApp.use($appState);
|
2024-05-02 22:13:38 +00:00
|
|
|
//nuxtApp.vueApp.use(PrimeVue, { theme: Noir });
|
2022-09-14 14:26:41 +00:00
|
|
|
});
|