Make the box canvas reusable: canvas pages, admin-only boxes, landing notes
Test and deploy / test (push) Successful in 2m8s
Test and deploy / deploy (push) Successful in 1m8s

The /stp canvas is now BoxCanvas.vue, keyed by a page. Boxes carry a
page ("stp", "index" for the landing page's notes overlay, or a Page
slug) and an adminOnly flag that the boxes resolver filters server-side.

A new Page type lets the admin create canvas pages in the browser,
served at /<slug> by the router's catch-all (CanvasPage.vue), starting
from a Blank, Shrine or Notes-board layout. Slugs that an SPA or nginx
route would answer first are refused. Renaming a page moves its boxes;
deleting it deletes them.

The GTO, Evangelion and Skipskipbenben placeholder routes are dropped
in favour of canvas pages listed on /shrines, which the landing page
now links to. The box editor gains an admin-only toggle and an
upload-and-insert button, and there are Note, Heading, Text, Gallery
and Video templates.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 23:36:48 +01:00
co-authored by Claude Opus 5.5
parent 44347e40eb
commit bb5fd2bef9
35 changed files with 2638 additions and 499 deletions
+9 -18
View File
@@ -5,6 +5,9 @@
* theme) and holds most routes; `/cv` mounts CVLayout (light print theme).
* `/stp2` is deliberately outside both — it is a bare full-bleed mock.
*
* Pages made in the browser (views/canvas/) have no entries here: the
* catch-all at the end looks the path up and renders the page if one exists.
*
* Only the landing page is statically imported; every other view is a dynamic
* import so Vite code-splits it into its own chunk.
*
@@ -62,32 +65,20 @@ const router = createRouter({
name: "shrine links",
component: () => import("@/views/home/shrines/Shrines.vue"),
},
{
path: "shrines/gto",
name: "gto shrine",
component: () => import("@/views/home/shrines/GTO.vue"),
},
{
path: "shrines/skipskipbenben",
name: "skipskipbenben shrine",
component: () =>
import("@/views/home/shrines/Skipskipbenben.vue"),
},
{
path: "shrines/evangelion",
name: "evangelion shrine",
component: () =>
import("@/views/home/shrines/Evangelion.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"),
},
// Anything else is an admin-created canvas page if one exists
// at that address (the Page GraphQL type), else the 404.
{
path: ":pathMatch(.*)*",
name: "404",
component: () => import("@/views/404/404.vue"),
component: () => import("@/views/canvas/CanvasPage.vue"),
},
],
},