Commit graph

45223 commits

Author SHA1 Message Date
Thibault Duplessis da6d24dc36 Revert "activity: write doc date so it can expire"
This reverts commit d5c7c24e1d.
2021-09-16 20:44:43 +02:00
Thibault Duplessis d5c7c24e1d activity: write doc date so it can expire 2021-09-16 19:44:57 +02:00
Thibault Duplessis 33cfc3a248 fix coll scan in aggregation query
because of a mongodb bug that prevents using available index
in $expr $in in aggregation pipeline

https://jira.mongodb.org/browse/SERVER-32549
https://jira.mongodb.org/browse/SERVER-37470

Revert this when the mongodb bug is fixed, for additional perf
2021-09-16 11:48:21 +02:00
Thibault Duplessis 5b57c2769a more referrer antispam detection 2021-09-16 11:48:21 +02:00
Benedikt Werner f56360e326
Update cg when disabling practice mode
To recompute dests in case the user scrolled to the computer's position.
2021-09-16 10:45:31 +02:00
Benedikt Werner c3d01fbd5f
Fix .prettierignore ignoring lobby "app" css 2021-09-16 10:27:44 +02:00
Benedikt Werner 240b337fce
Increse mobile lobby font size again whithough overflowing 2021-09-16 10:27:44 +02:00
Benedikt Werner 24dc40cd0d
tweak wakeLock code 2021-09-16 10:27:44 +02:00
Benedikt Werner b151e9e37e
puzzle/i18n: Add blank line between paragraphs
To improve how it looks on slim screens or with long translations, when
words wrap.
2021-09-16 10:27:43 +02:00
Thibault Duplessis ec69f642a2 increase ublog rotation 2021-09-16 10:24:15 +02:00
Thibault Duplessis 5cc2c0f905 rename YoloDb 2021-09-16 09:37:04 +02:00
Thibault Duplessis 09949377b9 yarn format 2021-09-16 09:32:26 +02:00
Thibault Duplessis 74c251fe7e better decline PGNs with ambiguous moves
chess.com still produces PGN with ambiguous moves, that can't be read:

[Site "Chess.com"]
[Date "2021.09.15"]
[Round "?"]
[White "Heiko_Schmitz"]
[Black "Vostoro"]
[Result "0-1"]
[ECO "B06"]
[WhiteElo "1117"]
[BlackElo "812"]
[TimeControl "180+2"]
[EndTime "10:43:14 PDT"]
[Termination "Vostoro won by resignation"]

1. e4 g6 2. d4 Bg7 3. c3 d6 4. f4 a6 5. e5 dxe5 6. fxe5 b5 7. Na3 Bb7 8. Nf3 Nd7
9. Ng5 h6 10. Nf3 f6 11. Qe2 Nb6 12. g4 Nc4 13. Bg2 Nxa3 14. bxa3 Bxf3 15. Bxf3
Rc8 16. Bb7 Rb8 17. Bxa6 Qd5 18. c4 bxc4 19. Kd2 Qxh1 20. Qxc4 Qxh2+ 21. Kd3
fxe5 22. Bb5+ Kf8 23. Rb1 exd4 24. Bb2 Nf6 25. Bxd4 c6 26. Qxc6 Nxg4 27. Qxg6
Bxd4 28. Kxd4 Rg8 29. Qf5+ Nf6 30. Re1 Qd2+ 31. Bd3 Qxe1 32. Qc5 Qf2+ 33. Kc4
Qxc5+ 34. Kxc5 Rb2 35. Bc4 Ne4+ 36. Kd4 Nd2 37. Bxg8 Kxg8 38. Kc3 Rxa2 39. Kb4
h5 40. a4 h4 41. a5 Rxa5 42. Kxa5 h3 43. Kb6 h2 44. Kc7 h1=Q 45. Kd7 Qd5+ 46.
Ke8 Qe4 47. Kd7 Qd3+ 48. Ke8 e5 49. Ke7 e4 50. Ke6 e3 51. Kf6 e2 52. Kg5 e1=$146
53. Kg4 Kf8 54. Kf4 Ke8 55. Kg4 Qe3 56. Kf5 Nc2 57. Kg6 Qf4 58. Kh5 Qg3 59. Kh6
Qg4 60. Kh7 Qg5 61. Kh8 Kf7 0-1

