2023-10-25 18:17:19 +08:00
|
|
|
import '@/utils/console.js'
|
|
|
|
|
2023-09-15 10:53:23 +08:00
|
|
|
import { createApp } from 'vue'
|
|
|
|
import App from './App.vue'
|
|
|
|
|
2023-10-12 17:35:27 +08:00
|
|
|
import store from './store/index.js'
|
|
|
|
|
2023-09-15 19:32:13 +08:00
|
|
|
import plugins from './plugins/index.js'
|
2023-10-17 17:54:29 +08:00
|
|
|
import icons from './icons/index.js'
|
2023-09-15 19:32:13 +08:00
|
|
|
|
2023-10-27 19:18:09 +08:00
|
|
|
import { i18n, t } from './locales/index.js'
|
2023-10-24 20:55:12 +08:00
|
|
|
|
2023-10-20 14:23:48 +08:00
|
|
|
import { replaceIP } from '@/utils/index.js'
|
|
|
|
|
2023-09-15 19:32:13 +08:00
|
|
|
import 'virtual:uno.css'
|
|
|
|
import './styles/index.js'
|
|
|
|
|
|
|
|
const app = createApp(App)
|
|
|
|
|
2023-10-12 17:35:27 +08:00
|
|
|
app.use(store)
|
|
|
|
|
2023-09-15 19:32:13 +08:00
|
|
|
app.use(plugins)
|
2023-10-23 18:14:41 +08:00
|
|
|
|
2023-10-17 17:54:29 +08:00
|
|
|
app.use(icons)
|
2023-09-15 19:32:13 +08:00
|
|
|
|
2023-10-23 18:14:41 +08:00
|
|
|
app.use(i18n)
|
2023-10-27 19:18:09 +08:00
|
|
|
window.t = t
|
2023-10-23 18:14:41 +08:00
|
|
|
|
2023-09-16 18:04:14 +08:00
|
|
|
app.config.globalProperties.$electron = window.electron
|
2023-09-18 15:07:28 +08:00
|
|
|
app.config.globalProperties.$adb = window.adbkit
|
|
|
|
app.config.globalProperties.$scrcpy = window.scrcpy
|
2023-10-12 17:35:27 +08:00
|
|
|
app.config.globalProperties.$path = window.nodePath
|
2023-09-15 19:32:13 +08:00
|
|
|
|
2023-10-27 19:18:09 +08:00
|
|
|
app.config.globalProperties.$appStore = window.appStore
|
2023-10-25 18:17:19 +08:00
|
|
|
app.config.globalProperties.$appLog = window.appLog
|
|
|
|
|
2023-10-20 14:23:48 +08:00
|
|
|
app.config.globalProperties.$replaceIP = replaceIP
|
|
|
|
|
2023-10-16 17:36:13 +08:00
|
|
|
app.mount('#app').$nextTick(() => {
|
2023-10-16 11:53:08 +08:00
|
|
|
// Remove Preload scripts loading
|
|
|
|
postMessage({ payload: 'removeLoading' }, '*')
|
|
|
|
})
|
2023-10-25 18:17:19 +08:00
|
|
|
|
|
|
|
console.log('electron.configs', window.electron.configs)
|