You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/web_src/js/features
wxiaoguang 6bbccdd177
Improve AJAX link and modal confirm dialog (#25210)
Clarify the "link-action" behavior:

>  // A "link-action" can post AJAX request to its "data-url"
> // Then the browser is redirect to: the "redirect" in response, or
"data-redirect" attribute, or current URL by reloading.

And enhance the "link-action" to support showing a modal dialog for
confirm. A similar general approach could also help PRs like
https://github.com/go-gitea/gitea/pull/22344#discussion_r1062883436

> // If the "link-action" has "data-modal-confirm(-html)" attribute, a
confirm modal dialog will be shown before taking action.


And a lot of duplicate code can be removed now. A good framework design
can help to avoid code copying&pasting.

---------

Co-authored-by: silverwind <me@silverwind.io>
1 year ago
..
admin Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 1 year ago
comp Improve and fix bugs surrounding reactions (#24760) 1 year ago
captcha.js Add new captcha: cloudflare turnstile (#22369) 2 years ago
citation.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 1 year ago
clipboard.js Use clippie module to copy to clipboard (#23801) 1 year ago
codeeditor.js Improve "goto issue by number" button (#24577) 1 year ago
colorpicker.js JS refactors (#22227) 2 years ago
common-global.js Improve AJAX link and modal confirm dialog (#25210) 1 year ago
common-issue-list.js Improve "goto issue by number" button (#24577) 1 year ago
common-issue-list.test.js Improve "goto issue by number" button (#24577) 1 year ago
common-organization.js Fix Org edit page bugs: renaming detection, maxlength (#24161) 1 year ago
contextpopup.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
copycontent.js Add two eslint plugins (#24776) 1 year ago
dropzone.js JS refactors (#22227) 2 years ago
emoji.js JS refactors (#22227) 2 years ago
eventsource.sharedworker.js Fix the JS error "EventSource is not defined" caused by some non-standard browsers (#20584) 2 years ago
file-fold.js Scroll collapsed file into view (#23702) 1 year ago
heatmap.js Localize activity heatmap (except tooltip) (#24131) 1 year ago
imagediff.js Fix various ImageDiff/SVG bugs (#23312) 1 year ago
install.js Fix various bugs for "install" page (#23194) 1 year ago
notification.js Rework notifications list (#24812) 1 year ago
org-team.js Add status indicator on main home screen for each repo (#24638) 1 year ago
pull-view-file.js Improve accessibility when (re-)viewing files (#24817) 1 year ago
repo-branch.js Display warning when user try to rename default branch (#24512) 1 year ago
repo-code.js Fix mobile navbar and misc cleanups (#25134) 1 year ago
repo-code.test.js Ignore line anchor links with leading zeroes (#21728) 2 years ago
repo-commit.js Fix hidden commit status on multiple checks (#22889) 1 year ago
repo-common.js Introduce eslint-plugin-no-jquery/no-event-shorthand (#24198) 1 year ago
repo-diff-filetree.js JS refactors (#22227) 2 years ago
repo-diff.js Refactor diffFileInfo / DiffTreeStore (#24998) 1 year ago
repo-editor.js Add popup to hashed comments/pull requests/issues in file editing/adding preview tab (#24040) 1 year ago
repo-findfile.js Refactor branch/tag selector to Vue SFC (#23421) 1 year ago
repo-findfile.test.js Refactor branch/tag selector to Vue SFC (#23421) 1 year ago
repo-graph.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 1 year ago
repo-home.js Sort repo topic labels by name (#24123) 1 year ago
repo-issue-content.js Improve and fix bugs surrounding reactions (#24760) 1 year ago
repo-issue-list.js Add the ability to pin Issues (#24406) 1 year ago
repo-issue-pr-form.js JS refactors (#22227) 2 years ago
repo-issue.js Fix mobile navbar and misc cleanups (#25134) 1 year ago
repo-legacy.js Improve and fix bugs surrounding reactions (#24760) 1 year ago
repo-migrate.js Make repo migration cancelable and fix various bugs (#24605) 1 year ago
repo-migration.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 1 year ago
repo-projects.js Disable `Create column` button while the column name is empty (#25192) 1 year ago
repo-release.js Update JS dependencies, add new eslint rules (#24597) 1 year ago
repo-settings.js Support for status check pattern (#24633) 1 year ago
repo-template.js Add status indicator on main home screen for each repo (#24638) 1 year ago
repo-unicode-escape.js Improve accessibility when (re-)viewing files (#24817) 1 year ago
repo-wiki.js Fix EasyMDE toolbar (#24489) 1 year ago
sshkey-helper.js Use explicit jQuery import, remove unused eslint globals (#18435) 3 years ago
stopwatch.js Move helpers to be prefixed with `gt-` (#22879) 1 year ago
tablesort.js JS refactors (#22227) 2 years ago
tribute.js Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
user-auth-webauthn.js Fix webauthn regression and improve code (#25113) 1 year ago
user-auth.js Fix OAuth loading state (#24788) 1 year ago
user-settings.js Refactor hiding-methods, remove jQuery show/hide, remove `.hide` class, remove inline style=display:none (#22950) 1 year ago