import { createApp } from 'vue'
import { MotionPlugin } from '@vueuse/motion'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import 'primeicons/primeicons.css'
import App from './App.vue'
import router from './router/index.js'
import { installThemeSkin } from './composables/useThemeSkin.js'
import { installSessionNavigation } from './composables/useSystemState.js'
import './assets/styles/element-plus-theme.css'
import './assets/styles/detail-page-corners.css'

const app = createApp(App)

installThemeSkin()
installSessionNavigation(router)

app.use(MotionPlugin)
app.use(router)
app.use(ElementPlus, { locale: zhCn })

app.mount('#app')
