primevue-mirror/plugins/appState.js

9 lines
370 B
JavaScript
Raw Normal View History

2022-09-06 11:52:18 +00:00
const $appState = {
2022-09-14 14:26:41 +00:00
install: (Vue, options) => {
Vue.config.globalProperties.$appState = reactive({ theme: 'lara-light-blue', darkTheme: false, codeSandbox: false, sourceType: 'options-api', newsActive: process.env.NODE_ENV === 'production', announcement: {} });
}
};
2022-09-06 11:52:18 +00:00
export default defineNuxtPlugin((nuxtApp) => {
2022-09-14 14:26:41 +00:00
nuxtApp.vueApp.use($appState);
});