1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 01:54:26 +00:00
gitea/routers
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
..
api Check the token's owner and repository when registering a runner (#30406) (#30411) 2024-04-11 10:57:34 +02:00
common Refactor URL detection (#29960) 2024-03-21 12:02:34 +00:00
install Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
private Performance optimization for git push (#30104) (#30348) 2024-04-09 06:34:30 +00:00
utils Refactor external URL detection (#29973) 2024-03-22 04:32:40 +08:00
web Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
init.go Move some asymkey functions to service layer (#28894) 2024-03-04 08:57:39 +00:00