Add support for smaller theme encodings

This commit is contained in:
Pieter Vander Vennet 2021-04-04 03:22:56 +02:00
parent 82a097fd14
commit b108f99aab
7 changed files with 128 additions and 3 deletions

12
scripts/genKeys.sh Executable file
View 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