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:
@@ -1,10 +1,13 @@
|
||||
<script setup>
|
||||
/**
|
||||
* Route `/shrines` — index of the shrine pages: every canvas page
|
||||
* STATUS: unused — unrouted. /shrines is now an admin-made canvas page whose
|
||||
* links are boxes; new shrines are made on the admin panel's Pages tab.
|
||||
*
|
||||
* Was route `/shrines` — index of the shrine pages: every canvas page
|
||||
* (views/canvas/) whose address starts with "shrines/", from the pages query.
|
||||
* Admins — and only admins; the server refuses createPage to anyone else
|
||||
* anyway — get a button that opens a form to start one from the Shrine
|
||||
* layout.
|
||||
* layout (since removed).
|
||||
*/
|
||||
import { computed, ref } from "vue";
|
||||
import RouterTable from "@/components/util/RouterTable.vue";
|
||||
@@ -41,7 +44,7 @@ const shrine_links = computed(() =>
|
||||
<button type="button" class="bdr-2 bg-surface mt-4 cursor-pointer" @click="creating = !creating">
|
||||
{{ creating ? "Cancel" : "+ New shrine" }}
|
||||
</button>
|
||||
<PageForm v-if="creating" prefix="shrines/" starter="shrine" />
|
||||
<PageForm v-if="creating" prefix="shrines/" />
|
||||
</template>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user