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
ff7e6539c7
changed imports
2023-01-03 09:32:01 +01:00
c67539eb73
added all tables classes
2023-01-03 09:20:13 +01:00
AudricV
c98211a67f
[Server] Add legal pages to existing routes
2023-01-03 09:07:50 +01:00
AudricV
0aeb70daa0
[Client] Add licenses HTML page
2023-01-03 09:07:50 +01:00
AudricV
81d25df846
[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-03 09:07:50 +01:00
AudricV
c5fc17c897
[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-03 09:07:49 +01:00
AudricV
94eb394f61
[Client] Add legal style
2023-01-03 09:07:49 +01:00
AudricV
e07a6881ba
[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-03 09:07:49 +01:00
AudricV
9646fcf5a1
[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-03 09:07:49 +01:00
AudricV
15525b76a3
[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-03 09:07:41 +01:00
AudricV
e80c3e5763
[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-02 19:15:39 +01:00
Thomas Rubini
2b041a3947
Create test_api.yml
2022-12-12 15:39:33 +01:00
Thomas Rubini
f098465c15
add dev-requirements.txt
2022-12-12 15:39:32 +01:00
Thomas Rubini
270eae372c
add requirements.txt
2022-12-12 15:39:24 +01:00
Thomas Rubini
0210bd8fc5
Merge pull request #10 from ThomasRubini/server_API_TEST_REFRACTOR
2022-12-12 14:46:11 +01:00
Thomas Rubini
56b0f09fb5
updated tests README
2022-12-12 14:45:51 +01:00
f3244279d0
refractor: changed test api
2022-12-12 14:45:48 +01:00
302ba5d73d
added the classes place, locales and questions
2022-12-07 15:02:23 +01:00
Thomas Rubini
63d6ca280f
Merge pull request #9 from ThomasRubini/instance
2022-12-02 10:30:59 +01:00
Thomas Rubini
a09e9a3ad3
create instance directory
2022-12-02 10:27:58 +01:00
Thomas Rubini
95b987dbc0
Merge pull request #7 from ThomasRubini/server_API_TEST
2022-12-01 15:30:10 +01:00
Thomas Rubini
24343acb10
Merge pull request #4 from ThomasRubini/web_start-page
2022-12-01 13:21:16 +01:00
Thomas Rubini
fa84404852
refactor client code to be used with the server
2022-12-01 11:58:04 +01:00
31b5f3ed88
finished the sentence in the readme
2022-12-01 11:48:17 +01:00
9af05a55e1
fixed some test that shouldn't pass
2022-12-01 11:45:09 +01:00
AudricV
47b82f2b69
[Client] Accessibility improvements
...
- Add lang attribute with fr value on the html element;
- Fix alternative text for the theme switcher button;
- Add title attribute on footer links.
2022-12-01 11:41:33 +01:00
AudricV
274f61f651
[Client] Add common script
...
This script is in charge to detect whether the client is compatible with the
game (not being Internet Explorer, having support of local storage and
websockets).
It also manages the theme preference, stored in the localStorage, and displays
the corresponding theme according to this preference.
2022-12-01 11:41:33 +01:00
AudricV
3510bba36a
[Client] Add start background
...
This background has been created with the help of icons from icons8.com, using
the Free license.
Linking to Icons8 must be done in the pages where their icons are used, see
https://icons8.com/license .
2022-12-01 11:41:33 +01:00
AudricV
256e2a242b
[Client] Add icons for the theme switcher
...
These icons come from Google Fonts and are licensed under the Apache License
Version 2.0.
2022-12-01 11:41:33 +01:00