From dd4fb5ffa8d1be7c17a45bb564202573bd8f6df1 Mon Sep 17 00:00:00 2001 From: Rafael Araujo Lehmkuhl Date: Wed, 27 Dec 2023 16:28:29 -0300 Subject: [PATCH] libs: automagic: Run all Automagic functions by default --- src/assets/defaults.ts | 3 +++ src/main.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/assets/defaults.ts b/src/assets/defaults.ts index 293d2b3a1..5f2389cf2 100644 --- a/src/assets/defaults.ts +++ b/src/assets/defaults.ts @@ -1,3 +1,4 @@ +import { allAutomagicIds, AutomagicId } from '@/libs/automagic' import { type MiniWidgetProfile, MiniWidgetType } from '@/types/miniWidgets' import { type Profile, WidgetType } from '@/types/widgets' @@ -586,3 +587,5 @@ export const miniWidgetsProfiles: MiniWidgetProfile[] = [ }, ] export const miniWidgetsProfile = miniWidgetsProfiles[0] + +export const defaultActiveAutomagicIds = allAutomagicIds diff --git a/src/main.ts b/src/main.ts index a5285836b..3055dcfba 100644 --- a/src/main.ts +++ b/src/main.ts @@ -12,6 +12,8 @@ import { createApp } from 'vue' import VueVirtualScroller from 'vue-virtual-scroller' import App from './App.vue' +import { defaultActiveAutomagicIds } from './assets/defaults' +import { runAutomagics } from './libs/automagic' import vuetify from './plugins/vuetify' import { loadFonts } from './plugins/webfontloader' import router from './router' @@ -23,3 +25,5 @@ const app = createApp(App) app.component('FontAwesomeIcon', FontAwesomeIcon) app.use(router).use(vuetify).use(createPinia()).use(FloatingVue).use(VueVirtualScroller) app.mount('#app') + +runAutomagics(defaultActiveAutomagicIds)