Commit Graph

414 Commits

Author SHA1 Message Date
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
42f655d7fd refractor: changed test api 2023-01-06 08:33:50 +01:00
Thomas Rubini
829d092e55 create instance directory 2023-01-06 08:33:50 +01:00
Thomas Rubini
a5bba9d3a4
create socketio routes 2023-01-05 23:14:40 +01:00
Thomas Rubini
f1d371c5f2
refactor 'games_list' in app class 2023-01-05 23:13:51 +01:00
Thomas Rubini
9156793852
refactor 'app' to 'APP' 2023-01-05 23:13:47 +01:00
Thomas Rubini
03ab987f78
init flask-socketio + put app in a custom class 2023-01-05 15:57:34 +01:00
Thomas Rubini
a536e9c82b
add flask-socketio to requirements 2023-01-05 15:57:34 +01:00
Thomas Rubini
5dd60303cd
Merge pull request #16 from ThomasRubini/tests 2023-01-05 15:46:16 +01:00
Thomas Rubini
222a119a21
fix test that game cannot be started twice 2023-01-05 15:45:02 +01:00
Thomas Rubini
2f29aa48bc
prevent start from starting twice 2023-01-05 15:45:02 +01:00
Thomas Rubini
285ca1171b
do not collect exception class 2023-01-05 15:45:02 +01:00
Thomas Rubini
9829f13743
replace more asserts with exception checks in tests 2023-01-05 15:45:02 +01:00
Thomas Rubini
824190348d
check if username is already added to the game 2023-01-05 15:45:02 +01:00
Thomas Rubini
39377d8c9b
check if username is alphanumeric 2023-01-05 15:45:02 +01:00
Thomas Rubini
f8783885f6
use a custom error class in tests 2023-01-05 15:45:02 +01:00
Thomas Rubini
a926206db8
update tests to detect exceptions 2023-01-05 15:45:02 +01:00
Thomas Rubini
45dface44b
check if username is valid 2023-01-05 15:45:02 +01:00
Thomas Rubini
56a77b31c4
remove prints in tests 2023-01-05 15:45:02 +01:00
Thomas Rubini
23ef34e4cf
replace "status" with "error" and "msg" in error codes 2023-01-05 15:45:02 +01:00
Thomas Rubini
2ced516acc
Merge pull request #15 from ThomasRubini/get_game_info 2023-01-05 15:22:28 +01:00
Thomas Rubini
096d324ba3
remove getGameInfo endpoint 2023-01-05 15:22:07 +01:00
Thomas Rubini
b383a4cfbe
Merge pull request #14 from ThomasRubini/flask_sessions 2023-01-05 15:19:45 +01:00
Thomas Rubini
7f1a6349c9
modify tests to not use jwt 2023-01-05 15:16:40 +01:00
Thomas Rubini
50459210e5
use flask sessions instead of jwt 2023-01-05 15:16:40 +01:00
AudricV
eca60f10a6
Merge pull request #13 from ThomasRubini/client_game_start_mode_selection
[Client] Add game selection view to start page
2023-01-04 13:47:44 +01:00
AudricV
12a0626d64
[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-04 13:29:39 +01:00
AudricV
6a0d7547c2
[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-03 17:01:17 +01:00
Thomas Rubini
72a5967b90
Merge pull request #11 from ThomasRubini/ci 2023-01-03 15:26:15 +01:00
AudricV
62ebdedfe7
Merge pull request #12 from ThomasRubini/client_legal-pages-and-main-page-improvements
[Client] Add legal pages and improve main page
2023-01-03 15:01:42 +01:00
54d719065b added remote connection 2023-01-03 14:39:25 +01:00
38c3ed3f64 added data presets 2023-01-03 13:41:05 +01:00
8d9886fc8d renamed file 2023-01-03 09:32:43 +01:00