feat: added skeleton omr api integration

This commit is contained in:
2026-06-14 03:12:51 +05:30
parent 4c901980b2
commit 66129d4315
13 changed files with 1316 additions and 14 deletions
+5
View File
@@ -12,6 +12,7 @@ contextBridge.exposeInMainWorld("electronAPI", {
},
openFileDialog: (filters: { name: string; extensions: string[] }[]) =>
ipcRenderer.invoke("dialog:openFile", filters),
openDirectoryDialog: () => ipcRenderer.invoke("dialog:openDirectory"),
saveFileDialog: (defaultName: string, filters: { name: string; extensions: string[] }[]) =>
ipcRenderer.invoke("dialog:saveFile", defaultName, filters),
readFile: (path: string) => ipcRenderer.invoke("file:read", path),
@@ -19,4 +20,8 @@ contextBridge.exposeInMainWorld("electronAPI", {
readImage: (path: string) => ipcRenderer.invoke("file:readImage", path),
writeBinaryFile: (path: string, base64: string) => ipcRenderer.invoke("file:writeBinary", path, base64),
getAppPath: () => ipcRenderer.invoke("app:getPath"),
readDir: (path: string) => ipcRenderer.invoke("dir:read", path),
ensureDir: (path: string) => ipcRenderer.invoke("dir:ensure", path),
pathExists: (path: string) => ipcRenderer.invoke("path:exists", path),
copyFile: (src: string, dest: string) => ipcRenderer.invoke("file:copy", src, dest),
})