55... Qe3 is ambiguous, both black queens go to e3.
2021-09-16 08:57:43 +02:00
Thibault Duplessis 078d346909 read clocks faster 2021-09-16 08:26:03 +02:00
Thibault Duplessis 83a4af8adb navigator.wakeLock.request can fail
DOMException: Failed to execute 'request' on 'WakeLock': The requesting page is not visible
2021-09-16 08:11:52 +02:00
Thibault Duplessis 9ef635f59d
New translations: puzzle.xml (German) (#9812) 2021-09-16 07:42:35 +02:00
Thibault Duplessis c8546e681c
New Crowdin updates (#9804)
* New translations: emails.xml (Odia)

* New translations: site.xml (Esperanto)

* New translations: site.xml (Ukrainian)

* New translations: storm.xml (Ukrainian)

* New translations: ublog.xml (Ukrainian)

* New translations: team.xml (Ukrainian)

* New translations: broadcast.xml (Ukrainian)

* New translations: class.xml (Ukrainian)

* New translations: swiss.xml (Ukrainian)

* New translations: ublog.xml (Ukrainian)
2021-09-15 22:50:46 +02:00
Thibault Duplessis 75887e47ca
Merge pull request #9811 from Darkcodelab/patch-1
Removing dasher padding to get rid of extra space
2021-09-15 20:15:06 +02:00
Thibault Duplessis cbe14b6060 fix ublog action buttons in vertical screens 2021-09-15 19:24:43 +02:00
Thibault Duplessis 6639987c7a prevent changing tournament perf type after players have joined
closes #9730
2021-09-15 19:21:41 +02:00
Thibault Duplessis 12e7dc63a8 Revert "simplify tournament update code"
This reverts commit 0071ef7497.
2021-09-15 19:08:28 +02:00
Deepan Chakravarthi b61e634a26
Removing dasher padding to remove extra spaces
Removing the padding-top and padding-bottom to remove extra space on the dasher when the sound is set to full or set to mute
2021-09-15 22:35:38 +05:30
Thibault Duplessis 0071ef7497 simplify tournament update code 2021-09-15 19:02:51 +02:00
Thibault Duplessis 01031e26ba use akka BoundedQueueSource in WorkQueue - closes #9805 2021-09-15 18:51:59 +02:00
Deepan Chakravarthi fbb870ecef
Removing dasher padding to get rid of extra space
Removing the padding-top from the dasher, so that there will be no extra space sticking out in the dasher when the sound is set to full
2021-09-15 22:10:49 +05:30
Thibault Duplessis 988ce6f0b0 ublog disclaimer 2021-09-15 18:20:02 +02:00
Thibault Duplessis f628d3c496 add games to broadcast round API - closes #9809 2021-09-15 18:02:34 +02:00
Thibault Duplessis 8996ba4582 tweak relation cache 2021-09-15 17:41:53 +02:00
Thibault Duplessis 1c4281fc28
Merge pull request #9807 from kraktus/game_timetable_ago
Add date field in mod profile game table
2021-09-15 17:36:52 +02:00
Thibault Duplessis 39c2c3001f
Merge pull request #9808 from scala-steward/update/lettuce-core-6.1.5.RELEASE
Update lettuce-core to 6.1.5.RELEASE
2021-09-15 17:32:52 +02:00
Thibault Duplessis f345b0b76f
Merge pull request #9810 from kraktus/truncated_chat
Display to mods when conv threads are truncated
2021-09-15 17:30:40 +02:00
Scala Steward e92b29fa6a
Update lettuce-core to 6.1.5.RELEASE 2021-09-15 15:09:23 +02:00
kraktus 767849a396 Display to mods when conv threads are truncated 2021-09-15 14:19:31 +02:00
kraktus 30b5fdb925 Add date field in mod profile game table 2021-09-15 13:05:45 +02:00
Thibault Duplessis 2cc0803a10 use junk DB for rating history 2021-09-15 11:05:47 +02:00
Thibault Duplessis c62910ce9a junk DB = main DB by default 2021-09-15 11:05:29 +02:00
Thibault Duplessis a632e1fa40 manually declare the tagging dependency 2021-09-15 10:50:36 +02:00
Thibault Duplessis 8a4d577e74 instanciate async DBs at most one per second
this looks a bit dangerous tho
2021-09-15 10:46:51 +02:00
Thibault Duplessis 6c37e20278 try harder to connect to the junk DB 2021-09-15 10:46:31 +02:00
Thibault Duplessis 16c31680c0 let the junk DB fail in silence 2021-09-15 09:41:10 +02:00
Thibault Duplessis 292fdfdabd read/write activity from the junk DB 2021-09-15 08:37:33 +02:00
Thibault Duplessis 5d22bb45a7 make lila.db.Env a macwire module 2021-09-15 08:37:10 +02:00
Thibault Duplessis f668b82d1b fix MSStream test - after #9803 2021-09-15 08:03:55 +02:00
Thibault Duplessis 10166c3ca0 Merge branch 'master' of github.com:ornicar/lila
* 'master' of github.com:ornicar/lila:
  New Crowdin updates (#9796)
  Check for i32x4.trunc_sat_f64x2_u_zero in diagnostics.html
  Use @types/web instead of TS-provided "dom" types
  Update Typescript to 4.4.3 for requestIdleCallback
  Update scaffeine to 5.1.1
  Update sbt-bloop to 1.4.9
  link benevity cause (closes #9784)
  Revert "fix weirdness in RawHtml mention regex"
  cache regex
  better clean up msgs
  filter profile info for mobile app
  tweak user profile code
2021-09-15 08:03:21 +02:00
Thibault Duplessis 5413989443
Merge pull request #9803 from benediktwerner/ts-4.4
Update TypeScript to 4.4 and use `@types/web` instead of TS provided `dom` lib
2021-09-15 08:03:17 +02:00
Thibault Duplessis b068064a13
New Crowdin updates (#9796)
* New translations: site.xml (Danish)

* New translations: site.xml (Danish)

* New translations: site.xml (Danish)

* New translations: study.xml (Danish)

* New translations: learn.xml (Danish)

* New translations: activity.xml (Danish)

* New translations: faq.xml (Danish)

* New translations: study.xml (Danish)

* New translations: faq.xml (Danish)

* New translations: contact.xml (Danish)

* New translations: preferences.xml (Danish)

* New translations: site.xml (Danish)

* New translations: site.xml (Danish)

* New translations: storm.xml (Indonesian)

* New translations: site.xml (Norwegian Bokmal)

* New translations: arena.xml (Luxembourgish)

* New translations: streamer.xml (Luxembourgish)

* New translations: ublog.xml (Arabic)

* New translations: ublog.xml (English, United States)

* New translations: storm.xml (English, United States)

* New translations: site.xml (Arabic)

* New translations: ublog.xml (Arabic)

* New translations: team.xml (Arabic)

* New translations: broadcast.xml (Arabic)

* New translations: class.xml (Arabic)

* New translations: faq.xml (Luxembourgish)

* New translations: faq.xml (Luxembourgish)

* New translations: streamer.xml (Luxembourgish)

* New translations: streamer.xml (Luxembourgish)

* New translations: streamer.xml (Luxembourgish)

* New translations: ublog.xml (Danish)

* New translations: preferences.xml (Latin)

* New translations: preferences.xml (Latin)

* New translations: streamer.xml (Luxembourgish)

* New translations: preferences.xml (Latin)

* New translations: preferences.xml (Latin)

* New translations: site.xml (Danish)

* New translations: site.xml (Danish)
2021-09-15 07:46:31 +02:00
Benedikt Werner 1e968ffe76
Check for i32x4.trunc_sat_f64x2_u_zero in diagnostics.html
wasm source:

    (module
      (func (export "a") (param v128) (result v128) (i32x4.trunc_sat_f64x2_u_zero (local.get 0)))
    )
2021-09-15 05:18:33 +02:00
Benedikt Werner b0201a63d1
Use @types/web instead of TS-provided "dom" types 2021-09-15 05:04:32 +02:00
Benedikt Werner 8073dc43c7
Update Typescript to 4.4.3 for requestIdleCallback 2021-09-15 04:00:59 +02:00
Thibault Duplessis d083c5fd85
Merge pull request #9800 from scala-steward/update/scaffeine-5.1.1
Update scaffeine to 5.1.1
2021-09-14 19:35:00 +02:00