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]>
107 lines
2.3 KiB
YAML
107 lines
2.3 KiB
YAML
schema:
|
|
- graph/schema/*.graphql
|
|
|
|
exec:
|
|
filename: graph/generated.go
|
|
package: graph
|
|
|
|
model:
|
|
filename: graph/model/models_gen.go
|
|
package: model
|
|
|
|
resolver:
|
|
layout: follow-schema
|
|
dir: graph
|
|
package: graph
|
|
filename_template: "{name}.resolvers.go"
|
|
|
|
models:
|
|
# Two bindings, tried in order. IntID comes first, so it is what gqlgen
|
|
# picks where it has a free choice — resolver arguments stay `id int`.
|
|
# UintID is there so a model's `ID uint` field binds to `id: ID!` directly,
|
|
# with no hand-written resolver converting it. Both write an id as a quoted
|
|
# decimal string ("12") and read a string or a number, so which one a field
|
|
# uses is invisible on the wire.
|
|
ID:
|
|
model:
|
|
- github.com/99designs/gqlgen/graphql.IntID
|
|
- github.com/99designs/gqlgen/graphql.UintID
|
|
User:
|
|
model:
|
|
- adam-french.co.uk/backend/models.User
|
|
fields:
|
|
password:
|
|
resolver: false
|
|
deletedAt:
|
|
resolver: false
|
|
Post:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Post
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Activity:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Activity
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Favorite:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Favorite
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Rowing:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Rowing
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Message:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Message
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Bookmark:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Bookmark
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Place:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Place
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Box:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Box
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Page:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Page
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Background:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Background
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
Layout:
|
|
model:
|
|
- adam-french.co.uk/backend/models.Layout
|
|
fields:
|
|
deletedAt:
|
|
resolver: false
|
|
boxCount:
|
|
resolver: true
|
|
hasBackground:
|
|
resolver: true
|