refactor: Cleanup
This commit is contained in:
parent
796fd1a62e
commit
4383644951
|
|
@ -37,6 +37,7 @@
|
|||
aria-label={ariaLabel || tooltip}
|
||||
>
|
||||
{@const IconComponent = icon}
|
||||
|
||||
<IconComponent class="h-3 w-3" />
|
||||
</Button>
|
||||
</Tooltip.Trigger>
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
<script lang="ts">
|
||||
import {
|
||||
ChatAttachmentsList,
|
||||
ChatAttachmentMcpResources,
|
||||
ChatFormActions,
|
||||
ChatFormFileInputInvisible,
|
||||
ChatFormPromptPicker,
|
||||
ChatFormTextarea,
|
||||
McpResourcePicker
|
||||
} from '$lib/components/app';
|
||||
import ChatFormResourceAttachments from '../ChatFormResourceAttachments.svelte';
|
||||
import { INPUT_CLASSES } from '$lib/constants/css-classes';
|
||||
import { SETTING_CONFIG_DEFAULT } from '$lib/constants/settings-config';
|
||||
import { MimeTypeText, SpecialFileType } from '$lib/enums';
|
||||
|
|
@ -509,7 +509,7 @@
|
|||
/>
|
||||
|
||||
{#if mcpHasResourceAttachments()}
|
||||
<ChatFormResourceAttachments
|
||||
<ChatAttachmentMcpResources
|
||||
class="mb-3"
|
||||
onResourceClick={(uri) => {
|
||||
preSelectedResourceUri = uri;
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
ChatFormActionRecord,
|
||||
ChatFormActionSubmit,
|
||||
DialogMcpServersSettings,
|
||||
McpServerSelector,
|
||||
McpServersSelector,
|
||||
ModelsSelector
|
||||
} from '$lib/components/app';
|
||||
import { mcpStore } from '$lib/stores/mcp.svelte';
|
||||
|
|
@ -191,7 +191,7 @@
|
|||
onMcpServersClick={() => (showMcpDialog = true)}
|
||||
/>
|
||||
|
||||
<McpServerSelector {disabled} onSettingsClick={() => (showMcpDialog = true)} />
|
||||
<McpServersSelector {disabled} onSettingsClick={() => (showMcpDialog = true)} />
|
||||
</div>
|
||||
|
||||
<div class="ml-auto flex items-center gap-1.5">
|
||||
|
|
|
|||
|
|
@ -70,6 +70,12 @@ export { default as ChatAttachmentMcpResource } from './ChatAttachments/ChatAtta
|
|||
*/
|
||||
export { default as ChatAttachmentPreview } from './ChatAttachments/ChatAttachmentPreview.svelte';
|
||||
|
||||
/**
|
||||
* Displays MCP Resource attachments as a horizontal carousel.
|
||||
* Shows resource name, URI, and allows clicking to view resource content.
|
||||
*/
|
||||
export { default as ChatAttachmentMcpResources } from './ChatAttachments/ChatAttachmentMcpResources.svelte';
|
||||
|
||||
/**
|
||||
* Thumbnail for non-image file attachments. Displays file type icon based on extension,
|
||||
* file name (truncated), and file size.
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ export { default as McpServersSettings } from './McpServersSettings.svelte';
|
|||
export { default as McpActiveServersAvatars } from './McpActiveServersAvatars.svelte';
|
||||
|
||||
/**
|
||||
* **McpServerSelector** - Quick MCP server toggle dropdown
|
||||
* **McpServersSelector** - Quick MCP server toggle dropdown
|
||||
*
|
||||
* Compact dropdown for quickly enabling/disabling MCP servers for the current chat.
|
||||
* Uses McpActiveServersAvatars as trigger and shows searchable server list with switches.
|
||||
|
|
@ -89,12 +89,12 @@ export { default as McpActiveServersAvatars } from './McpActiveServersAvatars.sv
|
|||
*
|
||||
* @example
|
||||
* ```svelte
|
||||
* <McpServerSelector
|
||||
* <McpServersSelector
|
||||
* onSettingsClick={() => showMcpSettings = true}
|
||||
* />
|
||||
* ```
|
||||
*/
|
||||
export { default as McpServerSelector } from './McpServerSelector.svelte';
|
||||
export { default as McpServersSelector } from './McpServersSelector.svelte';
|
||||
|
||||
/**
|
||||
* **McpCapabilitiesBadges** - Server capabilities display
|
||||
|
|
|
|||
Loading…
Reference in New Issue