给密语的图片查看器搬过来了

This commit is contained in:
xuncha
2026-02-02 18:20:26 +08:00
committed by xuncha
parent 5934fc33ce
commit 7b832ac2ef
7 changed files with 339 additions and 13 deletions

View File

@@ -64,6 +64,8 @@ contextBridge.exposeInMainWorld('electronAPI', {
ipcRenderer.invoke('window:openVideoPlayerWindow', videoPath, videoWidth, videoHeight),
resizeToFitVideo: (videoWidth: number, videoHeight: number) =>
ipcRenderer.invoke('window:resizeToFitVideo', videoWidth, videoHeight),
openImageViewerWindow: (imagePath: string) =>
ipcRenderer.invoke('window:openImageViewerWindow', imagePath),
openChatHistoryWindow: (sessionId: string, messageId: number) =>
ipcRenderer.invoke('window:openChatHistoryWindow', sessionId, messageId)
},