From 4f19a92dc54b4d0b179f2a9d3c6fa2c2d8482bc5 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 6 Jun 2024 23:29:08 -0700 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 6 +- .../chat/MessageInput/CallOverlay.svelte | 345 +++++++++++++++--- .../chat/MessageInput/VoiceRecording.svelte | 2 + src/routes/(app)/+layout.svelte | 4 - 4 files changed, 295 insertions(+), 62 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 5d2f860a8..3b51c034a 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -19,7 +19,8 @@ WEBUI_NAME, banners, user, - socket + socket, + showCallOverlay } from '$lib/stores'; import { convertMessagesToHistory, @@ -57,6 +58,7 @@ import Banner from '../common/Banner.svelte'; import { getUserSettings } from '$lib/apis/users'; import { chatCompleted } from '$lib/apis'; + import CallOverlay from './MessageInput/CallOverlay.svelte'; const i18n: Writable = getContext('i18n'); @@ -1193,6 +1195,8 @@ + + {#if !chatIdProp || (loaded && chatIdProp)}