refactoring: fix special renderings (partly), deprecate
This commit is contained in:
parent
9b2f92dedc
commit
aaaaf1948d
15 changed files with 160 additions and 95 deletions
|
@ -233,6 +233,18 @@ class LayerOverviewUtils {
|
|||
}
|
||||
const doesImageExist = new DoesImageExist(licensePaths, existsSync)
|
||||
const sharedLayers = this.buildLayerIndex(doesImageExist, forceReload)
|
||||
|
||||
const priviliged = new Set<string>(Constants.priviliged_layers)
|
||||
sharedLayers.forEach((_, key) => {
|
||||
priviliged.delete(key)
|
||||
})
|
||||
if (priviliged.size > 0) {
|
||||
throw (
|
||||
"Priviliged layer " +
|
||||
Array.from(priviliged).join(", ") +
|
||||
" has no definition file, create it at `assets/layers/<layername>/<layername.json>"
|
||||
)
|
||||
}
|
||||
const recompiledThemes: string[] = []
|
||||
const sharedThemes = this.buildThemeIndex(
|
||||
licensePaths,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue