1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/routers/web/repo
Giteabot 0352b99221
Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473)
Backport #30453 by @silverwind

Enable `no-sizzle` lint rule, there was only one use in
`initCompReactionSelector` which I have rewritten as follows:

- Remove all jQuery except the necessary fomantic dropdown init
- Remove the recursion, instead bind event listeners to common parent
container nodes

Did various tests, works with our without attachments, in diff view and
in diff comments inside comment list.

Additionally the style of reactions now matches between code comments
and issue comments:

<img width="275" alt="Screenshot 2024-04-13 at 14 58 10"
src="https://github.com/go-gitea/gitea/assets/115237/9d08f188-8661-4dd9-bff4-cad6d6d09cab">

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-04-14 11:58:48 +00:00
..
actions
setting Fix rename branch 500 when the target branch is deleted but exist in database (#30430) (#30438) 2024-04-12 18:56:14 +08:00
activity.go
attachment.go
blame.go Refactor file view & render (#30227) (#30229) 2024-04-01 13:39:36 +00:00
branch.go
cherry_pick.go
code_frequency.go
commit.go
compare.go
contributors.go
download.go
editor_test.go
editor.go Put an edit file button on pull request files to allow a quick operation (#29697) 2024-03-27 02:34:10 +00:00
find.go Escape paths for find file correctly (#30026) 2024-03-23 13:07:47 +00:00
fork.go
githttp_test.go
githttp.go
helper_test.go
helper.go
issue_content_history.go Migrate margin and padding helpers to tailwind (#30043) 2024-03-24 17:42:49 +01:00
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_pin.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
main_test.go
middlewares.go
migrate.go
milestone.go
packages.go
patch.go
projects_test.go
projects.go Fix network error when open/close organization/individual projects and redirect to project page (#30387) (#30465) 2024-04-13 17:53:14 +00:00
pull_review_test.go
pull_review.go Prevent re-review and dismiss review actions on closed and merged PRs (#30065) 2024-03-28 15:19:24 +00:00
pull.go Put an edit file button on pull request files to allow a quick operation (#29697) 2024-03-27 02:34:10 +00:00
recent_commits.go
release_test.go
release.go
render.go Refactor render (#30136) 2024-03-27 13:14:34 +00:00
repo.go
search.go Render embedded code preview by permlink in markdown (#30234) (#30249) 2024-04-03 02:20:16 +08:00
topic.go
treelist.go
view_test.go
view.go Refactor file view & render (#30227) (#30229) 2024-04-01 13:39:36 +00:00
wiki_test.go Avoid showing Failed to change the default wiki branch if repo has no wiki when saving repo settings (#30329) (#30337) 2024-04-08 20:48:43 +08:00
wiki.go