aboutsummaryrefslogtreecommitdiffstats
path: root/ui/src/state/client.ts
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2024-07-30 16:54:10 +0100
committerGitHub <noreply@github.com>2024-07-30 16:54:10 +0100
commit808138de633e410c1d3867d4fb7cb74967647605 (patch)
treef180b7066b91d8d8d8006219a118439be1621d74 /ui/src/state/client.ts
parentchore(deps): bump debian (#2320) (diff)
downloadatuin-808138de633e410c1d3867d4fb7cb74967647605.zip
chore: remove ui directory (#2329)
This is still in development, but rather than clutter the commit history and issues with an unreleased project I've split the UI into its own repo. Once ready for release, I'll either merge the ui code back in, or just make the repo public.
Diffstat (limited to 'ui/src/state/client.ts')
-rw-r--r--ui/src/state/client.ts33
1 files changed, 0 insertions, 33 deletions
diff --git a/ui/src/state/client.ts b/ui/src/state/client.ts
deleted file mode 100644
index c46fc4e6..00000000
--- a/ui/src/state/client.ts
+++ /dev/null
@@ -1,33 +0,0 @@
-// At some point, I'd like to replace some of the Atuin calls
-// with separate state handling here
-
-import { invoke } from "@tauri-apps/api/core";
-import { Settings } from "@/state/models";
-
-export async function sessionToken(): Promise<String> {
- return await invoke("session");
-}
-
-export async function settings(): Promise<Settings> {
- return await invoke("config");
-}
-
-export async function login(
- username: string,
- password: string,
- key: string,
-): Promise<string> {
- 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,
- password: string,
-): Promise<string> {
- return await invoke("register", { username, email, password });
-}