Self-hosted knowledge management for SMEs: a split-screen Markdown editor whose sections an LLM refines while you write, and RAG question answering over the documents that result. FastAPI + Postgres/pgvector on the back, SvelteKit on the front, everything OpenAI-compatible and self-hostable. Squashed into a single commit; the development history stays local. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CA43ZJda8Rbp2hKXNy8f6b
19 lines
673 B
Svelte
19 lines
673 B
Svelte
<script lang="ts">
|
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
|
|
type Props = HTMLInputAttributes;
|
|
|
|
let { value = $bindable(''), class: className = '', ...rest }: Props = $props();
|
|
</script>
|
|
|
|
<!--
|
|
Focus lifts the border rather than drawing an outer ring: the ring gets
|
|
clipped wherever an input sits inside a scroll container, and this matches
|
|
the composer cards on the landing and chat pages.
|
|
-->
|
|
<input
|
|
bind:value
|
|
class="w-full rounded-full border border-border bg-surface-raised px-4 py-2 text-sm text-ink transition-colors placeholder:text-ink-muted focus:border-border-strong focus:outline-none disabled:opacity-50 {className}"
|
|
{...rest}
|
|
/>
|