diff --git a/club/templates/club/fragments/add_member.jinja b/club/templates/club/fragments/add_member.jinja index d1e6e97c..742f6ee2 100644 --- a/club/templates/club/fragments/add_member.jinja +++ b/club/templates/club/fragments/add_member.jinja @@ -7,7 +7,7 @@
{ - (event as CustomEvent).detail.target.ariaBusy = true; + (event as CustomEvent).detail.ctx.target.ariaBusy = true; }, ); document.body.addEventListener( - "htmx:beforeSwap" as keyof HTMLElementEventMap, + "htmx:before:swap" as keyof HTMLElementEventMap, (event) => { - (event as CustomEvent).detail.target.ariaBusy = null; + (event as CustomEvent).detail.ctx.target.ariaBusy = null; }, ); diff --git a/core/templates/core/fragment/user_visibility.jinja b/core/templates/core/fragment/user_visibility.jinja index b92901bf..82e4f0ea 100644 --- a/core/templates/core/fragment/user_visibility.jinja +++ b/core/templates/core/fragment/user_visibility.jinja @@ -1,6 +1,6 @@ {% for message in messages %} diff --git a/counter/templates/counter/fragments/delete_student_card.jinja b/counter/templates/counter/fragments/delete_student_card.jinja index 94be1c47..e5ea7e52 100644 --- a/counter/templates/counter/fragments/delete_student_card.jinja +++ b/counter/templates/counter/fragments/delete_student_card.jinja @@ -1,5 +1,10 @@
- + {% csrf_token %}

{% trans obj=object %}Are you sure you want to delete "{{ obj }}"?{% endtrans %}

diff --git a/docs/explanation/technos.md b/docs/explanation/technos.md index 79a5ab0c..d19a274f 100644 --- a/docs/explanation/technos.md +++ b/docs/explanation/technos.md @@ -217,7 +217,7 @@ C'est une technologie simple et puissante qui se veut comme le jQuery du web mod ### Htmx -[Site officiel](https://htmx.org/) +[Site officiel](https://four.htmx.org/) En plus de AlpineJS, l’interactivité sur le site est augmentée via Htmx. C'est une librairie js qui s'utilise également au moyen d'attributs HTML à diff --git a/election/templates/election/fragments/apply_result.jinja b/election/templates/election/fragments/apply_result.jinja index 8e9d10e2..ab61ff04 100644 --- a/election/templates/election/fragments/apply_result.jinja +++ b/election/templates/election/fragments/apply_result.jinja @@ -41,7 +41,7 @@ hx-post="{{ url("election:apply_result", election_id=form.election.id) }}" hx-swap="outerHTML" hx-target="#apply-election-result-fragment" - hx-disabled-elt="find input[type='submit']" + hx-disable="find input[type='submit']" > {% csrf_token %} {{ form }} diff --git a/package-lock.json b/package-lock.json index 42c1ae3c..323b58bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "easymde": "^2.21.0", "glob": "^13.0.6", "html2canvas": "^1.4.1", - "htmx.org": "^2.0.10", + "htmx.org": "^4.0.0", "js-cookie": "^3.0.8", "lit-html": "^3.3.3", "native-file-system-adapter": "^3.0.1", @@ -3801,10 +3801,16 @@ } }, "node_modules/htmx.org": { - "version": "2.0.10", - "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-2.0.10.tgz", - "integrity": "sha512-kdeJe7ZVwaS6QMz/ebBIVtZdpwen6L0OQ5GOhPV9MKBb196TCZeZu4yA7ZIQsaLKv7EpXz+So7KSXNuHXhj7Cw==", - "license": "0BSD" + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-4.0.0.tgz", + "integrity": "sha512-T/171FUY93Kdfp8t+DnHdk45QvKRiBhVhhrwSzrXgUi4pHKvhp77dUA/qg8FAjsFWPIHNbmUuIdCrcVHuiZWng==", + "license": "BSD-0-Clause", + "workspaces": [ + "ext/*" + ], + "bin": { + "upgrade-check": "dist/scripts/upgrade-check.js" + } }, "node_modules/ical.js": { "version": "1.5.0", diff --git a/package.json b/package.json index c4e493ae..45419643 100644 --- a/package.json +++ b/package.json @@ -34,8 +34,8 @@ "@types/cytoscape-klay": "^3.1.5", "@types/js-cookie": "^3.0.6", "@types/node": "^26.2.0", - "rollup-plugin-visualizer": "^7.1.1", "@typescript/native": "npm:typescript@^7.0.2", + "rollup-plugin-visualizer": "^7.1.1", "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.2.2" }, @@ -61,7 +61,7 @@ "easymde": "^2.21.0", "glob": "^13.0.6", "html2canvas": "^1.4.1", - "htmx.org": "^2.0.10", + "htmx.org": "^4.0.0", "js-cookie": "^3.0.8", "lit-html": "^3.3.3", "native-file-system-adapter": "^3.0.1", diff --git a/subscription/templates/subscription/fragments/creation_form_existing_user.jinja b/subscription/templates/subscription/fragments/creation_form_existing_user.jinja index e6333e98..61e9972e 100644 --- a/subscription/templates/subscription/fragments/creation_form_existing_user.jinja +++ b/subscription/templates/subscription/fragments/creation_form_existing_user.jinja @@ -1,7 +1,7 @@ {% csrf_token %} diff --git a/subscription/templates/subscription/fragments/creation_form_new_user.jinja b/subscription/templates/subscription/fragments/creation_form_new_user.jinja index e1c08e28..52351387 100644 --- a/subscription/templates/subscription/fragments/creation_form_new_user.jinja +++ b/subscription/templates/subscription/fragments/creation_form_new_user.jinja @@ -1,7 +1,7 @@ {% csrf_token %}