Autosave box HTML, fix editor selection, make /shrines a canvas page
The HTML editor's selection was invisible: CodeMirror's focused-selection rule outranked ours and painted #233, and the opaque active line covered the selection layer. Match its selector and make the active line translucent. Unsaved HTML now saves on leaving a box (selecting another, clicking empty canvas, Done, closing the panel) instead of asking to discard. /shrines is no longer a hard-coded route but an ordinary canvas page, with links placed by hand as Link boxes; the backend no longer reserves the slug. The Shrine starter layout is gone, and the admin Pages tab gains a "New shrine" form that makes a blank page under shrines/. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -3,6 +3,10 @@
|
||||
* Admin tab: the canvas pages made in the browser (views/canvas/). Lists them
|
||||
* all, admin-only ones included, and creates new ones. A page's title,
|
||||
* address and visibility are edited from "Page settings" on the page itself.
|
||||
*
|
||||
* "New shrine" is the same form with the address fixed under /shrines/. It
|
||||
* starts blank and adds no link anywhere: /shrines is itself a canvas page,
|
||||
* and its links are boxes put there by hand.
|
||||
*/
|
||||
import { usePagesStore } from "@/stores/pages";
|
||||
import PageForm from "@/views/canvas/PageForm.vue";
|
||||
@@ -44,6 +48,15 @@ async function remove(page) {
|
||||
<p v-else-if="pages.loaded" class="text-muted">No pages yet.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>New shrine</h1>
|
||||
<p class="text-muted">
|
||||
A blank page under /shrines/. Link to it from the /shrines page with a
|
||||
Link box.
|
||||
</p>
|
||||
<PageForm prefix="shrines/" placeholder="address, e.g. evangelion" submit-label="Create shrine" />
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>New page</h1>
|
||||
<PageForm />
|
||||
|
||||
Reference in New Issue
Block a user