From c68ebbe94911ca57ceaadba89b60db36c4f61ee5 Mon Sep 17 00:00:00 2001 From: dumbmoron Date: Sat, 14 Sep 2024 19:13:58 +0000 Subject: [PATCH] web/DownloadButton: use api-client --- pnpm-lock.yaml | 3 ++ web/package.json | 1 + .../save/buttons/DownloadButton.svelte | 54 +++++++++++++++++-- 3 files changed, 55 insertions(+), 3 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f6f0dd7d..09ae4a12 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -125,6 +125,9 @@ importers: '@fontsource/redaction-10': specifier: ^5.0.2 version: 5.0.2 + '@imput/cobalt-client': + specifier: workspace:^ + version: link:../packages/api-client '@sveltejs/adapter-static': specifier: ^3.0.2 version: 3.0.2(@sveltejs/kit@2.5.19(@sveltejs/vite-plugin-svelte@3.1.1(svelte@4.2.18)(vite@5.3.5(@types/node@20.14.14)))(svelte@4.2.18)(vite@5.3.5(@types/node@20.14.14))) diff --git a/web/package.json b/web/package.json index 67c779bc..4e936645 100644 --- a/web/package.json +++ b/web/package.json @@ -26,6 +26,7 @@ "devDependencies": { "@eslint/js": "^9.5.0", "@fontsource/redaction-10": "^5.0.2", + "@imput/cobalt-client": "workspace:^", "@sveltejs/adapter-static": "^3.0.2", "@sveltejs/kit": "^2.0.0", "@sveltejs/vite-plugin-svelte": "^3.0.0", diff --git a/web/src/components/save/buttons/DownloadButton.svelte b/web/src/components/save/buttons/DownloadButton.svelte index 08800e88..fc7421c8 100644 --- a/web/src/components/save/buttons/DownloadButton.svelte +++ b/web/src/components/save/buttons/DownloadButton.svelte @@ -1,12 +1,23 @@