first commit

This commit is contained in:
2026-07-21 14:54:36 +10:00
commit e79c793b9c
134 changed files with 14427 additions and 0 deletions

12
apps/electron/preload.mjs Normal file
View File

@@ -0,0 +1,12 @@
import { contextBridge, ipcRenderer } from 'electron'
function listener(channel, callback) {
const handler = () => callback()
ipcRenderer.on(channel, handler)
return () => ipcRenderer.removeListener(channel, handler)
}
contextBridge.exposeInMainWorld('nativeVueHost', {
onBack: (callback) => listener('native-vue:back', callback),
onForward: (callback) => listener('native-vue:forward', callback),
})