301fc73687
Fix markdown input initial value and crash when alpine is not loaded
2024-10-20 18:13:48 +02:00
45441c351d
Improve ajax-select style
2024-10-20 17:37:51 +02:00
be5ce414ba
Add proper delete button and fix item ordering
2024-10-20 16:57:38 +02:00
8bbebfdb13
Add AutoCompleteSelectGroup
2024-10-20 13:33:44 +02:00
0af3505c2a
Make a generic AjaxSelect abstract class
2024-10-20 02:26:32 +02:00
8be8328830
Create select widget based on tomselect on django backend
...
Replace make_ajax in elections by the new widget
2024-10-19 21:32:58 +02:00
0a0092e189
Add link-once and script-once web components
2024-10-19 18:55:32 +02:00
c50f0a2ac5
Simplify ajax-select inheritance and make simple auto complete
2024-10-19 16:02:54 +02:00
6b3012d21c
Fix broken sas ui in webkit based browsers
2024-10-18 23:50:04 +02:00
729f848c14
Add min-characters-for-search attribute for user-ajax-select
2024-10-18 23:34:37 +02:00
56cc4776a6
Create base class for ajax-select
2024-10-18 23:26:04 +02:00
4165f8d4af
Add register decorator for web components and a better inheriting system for html elements
2024-10-17 23:14:54 +02:00
cac185634d
Avoid keeping text after selecting item
2024-10-17 18:21:51 +02:00
66dceefcf0
Fix bad constructor when adding attrs that are not part of the parent and fix tom-select on safari
2024-10-17 18:15:55 +02:00
677ff51ea5
Create web component util
2024-10-17 18:15:55 +02:00
645b8a543e
Make easymde compatible with safari
2024-10-17 18:15:55 +02:00
74a506c48b
Add missing features
...
* Fix display
* Add internationalization
* Avoid querying under a certain amount of characters
* Update docs for translations with typescript
* Add interpolate to typescript globals
2024-10-17 18:15:55 +02:00
deda2b4055
Replace selec2 with tom-select
2024-10-17 18:15:55 +02:00
imperosol
5d16ba135a
fix: xss on select2 results
2024-10-17 08:15:34 +02:00
d114b01bcc
Make sure Alpine is always loaded when using markdown-input component
2024-10-15 00:28:43 +02:00
670d2fa12e
Use a web component for easymde
...
* Bump tsconfig output to es6
* Fix wrong import behavior on typescript according to webpack's doc
* Create an easymde component
2024-10-15 00:28:43 +02:00
thomas girod
496ad7ce9b
Merge pull request #868 from ae-utbm/delete-picture-confirm-button
...
Delete picture confirm button
2024-10-14 14:12:50 +02:00
7e1734aed5
Migrate chartjs to npm
2024-10-14 00:55:48 +02:00
imperosol
19cd51043a
feat: display moderation requests to moderators
2024-10-14 00:47:07 +02:00
361a06e5b3
Migrate sentry to webpack
2024-10-13 17:14:21 +02:00
40c623b202
Optimize select2 import
2024-10-13 10:55:15 +02:00
b6e1c3bc88
Add helper function to export ts functions to html
2024-10-13 10:55:15 +02:00
3b1d06a71d
Update select2 documentation
2024-10-13 10:55:15 +02:00
a5d8c96bab
Remove select2 from vendored
...
* Make core/utils/select2.ts
* Convert viewer-index.js to typescript
2024-10-13 10:55:15 +02:00
f07a855e7e
Remove history management from script.js and migrate sas albums to webpack
2024-10-12 19:19:23 +02:00
NaNoMelo
a1bae7ced3
fix empty options in paginated with typescript
2024-10-12 18:59:06 +02:00
579d077b35
Fix docstring
2024-10-10 15:45:43 +02:00
32444fac90
Apply review comments
2024-10-10 15:42:11 +02:00
849177562d
Add a way to get the base url of an endpoint
2024-10-10 02:57:54 +02:00
46e58bb49e
Remove fetchPaginated and migrate viewer.js to viewer-index.js in webpack
2024-10-09 21:46:56 +02:00
9199f91151
Use typescript api for user pictures and allow imports across js files
...
* Add imports paths for js files in node
* Add a ts version of fetchPaginated
* Update documentation
2024-10-09 20:59:12 +02:00
37f62e15cf
Use new typescript api for user graphs
2024-10-09 17:21:05 +02:00
a98c924b24
Use auto generated api for markdown input
2024-10-09 16:56:53 +02:00
6f4e93bb76
Use configuration object for load builders
2024-10-09 12:14:10 +02:00
93eb09887e
Fix translations
2024-10-09 12:14:10 +02:00
09081b03b6
Move family_graph.js to webpack
...
* Remove cytoscape dependencies
2024-10-09 12:14:10 +02:00
ceee393bd8
Move user_picture.js to webpack
...
* Fix relative path generation in webpack
* remove vendored/native-file-system-adapter
* remove vendored/zip.js
2024-10-09 12:14:10 +02:00
7405241b82
Apply all biomejs fixes
2024-10-08 17:14:22 +02:00
imperosol
20bea62542
use spaces for indentation
2024-10-08 13:54:44 +02:00
d0c18d4538
Format with biome instead of standard
2024-10-08 01:49:15 +02:00
a3cca056ae
Apply standard to easymde
2024-10-07 00:10:24 +02:00
ee965008d1
Properly fix no-unused-vars warning
2024-10-07 00:04:48 +02:00
c57d2ece9c
Apply standard formater and linter on js files
2024-10-07 00:04:48 +02:00
e5aa7aa866
Move easymde widget to easymde-index.js
2024-10-07 00:04:05 +02:00
271d57051e
Upgrade to fontawesome 6
...
* Adapt fontawesome usage when needed
* Fix uv guide not importing css
* Remove utf8 usage for fontawesome
2024-10-03 00:06:03 +02:00
655d72a2b1
Completely integrate wepack in django
...
* Migrate alpine
* Migrate jquery and jquery-ui
* Migrate shorten
* Add babel for javascript
* Introduce staticfiles django app
* Only bundle -index.js files in static/webpack
* Unify scss and webpack generated files
* Convert scss calls to static
* Add --clear-generated option to collectstatic
* Fix docs warnings
2024-10-02 16:11:02 +02:00
thomas girod
bb953a6139
Merge pull request #831 from ae-utbm/forum-css-rework
...
Forum css rework
2024-09-30 12:13:52 +02:00
thomas girod
c10e1e8cbf
fix profile pictures layout in Select2 results
2024-09-29 23:31:33 +02:00
thomas girod
3f2b63aaa5
move forum style into its own file
2024-09-27 11:21:33 +02:00
thomas girod
d29a5cdb44
Add the new 3DSv2 fields
2024-09-27 11:10:38 +02:00
thomas girod
3d138d404f
move webcam JS to its own file
2024-09-23 23:35:14 +02:00
thomas girod
d47461ba40
Merge pull request #830 from ae-utbm/repair-pagination
...
fix: `fetch_paginated`
2024-09-20 00:03:34 +02:00
thomas girod
d3cada4c95
fix family graph image exension
2024-09-19 20:52:10 +02:00
thomas girod
b246e171b7
fix: fetch_paginated
2024-09-18 22:03:39 +02:00
thomas girod
a2a858262a
apply review comments
2024-09-17 12:23:13 +02:00
thomas girod
bc40b92744
completely ajaxify the picture page
2024-09-17 12:23:13 +02:00
thomas girod
d545becf24
add spinner during loading
2024-09-17 12:17:21 +02:00
thomas girod
48f605dbe0
Use select2 for user picture identification
2024-09-17 12:17:17 +02:00
thomas girod
b0d7bbbb79
select 2 builder
2024-09-17 12:14:20 +02:00
Bartuccio Antoine
f624b7c66d
Graph de famille en frontend ( #820 )
...
* Remove graphviz and use cytoscape.js instead
* Frontend generated graphs
* Make installation easier and faster
* Better user experience
* Family api and improved interface
* Fix url history when using 0, improve button selection and reset reverse with reset button
* Use klay layout
* Add js translations and apply review comments
2024-09-17 12:10:06 +02:00
thomas girod
2e1f16fa04
slim jquery-ui
2024-08-26 22:34:32 +02:00
thomas girod
d295cc5223
move vendored files into their own folder
2024-08-26 22:34:32 +02:00
thomas girod
ff088009d9
move static files in their respective application
2024-08-26 22:34:31 +02:00
thomas girod
68d0a16d1c
Merge pull request #782 from ae-utbm/ajax-navigation-history
...
Ajax navigation history in uv guide
2024-08-26 22:29:19 +02:00
a422e8d39a
Improve rendering of file input
2024-08-26 22:21:16 +02:00
ef80c1be61
Make camera error gray to be less aggressive on the eyes
2024-08-26 22:21:16 +02:00
85d9816aaa
Improve delete button behavior
2024-08-26 22:21:16 +02:00
f54bf2b8af
Adjust css
2024-08-26 22:21:16 +02:00
e7d04d9817
Unify user profile display with a nice macro and handle camera errors
2024-08-26 22:21:16 +02:00
ef1537ac2c
Basic webcam setup with modern web api
2024-08-26 22:21:16 +02:00
cdb73ee49c
Don't rely on waiting for pedagogy history
2024-08-17 02:57:00 +02:00
589119c9ee
Improve update_query_string with enum action
2024-08-10 23:32:50 +02:00
b35e1a476e
Fix back function in album pagination
2024-08-10 18:38:04 +02:00
thomas girod
7ea9a5ca2d
improved feedback when loading ajax content
2024-08-09 11:58:26 +02:00
thomas girod
da6bd84cdf
restify album view
2024-08-08 11:50:45 +02:00
thomas girod
996dadf6f5
update alpineJS to 3.14
2024-08-05 17:16:24 +02:00
thomas girod
819e2b5f9f
better download button style
2024-07-30 19:58:58 +02:00
ffa3936878
Improve zip download
...
* Remove jszip for zip.js which is better maintained
* Pictures keep their creation date
2024-07-30 11:11:31 +02:00
thomas girod
3f49d70745
remove pedagogy style from style.scss
2024-07-28 16:39:15 +02:00
thomas girod
b022ebb80e
improve pagination
2024-07-27 10:46:57 +02:00
thomas girod
215fdce411
Fix button to remove a user from picture
2024-07-25 23:29:12 +02:00
thomas girod
b25805e0a1
introduce djhtml as jinja+scss formater
2024-07-25 16:46:45 +02:00
thomas girod
a24b1f5c2a
Merge pull request #730 from ae-utbm/picture-zip
...
Téléchargement des images dans un zip
2024-07-25 01:21:02 +02:00
thomas girod
04e7f65e8e
Merge pull request #725 from ae-utbm/drop-jquery-calendar
...
Remove jquery datetimepicker
2024-07-25 01:20:41 +02:00
41b9318028
Download user pictures as a zip
2024-07-24 23:51:15 +02:00
thomas girod
9295325d21
remove jquery datetime picker
2024-07-23 23:26:48 +02:00
293369f165
Pagination on UV guide
2024-07-23 19:58:11 +02:00
thomas girod
8245ddf2a6
fix font for code blocks in markdown
2024-07-18 14:51:50 +02:00
bad67a8b65
Add promo 24 logo
2024-07-16 00:25:50 +02:00
thomas girod
30948f1701
better style for rendered markdown
2024-07-08 15:56:38 +02:00
Julien Constant
38295e591d
Fix immutable default variable in get_start_of_semester
( #656 )
...
Le serveur ne percevait pas le changement de semestre, parce
que la valeur par défaut passée à la fonction `get_start_of_semester()` était une fonction appelée une seule fois, lors du lancement du serveur. Bref, c'était ça : https://beta.ruff.rs/docs/rules/function-call-in-default-argument/
---------
Co-authored-by: imperosol <thgirod@hotmail.com>
2023-09-07 23:11:58 +02:00
Julien Constant
5ab5ef681c
Remove duplicated css
2023-05-09 23:08:32 +02:00
Julien Constant
c9e70889dd
Merge branch 'master' into taiste
2023-05-09 22:37:49 +02:00
Julien Constant
b30ee0a27a
[FIX] Correction de bugs ( #617 )
...
* Fix #600
* Fix #602
* Fixes & améliorations du nouveau CSS (#616 )
* Fix #604
* should fix #605
* Fix #608
* Update core/views/site.py
Co-Authored-By: thomas girod <56346771+imperosol@users.noreply.github.com>
* Added back the permission denied
* Should fix #609
* Fix failing test when 2 user are merged
* Should fix #610
* Should fix #627
* Should fix #109
Block les URLs suivantes lorsque le fichier se trouve dans le dir `profiles` ou `SAS` :
- `/file/<id>/`
- `/file/<id>/[delete|prop|edit]`
> Les urls du SAS restent accessiblent pour les roots & les admins SAS
> Les urls de profiles sont uniquement accessiblent aux roots
* Fix root dir of SAS being unnaccessible for sas admins
⚠️ need to edit the SAS directory & save it (no changes required in sas directory properties)
* Remove overwritten code
* Should fix duplicated albums in user profile (wtf)
* Fix typo
* Extended profiles picture access to board members
* Should fix #607
* Fix keyboard navigation not working properly
* Fix user tagged pictures section inside python rather than in the template
* Update utils.py
* Apply suggested changes
* Fix #604
* Fix #608
* Added back the permission denied
* Should fix duplicated albums in user profile (wtf)
* Fix user tagged pictures section inside python rather than in the template
* Apply suggested changes
---------
Co-authored-by: thomas girod <56346771+imperosol@users.noreply.github.com>
2023-05-02 13:07:36 +02:00
Julien Constant
c1022642a2
[FIX] Fixes supplémentaires pour la màj de mars ( #622 )
...
- Les photos de l'onglet de la page utilisateur utilise désormais leur version thumbnail au lieu de leur version HD
- Une des classes du CSS du SAS a été renommée car elle empiétait sur une class de la navbar
- Le profil utilisateur a été revu pour ajouter plus d'espacement entre le tableau des cotisations et le numéro de cotisants
- Les images de forum & blouse sont de nouveau cliquable pour les afficher en grands
- Sur mobile, lorsqu'on cliquait sur le premier élément de la navbar, ce dernier avait un overlay avec des angles arrondis
- Sur mobile, les utilisateurs avec des images de profils non carrées dépassait dans l'onglet Famille
2023-04-08 20:59:43 +02:00