forked from MapComplete/MapComplete
Merge branch 'master' into develop
This commit is contained in:
commit
9a4cdaf1ad
192 changed files with 9167 additions and 12079 deletions
|
@ -22,7 +22,7 @@ import { PrepareTheme } from "../Models/ThemeConfig/Conversion/PrepareTheme"
|
|||
import { DesugaringContext } from "../Models/ThemeConfig/Conversion/Conversion"
|
||||
import { Utils } from "../Utils"
|
||||
import { AllKnownLayouts } from "../Customizations/AllKnownLayouts"
|
||||
import {Script} from "vm";
|
||||
import { Script } from "vm"
|
||||
|
||||
// This scripts scans 'assets/layers/*.json' for layer definition files and 'assets/themes/*.json' for theme definition files.
|
||||
// It spits out an overview of those to be used to load them
|
||||
|
@ -205,15 +205,17 @@ class LayerOverviewUtils {
|
|||
"assets/SocialImageBanner.svg",
|
||||
"assets/SocialImageRepo.svg",
|
||||
"assets/svg/osm-logo.svg",
|
||||
"assets/templates/*"
|
||||
"assets/templates/*",
|
||||
]
|
||||
for (const path of allSvgs) {
|
||||
if (exempt.some((p) => {
|
||||
if(p.endsWith("*") && path.startsWith("./"+p.substring(0, p.length - 1))){
|
||||
return true
|
||||
}
|
||||
return "./" + p === path;
|
||||
})) {
|
||||
if (
|
||||
exempt.some((p) => {
|
||||
if (p.endsWith("*") && path.startsWith("./" + p.substring(0, p.length - 1))) {
|
||||
return true
|
||||
}
|
||||
return "./" + p === path
|
||||
})
|
||||
) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
@ -297,10 +299,13 @@ class LayerOverviewUtils {
|
|||
|
||||
this.checkAllSvgs()
|
||||
|
||||
new DetectDuplicateFilters().convertStrict({
|
||||
layers: ScriptUtils.getLayerFiles().map(f => f.parsed),
|
||||
themes: ScriptUtils.getThemeFiles().map(f => f.parsed)
|
||||
}, "GenerateLayerOverview:")
|
||||
new DetectDuplicateFilters().convertStrict(
|
||||
{
|
||||
layers: ScriptUtils.getLayerFiles().map((f) => f.parsed),
|
||||
themes: ScriptUtils.getThemeFiles().map((f) => f.parsed),
|
||||
},
|
||||
"GenerateLayerOverview:"
|
||||
)
|
||||
|
||||
if (AllKnownLayouts.getSharedLayersConfigs().size == 0) {
|
||||
console.error("This was a bootstrapping-run. Run generate layeroverview again!")
|
||||
|
|
|
@ -262,10 +262,8 @@ function main(args: string[]) {
|
|||
}
|
||||
|
||||
let contents = ScriptUtils.readDirRecSync("./assets")
|
||||
.filter(p => !p.startsWith("./assets/templates/"))
|
||||
.filter(
|
||||
(entry) => entry.indexOf("./assets/generated") != 0
|
||||
)
|
||||
.filter((p) => !p.startsWith("./assets/templates/"))
|
||||
.filter((entry) => entry.indexOf("./assets/generated") != 0)
|
||||
let licensePaths = contents.filter((entry) => entry.indexOf("license_info.json") >= 0)
|
||||
let licenseInfos = generateLicenseInfos(licensePaths)
|
||||
|
||||
|
|
|
@ -588,7 +588,7 @@ function MergeTranslation(source: any, target: any, language: string, context: s
|
|||
continue
|
||||
}
|
||||
|
||||
if(sourceV === ""){
|
||||
if (sourceV === "") {
|
||||
console.log("Ignoring empty string in the translations")
|
||||
}
|
||||
|
||||
|
|
|
@ -108,10 +108,11 @@ function main() {
|
|||
{
|
||||
id: "tactile_writing-braille",
|
||||
// @ts-ignore
|
||||
description: "Enables to pick *multiple* 'tactile_writing:braille=<lng>' within the mappings",
|
||||
description:
|
||||
"Enables to pick *multiple* 'tactile_writing:braille=<lng>' within the mappings",
|
||||
multiAnswer: true,
|
||||
mappings: brailemappings,
|
||||
}
|
||||
},
|
||||
],
|
||||
}
|
||||
const dir = "./assets/layers/wikidata/"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue