aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/components/Sidebar.svelte
diff options
context:
space:
mode:
authorHsiangNianian <i@jyunko.cn>2026-01-16 14:17:17 +0800
committerHsiangNianian <i@jyunko.cn>2026-01-16 14:18:21 +0800
commit6c6cd5052a157b658f50e04ca7c350a00c2dbd60 (patch)
treea21919843671dcabd77247b8558bed07d4840017 /ui/src/components/Sidebar.svelte
parentd7a6e4761dc2cb7905c6bed1ba9e53546505409f (diff)
downloadDropOut-6c6cd5052a157b658f50e04ca7c350a00c2dbd60.tar.gz
DropOut-6c6cd5052a157b658f50e04ca7c350a00c2dbd60.zip
feat: add assistant view and configuration editor components
Introduced a new AssistantView component for enhanced interaction with the AI assistant, allowing users to send messages and receive responses. Implemented a ConfigEditorModal for editing configuration files with JSON validation and history management. Updated the App component to integrate these new features, improving user experience and functionality in managing AI settings.
Diffstat (limited to 'ui/src/components/Sidebar.svelte')
-rw-r--r--ui/src/components/Sidebar.svelte5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/src/components/Sidebar.svelte b/ui/src/components/Sidebar.svelte
index 1d7cc16..3d36f89 100644
--- a/ui/src/components/Sidebar.svelte
+++ b/ui/src/components/Sidebar.svelte
@@ -1,6 +1,6 @@
<script lang="ts">
import { uiState } from '../stores/ui.svelte';
- import { Home, Package, Settings } from 'lucide-svelte';
+ import { Home, Package, Settings, Bot } from 'lucide-svelte';
</script>
<aside
@@ -57,7 +57,7 @@
<!-- Navigation -->
<nav class="flex-1 w-full flex flex-col gap-1 px-3">
<!-- Nav Item Helper -->
- {#snippet navItem(view, Icon, label)}
+ {#snippet navItem(view: any, Icon: any, label: string)}
<button
class="group flex items-center lg:gap-3 justify-center lg:justify-start w-full px-0 lg:px-4 py-2.5 rounded-sm transition-all duration-200 relative
{uiState.currentView === view
@@ -77,6 +77,7 @@
{@render navItem('home', Home, 'Overview')}
{@render navItem('versions', Package, 'Versions')}
+ {@render navItem('guide', Bot, 'Assistant')}
{@render navItem('settings', Settings, 'Settings')}
</nav>