From 4acec500876f2ded25384bd768a86f607cb610db Mon Sep 17 00:00:00 2001 From: Ryan Coulson Date: Mon, 13 Jan 2025 14:05:32 -0500 Subject: [PATCH] add colour picker for intro title, subtitle and button --- package-lock.json | 7 +- package.json | 1 + .../helpers/colour-picker-input.vue | 95 +++++++++++++++++++ src/components/helpers/metadata-content.vue | 37 +++++++- src/components/metadata-editor.vue | 20 +++- src/definitions.ts | 6 ++ src/lang/lang.csv | 5 + src/main.ts | 4 + src/shims-vue.d.ts | 1 + 9 files changed, 171 insertions(+), 5 deletions(-) create mode 100644 src/components/helpers/colour-picker-input.vue diff --git a/package-lock.json b/package-lock.json index c9c73e74..ed15d89e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,6 +31,7 @@ "url": "^0.11.3", "uuid": "^9.0.0", "vue": "^3.4.37", + "vue-accessible-color-picker": "^5.1.1", "vue-class-component": "^8.0.0-rc.1", "vue-final-modal": "^4.4.5", "vue-i18n": "^9.2.2", @@ -10087,9 +10088,9 @@ } }, "node_modules/vue-accessible-color-picker": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/vue-accessible-color-picker/-/vue-accessible-color-picker-5.0.1.tgz", - "integrity": "sha512-IaxDTzW652blWmaNNbqQZzORQAbP19sdO7oJ5fvJIfVizWr2fVV+3z39ORI210Ee7l8YiD5FhpOY/XrToQCBwg==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/vue-accessible-color-picker/-/vue-accessible-color-picker-5.1.1.tgz", + "integrity": "sha512-vk+0OicECr58EnxaQ8h/MuYfzRLS7FgBGUkBVEiRy71j/XVPZ84QCwho2KsURGeoDSr16ELI1+Ao3Hqp2PPCHw==", "peerDependencies": { "vue": "^3.2.x" } diff --git a/package.json b/package.json index bdd0525f..c22db456 100644 --- a/package.json +++ b/package.json @@ -32,6 +32,7 @@ "url": "^0.11.3", "uuid": "^9.0.0", "vue": "^3.4.37", + "vue-accessible-color-picker": "^5.1.1", "vue-class-component": "^8.0.0-rc.1", "vue-final-modal": "^4.4.5", "vue-i18n": "^9.2.2", diff --git a/src/components/helpers/colour-picker-input.vue b/src/components/helpers/colour-picker-input.vue new file mode 100644 index 00000000..7b4bd382 --- /dev/null +++ b/src/components/helpers/colour-picker-input.vue @@ -0,0 +1,95 @@ + + + + + diff --git a/src/components/helpers/metadata-content.vue b/src/components/helpers/metadata-content.vue index 7381ca9c..c780b686 100644 --- a/src/components/helpers/metadata-content.vue +++ b/src/components/helpers/metadata-content.vue @@ -177,6 +177,35 @@

{{ metadata.logoAltText || $t('editor.metadataForm.na') }}

+
+ + + +
@@ -239,8 +268,14 @@