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:
Haritabh 2025-09-10 16:13:33 +05:30 committed by GitHub
parent 674092f1b7
commit a128ec7972
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 2980 additions and 10 deletions

View file

@ -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);