diff --git a/backend/graph/page_helpers.go b/backend/graph/page_helpers.go index 70f265f..41ba17a 100644 --- a/backend/graph/page_helpers.go +++ b/backend/graph/page_helpers.go @@ -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 { diff --git a/backend/graph/page_helpers_test.go b/backend/graph/page_helpers_test.go index 5b34d75..bdb0fe8 100644 --- a/backend/graph/page_helpers_test.go +++ b/backend/graph/page_helpers_test.go @@ -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 diff --git a/vue/README.md b/vue/README.md index 6d5e780..64bb6ab 100644 --- a/vue/README.md +++ b/vue/README.md @@ -68,7 +68,7 @@ Two layout shells, defined in `src/router/index.js`: | `/` | DefaultLayout | Landing page (statically imported — it's the first paint), with a canvas overlay for pinned notes (page key `index`) | | `/stp` | DefaultLayout | The personal home page: an admin-editable canvas of boxes (`views/home3/`, see "The /stp canvas" below) | | `/admin`, `/admin/login` | DefaultLayout | `/admin` is guarded by `meta.requiresAdmin` | -| `/automata`, `/hotels`, `/shrines`, `/shrines/demoman` | DefaultLayout | Every other shrine is a canvas page | +| `/automata`, `/hotels`, `/shrines` | DefaultLayout | Each shrine under `/shrines/` is a canvas page | | `/cv` | CVLayout | Light print theme. Its Jobs button goes to `/jobs/`, the separate job tracker app (`adamf/job-tracker`); nginx redirects the old `/cv/jobs` and `/cv/leads` there | | `/stp2` | (none) | Bare full-bleed mock, deliberately outside both layouts | | `:pathMatch(.*)*` | DefaultLayout | `views/canvas/CanvasPage.vue`: an admin-created canvas page if one exists at the path, else the 404 (with a "create a page here" form for admins) | @@ -243,7 +243,10 @@ renders any page's boxes. saves on pointer release, and the box is moved locally first and put back if the save fails. `BoxEditor.vue` is the side panel. Settings save on change; HTML is a draft that previews live and saves with Save or Ctrl/Cmd+S. - CodeMirror is loaded only when that panel opens. "Insert upload" stores a + CodeMirror is loaded only when that panel opens; the panel is teleported to + `` so the landing overlay's `pointer-events: none` doesn't reach it. + Image and video files dropped onto the canvas in edit mode are uploaded and + each becomes an unframed box at the drop point. "Insert upload" stores a file through the chat's public upload endpoint and puts an ``/`