From 1f2c28bd029ab7e989465ba53d6933a74fa0e809 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 16 Jun 2024 18:22:44 +0600 Subject: [PATCH] web: basic api interaction & downloading download button now acts the way it should with various states --- web/src/components/save/Omnibox.svelte | 2 +- .../save/buttons/DownloadButton.svelte | 75 ++++++++++++++++++- web/src/lib/api.ts | 31 ++++++++ web/src/lib/index.ts | 1 - 4 files changed, 104 insertions(+), 5 deletions(-) create mode 100644 web/src/lib/api.ts delete mode 100644 web/src/lib/index.ts diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index dabec6cb..cabff743 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -60,7 +60,7 @@ (link = "")} /> {/if} {#if validLink(link)} - + {/if} diff --git a/web/src/components/save/buttons/DownloadButton.svelte b/web/src/components/save/buttons/DownloadButton.svelte index 6e2f004c..9ebb2234 100644 --- a/web/src/components/save/buttons/DownloadButton.svelte +++ b/web/src/components/save/buttons/DownloadButton.svelte @@ -1,9 +1,78 @@ - -