Feat/notes init (#40)
* feat: notes init * Feat/notes page (#39) * wip: notes page ui added * notes page basic ui done * wip: page UI * minor cleanup * todo comments added for easy ref for backend wiring --------- Co-authored-by: amadeus-x1 <45001978+amadeus-x1@users.noreply.github.com> * feat: wire up notes --------- Co-authored-by: amadeus-x1 <45001978+amadeus-x1@users.noreply.github.com>
This commit is contained in:
parent
674092f1b7
commit
a128ec7972
39 changed files with 2980 additions and 10 deletions
|
|
@ -109,6 +109,15 @@ const api: ElectronAPI = {
|
|||
|
||||
// External link handling
|
||||
openExternal: (url: string) => ipcRenderer.invoke("open-external", url),
|
||||
|
||||
// Notes API - Yjs synchronization only
|
||||
notes: {
|
||||
saveYjsUpdate: (noteId: number, update: ArrayBuffer) =>
|
||||
ipcRenderer.invoke("notes:saveYjsUpdate", noteId, update),
|
||||
|
||||
loadYjsUpdates: (noteId: number) =>
|
||||
ipcRenderer.invoke("notes:loadYjsUpdates", noteId),
|
||||
},
|
||||
};
|
||||
|
||||
contextBridge.exposeInMainWorld("electronAPI", api);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue