mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-02-13 17:12:36 +01:00
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
import '@/utils/console.js'
|
|
|
|
import { createApp, toRaw } from 'vue'
|
|
import App from './App.vue'
|
|
|
|
import store from './store/index.js'
|
|
|
|
import plugins from './plugins/index.js'
|
|
import icons from './icons/index.js'
|
|
|
|
import { i18n, t } from './locales/index.js'
|
|
|
|
import { replaceIP, restoreIP } from '@/utils/index.js'
|
|
|
|
import 'virtual:uno.css'
|
|
import './styles/index.js'
|
|
|
|
const app = createApp(App)
|
|
|
|
app.use(store)
|
|
|
|
app.use(plugins)
|
|
|
|
app.use(icons)
|
|
|
|
app.use(i18n)
|
|
window.t = t
|
|
|
|
app.config.globalProperties.$path = window.nodePath
|
|
app.config.globalProperties.$appStore = window.appStore
|
|
app.config.globalProperties.$appLog = window.appLog
|
|
app.config.globalProperties.$electron = window.electron
|
|
|
|
app.config.globalProperties.$adb = window.adbkit
|
|
app.config.globalProperties.$scrcpy = window.scrcpy
|
|
app.config.globalProperties.$gnirehtet = window.gnirehtet
|
|
|
|
app.config.globalProperties.$replaceIP = replaceIP
|
|
app.config.globalProperties.$restoreIP = restoreIP
|
|
|
|
app.config.globalProperties.$toRaw = toRaw
|
|
|
|
app.mount('#app').$nextTick(() => {
|
|
// Remove Preload scripts loading
|
|
postMessage({ payload: 'removeLoading' }, '*')
|
|
})
|
|
|
|
console.log('electron.configs', window.electron.configs)
|