feat: 1-to-1 message render + web data-lake backend

This commit is contained in:
hh
2026-05-31 01:45:05 +02:00
parent f0afb7ec5b
commit 75425d1bee
110 changed files with 10199 additions and 54 deletions
@@ -0,0 +1,38 @@
<script lang="ts">
import { page } from "$app/state";
import ChatHeader from "$lib/components/ChatHeader.svelte";
import MessageList from "$lib/components/MessageList.svelte";
import { accounts } from "$lib/stores/accounts.svelte";
import { chats } from "$lib/stores/chats.svelte";
const chatId = $derived(Number(page.params.chatId));
$effect(() => {
if (accounts.selectedId === null) {
return;
}
chats.enrich(chatId);
});
</script>
<div class="chat-view">
{#key chatId}
<ChatHeader {chatId} />
<div class="chat-body">
<MessageList {chatId} />
</div>
{/key}
</div>
<style lang="scss">
.chat-view {
display: flex;
flex-direction: column;
height: 100%;
}
.chat-body {
flex: 1;
min-height: 0;
}
</style>