From 47aeab81d865b75fe0cb06376aabcb2aeadcda4c Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 7 Apr 2024 00:05:13 -0700 Subject: [PATCH] refac: styling --- .../components/chat/Settings/Account.svelte | 311 +++++++++--------- 1 file changed, 164 insertions(+), 147 deletions(-) diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index f47eac29c..47af62a5b 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -19,6 +19,8 @@ let profileImageUrl = ''; let name = ''; + let showAPIKeys = false; + let showJWTToken = false; let JWTTokenCopied = false; @@ -223,133 +225,47 @@ -
- + +
+ +

-
-
-
-
{$i18n.t('JWT Token')}
-
+
+
{$i18n.t('API keys')}
+ +
-
-
- - - + {#if showAPIKeys} +
+
+
+
{$i18n.t('JWT Token')}
- -
-
-
-
-
{$i18n.t('API Key')}
-
- -
- {#if APIKey} +
+
+
+
+
{$i18n.t('API Key')}
+
+ +
+ {#if APIKey} +
+ + + +
- + + + + + {:else} + - - {:else} - - {/if} + Create new secret key + {/if} +
-
+ {/if}