1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-23 08:47:42 -05:00
forgejo/web_src/js/features/comp
silverwind 2e542f17a3
replace jquery-minicolors with coloris (#30055)
Get rid of one more jQuery dependant and have a nicer color picker as
well.

Now there is only a single global color picker init because that is all
that's necessary because the elements are present on the page when the
init code runs. The init is slightly weird because the module only takes
a selector instead of DOM elements directly.

The label modals now also perform form validation because previously it
was possible to trigger a 500 error `Color cannot be empty.` by clearing
out the color value on labels.

<img width="867" alt="Screenshot 2024-03-25 at 00 21 05"
src="https://github.com/go-gitea/gitea/assets/115237/71215c39-abb1-4881-b5c1-9954b4a89adb">
<img width="860" alt="Screenshot 2024-03-25 at 00 20 48"
src="https://github.com/go-gitea/gitea/assets/115237/a12cb68f-c38b-4433-ba05-53bbb4b1023e">

(cherry picked from commit dd8dde2be89921b2b1497c6cc5eafdde213429cb)
2024-04-07 11:02:33 +02:00
..
ComboMarkdownEditor.js Migrate font-family to tailwind (#30118) 2024-03-30 07:17:32 +01: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-26 19:04:27 +01:00
LabelEdit.js replace jquery-minicolors with coloris (#30055) 2024-04-07 11:02:33 +02:00
Paste.js Support pasting URLs over markdown text (#29566) 2024-03-11 23:36:59 +07:00
QuickSubmit.js Remove jQuery from the "quick submit" handler (#29200) 2024-02-17 23:24:31 +01:00
ReactionSelector.js Remove jQuery class from the reaction selector (#30138) 2024-03-30 07:17:31 +01:00
SearchUserBox.js Refactor all .length === 0 patterns in JS (#30045) 2024-03-30 07:17:30 +01: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-26 19:04:26 +01:00