mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-12-20 11:25:58 +01:00
38 lines
800 B
JavaScript
38 lines
800 B
JavaScript
import { createApp, toRaw } from 'vue'
|
|
import App from './App.vue'
|
|
import { i18n, t } from '@/locales/index.js'
|
|
import plugins from '@/plugins/index.js'
|
|
import icons from '@/icons/index.js'
|
|
|
|
import { replaceIP, restoreIP } from '@/utils/index.js'
|
|
|
|
import 'virtual:uno.css'
|
|
import '@/styles/index.js'
|
|
|
|
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
|
|
|
|
app.config.globalProperties.$mockAPI = ({ imitate = {}, delay = 500 } = {}) =>
|
|
new Promise((resolve) => {
|
|
setTimeout(() => {
|
|
resolve({
|
|
code: '0000',
|
|
data: imitate,
|
|
success: true,
|
|
})
|
|
}, delay)
|
|
})
|
|
|
|
app.mount('#app')
|