forked from wrenn/wrenn
Add Files tab to capsule detail page with file browser and preview
Implements a split-panel file browser: directory tree on the left with path input and breadcrumb navigation, file preview on the right with line numbers. Binary/large files (>10MB) show a download prompt instead. Also adds CopyButton component across capsule, snapshot, and template pages, and fixes pre-existing type errors in StatsPanel and admin templates page.
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
<script lang="ts">
|
||||
import { page } from '$app/stores';
|
||||
import Sidebar from '$lib/components/Sidebar.svelte';
|
||||
import CopyButton from '$lib/components/CopyButton.svelte';
|
||||
import { capsuleRunningCount } from '$lib/capsule-store.svelte';
|
||||
|
||||
let { children } = $props();
|
||||
@ -33,8 +34,11 @@
|
||||
Capsules
|
||||
</a>
|
||||
<span class="text-[var(--color-text-muted)] select-none" style="font-size: 1.1rem">›</span>
|
||||
<span class="font-mono text-[1.1rem] leading-none text-[var(--color-text-bright)]">
|
||||
{$page.params.id}
|
||||
<span class="copy-host flex items-center gap-1.5">
|
||||
<span class="font-mono text-[1.1rem] leading-none text-[var(--color-text-bright)]">
|
||||
{$page.params.id}
|
||||
</span>
|
||||
<CopyButton value={$page.params.id} />
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user