gitea/web_src/js/components
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
..
.eslintrc.yaml Improve context popup rendering (#30824) 2024-05-02 15:42:33 +02:00
ActionRunStatus.vue Fix incorrect tailwind migration (#30007) 2024-03-22 20:51:29 +01:00
ActivityHeatmap.vue Fix activity heat map padding & locale (#30823) 2024-05-02 13:22:55 +00:00
ContextPopup.vue Improve context popup rendering (#30824) 2024-05-02 15:42:33 +02:00
DashboardRepoList.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
DiffCommitSelector.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
DiffFileList.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
DiffFileTree.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
DiffFileTreeItem.vue Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
PullRequestMergeForm.vue Remove fomantic button module (#30475) 2024-04-14 17:53:52 +00:00
RepoActionView.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
RepoActivityTopAuthors.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
RepoBranchTagSelector.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00
RepoCodeFrequency.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
RepoContributors.vue Fix Activity Page Contributors dropdown (#31264) 2024-06-06 10:28:33 +08:00
RepoRecentCommits.vue Have time.js use UTC-related getters/setters (#30857) 2024-05-06 09:36:53 +08:00
ScopedAccessTokenSelector.vue Use querySelector over alternative DOM methods (#31280) 2024-06-10 22:49:33 +02:00