gijl/lv-storage / llama.cpp /tools /ui /src /lib /components /app /content /MentionText.svelte
gijl's picture
download
raw
612 Bytes
<script lang="ts">
import MentionBadge from './MentionBadge.svelte';
import { splitMentionSegments } from '$lib/utils';
interface Props {
content: string;
}
let { content }: Props = $props();
let segments = $derived(splitMentionSegments(content));
</script>
<!-- Segments sit in a `whitespace-pre-wrap` parent, so the markup stays
glued: any newline between the tags below would print as a space. -->
<!-- prettier-ignore -->
{#each segments as segment, index (index)}{#if segment.mention}<MentionBadge name={segment.mention.name} path={segment.mention.path} />{:else}{segment.text}{/if}{/each}

Xet Storage Details

Size:
612 Bytes
·
Xet hash:
4fcd5f62bef23a72acca0910c75a1711b0f91f84df7e37d852b30f471885ba1c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.