@eeacms/volto-n2k 0.1.10 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,11 +4,20 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- ### [0.1.10](https://github.com/eea/volto-n2k/compare/0.1.9...0.1.10) - 2 September 2022
7
+ ### [0.1.12](https://github.com/eea/volto-n2k/compare/0.1.11...0.1.12) - 30 September 2022
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: Set font size to 16px on N2K [Miu Razvan - [`b11e184`](https://github.com/eea/volto-n2k/commit/b11e1840689232b778f9421e94369d0de64134ce)]
8
12
 
9
13
  #### :hammer_and_wrench: Others
10
14
 
11
- - Update style [Miu Razvan - [`727d165`](https://github.com/eea/volto-n2k/commit/727d165788b39aa507b2aec9478c4d84b6822ac4)]
15
+ - Update [Miu Razvan - [`d9b4822`](https://github.com/eea/volto-n2k/commit/d9b482271bc01f7fe3aa44f1b95defd76a500256)]
16
+ - Don't run cypress [Miu Razvan - [`0b7d196`](https://github.com/eea/volto-n2k/commit/0b7d1967c970e488edf06a345093357b10c393ff)]
17
+ ### [0.1.11](https://github.com/eea/volto-n2k/compare/0.1.10...0.1.11) - 16 September 2022
18
+
19
+ ### [0.1.10](https://github.com/eea/volto-n2k/compare/0.1.9...0.1.10) - 2 September 2022
20
+
12
21
  ### [0.1.9](https://github.com/eea/volto-n2k/compare/0.1.8...0.1.9) - 1 September 2022
13
22
 
14
23
  ### [0.1.8](https://github.com/eea/volto-n2k/compare/0.1.7...0.1.8) - 24 August 2022
package/Jenkinsfile CHANGED
@@ -108,62 +108,62 @@ pipeline {
108
108
  }
109
109
  }
110
110
 
111
- stage('Integration tests') {
112
- when {
113
- allOf {
114
- environment name: 'CHANGE_ID', value: ''
115
- anyOf {
116
- not { changelog '.*^Automated release [0-9\\.]+$' }
117
- branch 'master'
118
- }
119
- }
120
- }
121
- steps {
122
- parallel(
123
-
124
- "Cypress": {
125
- node(label: 'docker') {
126
- script {
127
- try {
128
- sh '''docker pull eeacms/plone-backend; docker run -d --rm --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend'''
129
- sh '''docker pull plone/volto-addon-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" -e NODE_ENV=development -e VOLTO="$VOLTO" plone/volto-addon-ci cypress'''
130
- } finally {
131
- try {
132
- sh '''rm -rf cypress-reports cypress-results cypress-coverage'''
133
- sh '''mkdir -p cypress-reports cypress-results cypress-coverage'''
134
- sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/cypress/videos cypress-reports/'''
135
- sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/cypress/reports cypress-results/'''
136
- coverage = sh script: '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/coverage cypress-coverage/''', returnStatus: true
137
- if ( coverage == 0 ) {
138
- publishHTML (target : [allowMissing: false,
139
- alwaysLinkToLastBuild: true,
140
- keepAll: true,
141
- reportDir: 'cypress-coverage/coverage/lcov-report',
142
- reportFiles: 'index.html',
143
- reportName: 'CypressCoverage',
144
- reportTitles: 'Integration Tests Code Coverage'])
145
- }
146
- sh '''touch empty_file; for ok_test in $(grep -E 'file=.*failures="0"' $(grep 'testsuites .*failures="0"' $(find cypress-results -name *.xml) empty_file | awk -F: '{print $1}') empty_file | sed 's/.* file="\\(.*\\)" time.*/\\1/' | sed 's#^cypress/integration/##g' | sed 's#^../../../node_modules/@eeacms/##g'); do rm -f cypress-reports/videos/$ok_test.mp4; rm -f cypress-reports/$ok_test.mp4; done'''
147
- archiveArtifacts artifacts: 'cypress-reports/**/*.mp4', fingerprint: true, allowEmptyArchive: true
148
- stash name: "cypress-coverage", includes: "cypress-coverage/**", allowEmpty: true
149
- }
150
- finally {
151
- catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
152
- junit testResults: 'cypress-results/**/*.xml', allowEmptyResults: true
153
- }
154
- sh script: "docker stop $BUILD_TAG-plone", returnStatus: true
155
- sh script: "docker rm -v $BUILD_TAG-plone", returnStatus: true
156
- sh script: "docker rm -v $BUILD_TAG-cypress", returnStatus: true
157
-
158
- }
159
- }
160
- }
161
- }
162
- }
163
-
164
- )
165
- }
166
- }
111
+ // stage('Integration tests') {
112
+ // when {
113
+ // allOf {
114
+ // environment name: 'CHANGE_ID', value: ''
115
+ // anyOf {
116
+ // not { changelog '.*^Automated release [0-9\\.]+$' }
117
+ // branch 'master'
118
+ // }
119
+ // }
120
+ // }
121
+ // steps {
122
+ // parallel(
123
+
124
+ // "Cypress": {
125
+ // node(label: 'docker') {
126
+ // script {
127
+ // try {
128
+ // sh '''docker pull eeacms/plone-backend; docker run -d --rm --name="$BUILD_TAG-plone" -e SITE="Plone" -e PROFILES="eea.kitkat:testing" eeacms/plone-backend'''
129
+ // sh '''docker pull plone/volto-addon-ci; docker run -i --name="$BUILD_TAG-cypress" --link $BUILD_TAG-plone:plone -e NAMESPACE="$NAMESPACE" -e GIT_NAME=$GIT_NAME -e GIT_BRANCH="$BRANCH_NAME" -e GIT_CHANGE_ID="$CHANGE_ID" -e DEPENDENCIES="$DEPENDENCIES" -e NODE_ENV=development -e VOLTO="$VOLTO" plone/volto-addon-ci cypress'''
130
+ // } finally {
131
+ // try {
132
+ // sh '''rm -rf cypress-reports cypress-results cypress-coverage'''
133
+ // sh '''mkdir -p cypress-reports cypress-results cypress-coverage'''
134
+ // sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/cypress/videos cypress-reports/'''
135
+ // sh '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/cypress/reports cypress-results/'''
136
+ // coverage = sh script: '''docker cp $BUILD_TAG-cypress:/opt/frontend/my-volto-project/src/addons/$GIT_NAME/coverage cypress-coverage/''', returnStatus: true
137
+ // if ( coverage == 0 ) {
138
+ // publishHTML (target : [allowMissing: false,
139
+ // alwaysLinkToLastBuild: true,
140
+ // keepAll: true,
141
+ // reportDir: 'cypress-coverage/coverage/lcov-report',
142
+ // reportFiles: 'index.html',
143
+ // reportName: 'CypressCoverage',
144
+ // reportTitles: 'Integration Tests Code Coverage'])
145
+ // }
146
+ // sh '''touch empty_file; for ok_test in $(grep -E 'file=.*failures="0"' $(grep 'testsuites .*failures="0"' $(find cypress-results -name *.xml) empty_file | awk -F: '{print $1}') empty_file | sed 's/.* file="\\(.*\\)" time.*/\\1/' | sed 's#^cypress/integration/##g' | sed 's#^../../../node_modules/@eeacms/##g'); do rm -f cypress-reports/videos/$ok_test.mp4; rm -f cypress-reports/$ok_test.mp4; done'''
147
+ // archiveArtifacts artifacts: 'cypress-reports/**/*.mp4', fingerprint: true, allowEmptyArchive: true
148
+ // stash name: "cypress-coverage", includes: "cypress-coverage/**", allowEmpty: true
149
+ // }
150
+ // finally {
151
+ // catchError(buildResult: 'SUCCESS', stageResult: 'SUCCESS') {
152
+ // junit testResults: 'cypress-results/**/*.xml', allowEmptyResults: true
153
+ // }
154
+ // sh script: "docker stop $BUILD_TAG-plone", returnStatus: true
155
+ // sh script: "docker rm -v $BUILD_TAG-plone", returnStatus: true
156
+ // sh script: "docker rm -v $BUILD_TAG-cypress", returnStatus: true
157
+
158
+ // }
159
+ // }
160
+ // }
161
+ // }
162
+ // }
163
+
164
+ // )
165
+ // }
166
+ // }
167
167
 
168
168
  stage('Report to SonarQube') {
169
169
  when {
@@ -183,12 +183,12 @@ pipeline {
183
183
  script{
184
184
  checkout scm
185
185
  unstash "xunit-reports"
186
- unstash "cypress-coverage"
186
+ // unstash "cypress-coverage"
187
187
  def scannerHome = tool 'SonarQubeScanner';
188
188
  def nodeJS = tool 'NodeJS';
189
189
  withSonarQubeEnv('Sonarqube') {
190
190
  sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
191
- 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"
191
+ // 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"
192
192
  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'''
193
193
  }
194
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-n2k",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "volto-n2k: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -58,7 +58,7 @@ export const tiles = [
58
58
  title: 'Toolkit',
59
59
  description: 'TOOLKIT',
60
60
  link:
61
- 'https://op.europa.eu/fr/publication-detail/:lang/publication/e33a1119-8fa2-11ec-8c40-01aa75ed71a1',
61
+ 'https://op.europa.eu/:lang/publication-detail/-/publication/e33a1119-8fa2-11ec-8c40-01aa75ed71a1',
62
62
  },
63
63
  ];
64
64
 
@@ -56,7 +56,7 @@
56
56
  margin-left: -1rem;
57
57
  color: #eb9700;
58
58
  font-family: 'RajdhaniR', 'Helvetica Neue', Arial, Helvetica, sans-serif;
59
- font-size: 14px;
59
+ font-size: 16px;
60
60
  line-height: 14px;
61
61
  transition: max-width 0.3s;
62
62
 
@@ -97,7 +97,7 @@
97
97
  }
98
98
 
99
99
  .lower {
100
- font-size: 14px;
100
+ font-size: 16px;
101
101
  font-weight: 700;
102
102
  line-height: 1;
103
103
  text-transform: uppercase;
@@ -65,7 +65,7 @@ div#view .site-species-list .species-list .ui.container > * {
65
65
  background-color: transparent;
66
66
  color: #fff;
67
67
  cursor: pointer;
68
- font-size: 14px;
68
+ font-size: 16px;
69
69
  text-transform: uppercase;
70
70
 
71
71
  &.active,
@@ -172,7 +172,7 @@ body.grey-bg {
172
172
  a,
173
173
  ul,
174
174
  li {
175
- font-size: 14px;
175
+ font-size: 16px;
176
176
  }
177
177
 
178
178
  a {
@@ -497,7 +497,7 @@ body.grey-bg {
497
497
  margin-top: 2em;
498
498
  margin-bottom: 3rem;
499
499
  color: #7b7b7b;
500
- font-size: 14px;
500
+ font-size: 16px;
501
501
  font-weight: bold;
502
502
 
503
503
  .ui.circular.button {
@@ -638,7 +638,7 @@ img.slick-image {
638
638
  color: #fff;
639
639
 
640
640
  p {
641
- font-size: 14px !important;
641
+ font-size: 16px !important;
642
642
  }
643
643
 
644
644
  &.active:hover,