forked from MapComplete/MapComplete
		
	Full code cleanup
This commit is contained in:
		
							parent
							
								
									8e6ee8c87f
								
							
						
					
					
						commit
						bd21212eba
					
				
					 246 changed files with 19418 additions and 11729 deletions
				
			
		|  | @ -1,8 +1,5 @@ | |||
| 
 | ||||
| import ScriptUtils from "./ScriptUtils"; | ||||
| import {writeFileSync} from "fs"; | ||||
| import {LayerConfigJson} from "../Models/ThemeConfig/Json/LayerConfigJson"; | ||||
| import LineRenderingConfigJson from "../Models/ThemeConfig/Json/LineRenderingConfigJson"; | ||||
| import LegacyJsonConvert from "../Models/ThemeConfig/LegacyJsonConvert"; | ||||
| 
 | ||||
| /* | ||||
|  | @ -12,12 +9,12 @@ import LegacyJsonConvert from "../Models/ThemeConfig/LegacyJsonConvert"; | |||
| 
 | ||||
| const layerFiles = ScriptUtils.getLayerFiles(); | ||||
| for (const layerFile of layerFiles) { | ||||
|     LegacyJsonConvert.    fixLayerConfig(layerFile.parsed) | ||||
|     LegacyJsonConvert.fixLayerConfig(layerFile.parsed) | ||||
|     writeFileSync(layerFile.path, JSON.stringify(layerFile.parsed, null, "    ")) | ||||
| } | ||||
| 
 | ||||
| const themeFiles = ScriptUtils.getThemeFiles() | ||||
| for (const themeFile of themeFiles) { | ||||
|    LegacyJsonConvert.fixThemeConfig(themeFile.parsed) | ||||
|     LegacyJsonConvert.fixThemeConfig(themeFile.parsed) | ||||
|     writeFileSync(themeFile.path, JSON.stringify(themeFile.parsed, null, "  ")) | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue