@eeacms/volto-arcgis-block 0.1.21 → 0.1.22

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,8 +4,17 @@ 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.22](https://github.com/eea/volto-arcgis-block/compare/0.1.21...0.1.22)
8
+
9
+ - ESLint fix [`#69`](https://github.com/eea/volto-arcgis-block/pull/69)
10
+ - Bugs n improvements [`#68`](https://github.com/eea/volto-arcgis-block/pull/68)
11
+ - Change services URLs to discomap [`ed4dc62`](https://github.com/eea/volto-arcgis-block/commit/ed4dc62df3af66a71acbe981b3e74a4a621ef2c4)
12
+
7
13
  #### [0.1.21](https://github.com/eea/volto-arcgis-block/compare/0.1.20...0.1.21)
8
14
 
15
+ > 3 December 2021
16
+
17
+ - Develop [`#66`](https://github.com/eea/volto-arcgis-block/pull/66)
9
18
  - Bugs n improvements [`#65`](https://github.com/eea/volto-arcgis-block/pull/65)
10
19
  - ESLint fix [`758889e`](https://github.com/eea/volto-arcgis-block/commit/758889e6443cad21af9115d12f521170388fef77)
11
20
  - Download message bug fix [`4ff3ba4`](https://github.com/eea/volto-arcgis-block/commit/4ff3ba4c94eb4463474369fb21727a617a9ee666)
package/Jenkinsfile CHANGED
@@ -10,6 +10,23 @@ pipeline {
10
10
 
11
11
  stages {
12
12
 
13
+ stage('Release') {
14
+ when {
15
+ allOf {
16
+ environment name: 'CHANGE_ID', value: ''
17
+ branch 'master'
18
+ }
19
+ }
20
+ steps {
21
+ node(label: 'docker') {
22
+ withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
23
+ sh '''docker pull eeacms/gitflow'''
24
+ sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
25
+ }
26
+ }
27
+ }
28
+ }
29
+
13
30
  stage('Code') {
14
31
  when {
15
32
  allOf {
@@ -46,7 +63,6 @@ pipeline {
46
63
  when {
47
64
  allOf {
48
65
  environment name: 'CHANGE_ID', value: ''
49
- not { branch 'master' }
50
66
  not { changelog '.*^Automated release [0-9\\.]+$' }
51
67
  }
52
68
  }
@@ -92,7 +108,6 @@ pipeline {
92
108
  when {
93
109
  allOf {
94
110
  environment name: 'CHANGE_ID', value: ''
95
- not { branch 'master' }
96
111
  not { changelog '.*^Automated release [0-9\\.]+$' }
97
112
  }
98
113
  }
@@ -191,23 +206,6 @@ pipeline {
191
206
  }
192
207
  }
193
208
 
194
- stage('Release') {
195
- when {
196
- allOf {
197
- environment name: 'CHANGE_ID', value: ''
198
- branch 'master'
199
- }
200
- }
201
- steps {
202
- node(label: 'docker') {
203
- withCredentials([string(credentialsId: 'eea-jenkins-token', variable: 'GITHUB_TOKEN'),string(credentialsId: 'eea-jenkins-npm-token', variable: 'NPM_TOKEN')]) {
204
- sh '''docker pull eeacms/gitflow'''
205
- sh '''docker run -i --rm --name="$BUILD_TAG-gitflow-master" -e GIT_BRANCH="$BRANCH_NAME" -e GIT_NAME="$GIT_NAME" -e GIT_TOKEN="$GITHUB_TOKEN" -e NPM_TOKEN="$NPM_TOKEN" -e LANGUAGE=javascript eeacms/gitflow'''
206
- }
207
- }
208
- }
209
- }
210
-
211
209
  }
212
210
 
213
211
  post {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-arcgis-block",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "volto-arcgis-block: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: CodeSyntax",
@@ -118,7 +118,7 @@ class AreaWidget extends React.Component {
118
118
  this.clearWidget();
119
119
 
120
120
  var url =
121
- 'https://bm-eugis.tk/arcgis/rest/services/CLMS/NUTS_2021/MapServer/0';
121
+ 'https://trial.discomap.eea.europa.eu/arcgis/rest/services/CLMS/NUTS_2021/MapServer/0';
122
122
  var layer = new FeatureLayer({
123
123
  url: url,
124
124
  id: id,
@@ -46,7 +46,14 @@ class InfoWidget extends React.Component {
46
46
  ></span>
47
47
  </div>
48
48
  <div className="use-case-detail-image">
49
- <img src={UseCase.Link_to_image} alt="Use Case" />
49
+ <img
50
+ src={
51
+ UseCase.Link_to_image
52
+ ? UseCase.Link_to_image
53
+ : this.props.thumbnail
54
+ }
55
+ alt="Use Case"
56
+ />
50
57
  </div>
51
58
  <div className="use-case-detail-content">
52
59
  <div className="use-case-detail-product">
@@ -27,6 +27,7 @@ class UseCasesMapViewer extends React.Component {
27
27
  this.serviceCfg = props.cfg.Services;
28
28
  this.compCfg = this.props.cfg.Components;
29
29
  this.url = this.props.cfg.url;
30
+ this.thumbnail = this.props.cfg.Thumbnail;
30
31
  this.map = null;
31
32
  this.id = props.id;
32
33
  this.popupOnce = false;
@@ -422,6 +423,7 @@ class UseCasesMapViewer extends React.Component {
422
423
  layerControl={layerControl}
423
424
  navigationControl={navigationControl}
424
425
  layerSpatial={layerSpatial}
426
+ thumbnail={this.thumbnail}
425
427
  layerNUTS={layerNUTS}
426
428
  />
427
429
  );
@@ -34,12 +34,15 @@ const config = {
34
34
  },
35
35
  Services: {
36
36
  NUTS_service:
37
- 'https://bm-eugis.tk/arcgis/rest/services/CLMS/NUTS_2021/MapServer/0',
37
+ 'https://trial.discomap.eea.europa.eu/arcgis/rest/services/CLMS/NUTS_2021/MapServer/0',
38
38
  RegionLayer:
39
- 'https://bm-eugis.tk/arcgis/rest/services/CLMS/UseCasesRegion_count/MapServer/0',
39
+ 'https://trial.discomap.eea.europa.eu/arcgis/rest/services/CLMS/UseCasesRegion_count/MapServer/0',
40
40
  SpatialCoverageLayer:
41
- 'https://bm-eugis.tk/arcgis/rest/services/CLMS/UseCasesSpatialCoverage/MapServer/0',
41
+ 'https://trial.discomap.eea.europa.eu/arcgis/rest/services/CLMS/UseCasesSpatialCoverage/MapServer/0',
42
42
  },
43
+ Thumbnail:
44
+ 'https://eu-copernicus.github.io/copernicus-component-library/assets/images/image_placeholder.jpg',
45
+
43
46
  Codes: {
44
47
  EU: [
45
48
  'BE',