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'
|
|
|
|
|
|
|
|
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-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
|
|
|
|
|
|
|
app.mount('#app')
|
2023-10-16 00:18:24 +08:00
|
|
|
|
|
|
|
// .$nextTick(() => {
|
|
|
|
// // Remove Preload scripts loading
|
|
|
|
// postMessage({ payload: 'removeLoading' }, '*')
|
|
|
|
// // Use contextBridge
|
|
|
|
// window.ipcRenderer.on('main-process-message', (_event, message) => {
|
|
|
|
// console.log(message)
|
|
|
|
// })
|
|
|
|
// })
|