From f96b717566b2084bd5fe70fb622ab66b5a643c0d Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 13 Aug 2026 16:04:53 -0600 Subject: [PATCH] refac --- src/lib/components/chat/Navbar.svelte | 2 +- src/lib/components/common/PptxPreview.svelte | 2 +- src/lib/utils/pptxToHtml.ts | 153 +++++++++++++------ 3 files changed, 110 insertions(+), 47 deletions(-) diff --git a/src/lib/components/chat/Navbar.svelte b/src/lib/components/chat/Navbar.svelte index 93f438def2..b6a045ea1c 100644 --- a/src/lib/components/chat/Navbar.svelte +++ b/src/lib/components/chat/Navbar.svelte @@ -161,7 +161,7 @@ {/if} -
+
{#if $user?.role === 'user' ? ($user?.permissions?.chat?.temporary ?? true) && !($user?.permissions?.chat?.temporary_enforced ?? false) : true} diff --git a/src/lib/components/common/PptxPreview.svelte b/src/lib/components/common/PptxPreview.svelte index 097a6a7716..3a40e785c0 100644 --- a/src/lib/components/common/PptxPreview.svelte +++ b/src/lib/components/common/PptxPreview.svelte @@ -261,7 +261,7 @@