Commit Graph

41 Commits

Author SHA1 Message Date
AudricV
b0afabfde6
[Client] Add logout link on JavaScript disabled dialog for admin pages
Also remove an unneeded CSS class in the dialog message.
2023-04-03 18:58:25 +02:00
AudricV
bec8f87620
[Client] Improve login button on admin login page
Add an icon and a title on the login button to improve its accessibility and
design.
2023-04-03 18:58:25 +02:00
AudricV
68c62b5e03
[Client] Improve traits management admin page
- Fix HTML, improve style of the feature and add its dedicated CSS file;
- Improve admin traits' JavaScript and fix addition of a trait where there is
no one already present;
- Remove unneeded admin.js file, as all its functions have been improved and
split into separate files.
2023-04-03 18:58:24 +02:00
AudricV
0707dce218
[Client] Improve reaction images management on NPC admin page
- Fix HTML and improve style of the feature;
- Improve admin NPC's JavaScript and fix addition of a reaction image where
there is no one already present;
- Allow upload of images with image/jpg MIME type;
- Fix attribute name of a hidden input;
- Apply the hover effects of links and buttons on their focus, for all admin
pages.
2023-04-03 18:33:25 +02:00
AudricV
2b20185ff5
[Client] Improve places admin page + fix its JavaScript
- Use proper HTML;
- Add specific CSS of this page in a dedicated file;
- Add common header;
- Move places' JavaScript in a dedicated file, improve its code and fix its
access to DOM elements.
2023-04-03 18:33:24 +02:00
AudricV
4d46c62aae
[Client] Improve questions on admin page + fix its JavaScript and deduplicate common style
- Use proper HTML;
- Add CSS file specific to this page;
- Deduplicate common style by moving it into the admin_ui CSS file and do the
corresponding changes in the admin CSS and HTML files;
- Add common header;
- Move questions's JavaScript in a dedicated file, improve its code and fix its
access to DOM elements.
2023-04-03 18:33:24 +02:00
Thomas Rubini
22cfaf5cac
handle the case when there are no reactions 2023-04-02 00:08:35 +02:00
Thomas Rubini
d9ddb96e80
remove reaction_id with trait_id 2023-04-01 18:55:51 +02:00
Thomas Rubini
93409c5e54
allow to add and delete reactions (backend) 2023-04-01 18:54:08 +02:00
Thomas Rubini
d5199a6ef1
allow to add and delete reactions (frontend only) 2023-04-01 17:48:25 +02:00
Thomas Rubini
3a8680e41a
add reactions images to npc view 2023-04-01 17:48:24 +02:00
AudricV
186e66a103
[Client] Improve NPC admin page + move and fix its JavaScript into a separate file
- Style all button and inputs on admin pages with Roboto Mono font (and
sans-serif as a fallback) with 1em font size;
- Remove unneeded transition effect property declaration on text hover, as the
regular declaration is applied when switching from hover state to regular
state.
- Add NPC dedicated stylesheet in which specific NPC style has been added;
- Use an icon where the picture of a NPC is not available (like when adding a
new one) and provide the NPC picture as the picture instead of the edition page
itself;
- Move NPC's JavaScript in a dedicated file, improve its code and fix its
access to DOM elements.
2023-04-01 15:05:19 +02:00
AudricV
6b1d278712
[Client] Improve admin index page
- Use proper HTML;
- Add common CSS to all administration pages and specific CSS to this one;
- Add common header;
- Remove unneeded script in the index page.
2023-04-01 15:03:16 +02:00
AudricV
af02671812
[Client] Improve admin login page 2023-04-01 14:55:53 +02:00
Thomas Rubini
a778756f3c
add logout button to admin panel 2023-03-31 11:16:03 +02:00
Thomas Rubini
3c8f9a1ada
Allow to delete npcs 2023-03-29 10:11:55 +02:00
Thomas Rubini
da0c50988f
remove typo 2023-03-29 09:55:00 +02:00
Thomas Rubini
fb75ee1c3a
Rename js admin functions 2023-03-29 09:53:57 +02:00
Thomas Rubini
c81217f07b
remove lang selection from questions 2023-03-28 20:56:59 +02:00
Thomas Rubini
5c62e0bd23
Show message when password is invalid 2023-03-27 17:19:36 +02:00
Thomas Rubini
9433d625f9
add admin auth method 2023-03-27 17:12:49 +02:00
Thomas Rubini
ccac9c302c
Connect npc view to backend 2023-03-25 20:17:05 +01:00
Thomas Rubini
d9d2b24859
fix css resource path 2023-03-23 21:06:11 +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
1220e570fb
Generate /admin/questions using flask template 2023-03-20 15:51:37 +01:00
Thomas Rubini
30d903db38
fix tab 2023-03-20 14:17:54 +01:00
Thomas Rubini
98a4635a12
update places view and connect with backend 2023-03-18 23:09:24 +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
2e1e69584f
add back office places view 2023-03-18 16:09:42 +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
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
Thomas Rubini
04be0b641e
add setQuestions endpoint and access it from js 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
5d79915829
add admin pages 2023-03-12 12:57:42 +01:00