Finish the audit leftovers
- One mediaUrl in media.ts instead of 12 identical aliases and a kind map; orgPath builds on hrefs.ts's orgHref - One Logo component (hides itself or shows a fallback when the file is missing) for event cards, org lists and chapter marks - useHistory is a thin wrapper over useRecord - adminSchema.ts split into adminSchema/, one file per entity plus shared.ts; the registry is unchanged (checked by loading both) - JS smooth scrolls respect reduced motion (lib/motion.ts) - Content-Security-Policy in Report-Only, with /api/csp-report logging what it would block Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
c74ad746f5
commit
e4a9c96f7e
42 changed files with 1968 additions and 2043 deletions
|
|
@ -16,7 +16,7 @@ import PageShell, { type ShellSection } from '../components/PageShell.tsx'
|
|||
import PageState from '../components/PageState.tsx'
|
||||
import ContentBlocks from '../components/ContentBlocks.tsx'
|
||||
import PeopleTiles from '../components/PeopleTiles.tsx'
|
||||
import { blogImage, personPhoto } from '../lib/media.ts'
|
||||
import { mediaUrl } from '../lib/media.ts'
|
||||
import { postDate, useBlogPost } from '../lib/useBlog.ts'
|
||||
import { accentText } from '../lib/color.ts'
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ export default function BlogPost() {
|
|||
}
|
||||
|
||||
const date = postDate(post.published_on)
|
||||
const cover = blogImage(post.cover_image)
|
||||
const cover = mediaUrl(post.cover_image)
|
||||
const byline = [
|
||||
...post.authors.map((author) => author.name),
|
||||
...(post.guest ? [post.guest.name] : []),
|
||||
|
|
@ -57,9 +57,9 @@ export default function BlogPost() {
|
|||
name: author.name,
|
||||
tagline: author.tagline,
|
||||
pronouns: author.pronouns,
|
||||
photo: personPhoto(author.photo),
|
||||
photo: mediaUrl(author.photo),
|
||||
})),
|
||||
...(post.guest ? [{ name: post.guest.name, title: 'Guest author', photo: blogImage(post.guest.photo) }] : []),
|
||||
...(post.guest ? [{ name: post.guest.name, title: 'Guest author', photo: mediaUrl(post.guest.photo) }] : []),
|
||||
]
|
||||
|
||||
const sections: ShellSection[] = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue