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:
parent
1c94ffb281
commit
d1a6332a45
12 changed files with 66 additions and 75 deletions
|
|
@ -36,6 +36,7 @@ import { fileURLToPath } from "node:url";
|
|||
import { Hono } from "hono";
|
||||
|
||||
import { metaFor, renderPage, robotsTxt, siteFor, sitemap } from "../pageMeta.js";
|
||||
import { CACHE } from "../shape.js";
|
||||
|
||||
const here = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
|
|
@ -43,8 +44,6 @@ export const SITE_INDEX = path.resolve(
|
|||
process.env.SITE_INDEX ?? path.join(here, "../../../dist/index.html"),
|
||||
);
|
||||
|
||||
const CACHE = "public, max-age=60, stale-while-revalidate=300";
|
||||
|
||||
let cached = { mtime: 0, html: null };
|
||||
|
||||
function indexHtml() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue