A preset page loads only poster-sections.js, so a preset of a poster type registered by another plugin's script (upg100-list) could only say No posters. The generator now gives no presets to a type whose file is not on the tree, and check:poster-sections fails on any such preset: 9 presets remain (7 regions, all regions, configure). The tree generator writes a page per preset but never deletes one, so the dropped presets' pages (the 10 upg100 ones and countries-other) are removed, and a new arm holds the built preset pages to exactly the presets.
77 lines
2.4 KiB
JSON
77 lines
2.4 KiB
JSON
{
|
||
"//": "Presets of the poster-sections parameterized profile (capability 2, the same shape as doxa-simple-map's simple-map.instances.json). ONE profile, one preset per row: a poster type × a region (scope; 'all' = one section per region). The build emits a standalone page and embed snippet per preset at poster-sections/poster-sections/<id>/index.html and lists them in manifest.json. GENERATED by `bun run gen:poster-sections-presets` from each poster type's own scopes(), and check:poster-sections holds it to them: country posters = DX Life's /regions regions; a type joins once its type file is on the tree and its page can load it. 'configure' adds the panel of choices and Copy embed, a tool for making new presets.",
|
||
"profile": "poster-sections",
|
||
"instances": [
|
||
{
|
||
"id": "countries-all",
|
||
"title": "Country posters — all regions",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "all"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-asia",
|
||
"title": "Country posters — Asia",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "asia"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-middle-east",
|
||
"title": "Country posters — Middle East",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "middle-east"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-latin-america-and-caribbean",
|
||
"title": "Country posters — Latin America & Caribbean",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "latin-america-and-caribbean"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-africa",
|
||
"title": "Country posters — Africa",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "africa"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-europe",
|
||
"title": "Country posters — Europe",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "europe"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-north-america-and-non-spanish-caribbean",
|
||
"title": "Country posters — North America & Non-Spanish Caribbean",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "north-america-and-non-spanish-caribbean"
|
||
}
|
||
},
|
||
{
|
||
"id": "countries-oceania",
|
||
"title": "Country posters — Oceania",
|
||
"props": {
|
||
"type": "country",
|
||
"scope": "oceania"
|
||
}
|
||
},
|
||
{
|
||
"id": "configure",
|
||
"title": "Configure — make a new preset",
|
||
"props": {
|
||
"configure": true
|
||
}
|
||
}
|
||
]
|
||
}
|