2023-10-12 11:35:27 +02:00
|
|
|
import path from 'node:path'
|
2023-10-18 13:23:00 +02:00
|
|
|
|
2024-05-15 05:16:02 +02:00
|
|
|
import '$electron/helpers/console.js'
|
2023-09-18 09:07:28 +02:00
|
|
|
import electron from './electron/index.js'
|
|
|
|
import adbkit from './adbkit/index.js'
|
|
|
|
import scrcpy from './scrcpy/index.js'
|
2023-10-30 09:36:16 +01:00
|
|
|
import gnirehtet from './gnirehtet/index.js'
|
2024-05-14 13:16:46 +02:00
|
|
|
import search from './search/index.js'
|
2024-05-15 05:16:02 +02:00
|
|
|
import * as configs from '$electron/configs/index.js'
|
|
|
|
import store from '$electron/helpers/store.js'
|
|
|
|
import appLog from '$electron/helpers/log.js'
|
2023-09-18 09:07:28 +02:00
|
|
|
|
|
|
|
export default {
|
2023-10-16 05:53:08 +02:00
|
|
|
init(expose) {
|
2023-10-12 11:35:27 +02:00
|
|
|
expose('nodePath', path)
|
2023-10-18 13:23:00 +02:00
|
|
|
|
2023-10-30 09:36:16 +01:00
|
|
|
expose('appLog', appLog)
|
2023-10-25 12:17:19 +02:00
|
|
|
|
2023-10-27 13:18:09 +02:00
|
|
|
expose('appStore', store)
|
|
|
|
|
2023-10-18 13:23:00 +02:00
|
|
|
expose('electron', {
|
|
|
|
...electron(),
|
|
|
|
configs,
|
|
|
|
})
|
|
|
|
|
2023-10-30 09:36:16 +01:00
|
|
|
const adbkitExecute = adbkit()
|
|
|
|
|
|
|
|
expose('adbkit', adbkitExecute)
|
|
|
|
|
2023-11-07 07:09:09 +01:00
|
|
|
expose('scrcpy', scrcpy({ adbkit: adbkitExecute }))
|
2023-10-30 09:36:16 +01:00
|
|
|
|
|
|
|
expose('gnirehtet', gnirehtet({ adbkit: adbkitExecute }))
|
2024-05-14 13:16:46 +02:00
|
|
|
|
|
|
|
expose('findInPageModal', search())
|
2023-09-18 09:07:28 +02:00
|
|
|
},
|
|
|
|
}
|