Commit Graph

37 Commits

Author SHA1 Message Date
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
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
829d092e55 create instance directory 2023-01-06 08:33:50 +01:00
Thomas Rubini
fa84404852
refactor client code to be used with the server 2022-12-01 11:58:04 +01:00
96a5271822
Merge pull request #8 from ThomasRubini/server_ui
Basic UI pages
2022-12-01 11:40:45 +01:00
Thomas Rubini
67afb7ac8f
Basic UI pages 2022-12-01 10:57:39 +01:00
e0ffdafa7d
Merge pull request #6 from ThomasRubini/server_401
Always return 200 for consistency
2022-12-01 10:54:30 +01:00
Thomas Rubini
e47063207c
Always return 200 for consistency 2022-12-01 10:52:30 +01:00
Thomas Rubini
cb529c558e
use request.values instead of request.args 2022-12-01 10:43:41 +01:00
Thomas Rubini
bc410e93a5
allow POST requests on the API 2022-12-01 10:35:12 +01:00
Thomas Rubini
5c9f01efad
Misplaced comment 2022-11-29 15:11:33 +01:00
Thomas Rubini
54785f04ee
endpoint /startGame + jwt_required decorator 2022-11-29 14:51:04 +01:00
Thomas Rubini
5c162dd4fb
refactor 2022-11-29 13:54:38 +01:00
Thomas Rubini
812c886517
add 'game_type' field to JWT 2022-11-29 13:40:02 +01:00
Thomas Rubini
4b3c027385
Deprecate /getGameInfo endpoint 2022-11-29 13:35:11 +01:00
Thomas Rubini
563ce9ede7
add username in Member#__str__ 2022-11-29 13:33:16 +01:00
Thomas Rubini
291674eab1
Change 'id' field to 'game_id' 2022-11-29 13:31:38 +01:00
Thomas Rubini
516cf831a6
rename GameInfo to Game 2022-11-29 13:29:34 +01:00
Thomas Rubini
9e0a61cd87
add string representation for classes 2022-11-29 13:28:54 +01:00
Thomas Rubini
657a90955f
replace game_lists with games_list 2022-11-29 12:07:54 +01:00
Thomas Rubini
1bcc552756
make GameInfo object manages itself + /joinGame endpoint 2022-11-29 12:07:14 +01:00
Thomas Rubini
3beabd84aa
generate secret securely 2022-11-29 10:12:06 +01:00
Thomas Rubini
361ade9abe
basic JWT generation + rename gameid to game_id 2022-11-29 10:06:15 +01:00
Thomas Rubini
4da6d75913
rename game_api.py to game_functions.py 2022-11-29 09:10:37 +01:00
e2301ec1e7 refractor + some doc 2022-11-28 15:35:59 +01:00
Thomas Rubini
d74f304330
basic game creation API 2022-11-17 17:26:15 +01:00
Thomas Rubini
1fa7e43bbe
basic structure 2022-11-17 16:12:30 +01:00