Drop narration, history and restated-code comments across the repo, keep short ones for security boundaries, upstream quirks and ordering constraints, and record the convention in CLAUDE.md. Co-Authored-By: Claude Opus 5.5 <[email protected]>
32 lines
773 B
GraphQL
32 lines
773 B
GraphQL
# A page key's background; null for an adminOnly page unless admin.
|
|
|
|
type Background {
|
|
id: ID!
|
|
updatedAt: Time!
|
|
page: String!
|
|
# A CSS colour, or "" for the theme's page colour.
|
|
color: String!
|
|
# An image URL, or "" for none.
|
|
image: String!
|
|
# "cover", "contain" or "tile".
|
|
fit: String!
|
|
}
|
|
|
|
input BackgroundInput {
|
|
color: String!
|
|
image: String!
|
|
fit: String!
|
|
}
|
|
|
|
extend type Query {
|
|
# Null when the page has none, i.e. shows the theme's default.
|
|
background(page: String!): Background
|
|
}
|
|
|
|
extend type Mutation {
|
|
# Creates or replaces the page's background.
|
|
setBackground(page: String!, input: BackgroundInput!): Background! @admin
|
|
# Back to the theme's default. True if there was one to remove.
|
|
clearBackground(page: String!): Boolean! @admin
|
|
}
|