Add last missing ids

This commit is contained in:
Pieter Vander Vennet 2021-09-26 20:08:40 +02:00
parent 0ca19a5a03
commit d65257b2c5
8 changed files with 32 additions and 7 deletions

View file

@ -2,7 +2,7 @@ import {Utils} from "../Utils";
export default class Constants { export default class Constants {
public static vNumber = "0.9.13"; public static vNumber = "0.9.14";
// The user journey states thresholds when a new feature gets unlocked // The user journey states thresholds when a new feature gets unlocked
public static userJourney = { public static userJourney = {

View file

@ -276,9 +276,9 @@ export default class LayerConfig {
this.tagRenderings = trs(json.tagRenderings, false); this.tagRenderings = trs(json.tagRenderings, false);
const missingIds = json.tagRenderings.filter(tr => typeof tr !== "string" && tr["builtin"] === undefined && tr["id"] === undefined); const missingIds = json.tagRenderings?.filter(tr => typeof tr !== "string" && tr["builtin"] === undefined && tr["id"] === undefined) ?? [];
if(missingIds.length > 0){ if(missingIds.length > 0 && official){
console.error("Some tagRenderings of", this.id, "are missing an id:", missingIds) console.error("Some tagRenderings of", this.id, "are missing an id:", missingIds)
throw "Missing ids in tagrenderings" throw "Missing ids in tagrenderings"
} }

View file

@ -142,6 +142,7 @@
"id": "caravansites-name" "id": "caravansites-name"
}, },
{ {
"id": "caravansites-fee",
"question": { "question": {
"en": "Does this place charge a fee?", "en": "Does this place charge a fee?",
"it": "Ha una tariffa questo luogo?", "it": "Ha una tariffa questo luogo?",
@ -231,6 +232,7 @@
"id": "caravansites-charge" "id": "caravansites-charge"
}, },
{ {
"id": "caravansites-sanitary-dump",
"question": { "question": {
"en": "Does this place have a sanitary dump station?", "en": "Does this place have a sanitary dump station?",
"it": "Questo luogo ha una stazione per lo scarico delle acque?", "it": "Questo luogo ha una stazione per lo scarico delle acque?",
@ -301,6 +303,7 @@
"id": "caravansites-capacity" "id": "caravansites-capacity"
}, },
{ {
"id": "caravansites-internet",
"question": { "question": {
"en": "Does this place provide internet access?", "en": "Does this place provide internet access?",
"id": "Tempat ini berbagi akses Web?", "id": "Tempat ini berbagi akses Web?",
@ -368,6 +371,7 @@
] ]
}, },
{ {
"id": "caravansites-internet-fee",
"question": { "question": {
"en": "Do you have to pay for the internet access?", "en": "Do you have to pay for the internet access?",
"it": "Occorre pagare per avere laccesso a internet?", "it": "Occorre pagare per avere laccesso a internet?",
@ -418,6 +422,7 @@
} }
}, },
{ {
"id": "caravansites-toilets",
"question": { "question": {
"en": "Does this place have toilets?", "en": "Does this place have toilets?",
"it": "Questo luogo dispone di servizi igienici?", "it": "Questo luogo dispone di servizi igienici?",
@ -498,6 +503,7 @@
"id": "caravansites-website" "id": "caravansites-website"
}, },
{ {
"id": "caravansites-long-term",
"question": { "question": {
"en": "Does this place offer spots for long term rental?", "en": "Does this place offer spots for long term rental?",
"ru": "Предлагает ли эта площадка места для долгосрочной аренды?", "ru": "Предлагает ли эта площадка места для долгосрочной аренды?",
@ -689,6 +695,7 @@
"tagRenderings": [ "tagRenderings": [
"images", "images",
{ {
"id": "dumpstations-fee",
"question": { "question": {
"en": "Does this place charge a fee?", "en": "Does this place charge a fee?",
"ru": "Взимается ли в этом месте плата?", "ru": "Взимается ли в этом месте плата?",
@ -758,6 +765,7 @@
"id": "dumpstations-charge" "id": "dumpstations-charge"
}, },
{ {
"id": "dumpstations-waterpoint",
"question": { "question": {
"en": "Does this place have a water point?", "en": "Does this place have a water point?",
"ru": "Есть ли в этом месте водоснабжение?", "ru": "Есть ли в этом месте водоснабжение?",
@ -800,6 +808,7 @@
] ]
}, },
{ {
"id": "dumpstations-grey-water",
"question": { "question": {
"en": "Can you dispose of grey water here?", "en": "Can you dispose of grey water here?",
"ru": "Можно ли здесь утилизировать серую воду?", "ru": "Можно ли здесь утилизировать серую воду?",
@ -839,6 +848,7 @@
] ]
}, },
{ {
"id": "dumpstations-chemical-waste",
"question": { "question": {
"en": "Can you dispose of chemical toilet waste here?", "en": "Can you dispose of chemical toilet waste here?",
"ru": "Можно ли здесь утилизировать отходы химических туалетов?", "ru": "Можно ли здесь утилизировать отходы химических туалетов?",
@ -881,6 +891,7 @@
] ]
}, },
{ {
"id": "dumpstations-access",
"question": { "question": {
"en": "Who can use this dump station?", "en": "Who can use this dump station?",
"ja": "このゴミ捨て場は誰が使えるんですか?", "ja": "このゴミ捨て場は誰が使えるんですか?",

View file

@ -142,6 +142,7 @@
"id": "climbing_club-name" "id": "climbing_club-name"
}, },
{ {
"id": "minimap",
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
}, },
"website", "website",
@ -266,6 +267,7 @@
"images", "images",
"questions", "questions",
{ {
"id": "minimap",
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
}, },
{ {
@ -359,6 +361,7 @@
"images", "images",
"questions", "questions",
{ {
"id": "minimap",
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
}, },
{ {
@ -619,6 +622,7 @@
"images", "images",
"questions", "questions",
{ {
"id": "minimap",
"render": "{minimap(18, id, _contained_climbing_route_ids): height: 9rem; overflow: hidden; border-radius:3rem; }" "render": "{minimap(18, id, _contained_climbing_route_ids): height: 9rem; overflow: hidden; border-radius:3rem; }"
}, },
{ {
@ -835,9 +839,11 @@
}, },
"tagRenderings": [ "tagRenderings": [
{ {
"id": "minimap",
"render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }" "render": "{minimap(18): height: 5rem; overflow: hidden; border-radius:3rem; }"
}, },
{ {
"id": "climbing-opportunity-name",
"render": { "render": {
"en": "<strong>{name}</strong>", "en": "<strong>{name}</strong>",
"de": "<strong>{name}</strong>", "de": "<strong>{name}</strong>",
@ -851,6 +857,7 @@
"condition": "name~*" "condition": "name~*"
}, },
{ {
"id": "climbing-possible",
"question": { "question": {
"en": "Is climbing possible here?", "en": "Is climbing possible here?",
"de": "Kann hier geklettert werden?", "de": "Kann hier geklettert werden?",

View file

@ -90,12 +90,11 @@
"id": "cycle_highways-state" "id": "cycle_highways-state"
}, },
{ {
"id": "cycle-highway-length",
"render": "This part is {_length:km}km long" "render": "This part is {_length:km}km long"
}, },
"website", "website",
{ "all_tags"
"render": "{all_tags()}"
}
], ],
"name": { "name": {
"en": "cycle highways" "en": "cycle highways"

View file

@ -129,6 +129,7 @@
"id": "facadegardens-direction" "id": "facadegardens-direction"
}, },
{ {
"id": "facadegardens-sunshine",
"mappings": [ "mappings": [
{ {
"if": { "if": {
@ -184,6 +185,7 @@
} }
}, },
{ {
"id": "facadegardens-rainbarrel",
"question": { "question": {
"nl": "Is er een regenton voorzien bij het tuintje?", "nl": "Is er een regenton voorzien bij het tuintje?",
"en": "Is there a water barrel installed for the garden?", "en": "Is there a water barrel installed for the garden?",
@ -246,6 +248,7 @@
"id": "facadegardens-start_date" "id": "facadegardens-start_date"
}, },
{ {
"id": "facadegardens-edible",
"mappings": [ "mappings": [
{ {
"if": { "if": {
@ -285,6 +288,7 @@
} }
}, },
{ {
"id": "facadegardens-plants",
"question": { "question": {
"nl": "Wat voor planten staan hier?", "nl": "Wat voor planten staan hier?",
"en": "What kinds of plants grow here?", "en": "What kinds of plants grow here?",

View file

@ -49,6 +49,7 @@
}, },
"tagRenderings": [ "tagRenderings": [
{ {
"id": "is_makerspace",
"question": { "question": {
"en": "Is this a hackerspace or a makerspace?" "en": "Is this a hackerspace or a makerspace?"
}, },
@ -109,6 +110,7 @@
}, },
"wheelchair-access", "wheelchair-access",
{ {
"id": "hs-club-mate",
"question": { "question": {
"en": "Does this hackerspace serve Club Mate?" "en": "Does this hackerspace serve Club Mate?"
}, },
@ -130,7 +132,7 @@
] ]
}, },
"then": { "then": {
"en": "This hackerspace is not worthy of the name hackerspace as it does not serve club mate" "en": "This hackerspace does not serve club mate"
} }
} }
] ]

View file

@ -262,10 +262,12 @@
"overrideAll": { "overrideAll": {
"+tagRenderings": [ "+tagRenderings": [
{ {
"id": "part-of-walk",
"render": "Maakt deel uit van {_part_of_walking_routes}", "render": "Maakt deel uit van {_part_of_walking_routes}",
"condition": "_part_of_walking_routes~*" "condition": "_part_of_walking_routes~*"
}, },
{ {
"id": "has-video",
"freeform": { "freeform": {
"key": "_video:id" "key": "_video:id"
}, },