Commit Graph

146 Commits

Author SHA1 Message Date
AudricV
09ee0a616e
[Client] Add invalid rounds count CSS rule for challenge mode 2023-01-09 16:26:49 +01:00
AudricV
fe88154d57
[Client] Do a few changes to the lobby template
- Add an ID to start buttons;
- Add an invalid input message for the challenge mode;
- Turn the room code into a link.
2023-01-09 16:26:49 +01:00
AudricV
1e7f130081
[Client] Add game room style
Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-09 16:26:49 +01:00
AudricV
01ac22eb12
[Client] Add join room view 2023-01-09 16:26:49 +01:00
AudricV
6f78b3fc14
[Client] Add lobby room view
Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-09 16:26:36 +01:00
AudricV
298d0e3e34
[Client] Move theme setting to the start page
The theme setting is only used on this page right now, so it makes no sense to
include in other pages.
2023-01-09 10:59:47 +01:00
3ce9fea232
Merge pull request #20 from ThomasRubini/get_images
added get png from api
2023-01-09 09:58:53 +01:00
51e5ac5c3b added get png from api 2023-01-09 09:57:30 +01:00
8720dc39f3
Merge pull request #19 from ThomasRubini/game_logic
server side game logic
2023-01-08 16:32:51 +01:00
47dd6a2bc8 added pymysql in requirements 2023-01-08 16:29:48 +01:00
8db1c4c618 added sqlalchemy in requirements 2023-01-08 16:28:28 +01:00
59f9965925 Merge branch 'main' into game_logic 2023-01-08 16:24:43 +01:00
6127c86ae7 server side game logic and moved data_persistance 2023-01-08 16:20:19 +01:00
Thomas Rubini
5ddb127019
Merge pull request #18 from ThomasRubini/socket 2023-01-08 12:12:30 +01:00
171740362d
Merge pull request #17 from ThomasRubini/server_SQL
SQL Data Persistance
2023-01-07 17:15:22 +01:00
a07e8270e3 slight data tables refactor + initial db data 2023-01-07 17:09:08 +01:00
cb38bf9408 added to string to missing classes 2023-01-06 09:20:08 +01:00
Thomas Rubini
fc059670f4
emit socket events on game start/join 2023-01-06 08:52:41 +01:00
4e43ba853e fixed typo + data table drop at script launch 2023-01-06 08:52:24 +01:00
8033002eea changed architecture 2023-01-06 08:33:51 +01:00
853dafca92 renamed file 2023-01-06 08:33:51 +01:00
Thomas Rubini
2459d74df0 fix test that game cannot be started twice 2023-01-06 08:33:51 +01:00
Thomas Rubini
8c6128d45e prevent start from starting twice 2023-01-06 08:33:51 +01:00
Thomas Rubini
ca18e58e9d do not collect exception class 2023-01-06 08:33:51 +01:00
Thomas Rubini
d624ed9918 replace more asserts with exception checks in tests 2023-01-06 08:33:51 +01:00
Thomas Rubini
8550041345 check if username is already added to the game 2023-01-06 08:33:51 +01:00
Thomas Rubini
c670cd36e1 check if username is alphanumeric 2023-01-06 08:33:51 +01:00
Thomas Rubini
178894da06 use a custom error class in tests 2023-01-06 08:33:51 +01:00
Thomas Rubini
94ffdb10a1 update tests to detect exceptions 2023-01-06 08:33:51 +01:00
Thomas Rubini
b9f6b3245e check if username is valid 2023-01-06 08:33:51 +01:00
Thomas Rubini
0efba544bc remove prints in tests 2023-01-06 08:33:51 +01:00
Thomas Rubini
1ccabac77e replace "status" with "error" and "msg" in error codes 2023-01-06 08:33:51 +01:00
Thomas Rubini
2548cab78e remove getGameInfo endpoint 2023-01-06 08:33:51 +01:00
Thomas Rubini
3706198149 modify tests to not use jwt 2023-01-06 08:33:51 +01:00
Thomas Rubini
99a7ddf66e use flask sessions instead of jwt 2023-01-06 08:33:51 +01:00
AudricV
74f5c82a5d [Client] Add initial interactions on the game selection view
These interactions are checks of nickname and room code validity, where it is
relevant.

Also set a maximum room code length to 20 characters, at least for now.
2023-01-06 08:33:51 +01:00
AudricV
4c5f56edcf [Client] Add game selection view to start page
Some changes in the existing code have been also made to avoid code duplication
and fix some issues.

Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-06 08:33:51 +01:00
Thomas Rubini
6710e72cd1 Create test_api.yml 2023-01-06 08:33:51 +01:00
Thomas Rubini
c554ed13ad add dev-requirements.txt 2023-01-06 08:33:51 +01:00
Thomas Rubini
271bf37758 add requirements.txt 2023-01-06 08:33:51 +01:00
AudricV
6d960222cc [Server] Add legal pages to existing routes 2023-01-06 08:33:51 +01:00
AudricV
78766ca728 [Client] Add licenses HTML page 2023-01-06 08:33:50 +01:00
AudricV
63fdac4f39 [Client] Add privacy policy HTML page
The privacy policy by itself will have to be added by Flask using the
html_privacy_policy variable and its last updated date using the
privacy_policy_last_updated_date variable.
2023-01-06 08:33:50 +01:00
AudricV
c4b6807c8e [Client] Add legal mentions HTML page
The legal mentions themselves will have to be added by Flask using the
html_legal_mentions variable.
2023-01-06 08:33:50 +01:00
AudricV
907c9c6f15 [Client] Add legal style 2023-01-06 08:33:50 +01:00
AudricV
d6220c0600 [Client] Add Roboto Mono font
This font will be used on the legal pages and could be used as the font of some
text blocks of the game.

Version 22 of the font has been added.

Roboto Mono is made by Christian Robertson, licensed under the Apache 2.0
License.
2023-01-06 08:33:50 +01:00
AudricV
84813790a6 [Client] Use absolute path for resources in the home page and fix some issues
- Fix game name in the game title
- Remove fill property from the theme switcher button to allow changing its
color when hovering it
2023-01-06 08:33:50 +01:00
AudricV
dac91b422f [Client] Add transition on the action button
Also remove game title text effect due to different rendering between browsers.

Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-06 08:33:50 +01:00
AudricV
8ecb3a6f3a [Client] Add transitions for theme switcher button and footer links
The following are also included in this commit:
- add missing swap property for Titan One font;
- move links decoration and visited properties into a specific class, link


Co-authored-by: Cazals Mathias <mathiascazals@users.noreply.github.com>
2023-01-06 08:33:50 +01:00
Thomas Rubini
536b28ff90 updated tests README 2023-01-06 08:33:50 +01:00