Something went wrong. Try again.
small gleam coding and persistent agent daemon with a detachable cli and a canvas ui forked from okami.mom/albedo
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061<script lang="ts"> import { latestFrameUrl, type Artifact } from './api'; import { artifacts } from './artifacts.svelte';
let { artifact, onclick, }: { artifact: Pick<Artifact, 'id' | 'version'> & { key?: string }; onclick?: () => void; } = $props(); const page = $derived( artifact.key ? { id: artifact.id, key: artifact.key } : artifacts.get(artifact.id), );
$effect(() => { if (!artifact.key) artifacts.want(artifact.id, artifact.version); });</script>
{#if page} <a class="tab" href={latestFrameUrl(page)} target="_blank" rel="noopener noreferrer" aria-label="open in a browser tab" title="open in a browser tab, following new versions" {onclick} > <svg viewBox="0 0 16 16" width="13" height="13" aria-hidden="true" ><path d="M9 3h4v4M13 3L7.5 8.5M11 9.5V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h2.5" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" /></svg > </a>{/if}
<style> .tab { display: grid; flex: none; place-items: center; width: 28px; height: 28px; color: var(--muted); border-radius: 6px; transition: color 120ms ease; } .tab:hover { color: var(--text); }</style>