From e046c5fb332180a4dd43d07512284c6be8d8a0ed Mon Sep 17 00:00:00 2001 From: andreiggr Date: Fri, 3 Feb 2023 15:36:47 +0200 Subject: [PATCH 1/5] back to no theme / undefined --- src/Widgets/ThemePicker.jsx | 21 +++++---------------- src/index.js | 2 +- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/src/Widgets/ThemePicker.jsx b/src/Widgets/ThemePicker.jsx index f9ef0e2..c9face2 100644 --- a/src/Widgets/ThemePicker.jsx +++ b/src/Widgets/ThemePicker.jsx @@ -3,22 +3,11 @@ import { Form } from 'semantic-ui-react'; import { Grid, Button } from 'semantic-ui-react'; const ThemePicker = (props) => { - const { - id, - title, - required, - defaultValue = 'default', - value, - onChange, - colors, - className, - } = props; + const { id, title, required, value, onChange, colors, className } = props; - React.useEffect(() => { - if (!value && defaultValue) { - onChange(id, defaultValue); - } - }); + const handleChange = (e, { value }) => { + onChange(id, value); + }; return colors && colors.length > 0 ? ( { onClick={(e) => { e.preventDefault(); e.stopPropagation(); - onChange(id, color.name); + handleChange(e, { value: color.name }); }} active={value === color.name} circular diff --git a/src/index.js b/src/index.js index 991edaf..c265fd9 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ const applyConfig = (config) => { config.widgets.widget.theme_picker = ThemePickerWidget; config.settings.themeColors = [ - { value: 'default', title: 'Default' }, + { value: undefined, title: 'No theme' }, { value: 'primary', title: 'Primary' }, { value: 'secondary', title: 'Secondary' }, { value: 'tertiary', title: 'Tertiary' }, From 19d97ad979ea739f001159765ea529bf647ab022 Mon Sep 17 00:00:00 2001 From: EEA Jenkins Date: Wed, 8 Feb 2023 01:09:33 +0200 Subject: [PATCH 2/5] Add Sonarqube tag using eea-website-frontend addons list --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1bcb548..51e95e5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { environment { GIT_NAME = "volto-widget-theme-picker" NAMESPACE = "@eeacms" - SONARQUBE_TAGS = "volto.eea.europa.eu" + SONARQUBE_TAGS = "volto.eea.europa.eu,prod-www.eea.europa.eu" DEPENDENCIES = "" VOLTO = "alpha" } From c576cc79bc481cf67c6b592e4baea6477d07e5ae Mon Sep 17 00:00:00 2001 From: EEA Jenkins Date: Wed, 8 Feb 2023 01:09:40 +0200 Subject: [PATCH 3/5] Add Sonarqube tag using eea-website-frontend addons list --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 51e95e5..4df55de 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { environment { GIT_NAME = "volto-widget-theme-picker" NAMESPACE = "@eeacms" - SONARQUBE_TAGS = "volto.eea.europa.eu,prod-www.eea.europa.eu" + SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu" DEPENDENCIES = "" VOLTO = "alpha" } From de3314a716dae4d38cac81f4fa6733d904712d07 Mon Sep 17 00:00:00 2001 From: EEA Jenkins Date: Wed, 8 Feb 2023 13:44:14 +0200 Subject: [PATCH 4/5] Add Sonarqube tag using eea-website-frontend addons list --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4df55de..2e6f73d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { environment { GIT_NAME = "volto-widget-theme-picker" NAMESPACE = "@eeacms" - SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu" + SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu,prod-www.eea.europa.eu" DEPENDENCIES = "" VOLTO = "alpha" } From e2546ed0243f5db71ad760be7484946d16376900 Mon Sep 17 00:00:00 2001 From: EEA Jenkins <@users.noreply.github.com> Date: Wed, 8 Feb 2023 16:12:29 +0000 Subject: [PATCH 5/5] Automated release 1.0.3 --- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b9893f6..c13d0e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +### [1.0.3](https://github.com/eea/volto-widget-theme-picker/compare/1.0.2...1.0.3) - 8 February 2023 + +#### :hammer_and_wrench: Others + +- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`de3314a`](https://github.com/eea/volto-widget-theme-picker/commit/de3314a716dae4d38cac81f4fa6733d904712d07)] +- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c576cc7`](https://github.com/eea/volto-widget-theme-picker/commit/c576cc79bc481cf67c6b592e4baea6477d07e5ae)] +- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`19d97ad`](https://github.com/eea/volto-widget-theme-picker/commit/19d97ad979ea739f001159765ea529bf647ab022)] +- back to no theme / undefined [andreiggr - [`e046c5f`](https://github.com/eea/volto-widget-theme-picker/commit/e046c5fb332180a4dd43d07512284c6be8d8a0ed)] ### [1.0.2](https://github.com/eea/volto-widget-theme-picker/compare/1.0.1...1.0.2) - 3 February 2023 #### :hammer_and_wrench: Others diff --git a/package.json b/package.json index 4ebd3b3..129655e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-widget-theme-picker", - "version": "1.0.2", + "version": "1.0.3", "description": "@eeacms/volto-widget-theme-picker: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team",