import Link from 'next/link'; import dynamic from 'next/dynamic'; import { ReactNode } from 'react'; import type { Block, PageBlock, Resolved } from '../lib/blocks'; const Mermaid = dynamic(() => import('./Mermaid'), { ssr: false, loading: () =>
{t.slice(1, -1)});
last = m.index + t.length;
}
if (last < s.length) out.push(s.slice(last));
return out;
}
function MarkdownBlock({ text }: { text: string }) {
return (
<>
{text.replace(/\r/g, '').split(/\n{2,}/).map((raw, i) => {
const src = raw.trim();
if (!src) return null;
const lines = src.split('\n');
if (lines.every((l) => /^\s*[-*]\s+/.test(l))) return {inline(lines.join(' '))}
; })} > ); } /* ---------- horizontal bar chart (SVG) ---------- */ function BarChart({ d }: { d: Extract{inline(Object.entries(vars ?? {}).reduce((t, [k, v]) => t.split(`{${k}}`).join(String(v)), text))}
: null; function StaticBlock({ b }: { b: Block }) { switch (b.type) { case 'markdown': return{inline(b.data.lead)}
}| {c} | )}
|---|
| {inline(c)} | )}
{b.data.text};
case 'links':
return (
No tools yet. Add them with PUT /api/tool-taxonomy/papers/<conf>/<ext_id>.
| Category | Papers | Tools (paper) |
|---|---|---|
| {row.path.slice(0, -1).map((x, i) => {x} → )} {row.title} | {row.papers || ''} |
{row.entries.length === 0 ? '—' : row.entries.map((e, i) => (
{e.tool}{' '}
({e.paperId ? {e.paperLabel} : e.paperLabel})
{e.via && · via {e.via}}
|
Not in any category yet: {t.uncategorised.map((e, i) => (
{i ? ', ' : ''}{e.tool} ({e.paperId ? {e.paperLabel} : e.paperLabel})
))}
| Paper | Venue | Date | Analysis |
|---|---|---|---|
| {p.title} | {p.conf_short} | {p.date} | {p.analysed ? '✓' : ''} |
| Benchmark | Papers | {r.showNew &&Introduced in 2026 | }
|---|---|---|
| {x.name} | {x.n} | {r.showNew &&{x.n_new || ''} | }