forked from MapComplete/MapComplete
		
	Merge branch 'develop'
# Conflicts: # assets/themes/climbing/climbing.json # assets/themes/mapcomplete-changes/mapcomplete-changes.json # css/index-tailwind-output.css
This commit is contained in:
		
						commit
						ecba715265
					
				
					 90 changed files with 2564 additions and 2545 deletions
				
			
		|  | @ -169,6 +169,9 @@ class LayerOverviewUtils { | |||
|         } | ||||
| 
 | ||||
|         this.checkAllSvgs() | ||||
| 
 | ||||
|         const green = s => '\x1b[92m' + s + '\x1b[0m' | ||||
|         console.log(green("All done!")) | ||||
|     } | ||||
| 
 | ||||
|     private buildLayerIndex(knownImagePaths: Set<string>): Map<string, LayerConfigJson> { | ||||
|  | @ -216,16 +219,22 @@ class LayerOverviewUtils { | |||
|             const themePath = themeInfo.path | ||||
| 
 | ||||
|             new PrevalidateTheme().convertStrict(themeFile, themePath) | ||||
|             themeFile = new PrepareTheme(convertState).convertStrict(themeFile, themePath) | ||||
| 
 | ||||
|             if(knownImagePaths === undefined){ | ||||
|                 throw "Could not load known images/licenses" | ||||
|             try{ | ||||
|                  | ||||
|                 themeFile = new PrepareTheme(convertState).convertStrict(themeFile, themePath) | ||||
|      | ||||
|                 if(knownImagePaths === undefined){ | ||||
|                     throw "Could not load known images/licenses" | ||||
|                 } | ||||
|                 new ValidateThemeAndLayers(knownImagePaths, themePath, true, convertState.tagRenderings) | ||||
|                     .convertStrict(themeFile, themePath) | ||||
|      | ||||
|                 this.writeTheme(themeFile) | ||||
|                 fixed.set(themeFile.id, themeFile) | ||||
|             }catch(e){ | ||||
|                 console.error("ERROR: could not prepare theme "+themePath+" due to "+e) | ||||
|                 throw e; | ||||
|             } | ||||
|             new ValidateThemeAndLayers(knownImagePaths, themePath, true, convertState.tagRenderings) | ||||
|                 .convertStrict(themeFile, themePath) | ||||
| 
 | ||||
|             this.writeTheme(themeFile) | ||||
|             fixed.set(themeFile.id, themeFile) | ||||
|         } | ||||
| 
 | ||||
|         this.writeSmallOverview(Array.from(fixed.values()).map(t => { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue