More audit cleanup: shared route cache helper, url columns, tab keys

- One CACHE and json() in shape.js for the seven public route files
- A url column type: link fields (13 of them) refuse javascript:, data:
  and any other scheme on save, not only when drawn
- The chapter map's logo uses the shared Logo component
- Schedule tabs take Home and End as well as the arrows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-09-29 02:02:24 -05:00
parent 1c94ffb281
commit d1a6332a45
12 changed files with 66 additions and 75 deletions

View file

@ -21,15 +21,10 @@
import { Hono } from "hono";
import { asBool, loadBlocks, loadLinks, marks, paragraphs, splitLinks } from "../shape.js";
import { asBool, json, loadBlocks, loadLinks, marks, paragraphs, splitLinks } from "../shape.js";
const people = new Hono();
const CACHE = "public, max-age=60, stale-while-revalidate=300";
const json = (c, body) => c.json(body, 200, { "Cache-Control": CACHE });
/* How many slugs one request may name. Keeps the URL sane. */
const MAX_IDS = 50;