From 0611eb8ac7e7c13b7fcd1dc8256b2e2fa95ec3bc Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 10 Apr 2025 09:15:08 -0700 Subject: [PATCH] refac: layout load --- src/routes/(app)/+layout.svelte | 102 +++++++++++++++++--------------- 1 file changed, 54 insertions(+), 48 deletions(-) diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index da38e522d..fd9a33111 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -45,6 +45,7 @@ import AccountPending from '$lib/components/layout/Overlay/AccountPending.svelte'; import UpdateInfoToast from '$lib/components/layout/UpdateInfoToast.svelte'; import { get } from 'svelte/store'; + import Spinner from '$lib/components/common/Spinner.svelte'; const i18n = getContext('i18n'); @@ -254,65 +255,70 @@
- {#if loaded} - {#if !['user', 'admin'].includes($user?.role)} - - {:else if localDBChats.length > 0} -
-
-
-
-
- Important Update
Action Required for Chat Log Storage -
+ {#if !['user', 'admin'].includes($user?.role)} + + {:else if localDBChats.length > 0} +
+
+
+
+
+ Important Update
Action Required for Chat Log Storage +
-
- {$i18n.t( - "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through" - )} - {$i18n.t('Settings')} > {$i18n.t('Chats')} > {$i18n.t('Import Chats')}. {$i18n.t( - 'This ensures that your valuable conversations are securely saved to your backend database. Thank you!' - )} -
+
+ {$i18n.t( + "Saving chat logs directly to your browser's storage is no longer supported. Please take a moment to download and delete your chat logs by clicking the button below. Don't worry, you can easily re-import your chat logs to the backend through" + )} + {$i18n.t('Settings')} > {$i18n.t('Chats')} > {$i18n.t('Import Chats')}. {$i18n.t( + 'This ensures that your valuable conversations are securely saved to your backend database. Thank you!' + )} +
-
- + localDBChats = []; + }} + > + Download & Delete + - -
+
- {/if} +
+ {/if} - + + + {#if loaded} + {:else} +
+ +
{/if}