Add saved layouts, and make /stp an ordinary canvas page
Test and deploy / test (push) Successful in 1m51s
Test and deploy / deploy (push) Successful in 1m10s

A layout is a named copy of one canvas page's boxes and background
(models.Layout, layout.graphql), saved from the canvas's new Layouts
button and loaded onto any page from there or from the admin Pages
tab. Loading onto a page with boxes asks whether to replace them or
add on top; a replace first saves the page as a "<page> before
<layout>" layout so it can be undone. Copies, not links: editing a
page never changes a layout or another page. The copying is
server-side in one transaction, and everything is @admin since a
layout keeps admin-only boxes.

/stp loses its static route and becomes a Page with slug "stp",
created once at start-up (ensureStpPage), so it can be renamed,
hidden or deleted like a shrine. Its boxes were already keyed "stp".
Home3.vue is kept as legacy; its starter is now "Old /stp grid" in
pageStarters.js. ConfirmDialog gains an optional second button.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-23 20:33:07 +01:00
co-authored by Claude Opus 5.5
parent 8c535b1cc2
commit 2eacbc2e33
28 changed files with 1947 additions and 68 deletions
+4 -8
View File
@@ -33,11 +33,6 @@ const router = createRouter({
name: "landing",
component: Landing,
},
{
path: "stp",
name: "home",
component: () => import("@/views/home3/Home3.vue"),
},
{
path: "admin/login",
name: "admin-login",
@@ -66,9 +61,10 @@ const router = createRouter({
component: () =>
import("@/views/architecture/Architecture.vue"),
},
// /shrines and the shrines under it are canvas pages, made
// from the admin panel's Pages tab and served by the catch-all
// below. The old hand-written ones (views/home/shrines/) are
// /stp, /shrines and the shrines under it are canvas pages,
// made from the admin panel's Pages tab and served by the
// catch-all below. /stp's old route (views/home3/Home3.vue)
// and the hand-written shrines (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.