@eeacms/volto-datahub 1.0.30 → 1.0.32

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,7 +4,23 @@ 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.30](https://github.com/eea/volto-datahub/compare/1.0.29...1.0.30) - 26 September 2023
7
+ ### [1.0.32](https://github.com/eea/volto-datahub/compare/1.0.31...1.0.32) - 11 October 2023
8
+
9
+ #### :house: Internal changes
10
+
11
+ - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`5ae8426`](https://github.com/eea/volto-datahub/commit/5ae8426dc5cb4786aa1fb52b0b4e416ba47dcacf)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - Fix hostname generation for RSS links [Tiberiu Ichim - [`7fc7896`](https://github.com/eea/volto-datahub/commit/7fc78961917f91cdefa022d0938a2f0fe410377a)]
16
+ - Fix hostname generation for RSS links [Tiberiu Ichim - [`5fc2df3`](https://github.com/eea/volto-datahub/commit/5fc2df3e1871575bb8453959973a3fc9d8297664)]
17
+ ### [1.0.31](https://github.com/eea/volto-datahub/compare/1.0.30...1.0.31) - 29 September 2023
18
+
19
+ #### :house: Documentation changes
20
+
21
+ - docs: Update README and DEVELOP [Alin Voinea - [`45530f9`](https://github.com/eea/volto-datahub/commit/45530f9f8c408e06326ff2207832d9aaf0c9e533)]
22
+
23
+ ### [1.0.30](https://github.com/eea/volto-datahub/compare/1.0.29...1.0.30) - 27 September 2023
8
24
 
9
25
  #### :hammer_and_wrench: Others
10
26
 
@@ -33,7 +49,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
33
49
  - Fix content type for rss feed [Tiberiu Ichim - [`65b73a7`](https://github.com/eea/volto-datahub/commit/65b73a79d73e626f652716305e80d9a2b017c85c)]
34
50
  - test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`ead1c04`](https://github.com/eea/volto-datahub/commit/ead1c042d1358b385c19ec66ec84d7c736574b1d)]
35
51
  - Added 'DOI' links to datahub [Zoltan Szabo - [`b33a657`](https://github.com/eea/volto-datahub/commit/b33a657096eaec4caa641379e69e941a3b2c1583)]
36
- - test: Fix eslint and yarn i18n [Alin Voinea - [`39a4a69`](https://github.com/eea/volto-datahub/commit/39a4a695733514890075886753b9d7b91d853646)]
37
52
  - i18n: Add en [Alin Voinea - [`cdb303f`](https://github.com/eea/volto-datahub/commit/cdb303f2ac5e1f9eb22eda46bb58087c62af6ba5)]
38
53
  ### [1.0.27](https://github.com/eea/volto-datahub/compare/1.0.26...1.0.27) - 25 August 2023
39
54
 
@@ -81,7 +96,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
81
96
 
82
97
  #### :house: Internal changes
83
98
 
84
- - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`e5933ce`](https://github.com/eea/volto-datahub/commit/e5933ce8879d98aabe0bab56980dbd50ce856a36)]
85
99
 
86
100
  #### :hammer_and_wrench: Others
87
101
 
@@ -136,7 +150,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
136
150
  - added utils.js [Zoltan Szabo - [`fdb33c3`](https://github.com/eea/volto-datahub/commit/fdb33c37e1af2fe071dbe8f4f5dcd2b82932edc8)]
137
151
  - Show 'Obsolete' info in the metadata section in the banner [Zoltan Szabo - [`fddfd2a`](https://github.com/eea/volto-datahub/commit/fddfd2aea63d1a1d1567c163ab29dd7119781117)]
138
152
  - Show 'More information' section only if it's not empty [Zoltan Szabo - [`612f035`](https://github.com/eea/volto-datahub/commit/612f03509c6adf143631ae6dee5ca2bd48a501c3)]
139
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b9100f6`](https://github.com/eea/volto-datahub/commit/b9100f6b2b2e9e9a26b9c11708c8fda94137cecc)]
140
153
  ### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
141
154
 
142
155
  ### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
@@ -229,11 +242,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
229
242
  #### :hammer_and_wrench: Others
230
243
 
231
244
  - Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
232
- - Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
233
245
  - Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
234
246
  - Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
235
247
  - Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
236
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
237
248
  ## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
238
249
 
239
250
  #### :nail_care: Enhancements
@@ -258,7 +269,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
258
269
  #### :hammer_and_wrench: Others
259
270
 
260
271
  - fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
261
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
262
272
  ### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
263
273
 
264
274
  #### :hammer_and_wrench: Others
@@ -347,7 +357,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
347
357
  #### :hammer_and_wrench: Others
348
358
 
349
359
  - Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
350
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
351
360
  ### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
352
361
 
353
362
  ### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
package/DEVELOP.md CHANGED
@@ -16,12 +16,14 @@
16
16
 
17
17
  1. Go to http://localhost:3000
18
18
 
19
- 1. Happy hacking!
19
+ 1. Initialize git hooks
20
20
 
21
21
  ```Bash
22
- cd src/addons/volto-datahub/
22
+ yarn prepare
23
23
  ```
24
24
 
25
+ 1. Happy hacking!
26
+
25
27
  ### Or add @eeacms/volto-datahub to your Volto project
26
28
 
27
29
  Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
@@ -48,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
48
50
 
49
51
  1. Install
50
52
 
51
- yarn develop
53
+ make develop
52
54
  yarn
53
55
 
54
56
  1. Start backend
55
57
 
56
- docker pull plone
57
- docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
58
+ docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
58
59
 
59
60
  ...wait for backend to setup and start - `Ready to handle requests`:
60
61
 
61
- docker logs -f plone
62
-
63
62
  ...you can also check http://localhost:8080/Plone
64
63
 
65
64
  1. Start frontend
@@ -71,7 +70,6 @@ Before starting make sure your development environment is properly set. See [Vol
71
70
  1. Happy hacking!
72
71
 
73
72
  cd src/addons/volto-datahub/
74
- cd src/addons/volto-addon-template/
75
73
 
76
74
  ## Cypress
77
75
 
package/README.md CHANGED
@@ -15,11 +15,11 @@
15
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
- [Volto](https://github.com/plone/volto) add-on
18
+ EEA DataHub search [Volto](https://github.com/plone/volto) add-on
19
19
 
20
- ## Features
20
+ ## Demo
21
21
 
22
- Demo GIF
22
+ - https://demo-www.eea.europa.eu/en/datahub
23
23
 
24
24
  ## Getting started
25
25
 
package/RELEASE.md CHANGED
@@ -20,9 +20,9 @@ You need to first install the [release-it](https://github.com/release-it/release
20
20
  ```
21
21
  npm install -g release-it
22
22
  ```
23
-
23
+
24
24
  Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
25
-
25
+
26
26
  Release-it is a tool that automates 4 important steps in the release process:
27
27
 
28
28
  1. Version increase in `package.json` ( increased from the current version in `package.json`)
@@ -30,45 +30,45 @@ Release-it is a tool that automates 4 important steps in the release process:
30
30
  3. GitHub release on the commit with the changelog and package.json modification on the develop branch
31
31
  4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
32
32
 
33
- To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
33
+ To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
34
34
 
35
35
  ```
36
36
  export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
37
37
  ```
38
-
38
+
39
39
  To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
40
-
40
+
41
41
  ```
42
42
  echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
43
43
  ```
44
44
 
45
45
  #### Using release-it tool
46
-
46
+
47
47
  There are 3 yarn scripts that can be run to do the release
48
48
 
49
49
  ##### yarn release-beta
50
50
 
51
- Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
51
+ Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
52
52
 
53
53
  ```
54
- ? Select increment (next version):
55
- ❯ prepatch (0.1.1-beta.0)
56
- preminor (0.2.0-beta.0)
57
- premajor (1.0.0-beta.0)
58
- Other, please specify...
54
+ ? Select increment (next version):
55
+ ❯ prepatch (0.1.1-beta.0)
56
+ preminor (0.2.0-beta.0)
57
+ premajor (1.0.0-beta.0)
58
+ Other, please specify...
59
59
  ```
60
60
 
61
61
  ##### yarn release-major-beta
62
62
 
63
63
  Same as `yarn release-beta`, but with premajor version pre-selected.
64
-
64
+
65
65
  ##### yarn release
66
66
 
67
67
  Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
68
68
 
69
69
  #### Important notes
70
70
 
71
- > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
71
+ > Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
72
72
 
73
73
  > Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
74
74
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-datahub",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "description": "@eeacms/volto-datahub: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -12,6 +12,8 @@ import {
12
12
  redirectRouteId,
13
13
  } from '@eeacms/volto-datahub/constants';
14
14
 
15
+ const EEA_DATAHUB = `https://eea.europa.eu/en/datahub`;
16
+
15
17
  const getUrlES = (appName) => {
16
18
  return (
17
19
  process.env[`RAZZLE_PROXY_ES_DSN_${appName}`] ||
@@ -43,7 +45,7 @@ function handleSearchRequest(body, params) {
43
45
 
44
46
  function generateSitemap(appConfig) {
45
47
  const toPublicURL = (id) => {
46
- return `https://eea.europa.eu/en/datahub/${viewRouteId}/${id}`;
48
+ return `${EEA_DATAHUB}/${viewRouteId}/${id}`;
47
49
  };
48
50
 
49
51
  return new Promise((resolve, reject) => {
@@ -134,9 +136,9 @@ function generateRSS({ appConfig, feedUrl, toPublicURL }) {
134
136
  const feed = new Feed({
135
137
  title: 'EEA Datahub',
136
138
  description: 'Latest changes in EEA Datahub',
137
- id: 'https://eea.europa.eu/en/datahub',
139
+ id: EEA_DATAHUB,
138
140
  generator: 'EEA Website',
139
- link: 'https://eea.europa.eu/en/datahub',
141
+ link: EEA_DATAHUB,
140
142
  feedLinks: {
141
143
  rss: feedUrl,
142
144
  },
@@ -199,10 +201,9 @@ function generateItemRSS({ appConfig, feedUrl, toPublicURL, params }) {
199
201
  function make_rssMiddleware(config, generator) {
200
202
  function rssMiddleware(req, res, next) {
201
203
  const appConfig = registry.searchui['datahub'];
202
- const feedUrl = `${config.settings.apiPath}${req.path}`;
204
+ const feedUrl = `${EEA_DATAHUB}${req.path}`;
203
205
 
204
- const toPublicURL = (id) =>
205
- `${config.settings.apiPath}/en/datahub/${viewRouteId}/${id}`;
206
+ const toPublicURL = (id) => `${EEA_DATAHUB}/${viewRouteId}/${id}`;
206
207
 
207
208
  generator({ appConfig, feedUrl, toPublicURL, params: req.params })
208
209
  .then((body) => {