forked from MapComplete/MapComplete
		
	Add support for smaller theme encodings
This commit is contained in:
		
							parent
							
								
									82a097fd14
								
							
						
					
					
						commit
						b108f99aab
					
				
					 7 changed files with 128 additions and 3 deletions
				
			
		
							
								
								
									
										12
									
								
								scripts/genKeys.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								scripts/genKeys.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,12 @@ | |||
| #! /bin/bash | ||||
| 
 | ||||
| # Generates all the keys that are frequently used in the JSON in order to compress them | ||||
| touch keys.csv | ||||
| for f in ../Customizations/JSON/*Json.ts | ||||
| do | ||||
|     echo "$f" | ||||
|     cat $f | tr -d "[]{}," | sed "s/^[ \t]*//" | grep -v "^/\?\*" | grep -v "import \.*" | grep -v "^export" | sed "s/?\?:.*//" >> keys.csv | ||||
| done | ||||
| cat keys.csv | wc -l | ||||
| cat keys.csv | sort | uniq | sed "s/^\(.*\)$/\"\1\",/" | tr -d "\n" | ||||
| rm keys.csv | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue