-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Tips for UI, translations, insights, swiss, accessibility
Javascripts and CSS:
ui/build --help
Read up on our custom package.json properties to learn how assets are built and linked.
- New translation keys are added in
translation/source/site.xmlin British English. - Then regenerate translation keys for Scala:
pnpm run trans-dump - Also update translation typings and objects for Javascript:
ui/build
Do not touch translations/dest/. New translations from crowdin will automatically be applied here.
If you need to add a new file to translation/source (for example to translate a completely new page), you also need to add the name of the file (without the extension):
In bin/trans-dump.ts:
here
In /build.sbt:
here
For an in-depth explanation of how the whole translation system works, see How translations work.
Import some puzzle data.
Create the default categories.
You need to install and run bbpPairings. Mind that Lichess uses cyanfish fork.
To set up a swiss tournament, you need to be a team leader. For the Lichess one's to be working properly it's advised to create the team of the official Lichess swiss.
mongorestore --db lichess-insight --collection insight insight.bson
- Register an account named
thibault. - Either play one rated game with it or hack this function.
- Access to
http://localhost:9663/insights/thibault/
bin/gen/licon.py --help
Extract all fonts as SVG
fontforge -lang=ff -c 'Open($1); SelectWorthOutputting(); foreach Export("svg"); endloop;' lichess.sfd
Where lichess.sfd is https://github.com/lichess-org/lila/blob/master/public/font/lichess.sfd
To activate Accessibility mode on lichess, press tab then enter on the homepage.
Most of the code is located in ui/nvui, and it is then loaded as a plugin.