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
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
..
components Use `querySelector` over alternative DOM methods (#31280) 9 months ago
features Use `querySelector` over alternative DOM methods (#31280) 9 months ago
markup Use `querySelector` over alternative DOM methods (#31280) 9 months ago
modules Fix body margin shifting with modals, fix error on project column edit (#30831) 10 months ago
render Use vitest globals (#27102) 1 year ago
standalone Use `querySelector` over alternative DOM methods (#31280) 9 months ago
utils Fix and clean up `ConfirmModal` (#31283) 9 months ago
vendor Vendor `jquery.are-you-sure` with strict mode fixes (#26901) 2 years ago
webcomponents Rework and fix stopwatch (#30732) 10 months ago
bootstrap.js Check if reverse proxy is correctly configured (#30890) 10 months ago
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) 1 year ago
htmx.js Auto-update the system status in admin dashboard (#29163) 1 year ago
index.js Remove jQuery `.text()` (#30506) 9 months ago
jquery.js Forbid variables containing jQuery collections not having the `$` prefix (#29839) 12 months ago
svg.js Update JS any PY dependencies, remove workarounds (#30085) 11 months ago
svg.test.js Use vitest globals (#27102) 1 year ago
utils.js enforce maxlength in frontend (#29389) 1 year ago
utils.test.js Use vitest globals (#27102) 1 year ago
vitest.setup.js Move vitest setup file to root (#29097) 1 year ago