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

@@ -97,6 +97,7 @@ declare global {
/* Misc */
openExternal: (src: string) => Promise<void>;
getVersion: () => Promise<string>;
isUserLoggedIn: () => Promise<boolean>;
ping: () => string;
getDefaultDownloadsPath: () => Promise<string>;
showOpenDialog: (
@@ -113,6 +114,7 @@ declare global {
/* Profile */
getUserProfile: (username: string) => Promise<UserProfile | null>;
getMe: () => Promise<UserProfile | null>;
}
interface Window {