escrcpy/electron/exposes/index.js

37 lines
855 B
JavaScript
Raw Normal View History

import path from 'node:path'
2024-09-07 19:55:54 +02:00
import * as configs from '$electron/configs/index.js'
import appLog from '$electron/helpers/log.js'
import store from '$electron/helpers/store.js'
import adbkit from './adbkit/index.js'
2024-09-07 19:55:54 +02:00
import electron from './electron/index.js'
import gnirehtet from './gnirehtet/index.js'
2024-09-07 19:55:54 +02:00
import scrcpy from './scrcpy/index.js'
import search from './search/index.js'
2024-09-07 19:55:54 +02:00
import '$electron/helpers/console.js'
export default {
init(expose) {
expose('nodePath', path)
expose('appLog', appLog)
expose('appStore', store)
expose('electron', {
...electron(),
configs,
})
const adbkitExecute = adbkit()
expose('adbkit', adbkitExecute)
2023-11-07 07:09:09 +01:00
expose('scrcpy', scrcpy({ adbkit: adbkitExecute }))
expose('gnirehtet', gnirehtet({ adbkit: adbkitExecute }))
expose('findInPageModal', search())
},
}