feat: loading from me endpoint and updating sidebar profile

This commit is contained in:
Zamitto 2024-06-15 19:52:37 -03:00
parent aeaeb1f086
commit 76259c2b54
12 changed files with 178 additions and 59 deletions

View file

@ -104,6 +104,7 @@ contextBridge.exposeInMainWorld("electron", {
/* Misc */
ping: () => ipcRenderer.invoke("ping"),
getVersion: () => ipcRenderer.invoke("getVersion"),
isUserLoggedIn: () => ipcRenderer.invoke("isUserLoggedIn"),
getDefaultDownloadsPath: () => ipcRenderer.invoke("getDefaultDownloadsPath"),
openExternal: (src: string) => ipcRenderer.invoke("openExternal", src),
showOpenDialog: (options: Electron.OpenDialogOptions) =>
@ -129,4 +130,5 @@ contextBridge.exposeInMainWorld("electron", {
/* Profile */
getUserProfile: (username: string) =>
ipcRenderer.invoke("getUserProfile", username),
getMe: () => ipcRenderer.invoke("getMe"),
});