forked from MapComplete/MapComplete
Merge master
This commit is contained in:
commit
e7cecc26d9
72 changed files with 12282 additions and 720 deletions
|
@ -6,6 +6,7 @@ import { Utils } from "../src/Utils"
|
|||
import Validators from "../src/UI/InputElement/Validators"
|
||||
import { AllKnownLayouts } from "../src/Customizations/AllKnownLayouts"
|
||||
import { AllSharedLayers } from "../src/Customizations/AllSharedLayers"
|
||||
import Constants from "../src/Models/Constants"
|
||||
|
||||
const metainfo = {
|
||||
type: "One of the inputValidator types",
|
||||
|
@ -199,11 +200,12 @@ function extractHintsFrom(
|
|||
|
||||
if (hints["suggestions"]) {
|
||||
const suggestions = hints["suggestions"]
|
||||
const f = new Function("{ layers, themes, validators }", suggestions)
|
||||
const f = new Function("{ layers, themes, validators, Constants }", suggestions)
|
||||
hints["suggestions"] = f({
|
||||
layers: AllSharedLayers.sharedLayers,
|
||||
themes: AllKnownLayouts.allKnownLayouts,
|
||||
validators: Validators,
|
||||
Constants: Constants
|
||||
})
|
||||
}
|
||||
return hints
|
||||
|
|
|
@ -16,9 +16,9 @@ export NODE_OPTIONS="--max-old-space-size=16384"
|
|||
npm run generate:editor-layer-index &&
|
||||
npm run prep:layeroverview &&
|
||||
npm run generate && # includes a single "refresh:layeroverview". Resetting the files is unnecessary as they are not in there in the first place
|
||||
npm run generate:mapcomplete-changes-theme &&
|
||||
npm run refresh:layeroverview && # run refresh:layeroverview a second time to propagate all calls
|
||||
npm run refresh:layeroverview && # run refresh:layeroverview a third time to fix some issues with the favourite layer all calls
|
||||
npm run generate:mapcomplete-changes-theme &&
|
||||
|
||||
npm run generate:layouts
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue