Fix charging stations theme

This commit is contained in:
Pieter Vander Vennet 2021-09-26 21:25:34 +02:00
parent 2240c0ab7c
commit 8b5c0c64cd
4 changed files with 3120 additions and 2 deletions

File diff suppressed because it is too large Load diff

View file

@ -229,7 +229,7 @@ function run(file, protojson) {
const stringified = questions.map(q => JSON.stringify(q, null, " "))
let protoString = readFileSync(protojson, "utf8")
protoString = protoString.replace("{\"#\": \"$$$\"}", stringified.join(",\n"))
protoString = protoString.replace("{\"id\": \"$$$\"}", stringified.join(",\n"))
const proto = <LayerConfigJson> JSON.parse(protoString)
proto.tagRenderings.forEach(tr => {
if(typeof tr === "string"){