0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-12 05:53: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 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 Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
citation.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
clipboard.js Fix Citation modal responsiveness and clipboard copy (#29799) 2024-03-15 02:38:13 +00:00
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 Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
common-organization.js Fix initCompLabelEdit not being called (#29198) 2024-02-16 17:03:52 +01:00
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 Update JS and PY dependencies (#27501) 2023-10-08 00:16:20 +00:00
eventsource.sharedworker.js Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
file-fold.js Update JS dependencies (#27922) 2023-11-06 21:14:32 +00:00
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 Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
repo-commit.js Fix elipsis button not working if the last commit loading is deferred (#29544) 2024-03-02 19:31:59 +00:00
repo-common.js Refactor and fix archive link bug (#30535) 2024-04-19 00:45:50 +08:00
repo-diff-commit.js Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
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 Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
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 Fix the overflow style for "Hide all checks" (#27932) 2023-11-07 18:53:35 +00:00
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 Filter Repositories by type (#29231) 2024-03-03 10:18:34 +00:00
repo-settings.js Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
repo-template.js Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
repo-unicode-escape.js Remove jQuery from the Unicode escape button (#29369) 2024-02-24 20:11:51 +01:00
repo-wiki.js Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
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 Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
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