aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/state/client.ts
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2024-07-10 15:56:33 +0100
committerGitHub <noreply@github.com>2024-07-10 15:56:33 +0100
commit8d9f677c4e9ccfcc6dc9297864dc49446fb5ee59 (patch)
tree1fe507403c4d690937834a815a663336bf104039 /ui/src/state/client.ts
parentchore(deps): update to tonic 0.12, prost 0.13 (#2250) (diff)
downloadatuin-8d9f677c4e9ccfcc6dc9297864dc49446fb5ee59.zip
feat(gui): use fancy new side nav (#2243)
* feat(gui): use fancy new side nav * compact only sidebar, no expand-collapse * custom drag region, remove titlebar * add user popup * wire up login/logout/register, move user button to bottom and add menu * link help and feedback to forum
Diffstat (limited to '')
-rw-r--r--ui/src/state/client.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/state/client.ts b/ui/src/state/client.ts
index 5ec0d8a7..c46fc4e6 100644
--- a/ui/src/state/client.ts
+++ b/ui/src/state/client.ts
@@ -20,6 +20,10 @@ export async function login(
return await invoke("login", { username, password, key });
}
+export async function logout(): Promise<string> {
+ return await invoke("logout");
+}
+
export async function register(
username: string,
email: string,