diff --git a/src/lib/components/icons/Plus.svelte b/src/lib/components/icons/Plus.svelte index bcfe4a8b2..e5f3ba770 100644 --- a/src/lib/components/icons/Plus.svelte +++ b/src/lib/components/icons/Plus.svelte @@ -1,6 +1,6 @@ - + { showSidebar.set(!$showSidebar); }} @@ -471,7 +471,7 @@ {#if $user?.role === 'admin'} - + {/if} - + + + - - - + - - - - - - - - - - - - - - - - - - - - + - + {$i18n.t('Functions')} - {filteredItems.length}{filteredItems.length} + + + + + + + + + + + + + + + diff --git a/src/lib/components/workspace/Knowledge.svelte b/src/lib/components/workspace/Knowledge.svelte index 0e3844905..cd39ec7d6 100644 --- a/src/lib/components/workspace/Knowledge.svelte +++ b/src/lib/components/workspace/Knowledge.svelte @@ -22,6 +22,8 @@ import DeleteConfirmDialog from '../common/ConfirmDialog.svelte'; import ItemMenu from './Knowledge/ItemMenu.svelte'; import Badge from '../common/Badge.svelte'; + import Search from '../icons/Search.svelte'; + import Plus from '../icons/Plus.svelte'; let query = ''; let selectedItem = null; @@ -73,61 +75,41 @@ }} /> - - - - - - - - - - - - { - goto('/workspace/knowledge/create'); - }} - > - - - - - - - - + - + {$i18n.t('Knowledge')} - {filteredItems.length} + + + + + + + + + + + { + goto('/workspace/knowledge/create'); + }} + > + + + + diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte index bcb43e166..19c08c0c8 100644 --- a/src/lib/components/workspace/Models.svelte +++ b/src/lib/components/workspace/Models.svelte @@ -22,6 +22,8 @@ import ModelDeleteConfirmDialog from '../common/ConfirmDialog.svelte'; import Tooltip from '../common/Tooltip.svelte'; import GarbageBin from '../icons/GarbageBin.svelte'; + import Search from '../icons/Search.svelte'; + import Plus from '../icons/Plus.svelte'; const i18n = getContext('i18n'); @@ -304,58 +306,38 @@ }} /> - - - - - - - - - - - - - - - - - - - - + - + {$i18n.t('Models')} - {filteredModels.length} + + + + + + + + + + + + + + + diff --git a/src/lib/components/workspace/Prompts.svelte b/src/lib/components/workspace/Prompts.svelte index 6ccfa91a6..5af7b423c 100644 --- a/src/lib/components/workspace/Prompts.svelte +++ b/src/lib/components/workspace/Prompts.svelte @@ -11,6 +11,8 @@ import PromptMenu from './Prompts/PromptMenu.svelte'; import EllipsisHorizontal from '../icons/EllipsisHorizontal.svelte'; import DeleteConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; + import Search from '../icons/Search.svelte'; + import Plus from '../icons/Plus.svelte'; const i18n = getContext('i18n'); @@ -79,58 +81,38 @@ - - - - - - - - - - - - - - - - - - - - + - + {$i18n.t('Prompts')} - {filteredItems.length} + + + + + + + + + + + + + + + diff --git a/src/lib/components/workspace/Tools.svelte b/src/lib/components/workspace/Tools.svelte index 50e57276e..f15615c23 100644 --- a/src/lib/components/workspace/Tools.svelte +++ b/src/lib/components/workspace/Tools.svelte @@ -25,6 +25,8 @@ import Heart from '../icons/Heart.svelte'; import DeleteConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; import GarbageBin from '../icons/GarbageBin.svelte'; + import Search from '../icons/Search.svelte'; + import Plus from '../icons/Plus.svelte'; const i18n = getContext('i18n'); @@ -154,58 +156,38 @@ - - - - - - - - - - - - - - - - - - - - + - + {$i18n.t('Tools')} - {filteredItems.length} + + + + + + + + + + + + + + + diff --git a/src/routes/(app)/admin/+layout.svelte b/src/routes/(app)/admin/+layout.svelte index 5219f1c6c..84315f7b9 100644 --- a/src/routes/(app)/admin/+layout.svelte +++ b/src/routes/(app)/admin/+layout.svelte @@ -49,7 +49,7 @@ - +