调整项目结构:前端和 Electron 核心

This commit is contained in:
2025-08-06 07:44:19 +08:00
parent 499f6205fa
commit cbe3f72d1c
19 changed files with 3836 additions and 1329 deletions

6
main/preload.js Normal file
View File

@ -0,0 +1,6 @@
const { contextBridge, ipcRenderer } = require('electron')
contextBridge.exposeInMainWorld('electronAPI', {
playSound: (file) => ipcRenderer.send('play-sound', file),
showTooltip: (text) => ipcRenderer.send('show-tooltip', text)
})