Fix build, reset languages, more autocleanup

This commit is contained in:
pietervdvn 2021-09-09 00:19:39 +02:00
parent 78d6482c88
commit c7f9f30b6c
58 changed files with 21719 additions and 21659 deletions

View file

@ -1,22 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 17.0.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="35px" height="32px" viewBox="0 0 35 32" enable-background="new 0 0 35 32" xml:space="preserve">
<g>
<path fill="#828282" d="M27.464,2.314c-0.053-0.132-0.159-0.235-0.292-0.284c-0.133-0.048-0.281-0.039-0.406,0.027L14.86,8.339
c-0.224,0.118-0.324,0.385-0.233,0.621l0.245,0.641L7.999,13.37C7.774,13.493,7.679,13.765,7.777,14l0.228,0.549l-7.299,3.488
c-0.24,0.115-0.348,0.397-0.246,0.643l1.498,3.61c0.08,0.192,0.265,0.309,0.462,0.309c0.056,0,0.112-0.009,0.167-0.029l7.625-2.701
l0.228,0.549c0.079,0.191,0.264,0.309,0.462,0.309c0.046,0,0.092-0.006,0.139-0.02l7.276-2.097l0.218,0.569
C18.609,19.376,18.798,19.5,19,19.5c0.049,0,0.098-0.007,0.147-0.022l13-4c0.134-0.041,0.244-0.136,0.304-0.262
c0.06-0.126,0.065-0.272,0.013-0.401L27.464,2.314z M2.7,21.469l-1.134-2.734l6.823-3.261l1.439,3.47L2.7,21.469z M11.191,19.623
l-0.238-0.574c0,0,0,0,0,0L9.11,14.604c0,0,0,0,0,0l-0.238-0.573l6.336-3.475l2.374,6.134l0.375,0.981L11.191,19.623z M19.3,18.385
l-0.203-0.531c-0.003-0.011-0.001-0.024-0.006-0.035l-0.618-1.597l-2.754-7.206l11.023-5.815l4.592,11.48L19.3,18.385z"/>
<path fill="#828282" d="M28.964,0.314c-0.103-0.257-0.395-0.381-0.65-0.279c-0.256,0.103-0.381,0.394-0.279,0.65l6,15
C34.114,15.881,34.302,16,34.5,16c0.062,0,0.125-0.011,0.186-0.036c0.256-0.103,0.381-0.394,0.279-0.65L28.964,0.314z"/>
<path fill="#828282" d="M18,21h-3c-1.14,0-2,0.86-2,2v1.315l-5.879,6.859c-0.18,0.209-0.156,0.525,0.054,0.705
C7.269,31.96,7.385,32,7.5,32c0.141,0,0.281-0.059,0.379-0.175L13.73,25H16v6.5c0,0.276,0.224,0.5,0.5,0.5s0.5-0.224,0.5-0.5V25
h2.27l5.85,6.825C25.219,31.941,25.359,32,25.5,32c0.115,0,0.231-0.04,0.325-0.121c0.21-0.18,0.234-0.495,0.054-0.705L20,24.315
v-1.24C20,21.912,19.122,21,18,21z M19,24h-5v-1c0-0.589,0.411-1,1-1h3c0.57,0,1,0.462,1,1.075V24z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.1 KiB

View file

@ -46,10 +46,24 @@
"en": "How much does one have to pay to use these binoculars?",
"nl": "Hoeveel moet men betalen om deze verrekijker te gebruiken?"
}
},
{
"question": {
"en": "When looking through this binocular, in what direction does one look?",
"nl": "Welke richting kijkt men uit als men door deze verrekijker kijkt?"
},
"render": {
"en": "Looks towards {direction}°",
"nl": "Kijkt richting {direction}°"
},
"freeform": {
"key": "direction",
"type": "direction"
}
}
],
"icon": {
"render": "circle:white;./assets/layers/binocular/Line-style-icons-telescope.svg"
"render": "circle:white;./assets/layers/binocular/telescope.svg"
},
"width": {
"render": "8"

View file

@ -1,15 +1,4 @@
[
{
"path": "Line-style-icons-telescope.svg",
"license": "GPL",
"authors": [
"Kenny Sing/Elegant Themes"
],
"sources": [
"https://upload.wikimedia.org/wikipedia/commons/b/b1/Line-style-icons-telescope.svg",
"https://www.elegantthemes.com/blog/freebie-of-the-week/free-line-style-icons"
]
},
{
"path": "binoculars_example.jpg",
"license": "CC-BY-SA 4.0",
@ -19,5 +8,16 @@
"sources": [
"https://upload.wikimedia.org/wikipedia/commons/a/a0/Coin-operated_binocular_at_Cape_of_Good_Hope_%2801%29.jpg"
]
},
{
"path": "telescope.svg",
"license": "GPL",
"authors": [
"Kenny Sing/Elegant Themes"
],
"sources": [
"https://upload.wikimedia.org/wikipedia/commons/b/b1/Line-style-icons-telescope.svg",
"https://www.elegantthemes.com/blog/freebie-of-the-week/free-line-style-icons"
]
}
]

View file

@ -39,8 +39,7 @@
}
]
},
"presets": [
],
"presets": [],
"title": {
"render": {
"nl": "Café"

View file

@ -17,7 +17,7 @@
"nl"
],
"maintainer": "",
"icon": "./assets/themes/binoculars/Line-style-icons-telescope.svg",
"icon": "./assets/layers/binocular/telescope.svg",
"version": "0",
"startLat": 0,
"startLon": 0,

View file

@ -23,7 +23,10 @@
"widenFactor": 0.2,
"layers": [
{
"builtin": ["food", "cafe_pub"],
"builtin": [
"food",
"cafe_pub"
],
"override": {
"minzoom": 16
}

View file

@ -63,4 +63,4 @@
"type": "image/svg"
}
]
}
}

