diff --git a/apps/stage-tamagotchi-electron/src/renderer/main.ts b/apps/stage-tamagotchi-electron/src/renderer/main.ts index 27c201a92..88c8fe621 100644 --- a/apps/stage-tamagotchi-electron/src/renderer/main.ts +++ b/apps/stage-tamagotchi-electron/src/renderer/main.ts @@ -1,6 +1,12 @@ -import { initializeApp } from '@proj-airi/stage-ui/services' +import type { Plugin } from 'vue' + +import Tres from '@tresjs/core' + +import { autoAnimatePlugin } from '@formkit/auto-animate/vue' +import { MotionPlugin } from '@vueuse/motion' import { createPinia } from 'pinia' import { setupLayouts } from 'virtual:generated-layouts' +import { createApp } from 'vue' import { createRouter, createWebHashHistory } from 'vue-router' import { routes } from 'vue-router/auto-routes' @@ -32,11 +38,12 @@ const router = createRouter({ routes: setupLayouts(routes), }) -// Initialize and mount the app using the shared initialization logic -initializeApp(App, { - router, - pinia, - i18n, -}).then((app) => { - app.mount('#app') -}) +createApp(App) + .use(MotionPlugin) + // TODO: Fix autoAnimatePlugin type error + .use(autoAnimatePlugin as unknown as Plugin) + .use(router) + .use(pinia) + .use(i18n) + .use(Tres) + .mount('#app') diff --git a/apps/stage-tamagotchi/src/main.ts b/apps/stage-tamagotchi/src/main.ts index 27c201a92..88c8fe621 100644 --- a/apps/stage-tamagotchi/src/main.ts +++ b/apps/stage-tamagotchi/src/main.ts @@ -1,6 +1,12 @@ -import { initializeApp } from '@proj-airi/stage-ui/services' +import type { Plugin } from 'vue' + +import Tres from '@tresjs/core' + +import { autoAnimatePlugin } from '@formkit/auto-animate/vue' +import { MotionPlugin } from '@vueuse/motion' import { createPinia } from 'pinia' import { setupLayouts } from 'virtual:generated-layouts' +import { createApp } from 'vue' import { createRouter, createWebHashHistory } from 'vue-router' import { routes } from 'vue-router/auto-routes' @@ -32,11 +38,12 @@ const router = createRouter({ routes: setupLayouts(routes), }) -// Initialize and mount the app using the shared initialization logic -initializeApp(App, { - router, - pinia, - i18n, -}).then((app) => { - app.mount('#app') -}) +createApp(App) + .use(MotionPlugin) + // TODO: Fix autoAnimatePlugin type error + .use(autoAnimatePlugin as unknown as Plugin) + .use(router) + .use(pinia) + .use(i18n) + .use(Tres) + .mount('#app') diff --git a/apps/stage-web/src/App.vue b/apps/stage-web/src/App.vue index 2bf66bfb8..6f5f66d60 100644 --- a/apps/stage-web/src/App.vue +++ b/apps/stage-web/src/App.vue @@ -1,12 +1,13 @@