MCPcopy
hub / github.com/garrytan/gstack / boardExpiredHtml

Function boardExpiredHtml

design/src/daemon.ts:456–465  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

454}
455
456function boardExpiredHtml(id: string): string {
457 return `<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><title>Board expired — gstack</title>
458<style>body{font:14px/1.5 -apple-system,system-ui,sans-serif;max-width:600px;margin:80px auto;padding:0 20px;color:#1a1a1a;text-align:center}
459h1{font-size:20px}.id{font-family:ui-monospace,monospace;color:#888;font-size:13px}
460a{color:#0070f3;text-decoration:none}a:hover{text-decoration:underline}</style></head><body>
461<h1>Board expired</h1>
462<p>Board <span class="id">${escapeHtml(id)}</span> is no longer hosted by this daemon (evicted or the daemon restarted).</p>
463<p><a href="/">← see active boards</a></p>
464</body></html>`;
465}
466
467// ─── Router ──────────────────────────────────────────────────────
468

Callers 1

fetchHandlerFunction · 0.85

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected