Merge master branch

This commit is contained in:
pietervdvn 2021-04-05 20:57:36 +02:00
commit cee05d9c9b
4 changed files with 21 additions and 7 deletions

View file

@ -1,11 +1,15 @@
import {AndOrTagConfigJson} from "./TagConfigJson"; import {AndOrTagConfigJson} from "./TagConfigJson";
/**
* A TagRenderingConfigJson is a single piece of code which converts one ore more tags into a HTML-snippet.
* If the desired tags are missing and a question is defined, a question will be shown instead.
*/
export interface TagRenderingConfigJson { export interface TagRenderingConfigJson {
/** /**
* Renders this value. Note that "{key}"-parts are substituted by the corresponding values of the element. * Renders this value. Note that "{key}"-parts are substituted by the corresponding values of the element.
* If neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value. * If neither 'textFieldQuestion' nor 'mappings' are defined, this text is simply shown as default value.
* *
* Note that this is a HTML-interpreted value, so you can add links as e.g. <a href='{website}'>{website}</a> * Note that this is a HTML-interpreted value, so you can add links as e.g. '<a href='{website}'>{website}</a>' or include images such as `This is of type A <br><img src='typeA-icon.svg' />`
*/ */
render?: string | any, render?: string | any,

View file

@ -2,7 +2,7 @@ import { Utils } from "../Utils";
export default class Constants { export default class Constants {
public static vNumber = "0.6.5"; public static vNumber = "0.6.5c";
// 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

@ -125,7 +125,12 @@
"nl": "Toegankelijkheid is {access}", "nl": "Toegankelijkheid is {access}",
"de": "Zugang ist {access}" "de": "Zugang ist {access}"
}, },
"condition": "indoor=yes", "condition": {
"or": [
"indoor=yes",
"access~*"
]
},
"freeform": { "freeform": {
"key": "access", "key": "access",
"addExtraTags": [ "addExtraTags": [
@ -209,7 +214,10 @@
} }
}, },
{ {
"render": "{defibrillator:location}", "render": {
"nl": "<i>Meer informatie over de locatie:</i><br/>{defibrillator:location}",
"en": "<i>Extra information about the location:</i><br/>{defibrillator:location}"
},
"question": { "question": {
"en": "Please give some explanation on where the defibrillator can be found", "en": "Please give some explanation on where the defibrillator can be found",
"ca": "Dóna detalls d'on es pot trobar el desfibril·lador", "ca": "Dóna detalls d'on es pot trobar el desfibril·lador",

View file

@ -223,7 +223,9 @@
} }
} }
] ]
} },
"questions",
"reviews"
], ],
"icon": { "icon": {
"render": "./assets/themes/fritures/fries.svg" "render": "./assets/themes/fritures/fries.svg"