themes-coffee/schemas/hours_strip.schema.json
Alex Dunmow 11c6c8c63e initial: theme plugin coffee
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/coffee.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:22 +08:00

48 lines
1.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Hours Strip",
"description": "Horizontal opening hours strip with today's row server-side highlighted",
"type": "object",
"properties": {
"todayLabel": {
"type": "string",
"title": "Today Label",
"description": "Label rendered next to today's row (e.g. \"Today\")",
"default": "Today",
"x-editor": "text"
},
"hours": {
"type": "array",
"title": "Weekly Hours",
"description": "One row per day. Days not listed render as closed.",
"default": [],
"x-editor": "collection",
"items": {
"type": "object",
"properties": {
"day": {
"type": "string",
"title": "Day",
"description": "Weekday (Mon, Tue, Wed, Thu, Fri, Sat, Sun)",
"x-editor": "select",
"enum": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
},
"open": {
"type": "string",
"title": "Opens",
"description": "Opening time (e.g. \"7:00\")",
"x-editor": "text"
},
"close": {
"type": "string",
"title": "Closes",
"description": "Closing time (e.g. \"15:00\")",
"x-editor": "text"
}
},
"required": ["day"]
}
}
}
}