Skip to content

Commit 7fc5668

Browse files
authored
Merge pull request #20411 from Simek/tweaks-for-licons-type-generation
small tweaks for Lichess icons generation
2 parents 2ebec16 + d63576c commit 7fc5668

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bin/gen/licon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def gen_sources(codes):
147147
ts.write(f"export const {name} = '{chr(codes[name])}'; // {codes[name]:x}\n")
148148
scss.write(f"$licon-{name}: '{chr(codes[name])}'; // {codes[name]:x}\n")
149149
debug.write(f' <i title="{name}">&#x{codes[name]:x};</i>\n')
150-
types.write(f"declare type LiconType = { ' | '.join([f"'{chr(codes[name])}'" for name in codes]) }\n")
150+
types.write(f"declare type LiconType = { ' | '.join([f"'{chr(codes[name])}'" for name in codes]) };\n")
151151
debug.write(' </body>\n</html>\n')
152152

153153
def gen_fonts():

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"metals": "tail -F .metals/metals.log",
5353
"serverlog": "journalctl --user -fu lila -o cat & tail -F .metals/metals.log",
5454
"i18n-file-gen": "pnpx tsx bin/i18n-file-gen.ts",
55-
"icons-files-gen": "python3 bin/gen/licon.py",
55+
"icon-files-gen": "python3 bin/gen/licon.py",
5656
"multilog": "pnpm serverlog & ui/build -w",
5757
"add-hooks": "git config get --all core.hooksPath | grep -Fxq bin/git-hooks || git config set --append core.hooksPath bin/git-hooks",
5858
"remove-hooks": "git config unset --value=bin/git-hooks core.hooksPath || true"

ui/@types/lichess/licon.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
* licon.py) and then add it to your editor's font list.
1111
*/
1212

13-
declare type LiconType = '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | ''
13+
declare type LiconType = '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '' | '';

0 commit comments

Comments
 (0)