forgejo/web_src/js/features
Gusted 14d9c386fd
[UI] Fix HTMX support for profile card
- There were two issues with the profile card since the introduction of
HTMX in 3e8414179c. If an HTMX request
resulted in a flash message, it wasn't being shown and HTMX was
replacing all the HTML content instead of morphing it into the existing
DOM which caused event listeners to be lost for buttons.
- Flash messages are now properly being shown by using `hx-swap-oob`
and sending the alerts on a HTMX request, this does mean it requires
server-side changes in order to support HTMX requests like this, but
it's luckily not a big change either.
- Morphing is now enabled for the profile card by setting
`hx-swap="morph"`, and weirdly, the morphing library was already
installed and included as a dependency. This solves the issue of buttons
losing their event listeners.
- This patch also adds HTMX support to the modals feature, which means
that the blocking feature on the profile card now takes advantage of
HTMX.
- Added a E2E test.
2024-07-17 01:41:32 +02:00
..
admin [BUG] admin oauth2 source required check (#4194) 2024-06-21 06:21:37 +00:00
comp Remove tab key handling in markdown editor, add toolbar buttons instead, re #4072 #4142 (#4263) 2024-06-30 13:03:32 +00:00
autofocus-end.js When the title in the issue has a value, set the text cursor at the end of the text. (#30090) 2024-03-30 07:17:31 +01:00
captcha.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
citation.js Remove jQuery from the citation modal (except fomantic) (#30008) 2024-03-26 19:04:27 +01:00
clipboard.js
code-frequency.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
codeeditor.js Remove obsolete monaco workaround (#30893) 2024-05-12 20:03:10 +02:00
colorpicker.js Replace coloris with vanilla-colorful (#30201) 2024-04-07 15:40:31 +02:00
common-global.js [UI] Fix HTMX support for profile card 2024-07-17 01:41:32 +02:00
common-issue-list.js Remove jQuery from the issue "go to" button (#30028) 2024-03-26 19:04:27 +01:00
common-issue-list.test.js
common-organization.js
contextpopup.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
contributors.js Fix Activity Page Contributors dropdown (#31264) 2024-06-18 20:05:23 +02:00
copycontent.js Remove fomantic input module (#30194) 2024-04-07 15:40:31 +02:00
dropzone.js
emoji.js
eventsource.sharedworker.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
file-fold.js
heatmap.js
imagediff.js Refactor imagediff and fix regression bug (#30694) 2024-04-28 15:39:01 +02:00
install.js [CHORE] Remove Microsoft SQL Server Support 2024-04-05 23:37:36 +02:00
notification.js Remove jQuery class from the notification count (#30172) 2024-04-07 15:40:31 +02:00
org-team.js Remove jQuery calls that have no effect on showElem and hideElem (#30110) 2024-03-30 07:17:30 +01:00
pull-view-file.js
recent-commits.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-branch.js Remove jQuery from the create/rename branch modals (except Fomantic) (#30109) 2024-03-30 07:17:31 +01:00
repo-code.js Remove jQuery class from the code range selection (#30173) 2024-04-07 15:40:31 +02:00
repo-code.test.js
repo-commit.js
repo-common.js Refactor and fix archive link bug (#30535) 2024-05-10 09:20:12 +02:00
repo-diff-commit.js Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js Remove jQuery class from the diff view (#30176) 2024-04-07 15:40:31 +02:00
repo-editor.js Remove jQuery class from the commit button (#30178) 2024-04-07 15:40:31 +02:00
repo-findfile.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01:00
repo-findfile.test.js
repo-graph.js fix branch selector in commit graph 2024-07-07 20:26:30 +02:00
repo-home.js Remove most jQuery function calls from the repository topic box (#30191) 2024-04-07 15:40:31 +02:00
repo-issue-content.js Remove jQuery class from the comment edit history (#30186) 2024-04-07 15:40:31 +02:00
repo-issue-list.js Make a distinction between active and selected in the issue author dropdown (#30207) 2024-04-07 15:40:31 +02:00
repo-issue-pr-form.js
repo-issue-pr-status.js
repo-issue.js accessibility: anchor elements' missing href added (#4375) 2024-07-08 17:32:59 +00:00
repo-legacy.js show edit textfield always initially when editing comments 2024-06-14 15:42:21 +02:00
repo-migrate.js
repo-migration.js
repo-projects.js Fix various problems around projects board view (#30696) 2024-05-12 20:03:10 +02:00
repo-release.js
repo-search.js
repo-settings.js Remove jQuery class from the repository branch settings (#30184) 2024-04-07 15:40:31 +02:00
repo-template.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
repo-unicode-escape.js
repo-wiki.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js Migrate margin and padding helpers to tailwind (#30043) 2024-03-30 07:17:29 +01:00
user-auth-webauthn.js Enforce trailing comma in JS on multiline (#30002) 2024-03-26 19:04:27 +01:00
user-auth.js
user-settings.js only add name attribute to pronouns input in JS, to ensure fallback works 2024-04-03 15:16:40 -05:00