0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-25 02:10:07 +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
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
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
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
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
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
repo-code.js
repo-code.test.js
repo-commit.js
repo-common.js
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
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
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
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