import { createApp } from 'vue' import { createPinia } from 'pinia' import App from './App.vue' import router from './router' import { initAnalytics, trackPageView } from './lib/analytics' import '@yuxingu/ui/tokens.css' import './styles/app.css' initAnalytics() router.afterEach((to) => { trackPageView(to.fullPath, typeof to.name === 'string' ? to.name : undefined) }) createApp(App).use(createPinia()).use(router).mount('#app')