2023-11-21 09:37:02 +01:00
|
|
|
import { createApp, toRaw } from 'vue'
|
|
|
|
import App from './App.vue'
|
2023-11-22 02:56:18 +01:00
|
|
|
import { mockAPI } from './utils/index.js'
|
|
|
|
import ws from './utils/ws.js'
|
2024-05-15 05:16:02 +02:00
|
|
|
import { i18n, t } from '$/locales/index.js'
|
|
|
|
import plugins from '$/plugins/index.js'
|
|
|
|
import icons from '$/icons/index.js'
|
2023-11-21 09:37:02 +01:00
|
|
|
|
2024-05-15 05:16:02 +02:00
|
|
|
import { replaceIP, restoreIP } from '$/utils/index.js'
|
2023-11-21 09:37:02 +01:00
|
|
|
|
|
|
|
import 'virtual:uno.css'
|
2024-05-15 05:16:02 +02:00
|
|
|
import '$/styles/index.js'
|
2023-11-21 09:37:02 +01:00
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
|
|
|
app.use(plugins)
|
|
|
|
|
|
|
|
app.use(icons)
|
|
|
|
|
|
|
|
app.use(i18n)
|
|
|
|
window.t = t
|
|
|
|
|
|
|
|
app.config.globalProperties.$replaceIP = replaceIP
|
|
|
|
app.config.globalProperties.$restoreIP = restoreIP
|
|
|
|
|
|
|
|
app.config.globalProperties.$toRaw = toRaw
|
|
|
|
|
2023-11-22 02:56:18 +01:00
|
|
|
app.config.globalProperties.$mockAPI = mockAPI
|
|
|
|
|
|
|
|
app.config.globalProperties.$ws = ws
|
2023-11-21 09:37:02 +01:00
|
|
|
|
|
|
|
app.mount('#app')
|