primevue-mirror/plugins/appState.js

8 lines
359 B
JavaScript
Raw Normal View History

2022-09-06 11:52:18 +00:00
const $appState = {
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: {}});
},
}
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use($appState);
});