0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 13:49:10 +01:00
gitea/web_src/js
silverwind dd8dde2be8
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">
2024-03-29 04:00:07 +01:00
..
components Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
features replace jquery-minicolors with coloris (#30055) 2024-03-29 04:00:07 +01:00
markup Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
modules Drag-and-drop improvements for projects and issue pins (#29875) 2024-03-28 00:20:38 +01:00
render Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
standalone Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
utils Migrate gt-hidden to tw-hidden (#30046) 2024-03-24 18:23:38 +00:00
vendor Vendor jquery.are-you-sure with strict mode fixes (#26901) 2023-09-06 00:02:44 +00:00
webcomponents Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
bootstrap.js Fix JS error and improve error message styles (#29963) 2024-03-21 10:16:11 +00:00
bootstrap.test.js Avoid duplicate JS error messages on UI (#28873) 2024-01-21 14:23:08 +00:00
htmx.js Auto-update the system status in admin dashboard (#29163) 2024-02-16 02:52:25 +00:00
index.js replace jquery-minicolors with coloris (#30055) 2024-03-29 04:00:07 +01:00
jquery.js Forbid variables containing jQuery collections not having the $ prefix (#29839) 2024-03-16 12:22:16 +00:00
svg.js Update JS any PY dependencies, remove workarounds (#30085) 2024-03-26 09:41:40 +00:00
svg.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
utils.js enforce maxlength in frontend (#29389) 2024-02-25 14:31:15 +00:00
utils.test.js Use vitest globals (#27102) 2023-09-27 04:37:13 +00:00
vitest.setup.js Move vitest setup file to root (#29097) 2024-02-08 20:07:02 +08:00