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

@ -224,11 +224,17 @@ export default function ScheduleBlock({
if (days.length === 0) return null
const current = days[Math.min(active, days.length - 1)]
// Arrows move one tab and wrap; Home and End jump to the ends.
const onKey = (e: KeyboardEvent<HTMLButtonElement>) => {
const step = e.key === 'ArrowRight' ? 1 : e.key === 'ArrowLeft' ? -1 : 0
if (!step) return
const last = days.length - 1
const next =
e.key === 'ArrowRight' ? (active + 1) % days.length
: e.key === 'ArrowLeft' ? (active + last) % days.length
: e.key === 'Home' ? 0
: e.key === 'End' ? last
: null
if (next === null) return
e.preventDefault()
const next = (active + step + days.length) % days.length
setActive(next)
document.getElementById(`${baseId}-tab-${next}`)?.focus()
}