From 1c16920dbaa4ba62669c59a0c8451e33dc6b2874 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 15 Nov 2024 17:36:46 -0800 Subject: [PATCH] refac --- src/lib/components/admin/Functions.svelte | 30 +++----- src/lib/components/workspace/Models.svelte | 30 +++----- .../workspace/Models/Knowledge.svelte | 2 +- .../workspace/Models/ModelEditor.svelte | 10 +-- src/lib/components/workspace/Prompts.svelte | 30 +++----- .../workspace/Prompts/PromptEditor.svelte | 4 +- src/lib/components/workspace/Tools.svelte | 30 +++----- .../common/AccessPermissionsModal.svelte | 70 ++++++++++--------- 8 files changed, 80 insertions(+), 126 deletions(-) diff --git a/src/lib/components/admin/Functions.svelte b/src/lib/components/admin/Functions.svelte index ff1006e55..0dfcbb73b 100644 --- a/src/lib/components/admin/Functions.svelte +++ b/src/lib/components/admin/Functions.svelte @@ -31,6 +31,7 @@ import GarbageBin from '../icons/GarbageBin.svelte'; import Search from '../icons/Search.svelte'; import Plus from '../icons/Plus.svelte'; + import ChevronRight from '../icons/ChevronRight.svelte'; const i18n = getContext('i18n'); @@ -451,40 +452,27 @@ {#if $config?.features.enable_community_sharing}
- {/if} diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte index d7adc5628..13227561d 100644 --- a/src/lib/components/workspace/Models.svelte +++ b/src/lib/components/workspace/Models.svelte @@ -29,6 +29,7 @@ import Search from '../icons/Search.svelte'; import Plus from '../icons/Plus.svelte'; import { get } from 'svelte/store'; + import ChevronRight from '../icons/ChevronRight.svelte'; let shiftKey = false; @@ -533,40 +534,27 @@ {#if $config?.features.enable_community_sharing}
- {/if} diff --git a/src/lib/components/workspace/Models/Knowledge.svelte b/src/lib/components/workspace/Models/Knowledge.svelte index d2d57546b..d2adc50e6 100644 --- a/src/lib/components/workspace/Models/Knowledge.svelte +++ b/src/lib/components/workspace/Models/Knowledge.svelte @@ -53,7 +53,7 @@ }} > diff --git a/src/lib/components/workspace/Models/ModelEditor.svelte b/src/lib/components/workspace/Models/ModelEditor.svelte index 405276f10..d5f8b2671 100644 --- a/src/lib/components/workspace/Models/ModelEditor.svelte +++ b/src/lib/components/workspace/Models/ModelEditor.svelte @@ -461,7 +461,7 @@
-
+
@@ -515,7 +515,7 @@
-
+
@@ -612,7 +612,7 @@ {/if}
-
+
@@ -679,8 +679,8 @@