Commit Graph

361 Commits

Author SHA1 Message Date
Thomas Rubini
04be0b641e
add setQuestions endpoint and access it from js 2023-03-12 12:57:42 +01:00
Thomas Rubini
25eeae34ba
allow makeAPIRequest() to handle JSON requests 2023-03-12 12:57:42 +01:00
Thomas Rubini
e1ea41b6d1
add 'go back' buttons 2023-03-12 12:57:42 +01:00
Thomas Rubini
f3fa09e25f
implement get_questions() API 2023-03-12 12:57:42 +01:00
Thomas Rubini
f546ef5efd
add admin API 2023-03-12 12:57:42 +01:00
Thomas Rubini
5d79915829
add admin pages 2023-03-12 12:57:42 +01:00
Thomas Rubini
1f52c7c98c
Handle server JSON responses which do not have 'error' key 2023-03-12 12:57:42 +01:00
Thomas Rubini
8feebb3454
Merge pull request #90 from ThomasRubini/model_change 2023-03-12 12:30:15 +01:00
Thomas Rubini
b10c87dcc5
add Text table because foreign keys must reference an unique column 2023-03-12 00:03:09 +01:00
Thomas Rubini
fe32c7d394
modify Answer table 2023-03-11 22:58:06 +01:00
Thomas Rubini
272cb1b3bd
change foreign keys refs 2023-03-11 17:55:50 +01:00
Thomas Rubini
b10c9589f1
Merge pull request #89 from ThomasRubini/README 2023-03-11 17:15:23 +01:00
Thomas Rubini
9419324aa2
update string representations of tables 2023-03-11 17:14:35 +01:00
Thomas Rubini
c450bd36b0
Modify Question table and rename to QuestionType 2023-03-11 17:10:10 +01:00
Thomas Rubini
5f84794e24
Modify Locale table 2023-03-11 17:06:21 +01:00
953b4d522d added .env instruction to the readme 2023-03-10 15:35:10 +01:00
Audric V
86bcfefaac
Merge pull request #88 from ThomasRubini/js-refactor
[Client] Refactor JavaScript
2023-03-10 11:13:29 +01:00
AudricV
c825f588ae
[Client] Refactor API JavaScript code
Add documentation on functions and remove debug logging
2023-03-10 10:30:13 +01:00
AudricV
dbfc277afb
[Client] Remove elements to clone in JavaScript in the game page
The elements to clone are now embedded in the corresponding JavaScript file, so
there is no need for them to be kept in the HTML page.

Also remove on the culprit img element the src attribute to avoid network
requests on an unexisting file and the alt attribute, as they are appended
dynamically with JavaScript.
2023-03-10 10:30:13 +01:00
AudricV
47a3088b4d
[Client] Refactor and improve game JavaScript code 2023-03-10 10:29:55 +01:00
AudricV
09b925eb67
[Client] Refactor and improve lobby JavaScript code 2023-03-09 18:17:20 +01:00
AudricV
1a05876c1b
[Client] Refactor common JavaScript code
Also do minor changes:

- Add utility functions to hide and show the first element matching a CSS
class;
- Add SameSite property with Strict value to the temporary cookie used to
detect cookies availability on the client.
2023-03-09 18:11:04 +01:00
Thomas Rubini
fa397939d7
Merge pull request #86 from ThomasRubini/models_flask_link 2023-03-09 14:41:45 +01:00
Thomas Rubini
38f682a2d6
add example import script 2023-03-09 14:40:44 +01:00
Thomas Rubini
42e4b43f0c
Do not link SQLAlchemy models to Flask 2023-03-09 14:40:42 +01:00
Thomas Rubini
71fe6b066b
Merge pull request #85 from ThomasRubini/doc_tables 2023-03-06 10:39:10 +01:00
Thomas Rubini
99a9032826
fix wrong comments 2023-03-06 10:37:53 +01:00
Thomas Rubini
ff5056ab61
add comments to SQL tables 2023-02-27 13:52:44 +01:00
2b6673d4a9
Merge pull request #84 from ThomasRubini/api_doc
add API documentation yaml
2023-02-16 12:02:26 +01:00
Thomas Rubini
a5b63e158c
regenerate docs
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com>
2023-02-16 12:01:01 +01:00
Thomas Rubini
cd4d0b9e47
Translate API docs in english
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com>
2023-02-16 11:57:52 +01:00
Thomas Rubini
e9d3781a30
Merge pull request #83 from ThomasRubini/css_refactor 2023-02-16 11:43:56 +01:00
AudricV
4b6cbc9214
[Client] Refactor legal game style
- Order properties alphabetically
- Use colors variables from global style
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:41:19 +01:00
AudricV
b5648ebf53
[Client] Refactor lobby game style
- Order properties alphabetically
- Use colors variables from global style
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:41:19 +01:00
AudricV
c0486c70f2
[Client] Refactor gameplay game style
- Order properties alphabetically
- Use colors variables from global style and move gameplay colors into
  variables
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:41:03 +01:00
AudricV
14747b53b7
[Client] Refactor start game style
- Order properties alphabetically
- Use colors variables from global style
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:08:37 +01:00
AudricV
97473aea56
[Client] Refactor global game style
- Order properties alphabetically
- Move colors into variables
- Merge some common properties between selectors into a common declaration
- Do some minor improvements
2023-02-16 11:08:37 +01:00
Thomas Rubini
a014878e0e
Merge pull request #82 from ThomasRubini/fix 2023-02-16 11:08:15 +01:00
7cfcf1af2a fixed : get reaction description, desc was moved 2023-02-16 11:06:18 +01:00
Thomas Rubini
59735916a1
add API documentation yaml
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com>
2023-02-16 09:50:01 +01:00
54ec5640f1
Merge pull request #78 from ThomasRubini/sql
added datadump
2023-02-16 09:39:44 +01:00
394bff7945 added datadump 2023-02-16 09:37:22 +01:00
Thomas Rubini
7b3b2c868d
Merge pull request #77 from ThomasRubini/err_handler 2023-02-16 09:24:14 +01:00
Thomas Rubini
5c713c409b
add error handler 2023-02-16 09:23:41 +01:00
Thomas Rubini
8d83d2afa0
Merge pull request #73 from ThomasRubini/APP 2023-02-16 08:30:06 +01:00
Thomas Rubini
c50b73477c
Remove last occurences of 'APP' 2023-02-16 08:28:58 +01:00
Thomas Rubini
dbf4086e56
Merge pull request #71 from ThomasRubini/refactor 2023-02-11 22:44:05 +01:00
Thomas Rubini
5c796ba90e
refactor tests 2023-02-11 22:43:14 +01:00
Thomas Rubini
f4002b4ac7
create all tables on startup 2023-02-11 22:43:14 +01:00
Thomas Rubini
653151c8bd
refactor app to follow python and flask best practices 2023-02-11 22:43:11 +01:00