Thomas Rubini
ccac9c302c
Connect npc view to backend
2023-03-25 20:17:05 +01:00
Thomas Rubini
55018c90bb
add utility fucntions to query texts from locales
2023-03-25 20:16:48 +01:00
Thomas Rubini
1862ef9274
Remove debug calls to print()
2023-03-24 11:43:03 +01:00
Thomas Rubini
d9d2b24859
fix css resource path
2023-03-23 21:06:11 +01:00
e020de963b
Merge pull request #114 from ThomasRubini/playerlistEndpoint
...
can see player before joining game
2023-03-20 16:44:22 +01:00
Djalim Simaila
cc3728b62f
can see player before joining game
2023-03-20 16:39:37 +01:00
Thomas Rubini
c69edc3248
Merge pull request #113 from ThomasRubini/admin_html
2023-03-20 16:37:30 +01:00
Audric V
e9ac9523f6
Merge pull request #109 from ThomasRubini/client_add-game-backgrounds-blur-filter
...
[Client] Add blur filter for game backgrounds to increase visibility of texts
2023-03-20 16:34:15 +01:00
Cazals Mathias
ede7a45ae5
update questions file in for admin
2023-03-20 16:02:52 +01:00
Cazals Mathias
54ec4bf618
update admin files
2023-03-20 15:55:40 +01:00
Thomas Rubini
d951660bed
Merge pull request #112 from ThomasRubini/questions
2023-03-20 15:52:13 +01:00
Thomas Rubini
1220e570fb
Generate /admin/questions using flask template
2023-03-20 15:51:37 +01:00
Djalim Simaila
3b2d4ca693
added missing docstring in game_lobby.js
2023-03-20 15:11:57 +01:00
Djalim Simaila
e72f9a9790
added missing docstring in game_start_page.js
2023-03-20 15:11:57 +01:00
8d878d8eff
added docstring to the game.js file
2023-03-20 15:11:57 +01:00
AudricV
7a06129346
[Client] Add blur filter for game backgrounds to increase visibility of texts
2023-03-20 14:26:33 +01:00
Thomas Rubini
30d903db38
fix tab
2023-03-20 14:17:54 +01:00
AudricV
e83591c9ef
[Client] Add button to go back to the home page on game results view
...
This button has been placed at the top right of the page.
Also merge some common properties into a single one.
2023-03-20 13:43:46 +01:00
Thomas Rubini
05295f30fb
query all places at once
2023-03-19 12:22:19 +01:00
Thomas Rubini
8041be1fea
query all npcs at once
2023-03-19 12:18:16 +01:00
Thomas Rubini
7a2a23729d
refactor error message for npc reaction
2023-03-19 12:08:26 +01:00
Thomas Rubini
4438e8f2ff
remove code 500 on invalid npc
2023-03-19 12:06:05 +01:00
Thomas Rubini
c2aeede354
make backend use database to return images
2023-03-19 12:05:50 +01:00
Thomas Rubini
4d7ac75ecc
move reaction files
2023-03-19 11:12:04 +01:00
Thomas Rubini
066943d8a8
change reaction import system to read from a directory + add default npc image
2023-03-19 11:11:52 +01:00
Thomas Rubini
23dc6962d8
add npc reaction images to database
2023-03-19 10:43:27 +01:00
Thomas Rubini
3aae90aab8
add autoincrement to some primary keys
2023-03-19 10:29:13 +01:00
Thomas Rubini
98a4635a12
update places view and connect with backend
2023-03-18 23:09:24 +01:00
Thomas Rubini
12eb1afa84
update backend to delete traits in db
2023-03-18 19:03:39 +01:00
Thomas Rubini
8451100415
add button to delete trait
2023-03-18 19:03:31 +01:00
Thomas Rubini
0a130fe955
connect traits view with backend
2023-03-18 18:41:38 +01:00
Thomas Rubini
ab0b6efccc
fix id not being reset on new traits
2023-03-18 18:41:38 +01:00
Thomas Rubini
f73f0801d7
add "Add new" button for traits
2023-03-18 18:41:38 +01:00
Thomas Rubini
969ef67c08
add traits back office view
2023-03-18 18:41:38 +01:00
Thomas Rubini
b0b25b82cf
replace faulty TEXT_ID occurences with LID
2023-03-18 18:40:35 +01:00
Thomas Rubini
2e1e69584f
add back office places view
2023-03-18 16:09:42 +01:00
Thomas Rubini
5ac435b3f3
remove get_or_empty() function
2023-03-18 16:03:48 +01:00
Thomas Rubini
b9abe99673
add npc list to admin index
2023-03-18 15:57:36 +01:00
Thomas Rubini
92c6d089e7
add back office npc view
2023-03-18 15:48:58 +01:00
Thomas Rubini
25851dc8a3
add backrefs to models
2023-03-18 15:48:58 +01:00
Thomas Rubini
d50edf9b63
add option for new npc
2023-03-18 15:48:58 +01:00
Thomas Rubini
6c07221b7d
Finish set_questions endpoint
2023-03-16 14:39:51 +01:00
51edb750ce
fixed code to use new model
2023-03-15 15:06:44 +01:00
278ed41630
fixed code to use new model
2023-03-14 17:56:20 +01:00
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
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
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
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
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
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
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
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
Thomas Rubini
5c713c409b
add error handler
2023-02-16 09:23:41 +01:00
Thomas Rubini
c50b73477c
Remove last occurences of 'APP'
2023-02-16 08:28:58 +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
Thomas Rubini
dbb64dcf11
cleanup imports in __init__
...
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com>
2023-02-03 15:45:18 +01:00
Thomas Rubini
7b72ab0fc5
move DESC_LID to T_TRAIT
...
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com>
2023-02-03 15:31:18 +01:00
Thomas Rubini
0dc59450a7
use flask-sqlalchemy instead of sqlalchemy
...
Co-authored-by: Djalim Simaila <DjalimSimaila@users.noreply.github.com>
2023-02-03 13:25:10 +00:00
Thomas Rubini
2ceddbe860
Merge pull request #68 from ThomasRubini/question_timeout
2023-02-03 14:24:42 +01:00
9e936f906c
game question timeout set to 2sec
2023-02-03 13:24:04 +00:00
fb28fe7464
compressed background images
2023-02-03 13:18:52 +00:00
649ca0de6a
Merge pull request #65 from ThomasRubini/doc
...
api docs again
2023-01-16 23:50:42 +01:00
d2cb03c8be
api docs again
2023-01-16 23:49:43 +01:00
b95a68b698
Merge pull request #64 from ThomasRubini/doc
...
api docs
2023-01-16 23:48:24 +01:00
fd0711c19a
api docs
2023-01-16 23:46:59 +01:00
AudricV
c8f33e7d45
[Client] Fix game background position on some screens
2023-01-16 23:44:56 +01:00
AudricV
8a6fcdce9e
[Client] Hide all other suspect buttons when a suspect is selected as the culprit
2023-01-16 23:43:28 +01:00
AudricV
06d3faad87
[Client] Show game background based on current view
...
Also reformat the game JavaScript file
2023-01-16 23:17:34 +01:00
AudricV
afbc52baef
[Client] Add favicons to HTML pages
...
All resolutions have been added, so the client can choose the best appropriate
resolution.
2023-01-16 22:51:55 +01:00
AudricV
f43bf7c2be
[Client] Add favicons
...
Favicons added are PNG images only, with resolutions 32x32, 64x64, 128x128,
192x192, 256x256 and 512x512.
They should work on browsers supported by the game.
2023-01-16 22:50:29 +01:00
cb58548c94
typos
2023-01-16 16:39:51 +01:00
Thomas Rubini
ebae7254b6
put 'Lien' instead of 'Code'
2023-01-16 15:03:40 +01:00
Thomas Rubini
3011c4b2b5
rename app name from truthseeker to truthinquiry
2023-01-16 14:36:49 +01:00