1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00
gitea/web_src/js/features/comp
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
..
ColorPicker.js Forbid jQuery .css and refactor all usage (#29852) 2024-03-19 16:28:46 +00:00
ComboMarkdownEditor.js Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
ConfirmModal.js Change green buttons to primary color (#27099) 2023-09-18 22:05:31 +00:00
EasyMDEToolbarActions.js Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
LabelEdit.js Remove jQuery .attr from the label edit exclusive checkbox (#30053) 2024-03-24 23:50:39 +00:00
Paste.js Support pasting URLs over markdown text (#29566) 2024-03-08 15:15:58 +00:00
QuickSubmit.js Remove jQuery from the "quick submit" handler (#29200) 2024-02-16 21:03:50 +01:00
ReactionSelector.js Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
SearchUserBox.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-25 18:37:55 +00:00
TextExpander.js Update JS dependencies, remove space after emoji completion (#25266) 2023-06-18 08:38:47 +00:00
WebHookEditor.js Fix various loading states, remove .loading class (#29920) 2024-03-21 16:31:15 +00:00