Reports and visualizations
Reports and charts built from KH Build data. Each opens in a new tab.
← KH Build servicesimport { GROUP_TITLES, REPORT_LINKS, type ReportGroup, type ReportLink } from "./links.js"; const esc = (s: string): string => s.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); const card = (l: ReportLink): string => `${esc(l.title.en)}${esc(l.description.en)}`; /** Страница списка: тот же стиль и переключатель языка, что у домашней страницы; каждая ссылка открывается в новой вкладке. */ export function renderIndex(links: ReportLink[] = REPORT_LINKS): string { const order: ReportGroup[] = ["reports", "visualizations"]; const sections = order .map((g) => { const items = links.filter((l) => l.group === g); const t = GROUP_TITLES[g]; const body = items.length ? items.map(card).join("") : `
No items yet.
`; return `Reports and charts built from KH Build data. Each opens in a new tab.
← KH Build services