From 36b3178235704983f0e12718d6e1a8006d06af63 Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Fri, 26 Jan 2024 13:40:08 +0100 Subject: [PATCH] UPD: Change HSLInput to HSV Ported to color library --- package-lock.json | 35 +++ package.json | 1 + src/components/{HSLInput.vue => HSVInput.vue} | 274 +++++------------- src/components/config/pages/LEDsConfig.vue | 8 +- 4 files changed, 112 insertions(+), 206 deletions(-) rename src/components/{HSLInput.vue => HSVInput.vue} (54%) diff --git a/package-lock.json b/package-lock.json index 41d7ae8..59ac443 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "axios": "^1.6.5", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", + "color": "^4.2.3", "concurrently": "^8.2.2", "lucide-vue-next": "^0.309.0", "radix-vue": "^1.3.0", @@ -4254,6 +4255,18 @@ "node": ">=0.10.0" } }, + "node_modules/color": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/color/-/color-4.2.3.tgz", + "integrity": "sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==", + "dependencies": { + "color-convert": "^2.0.1", + "color-string": "^1.9.0" + }, + "engines": { + "node": ">=12.5.0" + } + }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", @@ -4270,6 +4283,15 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, + "node_modules/color-string": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.1.tgz", + "integrity": "sha512-shrVawQFojnZv6xM40anx4CkoDP+fZsw/ZerEMsW/pyzsRbElpsL/DBVW7q3ExxwusdNXI3lXpuhEZkzs8p5Eg==", + "dependencies": { + "color-name": "^1.0.0", + "simple-swizzle": "^0.2.2" + } + }, "node_modules/colors": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/colors/-/colors-1.0.3.tgz", @@ -11287,6 +11309,19 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/simple-swizzle": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/simple-swizzle/-/simple-swizzle-0.2.2.tgz", + "integrity": "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg==", + "dependencies": { + "is-arrayish": "^0.3.1" + } + }, + "node_modules/simple-swizzle/node_modules/is-arrayish": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz", + "integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==" + }, "node_modules/sirv": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/sirv/-/sirv-2.0.4.tgz", diff --git a/package.json b/package.json index f058f4d..e325bca 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "axios": "^1.6.5", "class-variance-authority": "^0.7.0", "clsx": "^2.1.0", + "color": "^4.2.3", "concurrently": "^8.2.2", "lucide-vue-next": "^0.309.0", "radix-vue": "^1.3.0", diff --git a/src/components/HSLInput.vue b/src/components/HSVInput.vue similarity index 54% rename from src/components/HSLInput.vue rename to src/components/HSVInput.vue index 37ebb27..daad904 100644 --- a/src/components/HSLInput.vue +++ b/src/components/HSVInput.vue @@ -1,152 +1,63 @@ \ No newline at end of file