Commit Graph

429 Commits

Author SHA1 Message Date
Raphaël Jakse 5ed0bca393 Allow players to show their rack 2020-04-19 12:23:39 +02:00
Raphaël Jakse be3ed22a05 Center the game 2020-04-19 11:07:44 +02:00
Raphaël Jakse 604d156384 Keep the production configuration when upgrading 2020-04-19 10:48:21 +02:00
Raphaël Jakse e3e1304430 Support for current player 2020-04-19 10:46:53 +02:00
Raphaël Jakse 0264b55eaf Case-insensitive check for Upgrade: WebSocket 2020-04-16 09:43:30 +02:00
Raphaël Jakse 422f96e61d Remove information about the bag being suffled 2020-04-16 00:28:15 +02:00
Raphaël Jakse fe5b312181 Fix git status check when upgrading the production 2020-04-15 22:27:08 +02:00
Raphaël Jakse 828d5c8c7c Set those executable bits in the bin folder 2020-04-15 22:17:23 +02:00
Raphaël Jakse 0cce58e5b0 Allow configuring the client 2020-04-15 22:15:03 +02:00
Raphaël Jakse f8426578ad Pre-shuffle the bag to avoids risks of nasty endless loops 2020-04-15 21:53:32 +02:00
Raphaël Jakse 6b53c81517 Lint 2020-04-15 21:24:58 +02:00
Raphaël Jakse da6f82bf55 Set the language of the document 2020-04-15 21:24:40 +02:00
Raphaël Jakse 4aeb1c709e Avoid restarting the connection when leaving the game 2020-04-15 00:43:41 +02:00
Raphaël Jakse 112b613075 Ensure we close active connections when opening another - second trial 2020-04-15 00:36:09 +02:00
Raphaël Jakse 8b345c5a25 Ensure we close the active connection when opening another in the client 2020-04-14 20:38:04 +02:00
Raphaël Jakse f6e1353685 Strengthen WebSocket error handling 2020-04-13 21:18:40 +02:00
Raphaël Jakse 5ccde0b27b Block WebSockets if we see that they don't work 2020-04-13 11:36:22 +02:00
Raphaël Jakse 9712ec4e9f Add scripts to deploy to production 2020-04-13 10:32:51 +02:00
Raphaël Jakse b312e3e26b Don't force :trivabble in sse and ws URLs 2020-04-13 10:25:30 +02:00
Raphaël Jakse 5902210d37 Enable WebSockets in the client 2020-04-12 20:14:40 +02:00
Raphaël Jakse 6c5531cf0f Support for WebSockets in the server 2020-04-12 20:14:39 +02:00
Raphaël Jakse 48cd60e465 Rewrite const and let to var when serving js files from the dev server 2020-04-12 20:14:37 +02:00
Raphaël Jakse 9435c99293 Support special chat messages on the server 2020-04-12 20:14:36 +02:00
Raphaël Jakse 2a59a91731 Stop sending all player information to everyone on many actions 2020-04-12 20:14:36 +02:00
Raphaël Jakse b1b07fc00c Lint 2020-04-12 20:14:35 +02:00
Raphaël Jakse 9f8a43d0f8 Disable Node's server default timeout 2020-04-12 20:14:22 +02:00
Raphaël Jakse 4067e5c99d Stop using inline scripts breaking with some CSP setups 2020-04-12 20:14:20 +02:00
Raphaël Jakse 9f16bd14e1 Rework connection handling in the client
This commit introduces code to handle websockets.
This is disabled for now, support in the server is not ready.
2020-04-12 20:14:19 +02:00
Raphaël Jakse b37b5874b6 Give up on dates and sync, this is a cause of unstability 2020-04-12 20:14:18 +02:00
Raphaël Jakse 3a663a272b Lint 2020-04-12 20:14:16 +02:00
Raphaël Jakse 5794bddb05 Do not use u flag in regexes
This is not supported in Safari 9
2020-04-12 20:14:16 +02:00
Raphaël Jakse ba930e5ef6 Use [].slice.call when iterating over node lists
This is needed on Safari 9, used on the iPad 2.
2020-04-12 20:14:15 +02:00
Raphaël Jakse 8fd53e18e8 Better handling of touchscreens 2020-04-12 20:14:14 +02:00
Raphaël Jakse 041f40b89b More defensively save games when closing 2020-04-05 22:00:07 +02:00
Raphaël Jakse 52562dbeba Add more error handling in the server 2020-04-05 21:05:48 +02:00
Raphaël Jakse 9225f4937d Linting: allow nested ternaries 2020-04-05 20:57:13 +02:00
Raphaël Jakse f9282a9924 Use Array.isArray instead of instanceof Array 2020-04-05 18:16:45 +02:00
Raphaël Jakse fa22a07af8 fix stopped game count when stopping the server 2020-04-05 18:13:13 +02:00
Raphaël Jakse d58717fab2 Linting: let it be 2020-04-05 15:49:48 +02:00
Raphaël Jakse a3e6bd245f Refactor: simplify the part handling EventSource 2020-04-05 14:59:28 +02:00
Raphaël Jakse d2e68c78a6 l10n - fix line ending in fr.po 2020-04-05 12:54:59 +02:00
Raphaël Jakse 56e0501859 Allow to gracefully stop the server 2020-04-05 12:51:47 +02:00
Raphaël Jakse 1f61c04316 Gracefully handle connection loss and inform the user 2020-04-05 12:51:18 +02:00
Raphaël Jakse e58a915d99 l10n - Add the mandatory callback to fs.close 2020-04-05 12:50:18 +02:00
Raphaël Jakse ab91f0eb82 Handle chat messages in a dedicated fonction 2020-04-05 12:47:12 +02:00
Raphaël Jakse 05eaebd697 Linting 2020-04-05 12:34:30 +02:00
Raphaël Jakse 3604379b0c fix game unconditionally being reset 2020-04-05 12:32:31 +02:00
Raphaël Jakse a156b39d17 command joinGame is not needed anymore 2020-04-05 10:38:21 +02:00
Raphaël Jakse be6ce0adb0 Better error handling of connection loss 2020-04-05 10:37:49 +02:00
Raphaël Jakse d63c44f5df Add a way to ask the client to reload 2020-04-05 10:25:52 +02:00