9 Commits
Author SHA1 Message Date
dotCooCoo cecfcf0e78 CMS: upload VectorCraft card pictures to /assets/uploads/vectorcraft/
The VectorCraft collection's Card picture field had no folder of its
own, so the editor saved an uploaded picture to public/assets/uploads/
and wrote /assets/uploads/<file> into the page's cover field. The
content schema only accepts a cover under /assets/uploads/<app>/, so
a page saved with such a cover failed the build.

The field now sets media_folder and public_folder to the vectorcraft
folder. scripts/cms-config.test.mjs checks that every collection with a
cover field uploads to the folder the schema accepts, and
npm run test:coverage runs it.
2026-11-14 13:01:26 -08:00
Dylan M. Taylor eff49c56fe Harden the sign-in page and check Safe Browsing status
Chrome warns because Safe Browsing lists some craft.wiki pages as phishing, and
the Worker's sign-in page was a bare "Craft Wiki sign-in" title served from an
/api/ path with no branding, no explanation and no security headers. Give it the
wiki's branding, say that the password prompt belongs to discord.com, and send a
CSP with framing, referrer and content-type headers.

Add a script and a daily workflow that report Google's verdict for the domain,
so a listing is noticed without waiting for a browser to show it.
2026-11-06 18:31:29 -05:00
Dylan M. Taylor fb6c81485d Label the editor's sign-in buttons for Discord and GitHub tokens
Sveltia labels its buttons after the backend, so the top one read "Sign In with
GitHub" even though it starts this Worker's Discord sign-in, and the lower one
never said which token it wanted. Rewrite both labels while the CMS bundle is
prepared, failing the build if a bundle update drops a label.
2026-11-06 18:24:33 -05:00
Dylan M. Taylor b7adc9fb30 Build wiki with Starlight and Sveltia CMS 2026-11-06 14:03:37 -05:00
Dylan M. Taylor 30980baec3 Publish TileDocs export when present 2026-11-06 13:56:48 -05:00
Dylan M. Taylor ea34d60c62 Replace misleading wiki edit link 2026-11-06 13:55:34 -05:00
Dylan M. Taylor 26975ee8c5 Add wiki landing navigation and edit link 2026-11-06 13:37:37 -05:00
Dylan M. Taylor 7459d69ec7 Build browsable app wiki scaffold 2026-11-06 13:34:33 -05:00
Dylan M. Taylor 34427bb122 Initial commit 2026-11-06 13:22:58 -05:00