From 0635dd5a946aa81595445d6d98ba4dac30cf6bf0 Mon Sep 17 00:00:00 2001 From: d3rpp Date: Fri, 8 Nov 2024 11:03:09 +1300 Subject: [PATCH] fixed up some formatting and linting issues --- src/lib/components/inline-codeblock.svelte | 26 +++-- src/lib/components/theme-toggle.svelte | 2 +- .../app/account/create_key_dialog.svelte | 11 +- .../account/key_managerment_section.svelte | 26 +++-- src/routes/(auth)/auth/login/+page.svelte | 13 +-- src/routes/(auth)/auth/sign-up/+page.svelte | 101 +----------------- .../(auth)/oauth/[method=oauth]/+error.svelte | 1 - 7 files changed, 40 insertions(+), 140 deletions(-) diff --git a/src/lib/components/inline-codeblock.svelte b/src/lib/components/inline-codeblock.svelte index d7b8b50..ec2f630 100644 --- a/src/lib/components/inline-codeblock.svelte +++ b/src/lib/components/inline-codeblock.svelte @@ -1,21 +1,19 @@ - - {@render children?.()} - \ No newline at end of file + {@render children?.()} + diff --git a/src/lib/components/theme-toggle.svelte b/src/lib/components/theme-toggle.svelte index f646644..b03cf85 100644 --- a/src/lib/components/theme-toggle.svelte +++ b/src/lib/components/theme-toggle.svelte @@ -4,7 +4,7 @@ import Gear from "svelte-radix/Gear.svelte"; import { resetMode, setMode } from "mode-watcher"; - import { Button, buttonVariants } from "$lib/components/ui/button/index.js"; + import { buttonVariants } from "$lib/components/ui/button/index.js"; import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js"; diff --git a/src/routes/(app)/app/account/create_key_dialog.svelte b/src/routes/(app)/app/account/create_key_dialog.svelte index 64a0015..c60ab7e 100644 --- a/src/routes/(app)/app/account/create_key_dialog.svelte +++ b/src/routes/(app)/app/account/create_key_dialog.svelte @@ -58,6 +58,7 @@ key_pair_encoded_download_blob = window.URL.createObjectURL(blob); tabs_value = "download"; + reset_pk_query(); }; // button cannot be pressed without the values being valid @@ -76,7 +77,7 @@ publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // `+` like this just parses it to an integer modulusLength: +modulus, - } satisfies RsaHashedKeyGenParams); + }); final_kid = confirmed_kid; @@ -193,9 +194,10 @@ - If you don't know what this means, just use + If you don't know what this means, just use SHA-256 - + @@ -230,7 +232,8 @@ - If you don't know what this means, just use + If you don't know what this means, just use 4096 diff --git a/src/routes/(app)/app/account/key_managerment_section.svelte b/src/routes/(app)/app/account/key_managerment_section.svelte index 6d7188b..69953fa 100644 --- a/src/routes/(app)/app/account/key_managerment_section.svelte +++ b/src/routes/(app)/app/account/key_managerment_section.svelte @@ -88,19 +88,29 @@ {key.name} - Key ID: {key.kid} - Fingerprint: {create_md5_fingerprint(key.key as Uint8Array)} + + Key ID: + {key.kid} + + + + Fingerprint: + {create_md5_fingerprint( + key.key as Uint8Array, + )} + + Actions (todo) {/each} - - - Total Key Count - {$pkquery.data.length} - - + + + Total Key Count + {$pkquery.data.length} + + {/if} diff --git a/src/routes/(auth)/auth/login/+page.svelte b/src/routes/(auth)/auth/login/+page.svelte index 4dcf24f..8c6d61a 100644 --- a/src/routes/(auth)/auth/login/+page.svelte +++ b/src/routes/(auth)/auth/login/+page.svelte @@ -1,29 +1,18 @@