0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-24 06:14:46 +01:00
gitea/web_src/js/features
silverwind 507fbf4c3c
Use querySelector over alternative DOM methods (#31280)
As per
https://github.com/go-gitea/gitea/pull/30115#discussion_r1626060164,
prefer `querySelector` by enabling
[`unicorn/prefer-query-selector`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-query-selector.md)
and autofixing all except 10 issues.

According to
[this](https://old.reddit.com/r/learnjavascript/comments/i0f5o8/performance_of_getelementbyid_vs_queryselector/),
querySelector may be faster as well, so it's a win-win.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2024-06-10 22:49:33 +02:00
..
admin Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
comp Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02: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-27 15:20:10 +08:00
captcha.js
citation.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
clipboard.js
code-frequency.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
codeeditor.js Remove obsolete monaco workaround (#30893) 2024-05-08 02:42:33 +00:00
colorpicker.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
common-global.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
common-issue-list.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
common-issue-list.test.js
common-organization.js
contextpopup.js Rework and fix stopwatch (#30732) 2024-04-30 14:52:46 +00:00
contributors.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
copycontent.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
dropzone.js
emoji.js
eventsource.sharedworker.js
file-fold.js
heatmap.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
imagediff.js Remove jQuery .text() (#30506) 2024-06-10 18:12:31 +08:00
install.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
notification.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
org-team.js Remove jQuery calls that have no effect on showElem and hideElem (#30110) 2024-03-26 19:38:37 +00:00
pull-view-file.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
recent-commits.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-branch.js Remove jQuery from the create/rename branch modals (except Fomantic) (#30109) 2024-03-27 11:40:21 +01:00
repo-code.js Rework and fix stopwatch (#30732) 2024-04-30 14:52:46 +00:00
repo-code.test.js
repo-commit.js
repo-common.js Refactor and fix archive link bug (#30535) 2024-04-19 00:45:50 +08:00
repo-diff-commit.js
repo-diff-commitselect.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-diff-filetree.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-diff.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-editor.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-findfile.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-findfile.test.js
repo-graph.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-home.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-issue-content.js Remove jQuery class from the comment edit history (#30186) 2024-03-30 23:09:46 +01:00
repo-issue-edit.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-issue-list.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-issue-pr-form.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-issue-pr-status.js
repo-issue.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-legacy.js Remove jQuery .text() (#30506) 2024-06-10 18:12:31 +08:00
repo-migrate.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-migration.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-projects.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-release.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-search.js
repo-settings.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-template.js
repo-unicode-escape.js
repo-wiki.js
sshkey-helper.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
stopwatch.js Improve logout from worker (#30775) 2024-04-30 15:35:42 +00:00
tablesort.js
tribute.js
user-auth-webauthn.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
user-auth.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
user-settings.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00