From e2447dd0a7404f528ca17cfcc20af66718f1f0cf Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 27 Apr 2024 19:47:11 -0400 Subject: [PATCH] refac: better layout loading --- src/routes/(app)/+layout.svelte | 232 ++++++++++++++++---------------- 1 file changed, 116 insertions(+), 116 deletions(-) diff --git a/src/routes/(app)/+layout.svelte b/src/routes/(app)/+layout.svelte index 390afb792..a426307b3 100644 --- a/src/routes/(app)/+layout.svelte +++ b/src/routes/(app)/+layout.svelte @@ -176,128 +176,128 @@ }); -{#if loaded} - - - - -
- {#if !['user', 'admin'].includes($user.role)} -
-
-
-
-
- Account Activation Pending
Contact Admin for WebUI Access -
- -
- Your account status is currently pending activation. To access the WebUI, please - reach out to the administrator. Admins can manage user statuses from the Admin - Panel. -
- -
- - - -
-
-
-
-
- {: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!' - )} -
- -
- - - -
-
-
-
-
- {/if} - -
+ + + +
+ + + +
+
+ {#if loaded} + {#if !['user', 'admin'].includes($user.role)} +
+
+
+
+
+ Account Activation Pending
Contact Admin for WebUI Access +
+ +
+ Your account status is currently pending activation. To access the WebUI, please + reach out to the administrator. Admins can manage user statuses from the Admin + Panel. +
+ +
+ + + +
+
+
+
+
+ {: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!' + )} +
+ +
+ + + +
+
+
+
+
+ {/if} + -
+ {/if}
-{/if} +