Spaces:
Running
Running
fix
Browse files
src/lib/components/chat/Messages.svelte
CHANGED
@@ -16,11 +16,7 @@
|
|
16 |
|
17 |
const i18n = getContext('i18n');
|
18 |
|
19 |
-
<<<<<<< HEAD
|
20 |
-
=======
|
21 |
export let className = 'h-full flex pt-8';
|
22 |
-
|
23 |
-
>>>>>>> c2b1693 (GitHub deploy: 1dfb479d367e5f5902f051c823f9aef836e04791)
|
24 |
export let chatId = '';
|
25 |
export let user = $_user;
|
26 |
|
|
|
16 |
|
17 |
const i18n = getContext('i18n');
|
18 |
|
|
|
|
|
19 |
export let className = 'h-full flex pt-8';
|
|
|
|
|
20 |
export let chatId = '';
|
21 |
export let user = $_user;
|
22 |
|
src/routes/s/[id]/+page.svelte
CHANGED
@@ -8,15 +8,6 @@
|
|
8 |
import { settings, chatId, WEBUI_NAME, models } from '$lib/stores';
|
9 |
import { convertMessagesToHistory, createMessagesList } from '$lib/utils';
|
10 |
|
11 |
-
<<<<<<< HEAD
|
12 |
-
import { getChatByShareId } from '$lib/apis/chats';
|
13 |
-
|
14 |
-
import Messages from '$lib/components/chat/Messages.svelte';
|
15 |
-
import Navbar from '$lib/components/layout/Navbar.svelte';
|
16 |
-
import { getUserById } from '$lib/apis/users';
|
17 |
-
import { error } from '@sveltejs/kit';
|
18 |
-
import { getModels } from '$lib/apis';
|
19 |
-
=======
|
20 |
import { getChatByShareId, cloneSharedChatById } from '$lib/apis/chats';
|
21 |
|
22 |
import Messages from '$lib/components/chat/Messages.svelte';
|
@@ -25,7 +16,6 @@
|
|
25 |
import { getUserById } from '$lib/apis/users';
|
26 |
import { getModels } from '$lib/apis';
|
27 |
import { toast } from 'svelte-sonner';
|
28 |
-
>>>>>>> c2b1693 (GitHub deploy: 1dfb479d367e5f5902f051c823f9aef836e04791)
|
29 |
|
30 |
const i18n = getContext('i18n');
|
31 |
|
@@ -138,27 +128,6 @@
|
|
138 |
<div
|
139 |
class="min-h-screen max-h-screen w-full flex flex-col text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900"
|
140 |
>
|
141 |
-
<<<<<<< HEAD
|
142 |
-
<div class="flex flex-col flex-auto justify-center py-8">
|
143 |
-
<div class="px-3 w-full max-w-5xl mx-auto">
|
144 |
-
<div>
|
145 |
-
<div class=" text-3xl font-semibold line-clamp-1">
|
146 |
-
{title}
|
147 |
-
</div>
|
148 |
-
|
149 |
-
<div class=" mt-1 text-gray-400">
|
150 |
-
{dayjs(chat.chat.timestamp).format($i18n.t('MMMM DD, YYYY'))}
|
151 |
-
</div>
|
152 |
-
</div>
|
153 |
-
|
154 |
-
<hr class="border-gray-50 dark:border-gray-850 mt-6 mb-2" />
|
155 |
-
</div>
|
156 |
-
|
157 |
-
<div class=" flex flex-col w-full flex-auto overflow-auto h-0" id="messages-container">
|
158 |
-
<div class=" h-full w-full flex flex-col py-4">
|
159 |
-
<div class="py-2">
|
160 |
-
<Messages
|
161 |
-
=======
|
162 |
<div class="flex flex-col flex-auto justify-center relative">
|
163 |
<div class=" flex flex-col w-full flex-auto overflow-auto h-0" id="messages-container">
|
164 |
<div class="pt-5 px-2 w-full max-w-5xl mx-auto">
|
@@ -179,7 +148,6 @@
|
|
179 |
<div class="">
|
180 |
<Messages
|
181 |
className="h-full flex pt-4 pb-8"
|
182 |
-
>>>>>>> c2b1693 (GitHub deploy: 1dfb479d367e5f5902f051c823f9aef836e04791)
|
183 |
{user}
|
184 |
chatId={$chatId}
|
185 |
readOnly={true}
|
@@ -196,8 +164,6 @@
|
|
196 |
</div>
|
197 |
</div>
|
198 |
</div>
|
199 |
-
<<<<<<< HEAD
|
200 |
-
=======
|
201 |
|
202 |
<div
|
203 |
class="absolute bottom-0 right-0 left-0 flex justify-center w-full bg-gradient-to-b from-transparent to-gray-900"
|
@@ -211,7 +177,6 @@
|
|
211 |
</button>
|
212 |
</div>
|
213 |
</div>
|
214 |
-
>>>>>>> c2b1693 (GitHub deploy: 1dfb479d367e5f5902f051c823f9aef836e04791)
|
215 |
</div>
|
216 |
</div>
|
217 |
{/if}
|
|
|
8 |
import { settings, chatId, WEBUI_NAME, models } from '$lib/stores';
|
9 |
import { convertMessagesToHistory, createMessagesList } from '$lib/utils';
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
import { getChatByShareId, cloneSharedChatById } from '$lib/apis/chats';
|
12 |
|
13 |
import Messages from '$lib/components/chat/Messages.svelte';
|
|
|
16 |
import { getUserById } from '$lib/apis/users';
|
17 |
import { getModels } from '$lib/apis';
|
18 |
import { toast } from 'svelte-sonner';
|
|
|
19 |
|
20 |
const i18n = getContext('i18n');
|
21 |
|
|
|
128 |
<div
|
129 |
class="min-h-screen max-h-screen w-full flex flex-col text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900"
|
130 |
>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
<div class="flex flex-col flex-auto justify-center relative">
|
132 |
<div class=" flex flex-col w-full flex-auto overflow-auto h-0" id="messages-container">
|
133 |
<div class="pt-5 px-2 w-full max-w-5xl mx-auto">
|
|
|
148 |
<div class="">
|
149 |
<Messages
|
150 |
className="h-full flex pt-4 pb-8"
|
|
|
151 |
{user}
|
152 |
chatId={$chatId}
|
153 |
readOnly={true}
|
|
|
164 |
</div>
|
165 |
</div>
|
166 |
</div>
|
|
|
|
|
167 |
|
168 |
<div
|
169 |
class="absolute bottom-0 right-0 left-0 flex justify-center w-full bg-gradient-to-b from-transparent to-gray-900"
|
|
|
177 |
</button>
|
178 |
</div>
|
179 |
</div>
|
|
|
180 |
</div>
|
181 |
</div>
|
182 |
{/if}
|