1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 03:56:18 -04:00
gitea/web_src/js/features
Giteabot 0b8b0072a2
Clipboard copy enhancements (#27669) (#27681)
Backport #27669 by @silverwind

1. Do not show temporary tooltips that are triggered from within
dropdowns. Previously this resulted in the tooltip being stuck to
top-left of the page like seen on issue comment URL copy. I could not
figure out any tippy options that prevent this, so I think it's better
to just not show it.
1. Refactor `initGlobalCopyToClipboardListener` so that it does not run
a often useless `document.querySelector` on every click, make
`data-clipboard-text-type` work with `data-clipboard-target`. No use in
current code base but still good to have. Finally some minor code
cleanup in the function.

Point 1 is for this copy button:

<img width="229" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/81f34746-8ea5-43d9-8c6f-f6f417a9e4ad">

Co-authored-by: silverwind <me@silverwind.io>
2023-10-19 00:23:28 +08:00
..
admin Refactor system setting (#27000) (#27452) 2023-10-05 10:37:59 +00:00
comp Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
captcha.js
citation.js
clipboard.js Clipboard copy enhancements (#27669) (#27681) 2023-10-19 00:23:28 +08:00
codeeditor.js Fix EOL handling in web editor (#27141) (#27234) 2023-09-24 22:10:38 +00:00
colorpicker.js
common-global.js Replace ajax with fetch, improve image diff (#27267) (#27583) 2023-10-11 16:12:31 +02:00
common-issue-list.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
common-issue-list.test.js Use vitest globals (#27102) (#27311) 2023-09-27 16:10:08 +02:00
common-organization.js
contextpopup.js
copycontent.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
dropzone.js
emoji.js Update JS and PY dependencies (#27501) (#27518) 2023-10-08 19:31:33 +02:00
eventsource.sharedworker.js
file-fold.js
heatmap.js
imagediff.js Replace ajax with fetch, improve image diff (#27267) (#27583) 2023-10-11 16:12:31 +02:00
install.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
notification.js
org-team.js
pull-view-file.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
repo-branch.js
repo-code.js
repo-code.test.js Use vitest globals (#27102) (#27311) 2023-09-27 16:10:08 +02:00
repo-commit.js
repo-common.js
repo-diff-commit.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
repo-diff-commitselect.js
repo-diff-filetree.js
repo-diff.js
repo-editor.js
repo-findfile.js
repo-findfile.test.js Use vitest globals (#27102) (#27311) 2023-09-27 16:10:08 +02:00
repo-graph.js
repo-home.js
repo-issue-content.js Improve issue history dialog and make poster can delete their own history (#27323) (#27327) 2023-09-28 09:46:46 +00:00
repo-issue-list.js Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) (#27661) 2023-10-17 14:46:35 +00:00
repo-issue-pr-form.js
repo-issue.js Hide archived labels by default from the suggestions when assigning labels for an issue (#27451) (#27661) 2023-10-17 14:46:35 +00:00
repo-legacy.js
repo-migrate.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
repo-migration.js
repo-projects.js
repo-release.js
repo-settings.js Improve repo/user/org search (#27030) 2023-09-12 16:44:48 +00:00
repo-template.js
repo-unicode-escape.js
repo-wiki.js
sshkey-helper.js
stopwatch.js
tablesort.js
tribute.js
user-auth-webauthn.js Use fetch helpers instead of fetch (#27026) 2023-09-19 00:50:30 +00:00
user-auth.js
user-settings.js