View file

@ -790,6 +790,34 @@
}
}
},
"binocular": {
"name": "Binoculars",
"title": {
"render": "Binoculars"
},
"description": "Binoculas",
"tagRenderings": {
"1": {
"mappings": {
"0": {
"then": "Free to use"
}
},
"render": "Using these binoculars costs {charge}",
"question": "How much does one have to pay to use these binoculars?"
},
"2": {
"question": "When looking through this binocular, in what direction does one look?",
"render": "Looks towards {direction}°"
}
},
"presets": {
"0": {
"title": "Binoculars",
"description": "A telescope or pair of binoculars mounted on a pole, available to the public to look around. <img src='./assets/layers/binocular/binoculars_example.jpg' style='height: 200px' />"
}
}
},
"birdhide": {
"filter": {
"0": {

View file

@ -786,6 +786,34 @@
}
}
},
"binocular": {
"name": "Verrekijkers",
"title": {
"render": "Verrekijker"
},
"description": "Verrekijkers",
"tagRenderings": {
"1": {
"mappings": {
"0": {
"then": "Gratis te gebruiken"
}
},
"render": "Deze verrekijker gebruiken kost {charge}",
"question": "Hoeveel moet men betalen om deze verrekijker te gebruiken?"
},
"2": {
"question": "Welke richting kijkt men uit als men door deze verrekijker kijkt?",
"render": "Kijkt richting {direction}°"
}
},
"presets": {
"0": {
"title": "Verrekijker",
"description": "Een telescoop of verrekijker die op een vaste plaats gemonteerd staat waar iedereen door mag kijken. <img src='./assets/layers/binocular/binoculars_example.jpg' style='height: 200px' />"
}
}
},
"birdhide": {
"name": "Vogelkijkhutten",
"title": {

View file

@ -96,6 +96,11 @@
"shortDescription": "Bike monitoring stations with live data from Brussels Mobility",
"description": "This theme shows bike monitoring stations with live data"
},
"binoculars": {
"title": "Binoculars",
"shortDescription": "A map with fixed binoculars",
"description": "A map with binoculars fixed in place with a pole. It can typically be found on touristic locations, viewpoints, on top of panoramic towers or occasionally on a nature reserve."
},
"bookcases": {
"title": "Open Bookcase Map",
"description": "A public bookcase is a small streetside cabinet, box, old phone boot or some other objects where books are stored. Everyone can place or take a book. This map aims to collect all these bookcases. You can discover new bookcases nearby and, with a free OpenStreetMap account, quickly add your favourite bookcases."

View file

@ -100,6 +100,11 @@
"shortDescription": "Fietstelstations met live data van Brussels Mobiliteit",
"description": "Dit thema toont fietstelstations met live data"
},
"binoculars": {
"title": "Verrekijkers",
"shortDescription": "Een kaart met publieke verrekijker",
"description": "Een kaart met verrekijkers die op een vaste plaats zijn gemonteerd"
},
"bookcases": {
"title": "Open Boekenruilkastenkaart",
"description": "Een boekenruilkast is een kastje waar iedereen een boek kan nemen of achterlaten. Op deze kaart kan je deze boekenruilkasten terugvinden en met een gratis OpenStreetMap-account, ook boekenruilkasten toevoegen of informatie verbeteren"

View file

@ -1,5 +1,6 @@
// We HAVE to mark this while importing
import {Utils} from "../Utils";
// We HAVE to mark this while importing
Utils.runningFromConsole = true;
import {existsSync, mkdirSync, readFileSync, writeFile, writeFileSync} from "fs";
import Locale from "../UI/i18n/Locale";
import Translations from "../UI/i18n/Translations";
@ -9,7 +10,6 @@ import * as all_known_layouts from "../assets/generated/known_layers_and_themes.
import {LayoutConfigJson} from "../Models/ThemeConfig/Json/LayoutConfigJson";
import LayoutConfig from "../Models/ThemeConfig/LayoutConfig";
Utils.runningFromConsole = true;
const sharp = require('sharp');

View file

@ -1,4 +1,5 @@
import {Utils} from "../Utils";
Utils.runningFromConsole = true;
import TagSpec from "./Tag.spec";
import ImageAttributionSpec from "./ImageAttribution.spec";
import GeoOperationsSpec from "./GeoOperations.spec";
@ -13,7 +14,6 @@ import OsmObjectSpec from "./OsmObject.spec";
import ScriptUtils from "../scripts/ScriptUtils";
import UnitsSpec from "./Units.spec";
Utils.runningFromConsole = true;
export default class TestAll {