1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/web_src
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
..
css Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
fomantic Remove fomantic checkbox module (#30162) (#30168) 2024-03-29 17:44:22 +00:00
js Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
svg Update various logos and unify their filenames (#29637) 2024-03-06 22:20:05 +00:00