mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
small tweaks for Lichess icons generation
This commit is contained in:
+1
-1
@@ -147,7 +147,7 @@ def gen_sources(codes):
|
||||
ts.write(f"export const {name} = '{chr(codes[name])}'; // {codes[name]:x}\n")
|
||||
scss.write(f"$licon-{name}: '{chr(codes[name])}'; // {codes[name]:x}\n")
|
||||
debug.write(f' <i title="{name}">&#x{codes[name]:x};</i>\n')
|
||||
types.write(f"declare type LiconType = { ' | '.join([f"'{chr(codes[name])}'" for name in codes]) }\n")
|
||||
types.write(f"declare type LiconType = { ' | '.join([f"'{chr(codes[name])}'" for name in codes]) };\n")
|
||||
debug.write(' </body>\n</html>\n')
|
||||
|
||||
def gen_fonts():
|
||||
|
||||
+1
-1
@@ -52,7 +52,7 @@
|
||||
"metals": "tail -F .metals/metals.log",
|
||||
"serverlog": "journalctl --user -fu lila -o cat & tail -F .metals/metals.log",
|
||||
"i18n-file-gen": "pnpx tsx bin/i18n-file-gen.ts",
|
||||
"icons-files-gen": "python3 bin/gen/licon.py",
|
||||
"icon-files-gen": "python3 bin/gen/licon.py",
|
||||
"multilog": "pnpm serverlog & ui/build -w",
|
||||
"add-hooks": "git config get --all core.hooksPath | grep -Fxq bin/git-hooks || git config set --append core.hooksPath bin/git-hooks",
|
||||
"remove-hooks": "git config unset --value=bin/git-hooks core.hooksPath || true"
|
||||
|
||||
Vendored
+1
-1
@@ -10,4 +10,4 @@
|
||||
* licon.py) and then add it to your editor's font list.
|
||||
*/
|
||||
|
||||
declare type LiconType = '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | ''
|
||||
declare type LiconType = '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '';
|
||||
|
||||
Reference in New Issue
Block a user