Venues, map blocks and event blocks; schedule entries link to them
Data → Venues: a map picture with its locations marked as pins or boxes (088). A Map block draws a venue with its locations listed; a schedule names a venue and its entries pick a location, linking to the map on the page with it lit up. Entries and sub-items can name an event (a workshop) and take what they leave blank from it, and an Events block shows event cards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3d087da005
commit
818d648e91
18 changed files with 964 additions and 35 deletions
|
|
@ -43,6 +43,8 @@ export type ContentBlock = {
|
|||
| 'tab'
|
||||
| 'cards'
|
||||
| 'people'
|
||||
| 'map'
|
||||
| 'events'
|
||||
text?: string | null
|
||||
media?: string | null
|
||||
href?: string | null
|
||||
|
|
@ -57,6 +59,43 @@ export type ContentBlock = {
|
|||
items?: ContentBlockItem[]
|
||||
/** A schedule's own tags (087). */
|
||||
tags?: ScheduleTag[]
|
||||
/** A map or schedule block's venue (088). */
|
||||
venue_id?: string | null
|
||||
venue?: Venue | null
|
||||
}
|
||||
|
||||
/** A venue (088): its map picture and the locations marked on it,
|
||||
* each a pin (x, y) or a box (x, y, w, h), in percent. */
|
||||
export type Venue = {
|
||||
id: string
|
||||
name: string
|
||||
address?: string | null
|
||||
map_image?: string | null
|
||||
map_alt?: string | null
|
||||
locations: VenueLocation[]
|
||||
}
|
||||
export type VenueLocation = {
|
||||
key: string
|
||||
name: string
|
||||
detail?: string | null
|
||||
x?: number | null
|
||||
y?: number | null
|
||||
w?: number | null
|
||||
h?: number | null
|
||||
}
|
||||
|
||||
/** An event an item names (088): an events block's card, or the
|
||||
* workshop a schedule entry is. */
|
||||
export type ItemEvent = {
|
||||
id: string
|
||||
title: string
|
||||
event_type?: string | null
|
||||
starts_on?: string | null
|
||||
ends_on?: string | null
|
||||
date_label?: string | null
|
||||
color?: string | null
|
||||
image?: string | null
|
||||
blurb?: string | null
|
||||
}
|
||||
|
||||
/** A schedule's tag (087). `tab` is whether it gets a tab of its own. */
|
||||
|
|
@ -89,6 +128,11 @@ export type ContentBlockItem = {
|
|||
items?: ContentBlockItem[]
|
||||
/** Its block's tags it has, by key (087). */
|
||||
tags?: string[]
|
||||
/** The event it is, and its place on the block's venue (088). */
|
||||
event_id?: string | null
|
||||
event?: ItemEvent | null
|
||||
location_key?: string | null
|
||||
place?: { venue_id: string; key: string; name: string } | null
|
||||
}
|
||||
|
||||
export type Link = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue