feat: added skeleton omr api integration
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user