diff --git a/CHANGELOG.md b/CHANGELOG.md index 435d59f..8d941a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,16 @@ 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). +#### [0.1.2](https://github.com/eea/volto-statistic-block/compare/0.1.1...0.1.2) + +- fix(statistic_block): BlockChooser Icon [`4318512`](https://github.com/eea/volto-statistic-block/commit/431851212b3091c4a84854ce060116d26322d7c4) +- Remove useless from block title [`a3daf0a`](https://github.com/eea/volto-statistic-block/commit/a3daf0ad63666d0cd87eef465f42f525a5a307bc) + #### [0.1.1](https://github.com/eea/volto-statistic-block/compare/0.1.0...0.1.1) -- add statistic block [`df367cb`](https://github.com/eea/volto-statistic-block/commit/df367cbf7912d99ae7fbd0c5f20f1c9f590d1512) +> 10 March 2022 + +- add statistic block [`#1`](https://github.com/eea/volto-statistic-block/pull/1) - Update README.md [`2ecde42`](https://github.com/eea/volto-statistic-block/commit/2ecde424229d79e12d2c91223d56117255f33cfc) - Fix package.json [`91bb2e8`](https://github.com/eea/volto-statistic-block/commit/91bb2e8a0ad0d3bd99165751f319bceb99e181e0) diff --git a/Jenkinsfile b/Jenkinsfile index 66a87e6..2207d7a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { environment { GIT_NAME = "volto-statistic-block" NAMESPACE = "@eeacms" - SONARQUBE_TAGS = "volto.eea.europa.eu" + SONARQUBE_TAGS = "volto.eea.europa.eu,demo-www.eea.europa.eu" DEPENDENCIES = "" } @@ -184,10 +184,10 @@ pipeline { unstash "xunit-reports" unstash "cypress-coverage" def scannerHome = tool 'SonarQubeScanner'; - def nodeJS = tool 'NodeJS11'; + def nodeJS = tool 'NodeJS'; withSonarQubeEnv('Sonarqube') { sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info''' - sh "export PATH=$PATH:${scannerHome}/bin:${nodeJS}/bin; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER" + sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER" sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done''' } } diff --git a/package.json b/package.json index ac2b5de..84014b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-statistic-block", - "version": "0.1.1", + "version": "0.1.2", "description": "@eeacms/volto-statistic-block: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/StatisticBlock/index.js b/src/StatisticBlock/index.js index bb5d897..6fad8f2 100644 --- a/src/StatisticBlock/index.js +++ b/src/StatisticBlock/index.js @@ -1,12 +1,12 @@ -import worldSVG from '@plone/volto/icons/world.svg'; +import iconSVG from '@plone/volto/icons/special-character.svg'; import StatisticBlockEdit from './Edit'; import StatisticBlockView from './View'; export default (config) => { config.blocks.blocksConfig.statistic_block = { id: 'statistic_block', - title: 'Statistic block', - icon: worldSVG, + title: 'Statistic', + icon: iconSVG, group: 'text', view: StatisticBlockView, edit: StatisticBlockEdit,