@eeacms/volto-datahub 1.0.24 → 1.0.26

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,6 +4,35 @@ 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
+ ### [1.0.26](https://github.com/eea/volto-datahub/compare/1.0.25...1.0.26) - 23 August 2023
8
+
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - Update tests [kreafox - [`b452535`](https://github.com/eea/volto-datahub/commit/b452535adabf75488d6c82725152d497c6758cd4)]
12
+ - Add tests [kreafox - [`3ef3c6f`](https://github.com/eea/volto-datahub/commit/3ef3c6f3ea11eff95d091fb5112f3e5c4a981e0d)]
13
+ - Update Jenkinsfile [kreafox - [`2202f7f`](https://github.com/eea/volto-datahub/commit/2202f7f4de801a209753b0abe159c974fc0da754)]
14
+ - Add test [kreafox - [`fcec0ba`](https://github.com/eea/volto-datahub/commit/fcec0ba7c8054d7973421428dd36d59c3a7fb2ba)]
15
+ - Add test [kreafox - [`5061ab7`](https://github.com/eea/volto-datahub/commit/5061ab71928e4e352635c49ba7b53bf204a5b797)]
16
+ - Code cleanup [kreafox - [`a0031be`](https://github.com/eea/volto-datahub/commit/a0031be9884b18fbbf247b0a2276b12df28bb6f1)]
17
+ - Update dependencies [kreafox - [`955fec2`](https://github.com/eea/volto-datahub/commit/955fec2f7b7acd84dd40b195fd5dc098a8e9a11c)]
18
+ - Fix icon size on firefox [kreafox - [`b49744d`](https://github.com/eea/volto-datahub/commit/b49744d1667988a93a5f3c43535136c3ca7f833a)]
19
+ - Fixes on datahub view [kreafox - [`32e91a0`](https://github.com/eea/volto-datahub/commit/32e91a0f92fb1c1297a9ff3d7aa36f993d2d547b)]
20
+ - test: Update Makefile and docker-compose to align it with Jenkinsfile [valentinab25 - [`9a9cfca`](https://github.com/eea/volto-datahub/commit/9a9cfca01faf04b5545a33e4657003dcdc3b72f6)]
21
+ - Add datasets filtering option [kreafox - [`3064341`](https://github.com/eea/volto-datahub/commit/30643419cab961809926c5e9221dfdb59ddf59ea)]
22
+ - Improve accordion on datahub view [kreafox - [`dd7716a`](https://github.com/eea/volto-datahub/commit/dd7716a4913a820e3031925e6af5d6f9add0d3c5)]
23
+ ### [1.0.25](https://github.com/eea/volto-datahub/compare/1.0.24...1.0.25) - 16 August 2023
24
+
25
+ #### :house: Documentation changes
26
+
27
+ - docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`7c942a0`](https://github.com/eea/volto-datahub/commit/7c942a004214f5f2f66f690372be2febfb743491)]
28
+
29
+ #### :hammer_and_wrench: Others
30
+
31
+ - Update Jenkinsfile [kreafox - [`4a950b1`](https://github.com/eea/volto-datahub/commit/4a950b19149a6ecc1d04e974b94c242d563731e1)]
32
+ - Fix sonarqube issues to improve code quality [kreafox - [`8bd8364`](https://github.com/eea/volto-datahub/commit/8bd83646fb39611d5fb93a342d562dfa255f264c)]
33
+ - Configure externals [Tiberiu Ichim - [`72eef0f`](https://github.com/eea/volto-datahub/commit/72eef0fcaf30440b9a0eb2523975a2a0d6e011a6)]
34
+ - Add rss middleware [Tiberiu Ichim - [`61b215b`](https://github.com/eea/volto-datahub/commit/61b215b64bf6908421ce5c411f0a834bff11929e)]
35
+ - Linking to accordion item on datahub item page [kreafox - [`1e3768c`](https://github.com/eea/volto-datahub/commit/1e3768cd96343ea837431e6e61327f67c0ced1c8)]
7
36
  ### [1.0.24](https://github.com/eea/volto-datahub/compare/1.0.23...1.0.24) - 13 June 2023
8
37
 
9
38
  #### :hammer_and_wrench: Others
@@ -13,7 +42,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
13
42
 
14
43
  #### :house: Internal changes
15
44
 
16
- - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`e5933ce`](https://github.com/eea/volto-datahub/commit/e5933ce8879d98aabe0bab56980dbd50ce856a36)]
17
45
 
18
46
  #### :hammer_and_wrench: Others
19
47
 
@@ -68,7 +96,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
68
96
  - added utils.js [Zoltan Szabo - [`fdb33c3`](https://github.com/eea/volto-datahub/commit/fdb33c37e1af2fe071dbe8f4f5dcd2b82932edc8)]
69
97
  - Show 'Obsolete' info in the metadata section in the banner [Zoltan Szabo - [`fddfd2a`](https://github.com/eea/volto-datahub/commit/fddfd2aea63d1a1d1567c163ab29dd7119781117)]
70
98
  - Show 'More information' section only if it's not empty [Zoltan Szabo - [`612f035`](https://github.com/eea/volto-datahub/commit/612f03509c6adf143631ae6dee5ca2bd48a501c3)]
71
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b9100f6`](https://github.com/eea/volto-datahub/commit/b9100f6b2b2e9e9a26b9c11708c8fda94137cecc)]
72
99
  ### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
73
100
 
74
101
  ### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
@@ -161,11 +188,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
161
188
  #### :hammer_and_wrench: Others
162
189
 
163
190
  - Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
164
- - Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
165
191
  - Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
166
192
  - Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
167
193
  - Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
168
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
169
194
  ## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
170
195
 
171
196
  #### :nail_care: Enhancements
@@ -190,7 +215,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
190
215
  #### :hammer_and_wrench: Others
191
216
 
192
217
  - fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
193
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
194
218
  ### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
195
219
 
196
220
  #### :hammer_and_wrench: Others
@@ -279,7 +303,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
279
303
  #### :hammer_and_wrench: Others
280
304
 
281
305
  - Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
282
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
283
306
  ### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
284
307
 
285
308
  ### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
package/DEVELOP.md CHANGED
@@ -2,6 +2,28 @@
2
2
 
3
3
  ## Develop
4
4
 
5
+ 1. Make sure you have `docker` and `docker compose` installed and running on your machine:
6
+
7
+ ```Bash
8
+ git clone https://github.com/eea/volto-datahub.git
9
+ cd volto-datahub
10
+ git checkout -b bugfix-123456 develop
11
+ make
12
+ make start
13
+ ```
14
+
15
+ 1. Wait for `Volto started at 0.0.0.0:3000` meesage
16
+
17
+ 1. Go to http://localhost:3000
18
+
19
+ 1. Happy hacking!
20
+
21
+ ```Bash
22
+ cd src/addons/volto-datahub/
23
+ ```
24
+
25
+ ### Or add @eeacms/volto-datahub to your Volto project
26
+
5
27
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
6
28
 
7
29
  1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
@@ -50,3 +72,37 @@ Before starting make sure your development environment is properly set. See [Vol
50
72
 
51
73
  cd src/addons/volto-datahub/
52
74
  cd src/addons/volto-addon-template/
75
+
76
+ ## Cypress
77
+
78
+ To run cypress locally, first make sure you don't have any Volto/Plone running on ports `8080` and `3000`.
79
+
80
+ You don't have to be in a `clean-volto-project`, you can be in any Volto Frontend
81
+ project where you added `volto-datahub` to `mrs.developer.json`
82
+
83
+ Go to:
84
+
85
+ ```BASH
86
+ cd src/addons/volto-datahub/
87
+ ```
88
+
89
+ Start:
90
+
91
+ ```Bash
92
+ make
93
+ make start
94
+ ```
95
+
96
+ This will build and start with Docker a clean `Plone backend` and `Volto Frontend` with `volto-datahub` block installed.
97
+
98
+ Open Cypress Interface:
99
+
100
+ ```Bash
101
+ make cypress-open
102
+ ```
103
+
104
+ Or run it:
105
+
106
+ ```Bash
107
+ make cypress-run
108
+ ```
package/README.md CHANGED
@@ -1,43 +1,56 @@
1
- # volto-addon-template
1
+ # volto-datahub
2
2
 
3
- [![Releases](https://img.shields.io/github/v/release/eea/volto-addon-template)](https://github.com/eea/volto-addon-template/releases)
3
+ [![Releases](https://img.shields.io/github/v/release/eea/volto-datahub)](https://github.com/eea/volto-datahub/releases)
4
4
 
5
- [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-addon-template%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-addon-template/job/master/display/redirect)
6
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-master&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-master)
7
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-master&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-master)
8
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-master&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-master)
9
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-master&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-master)
5
+ [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-datahub%2Fmaster&subject=master)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-datahub/job/master/display/redirect)
6
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-master&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-master)
7
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-master&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-master)
8
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-master&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-master)
9
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-master&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-master)
10
10
 
11
- [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-addon-template%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-addon-template/job/develop/display/redirect)
12
- [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-develop)
13
- [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-develop)
14
- [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-develop)
15
- [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-addon-template-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-addon-template-develop)
11
+ [![Pipeline](https://ci.eionet.europa.eu/buildStatus/icon?job=volto-addons%2Fvolto-datahub%2Fdevelop&subject=develop)](https://ci.eionet.europa.eu/view/Github/job/volto-addons/job/volto-datahub/job/develop/display/redirect)
12
+ [![Lines of Code](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-develop&metric=ncloc)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-develop)
13
+ [![Coverage](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-develop&metric=coverage)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-develop)
14
+ [![Bugs](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-develop&metric=bugs)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-develop)
15
+ [![Duplicated Lines (%)](https://sonarqube.eea.europa.eu/api/project_badges/measure?project=volto-datahub-develop&metric=duplicated_lines_density)](https://sonarqube.eea.europa.eu/dashboard?id=volto-datahub-develop)
16
16
 
17
17
 
18
- EEA DataHub search [Volto](https://github.com/plone/volto) add-on
18
+ [Volto](https://github.com/plone/volto) add-on
19
19
 
20
- ## Demo
20
+ ## Features
21
21
 
22
- - https://demo-www.eea.europa.eu/en/datahub
22
+ Demo GIF
23
23
 
24
24
  ## Getting started
25
25
 
26
- ### Add volto-addon-template to your Volto project
26
+ ### Try volto-datahub with Docker
27
+
28
+ git clone https://github.com/eea/volto-datahub.git
29
+ cd volto-datahub
30
+ make
31
+ make start
32
+
33
+ Go to http://localhost:3000
34
+
35
+ ### Add volto-datahub to your Volto project
27
36
 
28
37
  1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
29
38
 
39
+ ```Bash
40
+ docker compose up backend
41
+ ```
42
+
30
43
  1. Start Volto frontend
31
44
 
32
45
  * If you already have a volto project, just update `package.json`:
33
46
 
34
47
  ```JSON
35
48
  "addons": [
36
- "@eeacms/volto-addon-template"
49
+ "@eeacms/volto-datahub"
37
50
  ],
38
51
 
39
52
  "dependencies": {
40
- "@eeacms/volto-addon-template": "*"
53
+ "@eeacms/volto-datahub": "*"
41
54
  }
42
55
  ```
43
56
 
@@ -45,7 +58,7 @@ EEA DataHub search [Volto](https://github.com/plone/volto) add-on
45
58
 
46
59
  ```
47
60
  npm install -g yo @plone/generator-volto
48
- yo @plone/volto my-volto-project --addon @eeacms/volto-addon-template
61
+ yo @plone/volto my-volto-project --canary --addon @eeacms/volto-datahub
49
62
  cd my-volto-project
50
63
  ```
51
64
 
@@ -62,20 +75,19 @@ EEA DataHub search [Volto](https://github.com/plone/volto) add-on
62
75
 
63
76
  ## Release
64
77
 
65
- See [RELEASE.md](https://github.com/eea/volto-addon-template/blob/master/RELEASE.md).
78
+ See [RELEASE.md](https://github.com/eea/volto-datahub/blob/master/RELEASE.md).
66
79
 
67
80
  ## How to contribute
68
81
 
69
- See [DEVELOP.md](https://github.com/eea/volto-addon-template/blob/master/DEVELOP.md).
82
+ See [DEVELOP.md](https://github.com/eea/volto-datahub/blob/master/DEVELOP.md).
70
83
 
71
84
  ## Copyright and license
72
85
 
73
86
  The Initial Owner of the Original Code is European Environment Agency (EEA).
74
87
  All Rights Reserved.
75
88
 
76
- See [LICENSE.md](https://github.com/eea/volto-addon-template/blob/master/LICENSE.md) for details.
89
+ See [LICENSE.md](https://github.com/eea/volto-datahub/blob/master/LICENSE.md) for details.
77
90
 
78
91
  ## Funding
79
92
 
80
93
  [European Environment Agency (EU)](http://eea.europa.eu)
81
-
@@ -0,0 +1,32 @@
1
+ version: "3"
2
+ services:
3
+ backend:
4
+ image: eeacms/plone-backend
5
+ ports:
6
+ - "8080:8080"
7
+ environment:
8
+ SITE: "Plone"
9
+ PROFILES: "eea.kitkat:testing"
10
+
11
+ frontend:
12
+ build:
13
+ context: ./
14
+ dockerfile: ./Dockerfile
15
+ args:
16
+ ADDON_NAME: "${ADDON_NAME}"
17
+ ADDON_PATH: "${ADDON_PATH}"
18
+ VOLTO_VERSION: ${VOLTO_VERSION:-16}
19
+ ports:
20
+ - "3000:3000"
21
+ - "3001:3001"
22
+ depends_on:
23
+ - backend
24
+ volumes:
25
+ - ./:/app/src/addons/${ADDON_PATH}
26
+ environment:
27
+ CI: "true"
28
+ NODE_ENV: "development"
29
+ RAZZLE_JEST_CONFIG: "src/addons/${ADDON_PATH}/jest-addon.config.js"
30
+ RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
31
+ RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
32
+ HOST: "0.0.0.0"
@@ -12,6 +12,7 @@ module.exports = {
12
12
  '@package/(.*)$': '<rootDir>/src/$1',
13
13
  '@root/(.*)$': '<rootDir>/src/$1',
14
14
  '@plone/volto-quanta/(.*)$': '<rootDir>/src/addons/volto-quanta/src/$1',
15
+ '@eeacms/search': '<rootDir>/node_modules/@eeacms/volto-searchlib/src',
15
16
  '@eeacms/(.*?)/(.*)$': '<rootDir>/node_modules/@eeacms/$1/src/$2',
16
17
  '@plone/volto-slate':
17
18
  '<rootDir>/node_modules/@plone/volto/packages/volto-slate/src',
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
@@ -0,0 +1,14 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language: \n"
9
+ "Language-Team: \n"
10
+ "Content-Type: \n"
11
+ "Content-Transfer-Encoding: \n"
12
+ "Plural-Forms: \n"
13
+
14
+
package/locales/volto.pot CHANGED
@@ -0,0 +1,16 @@
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Plone\n"
4
+ "POT-Creation-Date: 2023-06-28T10:48:22.678Z\n"
5
+ "Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
6
+ "Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
7
+ "MIME-Version: 1.0\n"
8
+ "Content-Type: text/plain; charset=utf-8\n"
9
+ "Content-Transfer-Encoding: 8bit\n"
10
+ "Plural-Forms: nplurals=1; plural=0;\n"
11
+ "Language-Code: en\n"
12
+ "Language-Name: English\n"
13
+ "Preferred-Encodings: utf-8\n"
14
+ "Domain: volto\n"
15
+
16
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-datahub",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "@eeacms/volto-datahub: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -18,7 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@eeacms/volto-globalsearch": "*",
21
- "@eeacms/volto-listing-block": "*"
21
+ "@eeacms/volto-listing-block": "*",
22
+ "@eeacms/volto-accordion-block": "*",
23
+ "feed": "4.2.2"
22
24
  },
23
25
  "devDependencies": {
24
26
  "@cypress/code-coverage": "^3.10.0",
@@ -28,7 +30,8 @@
28
30
  },
29
31
  "addons": [
30
32
  "@eeacms/volto-globalsearch",
31
- "@eeacms/volto-listing-block"
33
+ "@eeacms/volto-listing-block",
34
+ "@eeacms/volto-accordion-block"
32
35
  ],
33
36
  "scripts": {
34
37
  "release": "release-it",
@@ -33,7 +33,7 @@ const DatasetItemDownloadList = (props) => {
33
33
  <span>{item.name}</span>
34
34
  </a>
35
35
  {isInternalURL(item.url) && (
36
- <SVGIcon name={lockSVG} size="18" />
36
+ <SVGIcon name={lockSVG} size="20px" />
37
37
  )}
38
38
  </div>
39
39
  </List.Content>
@@ -72,59 +72,13 @@ const DatasetItemDownloadList = (props) => {
72
72
  </a>
73
73
  )}
74
74
  {isInternalURL(item.url) && (
75
- <SVGIcon name={lockSVG} size="18" />
75
+ <SVGIcon name={lockSVG} size="20px" />
76
76
  )}
77
77
  </div>
78
78
  </List.Content>
79
79
  </List.Item>
80
80
  );
81
81
  })}
82
-
83
- {/* {(dataset['EEA:FILEPATH'] || []).map((item, i) => {
84
- return (
85
- <List.Item key={i}>
86
- <List.Content>
87
- <div className="dataset-item">
88
- <Icon className="download" />
89
- <a
90
- href={item.url}
91
- className="item-link"
92
- target="_blank"
93
- rel="noreferrer"
94
- >
95
- WebDAV: {item.name || item.function}
96
- </a>
97
- {isInternalURL(item.url) && (
98
- <SVGIcon name={lockSVG} size="18" />
99
- )}
100
- </div>
101
- </List.Content>
102
- </List.Item>
103
- );
104
- })}
105
-
106
- {(dataset['EEA:FOLDERPATH'] || []).map((item, i) => {
107
- return (
108
- <List.Item key={i}>
109
- <List.Content>
110
- <div className="dataset-item">
111
- <Icon className="download" />
112
- <a
113
- href={item.url}
114
- className="item-link"
115
- target="_blank"
116
- rel="noreferrer"
117
- >
118
- WebDAV1: {item.name || item.function}
119
- </a>
120
- {isInternalURL(item.url) && (
121
- <SVGIcon name={lockSVG} size="18" />
122
- )}
123
- </div>
124
- </List.Content>
125
- </List.Item>
126
- );
127
- })} */}
128
82
  </List>
129
83
  </>
130
84
  )}
@@ -138,10 +92,7 @@ const DatasetItemDownloadList = (props) => {
138
92
  <List.Item key={i}>
139
93
  <List.Content>
140
94
  <div>
141
- <SVGIcon name={servicesSVG} size="18" />
142
- {/* {(item.name || item.description) && (
143
- <span className="item-protocol">{item.protocol}:</span>
144
- )} */}
95
+ <SVGIcon name={servicesSVG} size="20px" />
145
96
  <a
146
97
  className="item-link"
147
98
  href={item.url}
@@ -151,7 +102,7 @@ const DatasetItemDownloadList = (props) => {
151
102
  {item.protocol} {item.name || item.description}
152
103
  </a>
153
104
  {isInternalURL(item.url) && (
154
- <SVGIcon name={lockSVG} size="18" />
105
+ <SVGIcon name={lockSVG} size="20px" />
155
106
  )}
156
107
  </div>
157
108
  </List.Content>
@@ -164,10 +115,7 @@ const DatasetItemDownloadList = (props) => {
164
115
  <List.Item key={i}>
165
116
  <List.Content>
166
117
  <div>
167
- <SVGIcon name={servicesSVG} size="18" />
168
- {/* {(item.name || item.description) && (
169
- <span className="item-protocol">{item.protocol}:</span>
170
- )} */}
118
+ <SVGIcon name={servicesSVG} size="20px" />
171
119
  <a
172
120
  className="item-link"
173
121
  href={item.url}
@@ -177,7 +125,7 @@ const DatasetItemDownloadList = (props) => {
177
125
  {item.protocol} {item.name || item.description}
178
126
  </a>
179
127
  {isInternalURL(item.url) && (
180
- <SVGIcon name={lockSVG} size="18" />
128
+ <SVGIcon name={lockSVG} size="20px" />
181
129
  )}
182
130
  </div>
183
131
  </List.Content>
@@ -207,7 +155,7 @@ const DatasetItemDownloadList = (props) => {
207
155
  <span>{item.name || item.url}</span>
208
156
  </a>
209
157
  {isInternalURL(item.url) && (
210
- <SVGIcon name={lockSVG} size="18" />
158
+ <SVGIcon name={lockSVG} size="20px" />
211
159
  )}
212
160
  </div>
213
161
  </List.Content>