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.
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>
9 months ago
..
admin Use `querySelector` over alternative DOM methods (#31280) 9 months ago
comp Use `querySelector` over alternative DOM methods (#31280) 9 months ago
autofocus-end.js When the title in the issue has a value, set the text cursor at the end of the text. (#30090) 11 months ago
captcha.js Enforce trailing comma in JS on multiline (#30002) 11 months ago
citation.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
clipboard.js Fix Citation modal responsiveness and clipboard copy (#29799) 12 months ago
code-frequency.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
codeeditor.js Remove obsolete monaco workaround (#30893) 10 months ago
colorpicker.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
common-global.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
common-issue-list.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
common-issue-list.test.js Use vitest globals (#27102) 1 year ago
common-organization.js Fix `initCompLabelEdit` not being called (#29198) 1 year ago
contextpopup.js Rework and fix stopwatch (#30732) 10 months ago
contributors.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
copycontent.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
dropzone.js JS refactors (#22227) 2 years ago
emoji.js Update JS and PY dependencies (#27501) 1 year ago
eventsource.sharedworker.js Enforce trailing comma in JS on multiline (#30002) 11 months ago
file-fold.js Update JS dependencies (#27922) 1 year ago
heatmap.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
imagediff.js Remove jQuery `.text()` (#30506) 9 months ago
install.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
notification.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
org-team.js Remove jQuery calls that have no effect on `showElem` and `hideElem` (#30110) 11 months ago
pull-view-file.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
recent-commits.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-branch.js Remove jQuery from the create/rename branch modals (except Fomantic) (#30109) 11 months ago
repo-code.js Rework and fix stopwatch (#30732) 10 months ago
repo-code.test.js Use vitest globals (#27102) 1 year ago
repo-commit.js Fix elipsis button not working if the last commit loading is deferred (#29544) 1 year ago
repo-common.js Refactor and fix archive link bug (#30535) 11 months ago
repo-diff-commit.js Migrate margin and padding helpers to tailwind (#30043) 11 months ago
repo-diff-commitselect.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-diff-filetree.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-diff.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-editor.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-findfile.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-findfile.test.js Use vitest globals (#27102) 1 year ago
repo-graph.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-home.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-issue-content.js Remove jQuery class from the comment edit history (#30186) 11 months ago
repo-issue-edit.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-issue-list.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-issue-pr-form.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-issue-pr-status.js Fix the overflow style for "Hide all checks" (#27932) 1 year ago
repo-issue.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-legacy.js Remove jQuery `.text()` (#30506) 9 months ago
repo-migrate.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-migration.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-projects.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-release.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-search.js Filter Repositories by type (#29231) 1 year ago
repo-settings.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
repo-template.js Enforce trailing comma in JS on multiline (#30002) 11 months ago
repo-unicode-escape.js Remove jQuery from the Unicode escape button (#29369) 1 year ago
repo-wiki.js Enforce trailing comma in JS on multiline (#30002) 11 months ago
sshkey-helper.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
stopwatch.js Improve logout from worker (#30775) 10 months ago
tablesort.js JS refactors (#22227) 2 years ago
tribute.js Migrate margin and padding helpers to tailwind (#30043) 11 months ago
user-auth-webauthn.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
user-auth.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago
user-settings.js Use `querySelector` over alternative DOM methods (#31280) 9 months ago