From e097bbdf11ae4975c622e086df00d054291cdeb3 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 13 Sep 2025 02:09:57 +0400 Subject: [PATCH] refac --- .../chat/MessageInput/InputMenu.svelte | 40 ++++++++++++++++++- src/lib/components/icons/Agile.svelte | 27 +++++++++++++ src/lib/components/icons/Refresh.svelte | 23 +++++++++++ 3 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 src/lib/components/icons/Agile.svelte create mode 100644 src/lib/components/icons/Refresh.svelte diff --git a/src/lib/components/chat/MessageInput/InputMenu.svelte b/src/lib/components/chat/MessageInput/InputMenu.svelte index 2a58fffa9d..5d95845dde 100644 --- a/src/lib/components/chat/MessageInput/InputMenu.svelte +++ b/src/lib/components/chat/MessageInput/InputMenu.svelte @@ -14,6 +14,9 @@ import Camera from '$lib/components/icons/Camera.svelte'; import Note from '$lib/components/icons/Note.svelte'; import Clip from '$lib/components/icons/Clip.svelte'; + import ChatBubbleOval from '$lib/components/icons/ChatBubbleOval.svelte'; + import Refresh from '$lib/components/icons/Refresh.svelte'; + import Agile from '$lib/components/icons/Agile.svelte'; const i18n = getContext('i18n'); @@ -164,11 +167,44 @@ } }} > - -
{$i18n.t('Attach Notes')}
+ +
{$i18n.t('Reference Chats')}
+ {#if $config?.features?.enable_notes ?? false} + + { + if (fileUploadEnabled) { + if (!detectMobile()) { + screenCaptureHandler(); + } else { + const cameraInputElement = document.getElementById('camera-input'); + + if (cameraInputElement) { + cameraInputElement.click(); + } + } + } + }} + > + +
{$i18n.t('Attach Notes')}
+
+
+ {/if} + + export let className = 'w-4 h-4'; + export let strokeWidth = '1.5'; + + + diff --git a/src/lib/components/icons/Refresh.svelte b/src/lib/components/icons/Refresh.svelte new file mode 100644 index 0000000000..46eb9ac28b --- /dev/null +++ b/src/lib/components/icons/Refresh.svelte @@ -0,0 +1,23 @@ + + +