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:
@@ -65,14 +65,9 @@ const router = createRouter({
|
||||
name: "shrine links",
|
||||
component: () => import("@/views/home/shrines/Shrines.vue"),
|
||||
},
|
||||
// The GTO, Evangelion and Skipskipbenben shrines were <Wip />
|
||||
// placeholders; they are canvas pages now, made from /shrines
|
||||
// and served by the catch-all below.
|
||||
{
|
||||
path: "shrines/demoman",
|
||||
name: "demoman shrine",
|
||||
component: () => import("@/views/home/shrines/Demoman.vue"),
|
||||
},
|
||||
// Individual shrines are canvas pages, made from /shrines and
|
||||
// served by the catch-all below. The old hand-written ones
|
||||
// (views/home/shrines/) are unrouted.
|
||||
// Anything else is an admin-created canvas page if one exists
|
||||
// at that address (the Page GraphQL type), else the 404.
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user