Fix the landing notes editor, drop-to-upload pictures, retire Demoman
The box editor rendered inside the landing page's overlay canvas, which is pointer-events: none so the page underneath stays clickable; the panel inherited it and ignored every click and keystroke. It is now teleported to <body>. Image and video files dropped onto a canvas in edit mode are uploaded and each becomes an unframed box at the drop point, sized to its aspect ratio. The upload code moves to home3/upload.js, shared with the editor's "Insert upload". The hand-written Demoman shrine is unrouted (and its slug unreserved) so it can be remade as a canvas page. /shrines lists only canvas pages and keeps the admin-only create form behind a "+ New shrine" button. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -18,7 +18,7 @@ func TestValidateSlug(t *testing.T) {
|
||||
{"shrines/gto-", false}, // trailing hyphen
|
||||
{"shrines/../admin", false}, // dots
|
||||
{"shrines", false}, // the SPA's own index
|
||||
{"shrines/demoman", false}, // an existing SPA route
|
||||
{"shrines/demoman", true}, // no longer an SPA route
|
||||
{"admin/pages", false}, // under an SPA route
|
||||
{"jobs/x", false}, // under an nginx route
|
||||
{"stp", false}, // a built-in canvas's key
|
||||
|
||||
Reference in New Issue
Block a user