aboutsummaryrefslogtreecommitdiffstats
path: root/package-lock.json
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2023-07-09 12:17:22 +0200
committerGitHub <noreply@github.com>2023-07-09 12:17:22 +0200
commit38844e0869bff0a08f8810c97cb3f5cb07df9a8e (patch)
tree17b2ee5b024a863449f18544ce0ce8274f57290d /package-lock.json
parentd58096ec3135a9d04ce35bd3cf0a608b9c3b64de (diff)
downloadgitea-38844e0869bff0a08f8810c97cb3f5cb07df9a8e.tar.gz
gitea-38844e0869bff0a08f8810c97cb3f5cb07df9a8e.zip
Always pass 6-digit hex color to monaco (#25780)
Monaco can not deal with color formats other than 6-digit hex, so we convert the colors for it via new [`tinycolor2`](https://github.com/bgrins/TinyColor) dependency (5kB minzipped). Also, with the addition of the module, we can replace the existing `hexToRGBColor` usage, I verified it is compatible with the current tests before removing the function. Fixes: https://github.com/go-gitea/gitea/issues/25770
Diffstat (limited to 'package-lock.json')
-rw-r--r--package-lock.json6
1 files changed, 6 insertions, 0 deletions
diff --git a/package-lock.json b/package-lock.json
index 25c2ab74a9..92e4087b08 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -41,6 +41,7 @@
"sortablejs": "1.15.0",
"swagger-ui-dist": "5.1.0",
"throttle-debounce": "5.0.0",
+ "tinycolor2": "1.6.0",
"tippy.js": "6.3.7",
"toastify-js": "1.12.0",
"tributejs": "5.1.3",
@@ -10265,6 +10266,11 @@
"integrity": "sha512-kRwSG8Zx4tjF9ZiyH4bhaebu+EDz1BOx9hOigYHlUW4xxI/wKIUQUqo018UlU4ar6ATPBsaMrdbKZ+tmPdohFA==",
"dev": true
},
+ "node_modules/tinycolor2": {
+ "version": "1.6.0",
+ "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz",
+ "integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw=="
+ },
"node_modules/tinypool": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/tinypool/-/tinypool-0.6.0.tgz",