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:
@@ -36,8 +36,7 @@ var reservedFirstSegments = map[string]bool{
|
||||
|
||||
// reservedSlugs are individual paths the SPA routes itself.
|
||||
var reservedSlugs = map[string]bool{
|
||||
"shrines": true,
|
||||
"shrines/demoman": true,
|
||||
"shrines": true,
|
||||
}
|
||||
|
||||
func validPageKey(key string) bool {
|
||||
|
||||
Reference in New Issue
Block a user