Commit Graph

10283 Commits (deepcrayonfish)

Author SHA1 Message Date
Maxwell Rosenberg 2a34b6a3f0 hide rating range in lobby pools if showRatings disabled 2021-12-11 21:39:05 +01:00
Niklas Fiekas f1c3aff3f0 increase fishnet maxPlies (closes #10199, #3961) 2021-12-11 16:52:56 +01:00
Niklas Fiekas 4ee19711c9 fix analysis of long games is always partial (fixes #10223) 2021-12-11 16:40:37 +01:00
Niklas Fiekas cfc3534de7 fixup mobile image height 2021-12-07 23:10:06 +01:00
Carlton McFarlane ece789bbf8
Update mobile screenshot (#10204)
* Update screenshot and styles on mobile page

* Add IntelliJ files to .gitignore

* Add improved mobile image. Reinstate inline styles in mobile.scala template
2021-12-07 14:49:06 +01:00
Niklas Fiekas 744abd80cc scalafmt and prettier 2021-12-06 23:33:35 +01:00
Gian-Carlo Pascutto f5463f8686 Improve maximum hash table memory estimation.
Some browsers don't report navigator.deviceMemory to keep
fingerprintability to a minimum. Currently, lila assumes that
such a machine provides at most 256MB RAM, thus setting a 32MB
max hashtable limit.

This was a reasonable starting point when Stockfish was pure
JavaScript in a single thread, but with up 16 core WASM support
this limitation is a bit more painful.

Modify the memory estimation: if the browser is modern enough to
have full WASM/SharedArrayBuffer support, and thus run the
parallel WASM versions, assume the machine has at least 2GB of
RAM. If it doesn't, assume 512MB. This gives a maximum hashtable
of 256MB and 64MB, respectively.

The assumed minimum RAM values roughly correspond to Firefox's
official system requirements for the 32-bit and 64-bit version.
Although that doesn't necessarily correspond to WASM support,
it's a reasonable starting point for a guess.

Note that guessing wrong isn't harmful, it just gives the user
the option to shoot themselves in the foot, and even that is
limited because we still only use 1/8th of the guessed system RAM.
2021-12-06 22:54:20 +01:00
Benedikt Werner d39bb31483
Fix bottom outer coords color on 3D boards 2021-11-30 13:53:47 +01:00
Benedikt Werner 435cfba2ad
Fix analysis board material on 3D boards 2021-11-30 13:53:46 +01:00
Thibault Duplessis d82591c9c1 fix ceval.evalPut first eval 2021-11-28 19:08:15 +01:00
Thibault Duplessis 80523a2224 only run client evalPut when local depth > cloud depth 2021-11-28 18:40:28 +01:00
Thibault Duplessis ea256b836b upper user limit for ceval 2021-11-26 17:30:38 +01:00
Benedikt Werner cc79e29cbf
wiki: Fix length limit check 2021-11-24 16:00:08 +01:00
Thibault Duplessis 5edc8a6a05 use external piece svg assets and preload them
experimental, see if that eliminates rare cases of invisible pieces
2021-11-22 08:33:49 +01:00
Albert Ford bc7b9c8952
Don't animate spinner motion according to prefer-reduced-motion 2021-11-20 09:14:46 -08:00
Niklas Fiekas 27cdc271ec master db updated
internal source: master-update-2021-11-20.pgn
deterministic ids: niklasf/lila-openingexplorer@021dc59a7b
2021-11-20 16:58:53 +01:00
Benedikt Werner 0e80050dbf
Remove duplicate null check - after #10140 2021-11-20 06:10:31 +01:00
Thibault Duplessis 067dc38087 yarn format 2021-11-19 11:38:18 +01:00
Enrique Betancourt d36722c024 including ? character 2021-11-19 02:31:20 -06:00
Enrique Betancourt 2b71a6b81f replace +/#/! characters on PGN title 2021-11-19 02:12:12 -06:00
Benedikt Werner 78400f6a1c
Correct comment in @types/lichess/index.d.ts 2021-11-18 02:06:36 +01:00
Thibault Duplessis 1b839730e8
Merge pull request #10117 from 370417/safari-dasharray
Use full form of stroke-dasharray for Safari
2021-11-17 09:47:38 +01:00
Thibault Duplessis 505b32ef10
Merge pull request #10119 from kraktus/date_safari_download
Fix download page date range for Safari
2021-11-17 08:20:57 +01:00
Thibault Duplessis 6efc6b4982
Merge pull request #10125 from benediktwerner/DOMContentLoaded
Use DOMContentLoaded instead of window.onload
2021-11-17 08:07:24 +01:00
Benedikt Werner 1108c4b843
Don't unload soundSet-independent sounds on soundSet change (#10126)
* Don't unload soundSet-independent sounds on soundSet change

* Fix lint

* Fix lint 2
2021-11-17 08:05:55 +01:00
Benedikt Werner 13dbacd997
Use DOMContentLoaded instead of window.onload 2021-11-15 17:42:52 +01:00
Benedikt Werner eb58eddcae
Fix ublog like buttons 2021-11-14 19:57:53 +01:00
kraktus 7118148f4d Fix download page date range for Safari
close https://github.com/ornicar/lila/issues/10065
2021-11-14 19:39:43 +01:00
Albert Ford 6f71649b6b
Use full form of stroke-dasharray for Safari 2021-11-14 07:57:32 -08:00
Benedikt Werner fc81966d2d
preventDefault study admin form 2021-11-12 22:29:58 +01:00
Benedikt Werner 8aa6e5220a
analysis/wiki: Better handle unexpected API responses 2021-11-12 11:39:03 +01:00
Benedikt Werner 3036f08471
analysis/wiki: Handle invalid wiki requests 2021-11-12 11:32:53 +01:00
Benedikt Werner ed32245760
analysis/wiki: Only request up to move 15 (30 plies) and when path length is <256 (otherwise the wikibooks API rejects the request) 2021-11-12 11:32:53 +01:00
Thibault Duplessis a180f13143 loader CSS: fix bad merge and colour switch 2021-11-12 09:15:40 +01:00
Thibault Duplessis 3fcb39312f Revert "disable wikibooks in studies until serverside CSP is here - REVERT ME"
This reverts commit baa0d8c337.
2021-11-12 07:56:51 +01:00
Thibault Duplessis abbab60ecf
Merge pull request #10092 from sharadsw/fix-unselect-study
Fix move being unselected in study
2021-11-11 08:22:18 +01:00
Sharad 2cfcc92764 use gamebookplay() 2021-11-11 01:35:49 -05:00
Sharad 836271329f Skip unselect square only in study 2021-11-11 01:07:03 -05:00
Benedikt Werner 8bac0632ba
team kick: Allow pasting members and existing values 2021-11-10 10:28:45 +01:00
Benedikt Werner 50cf322e25
Explorer: Separate since/until config by db 2021-11-10 08:30:40 +01:00
Benedikt Werner c4aece7197
Prettier 2021-11-09 18:09:39 +01:00
Benedikt Werner 07abf0f526
Fix: Engine toggle tooltip looks like I but is L 2021-11-09 17:38:06 +01:00
Benedikt Werner 002df6f7f0
CSS: Improve simul styling 2021-11-09 17:36:34 +01:00
Benedikt Werner b6a3d9fc15
Avoid redirecting to study when admin joining broadcast 2021-11-09 17:21:28 +01:00
Benedikt Werner 7a769bc664
Fix "delete imported game" button style 2021-11-09 17:21:07 +01:00
Benedikt Werner c1b639dde0
Hide rating of correspondence seeks 2021-11-09 15:19:50 +01:00
Thibault Duplessis 03285443bc
Merge pull request #10093 from 370417/colorize-logo-circ
Colorize the logo spinner and add animation
2021-11-09 07:56:35 +01:00
Albert Ford 366db2657a
Format css 2021-11-08 08:03:51 -08:00
Albert Ford 26ccf278fa
Colorize the logo spinner and add animation 2021-11-08 07:41:05 -08:00
Sharad 4256bbecd0 Fix move being unselected in study 2021-11-07 19:57:11 -05:00