Cosmin Humeniuc [Sun, 3 May 2020 13:15:55 +0000 (16:15 +0300)]
Add missing msgid to POT file
The message was present in the French PO file
but missing from the POT, so it would have also
be missing from any new translation.
Raphaël Jakse [Sun, 3 May 2020 11:43:52 +0000 (13:43 +0200)]
Merge branch 'lmazet/trivabble-avoid_serving_git_file'
Raphaël Jakse [Sun, 3 May 2020 11:06:52 +0000 (13:06 +0200)]
Fix scripts in bin/ to work with the public folder
Raphaël Jakse [Sun, 3 May 2020 11:02:56 +0000 (13:02 +0200)]
Makefile: use start-dev-server instead of start-dbg-server
Raphaël Jakse [Sun, 3 May 2020 09:38:09 +0000 (11:38 +0200)]
Use node instead of nodejs
Raphaël Jakse [Sun, 3 May 2020 09:37:40 +0000 (11:37 +0200)]
Restablish the Makefile in the l10n folder
Laurent Mazet [Fri, 1 May 2020 20:16:29 +0000 (22:16 +0200)]
rename server-data to public
Laurent Mazet [Fri, 1 May 2020 20:08:34 +0000 (22:08 +0200)]
move traduction files out of server data directory
Raphaël Jakse [Fri, 1 May 2020 17:20:03 +0000 (19:20 +0200)]
Client: always set the rack when the rack was changed
Raphaël Jakse [Fri, 1 May 2020 16:58:56 +0000 (18:58 +0200)]
Client: always set the rack when moving a tile to the board
Raphaël Jakse [Fri, 1 May 2020 16:51:13 +0000 (18:51 +0200)]
Server: disallow moving from an empty location
Raphaël Jakse [Fri, 1 May 2020 09:58:50 +0000 (09:58 +0000)]
Add the AGPLv3 LICENSE file
Raphaël Jakse [Fri, 1 May 2020 09:57:28 +0000 (11:57 +0200)]
Remove unused hammer.min.js
Raphaël Jakse [Fri, 1 May 2020 09:10:53 +0000 (11:10 +0200)]
Style the add score button
Raphaël Jakse [Fri, 1 May 2020 09:10:19 +0000 (11:10 +0200)]
Minor fix to the translation strings
Nicolas Cornu [Thu, 30 Apr 2020 22:49:50 +0000 (00:49 +0200)]
Add a button to add the turn score
Laurent Mazet [Wed, 29 Apr 2020 21:19:17 +0000 (23:19 +0200)]
move all served file into a dedicated directory
Laurent Mazet [Wed, 29 Apr 2020 06:15:32 +0000 (08:15 +0200)]
Allow setting the path to the games backup in the server
Raphaël Jakse [Tue, 28 Apr 2020 21:49:33 +0000 (23:49 +0200)]
Fix the empty rack button
Raphaël Jakse [Tue, 28 Apr 2020 17:29:36 +0000 (19:29 +0200)]
Lint
Raphaël Jakse [Tue, 28 Apr 2020 17:29:15 +0000 (19:29 +0200)]
Block actions until responses are received with WebSockets
Raphaël Jakse [Tue, 28 Apr 2020 17:27:37 +0000 (19:27 +0200)]
Announce the server version
Raphaël Jakse [Tue, 28 Apr 2020 17:25:16 +0000 (19:25 +0200)]
Server: add an id field in replies if present in commands
Raphaël Jakse [Mon, 27 Apr 2020 17:57:45 +0000 (19:57 +0200)]
Lint
Raphaël Jakse [Mon, 27 Apr 2020 17:44:49 +0000 (17:44 +0000)]
Merge branch 'artlog:master' into 'master'
Make the URL used to reach the server configurable (APP_PATH)
See merge request raphj/trivabble!1
philippe lhardy [Mon, 27 Apr 2020 17:44:49 +0000 (17:44 +0000)]
Make the URL used to reach the server configurable (APP_PATH)
Raphaël Jakse [Sat, 25 Apr 2020 21:16:34 +0000 (23:16 +0200)]
Linting
Raphaël Jakse [Sat, 25 Apr 2020 21:14:27 +0000 (23:14 +0200)]
Avoid resetting the player's rack from the server
I have hope that this commit solves one case when letters can disappear because
of network slowdowns
Raphaël Jakse [Sat, 25 Apr 2020 20:15:16 +0000 (22:15 +0200)]
Handle empty bag correctly
Raphaël Jakse [Sat, 25 Apr 2020 15:06:27 +0000 (17:06 +0200)]
don't hide content on small screens in non-Firefox browsers
Raphaël Jakse [Sat, 25 Apr 2020 14:45:10 +0000 (16:45 +0200)]
Don't hide content on small screens
Raphaël Jakse [Sat, 25 Apr 2020 14:10:55 +0000 (16:10 +0200)]
make tiles non translatable
Raphaël Jakse [Wed, 22 Apr 2020 21:26:45 +0000 (23:26 +0200)]
fix: the disappearing letter is gone
Raphaël Jakse [Tue, 21 Apr 2020 16:42:59 +0000 (18:42 +0200)]
Remove extraneous quote in the config.js.sample file
Raphaël Jakse [Sun, 19 Apr 2020 10:48:24 +0000 (12:48 +0200)]
Bump client version
Raphaël Jakse [Sun, 19 Apr 2020 10:43:24 +0000 (12:43 +0200)]
Correctly handle jockers and missing tiles when showing the rack
Raphaël Jakse [Sun, 19 Apr 2020 10:23:39 +0000 (12:23 +0200)]
Allow players to show their rack
Raphaël Jakse [Sun, 19 Apr 2020 09:07:44 +0000 (11:07 +0200)]
Center the game
Raphaël Jakse [Sun, 19 Apr 2020 08:48:21 +0000 (10:48 +0200)]
Keep the production configuration when upgrading
Raphaël Jakse [Sun, 19 Apr 2020 08:46:53 +0000 (10:46 +0200)]
Support for current player
Raphaël Jakse [Thu, 16 Apr 2020 07:43:30 +0000 (09:43 +0200)]
Case-insensitive check for Upgrade: WebSocket
Raphaël Jakse [Wed, 15 Apr 2020 22:28:15 +0000 (00:28 +0200)]
Remove information about the bag being suffled
Raphaël Jakse [Wed, 15 Apr 2020 20:27:08 +0000 (22:27 +0200)]
Fix git status check when upgrading the production
Raphaël Jakse [Wed, 15 Apr 2020 20:17:23 +0000 (22:17 +0200)]
Set those executable bits in the bin folder
Raphaël Jakse [Wed, 15 Apr 2020 20:15:03 +0000 (22:15 +0200)]
Allow configuring the client
Raphaël Jakse [Wed, 15 Apr 2020 19:53:32 +0000 (21:53 +0200)]
Pre-shuffle the bag to avoids risks of nasty endless loops
Raphaël Jakse [Wed, 15 Apr 2020 19:24:58 +0000 (21:24 +0200)]
Lint
Raphaël Jakse [Wed, 15 Apr 2020 19:24:40 +0000 (21:24 +0200)]
Set the language of the document
Raphaël Jakse [Tue, 14 Apr 2020 22:43:41 +0000 (00:43 +0200)]
Avoid restarting the connection when leaving the game
Raphaël Jakse [Tue, 14 Apr 2020 22:36:09 +0000 (00:36 +0200)]
Ensure we close active connections when opening another - second trial
Raphaël Jakse [Tue, 14 Apr 2020 18:37:45 +0000 (20:37 +0200)]
Ensure we close the active connection when opening another in the client
Raphaël Jakse [Mon, 13 Apr 2020 19:18:40 +0000 (21:18 +0200)]
Strengthen WebSocket error handling
Raphaël Jakse [Mon, 13 Apr 2020 09:36:22 +0000 (11:36 +0200)]
Block WebSockets if we see that they don't work
Raphaël Jakse [Mon, 13 Apr 2020 08:32:51 +0000 (10:32 +0200)]
Add scripts to deploy to production
Raphaël Jakse [Mon, 13 Apr 2020 08:25:30 +0000 (10:25 +0200)]
Don't force :trivabble in sse and ws URLs
Raphaël Jakse [Sun, 12 Apr 2020 18:14:40 +0000 (20:14 +0200)]
Enable WebSockets in the client
Raphaël Jakse [Sun, 12 Apr 2020 18:14:39 +0000 (20:14 +0200)]
Support for WebSockets in the server
Raphaël Jakse [Sun, 12 Apr 2020 18:14:37 +0000 (20:14 +0200)]
Rewrite const and let to var when serving js files from the dev server
Raphaël Jakse [Sun, 12 Apr 2020 18:14:36 +0000 (20:14 +0200)]
Support special chat messages on the server
Raphaël Jakse [Sun, 12 Apr 2020 18:14:36 +0000 (20:14 +0200)]
Stop sending all player information to everyone on many actions
Raphaël Jakse [Sun, 12 Apr 2020 18:14:35 +0000 (20:14 +0200)]
Lint
Raphaël Jakse [Sun, 12 Apr 2020 18:14:22 +0000 (20:14 +0200)]
Disable Node's server default timeout
Raphaël Jakse [Sun, 12 Apr 2020 18:14:20 +0000 (20:14 +0200)]
Stop using inline scripts breaking with some CSP setups
Raphaël Jakse [Sun, 12 Apr 2020 18:14:19 +0000 (20:14 +0200)]
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.
Raphaël Jakse [Sun, 12 Apr 2020 18:14:18 +0000 (20:14 +0200)]
Give up on dates and sync, this is a cause of unstability
Raphaël Jakse [Sun, 12 Apr 2020 18:14:16 +0000 (20:14 +0200)]
Lint
Raphaël Jakse [Sun, 12 Apr 2020 18:14:16 +0000 (20:14 +0200)]
Do not use u flag in regexes
This is not supported in Safari 9
Raphaël Jakse [Sun, 12 Apr 2020 18:14:15 +0000 (20:14 +0200)]
Use [].slice.call when iterating over node lists
This is needed on Safari 9, used on the iPad 2.
Raphaël Jakse [Sun, 12 Apr 2020 18:14:14 +0000 (20:14 +0200)]
Better handling of touchscreens
Raphaël Jakse [Sun, 5 Apr 2020 20:00:07 +0000 (22:00 +0200)]
More defensively save games when closing
Raphaël Jakse [Sun, 5 Apr 2020 19:05:48 +0000 (21:05 +0200)]
Add more error handling in the server
Raphaël Jakse [Sun, 5 Apr 2020 18:57:13 +0000 (20:57 +0200)]
Linting: allow nested ternaries
Raphaël Jakse [Sun, 5 Apr 2020 16:16:45 +0000 (18:16 +0200)]
Use Array.isArray instead of instanceof Array
Raphaël Jakse [Sun, 5 Apr 2020 16:13:13 +0000 (18:13 +0200)]
fix stopped game count when stopping the server
Raphaël Jakse [Sun, 5 Apr 2020 13:49:48 +0000 (15:49 +0200)]
Linting: let it be
Raphaël Jakse [Sun, 5 Apr 2020 12:59:28 +0000 (14:59 +0200)]
Refactor: simplify the part handling EventSource
Raphaël Jakse [Sun, 5 Apr 2020 10:54:59 +0000 (12:54 +0200)]
l10n - fix line ending in fr.po
Raphaël Jakse [Sun, 5 Apr 2020 10:51:47 +0000 (12:51 +0200)]
Allow to gracefully stop the server
Raphaël Jakse [Sun, 5 Apr 2020 10:51:18 +0000 (12:51 +0200)]
Gracefully handle connection loss and inform the user
Raphaël Jakse [Sun, 5 Apr 2020 10:50:18 +0000 (12:50 +0200)]
l10n - Add the mandatory callback to fs.close
Raphaël Jakse [Sun, 5 Apr 2020 10:36:58 +0000 (12:36 +0200)]
Handle chat messages in a dedicated fonction
Raphaël Jakse [Sun, 5 Apr 2020 10:34:30 +0000 (12:34 +0200)]
Linting
Raphaël Jakse [Sun, 5 Apr 2020 10:32:31 +0000 (12:32 +0200)]
fix game unconditionally being reset
Raphaël Jakse [Sun, 5 Apr 2020 08:35:53 +0000 (10:35 +0200)]
command joinGame is not needed anymore
Raphaël Jakse [Sun, 5 Apr 2020 08:30:04 +0000 (10:30 +0200)]
Better error handling of connection loss
Raphaël Jakse [Sun, 5 Apr 2020 08:25:52 +0000 (10:25 +0200)]
Add a way to ask the client to reload
Raphaël Jakse [Sun, 5 Apr 2020 08:24:14 +0000 (10:24 +0200)]
Throw the fatal exception instead of logging it
Raphaël Jakse [Sun, 5 Apr 2020 08:22:07 +0000 (10:22 +0200)]
Handle JSON errors in a separate function
Raphaël Jakse [Sun, 5 Apr 2020 08:18:56 +0000 (10:18 +0200)]
l10n: use node instead of nodejs
Raphaël Jakse [Sun, 5 Apr 2020 08:18:30 +0000 (10:18 +0200)]
l10n: translate a forgotten string
Raphaël Jakse [Sun, 5 Apr 2020 08:12:37 +0000 (10:12 +0200)]
Linting
Raphaël Jakse [Sat, 4 Apr 2020 16:08:28 +0000 (18:08 +0200)]
Linting
Raphaël Jakse [Sat, 4 Apr 2020 15:19:28 +0000 (17:19 +0200)]
Indent a switch statement
Raphaël Jakse [Sat, 4 Apr 2020 14:57:44 +0000 (16:57 +0200)]
Introduce a flag for debug logging
Raphaël Jakse [Sat, 4 Apr 2020 14:51:45 +0000 (16:51 +0200)]
Store when a game was last updated
Raphaël Jakse [Sat, 4 Apr 2020 14:27:35 +0000 (16:27 +0200)]
Avoid a 404 error related to en.js
Raphaël Jakse [Sat, 4 Apr 2020 14:27:18 +0000 (16:27 +0200)]
Lint
Raphaël Jakse [Sat, 4 Apr 2020 14:19:57 +0000 (16:19 +0200)]
Keep alive
Raphaël Jakse [Sat, 4 Apr 2020 14:17:23 +0000 (16:17 +0200)]
Support server-sent events
Raphaël Jakse [Sat, 4 Apr 2020 13:39:10 +0000 (15:39 +0200)]
Refactor: retry polling in a dedicated function