Commit graph

1410 commits

Author SHA1 Message Date
Thibault Duplessis 66690201bd show players' teams in team battle games 2020-02-10 13:53:48 -06:00
Thibault Duplessis bf660208e3 TS refactor 2020-02-07 12:23:48 -06:00
Greg Finley 15fb891880 Translate initial game message 2020-02-06 22:01:11 -08:00
Thibault Duplessis aedc474f87 Revert "REVERT ME - round gone only with clock"
This reverts commit fc8469e4ea.
2020-01-10 21:44:40 -06:00
Thibault Duplessis 45590bce42 disconnect timer seconds - closes #5888 2020-01-08 21:29:11 -06:00
Thibault Duplessis 09415d3897 fix plural translation 2020-01-06 09:48:36 -06:00
Thibault Duplessis 031ae09f87 translate disconnection message 2020-01-06 09:29:38 -06:00
Thibault Duplessis fc8469e4ea REVERT ME - round gone only with clock 2020-01-04 22:27:29 -06:00
Thibault Duplessis 51f001bb55 show time to win when opponent leaves the game 2020-01-03 11:01:46 -06:00
Thibault Duplessis 745e2efb6e restart game tournament clock on complete - closes #5857 2020-01-01 15:56:18 -05:00
Niklas Fiekas c40772dee6 make localStorage pubsub more robust (fixes #5832)
Safari sometimes fires the StorageEvent in the same document as well.
Move lichess.StrongSocket.sri to lichess.sri and use the unique id to
filter events.
2019-12-29 12:03:31 +01:00
Thibault Duplessis 2fb29db01c wait longer in case of transient move 2019-12-27 18:03:46 -06:00
Thibault Duplessis 7ae3ce605f round favicon animation 2019-12-01 18:17:14 -06:00
Thibault Duplessis a184a6c7f7 don't redraw on clock flag events 2019-12-01 13:14:13 -06:00
Thibault Duplessis ffd7682540 Revert "window.setTimeout"
This reverts commit 1a96f24f20.
2019-11-22 10:53:48 -06:00
Thibault Duplessis 913a7140d3 Revert "fix new typescript errors"
This reverts commit 76b4dad4d8.
2019-11-22 10:53:32 -06:00
Thibault Duplessis 1a96f24f20 window.setTimeout 2019-11-22 10:16:04 -06:00
Thibault Duplessis 76b4dad4d8 fix new typescript errors 2019-11-22 10:13:09 -06:00
Niklas Fiekas ffa4c576fb exponentially increasing throttle (#5659) 2019-11-22 02:20:33 +01:00
Thibault Duplessis 5772b1dd3d prioritize blind round info 2019-11-17 13:19:24 -06:00
Thibault Duplessis 01a3515787 improve blind UI, read round intro 2019-11-17 12:55:41 -06:00
Thibault Duplessis 3133d54733 limit how many flag events a round WS can send 2019-11-14 07:43:03 -06:00
Thibault Duplessis 6311d1f537 remove forceResignable client check
it's done on server side now
2019-11-13 10:58:22 -06:00
Thibault Duplessis 2965b998ec log transient moves expirations 2019-11-11 15:54:00 -06:00
Thibault Duplessis 075f4539b8 introduce ui/round transient moves
Tracks moves that were played on the board,
sent to the server, possibly acked,
but without a move response from the server yet.
After a delay, it will trigger a reload.
This might fix bugs where the board is in a
transient, dirty state, where clocks don't tick,
eventually causing the player to flag.
It will also help with lila-ws restarts.
2019-11-11 11:20:25 -06:00
Thibault Duplessis 18d7c43a7e new round blind command: opponent - for #5607 2019-11-10 15:11:27 -06:00
Thibault Duplessis eeea77f965 round blind mode command shortcuts 2019-11-10 14:47:22 -06:00
Thibault Duplessis e72f683389 Merge branch 'master' of github.com:ornicar/lila into round-remote-socket
* 'master' of github.com:ornicar/lila:
  use study chapter number as sort handle on mobile (closes #5631)
  eliminate lichess.mousedownEvent (closes #5167)
  let bindMobileMousedown support mixed mouse/touch (#5167)
  make held button repeater generic over mouse/touch (#5167)
  let resize handle support mixed mouse/touch devices (#5167)
  touch devices can still have a mouse (#5167)
  touch devices can still have keyboard (fixes #5616)
  remove cpl cap in insights (fixes #5617)
  remove ie workaround (already commented out)
  save yarn cache in github action
  minor tweak to faq wording
  update stockfish.wasm (v0.5.12)
  make /api csp safari compatible (fixes #5622)
  no longer using kappa
  consider trailing dashes to be part of url
  i18n: center -> centre in british source
  mention PeerJS in COPYING.md
2019-11-09 18:38:43 -06:00
Niklas Fiekas 8b5382a113 touch devices can still have keyboard (fixes #5616) 2019-11-09 10:37:17 +01:00
Thibault Duplessis 9b4236ed68 fix draw confirm button - closes #5627 2019-11-08 09:20:03 -06:00
Thibault Duplessis fa46418bfe round remote socket WIP 2019-11-07 14:57:23 -06:00
Isaac Levy 41f65ffd0a Preload crazyhouse mouse icons
If a player uses crazyhouse keyboard controls at
least occasionally, preload the svg icons at
start of game so there's no lag when keys are
first pressed.
2019-10-10 09:33:18 -04:00
Niklas Fiekas 4bc42956aa clean up ui/**/package.json files 2019-09-17 23:09:45 +02:00
Niklas Fiekas 23e9956a69 factor out tsPlugins 2019-09-17 21:18:59 +02:00
Niklas Fiekas adbb3c9ce2 factor out tsProject and its dependencies 2019-09-17 21:12:17 +02:00
Thibault Duplessis a287c78a3d Merge branch 'master' of github.com:ornicar/lila
* 'master' of github.com:ornicar/lila:
  fix pluralization in correspondence clock (closes #5336)
  join -> resume in tourney reminder (#2406)
  i18n: finishes %s ... (similar to The timeout expires %s)
  trans-sanity-check: downgrade missing placeholder in singular to warning
  i18n: tweak xBroughtToYouByY
  move percentile rounding to controller
  add san, fen, pgn to i18n sanity dictionary
2019-08-27 08:06:46 +02:00
Thibault Duplessis a3115d26f9 don't redirect simul host while replaying a game 2019-08-27 00:02:25 +02:00
Niklas Fiekas 3cffe94883 fix pluralization in correspondence clock (closes #5336) 2019-08-26 18:12:50 +02:00
Thibault Duplessis 61decea753 typescript tweaks 2019-08-13 09:47:27 +02:00
Thibault Duplessis 9df76780ca round JS tweak 2019-08-11 13:18:16 +02:00
Thibault Duplessis c7c2e9383d fix threefold button style 2019-08-11 13:06:24 +02:00
Bojidar Marinov f306ddca47
Fix ratings showing differently in TV when updated dynamically 2019-08-04 08:36:28 +03:00
Adam Morris cd94554b8b Remove leading zeroes in a bunch of files 2019-08-03 16:42:26 +10:00
Thibault Duplessis 8308a64713 allow disabling moretime in user settings - closes #5357 2019-07-31 11:47:16 +02:00
Thibault Duplessis 8062e8c687 TS code golf 2019-07-27 09:08:27 +02:00
Isaac Levy 363d3e4dba Minor autoscroll adjustment
Move requestAnimationFrame inside of throttle.

Before this change, if a call to ctrl.autoScroll was throttled,
the actual callback would not be inside a requestAnimationFrame,
but rather from a throttle setTimeout.
2019-07-17 22:21:58 -04:00
Thibault Duplessis 1aa4953eab Revert "downgrade to chessground 7.6.5"
This reverts commit af1a4ed009.
2019-07-13 19:32:12 +02:00
Thibault Duplessis af1a4ed009 downgrade to chessground 7.6.5
Before the chessground es6 commit, which breaks the lila build:

[00:39:40] Using gulpfile ~/build/ornicar/lila/ui/editor/gulpfile.js
[00:39:40] Starting 'prod'...
[00:39:41] 'prod' errored after 1.23 s
[00:39:41] Error:
/home/travis/build/ornicar/lila/node_modules/chessground/chessground.js:1
import { start } from './api';
^
ParseError: 'import' and 'export' may appear only with 'sourceType: module'
    at formatError (/home/travis/build/ornicar/lila/node_modules/gulp-cli/lib/versioned/^4.0.0/format-error.js:21:10)
    at Gulp.<anonymous> (/home/travis/build/ornicar/lila/node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js:33:15)
    at Gulp.emit (events.js:203:15)
    at Gulp.EventEmitter.emit (domain.js:448:20)
    at Object.error (/home/travis/build/ornicar/lila/node_modules/undertaker/lib/helpers/createExtensions.js:61:10)
    at handler (/home/travis/build/ornicar/lila/node_modules/now-and-later/lib/map.js:50:14)
    at f (/home/travis/build/ornicar/lila/node_modules/once/once.js:25:25)
    at f (/home/travis/build/ornicar/lila/node_modules/once/once.js:25:25)
    at tryCatch (/home/travis/build/ornicar/lila/node_modules/async-done/index.js:24:15)
    at done (/home/travis/build/ornicar/lila/node_modules/async-done/index.js:40:12)
parallel: This job failed:
build editor
2019-07-13 09:51:41 +02:00
Isaac Levy 55ec87991a Fix crazy drop mode getting stuck on
Watch for cases where focus shifts and we won't
get the keyup events. Cancel drop mode.

Yes, it's a hack.
2019-07-12 11:18:17 -04:00
Isaac Levy 92695db1e2 Crazyhouse drop mode 2019-07-11 09:49:30 -04:00