@eeacms/volto-datahub 1.0.32 → 1.0.33
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/{.project.eslintrc.js → .eslintrc.js} +7 -2
- package/CHANGELOG.md +30 -0
- package/cypress.config.js +3 -3
- package/package.json +3 -3
- package/src/components/ItemView/Datasets/DatasetEsri.jsx +1 -6
- package/src/components/ItemView/Datasets/DatasetHttpLinks.jsx +2 -12
- package/src/components/ItemView/MetadataSection.jsx +0 -2
- package/src/config/models.js +1 -6
|
@@ -5,8 +5,10 @@ const projectRootPath = fs.existsSync('./project')
|
|
|
5
5
|
? fs.realpathSync('./project')
|
|
6
6
|
: fs.realpathSync('./../../../');
|
|
7
7
|
const packageJson = require(path.join(projectRootPath, 'package.json'));
|
|
8
|
-
const jsConfig = require(path.join(
|
|
9
|
-
|
|
8
|
+
const jsConfig = require(path.join(
|
|
9
|
+
projectRootPath,
|
|
10
|
+
'jsconfig.json',
|
|
11
|
+
)).compilerOptions;
|
|
10
12
|
|
|
11
13
|
const pathsConfig = jsConfig.paths;
|
|
12
14
|
|
|
@@ -50,4 +52,7 @@ module.exports = {
|
|
|
50
52
|
},
|
|
51
53
|
},
|
|
52
54
|
},
|
|
55
|
+
rules: {
|
|
56
|
+
'react/jsx-no-target-blank': 'off',
|
|
57
|
+
},
|
|
53
58
|
};
|
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,29 @@ 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.33](https://github.com/eea/volto-datahub/compare/1.0.32...1.0.33) - 12 March 2024
|
|
8
|
+
|
|
9
|
+
#### :boom: Breaking Change
|
|
10
|
+
|
|
11
|
+
- breaking(webpack): removed path import as webpack 5 no longer patches node modules to use in the browser [David Ichim - [`76f3538`](https://github.com/eea/volto-datahub/commit/76f353869b4ba8c687c97c140fa43db236b55188)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`8438e52`](https://github.com/eea/volto-datahub/commit/8438e52e811c46aa542a601b75f4198b214b5ffd)]
|
|
16
|
+
- chore: husky, lint-staged use fixed versions [valentinab25 - [`da129fb`](https://github.com/eea/volto-datahub/commit/da129fb1259a26c87259f380a37db688281b192d)]
|
|
17
|
+
|
|
18
|
+
#### :hammer_and_wrench: Others
|
|
19
|
+
|
|
20
|
+
- Remove noreferrer for SEO purposes #60 from eea/263008-noreferrer [ichim-david - [`3c68343`](https://github.com/eea/volto-datahub/commit/3c6834393f25bb3e1ffc119512e785db5dca0e7d)]
|
|
21
|
+
- update snapshots [Teodor - [`7a3471b`](https://github.com/eea/volto-datahub/commit/7a3471bcc125ce66b5bd6933b7b9161320c14a23)]
|
|
22
|
+
- remove eslint file from ignoring [Teodor - [`39f6633`](https://github.com/eea/volto-datahub/commit/39f66338f2f7d1797343b88aa20dea9425f37014)]
|
|
23
|
+
- change eslint rule [Teodor - [`73e4bc2`](https://github.com/eea/volto-datahub/commit/73e4bc217e9aa9804f0f57cf9e3488cb2e1e85b8)]
|
|
24
|
+
- Ref #263008 [Teodor - [`9d58c52`](https://github.com/eea/volto-datahub/commit/9d58c52b6bc207c5c622c0428be39ae18875cf64)]
|
|
25
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`524fcc6`](https://github.com/eea/volto-datahub/commit/524fcc6a40e1437dac449543607089b4ba4feb21)]
|
|
26
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`98c01ac`](https://github.com/eea/volto-datahub/commit/98c01ac599087cf5a9011d3384483d023a4d12bb)]
|
|
27
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`bdcc59c`](https://github.com/eea/volto-datahub/commit/bdcc59c2d4cfd8beba4386d6f23f220c777f0513)]
|
|
28
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`5d12d14`](https://github.com/eea/volto-datahub/commit/5d12d1428a547b8628231dc38110a55b806edebb)]
|
|
29
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`dba984e`](https://github.com/eea/volto-datahub/commit/dba984e6b840c451b8de15d40de0e49c1dd09a9b)]
|
|
7
30
|
### [1.0.32](https://github.com/eea/volto-datahub/compare/1.0.31...1.0.32) - 11 October 2023
|
|
8
31
|
|
|
9
32
|
#### :house: Internal changes
|
|
@@ -49,6 +72,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
49
72
|
- Fix content type for rss feed [Tiberiu Ichim - [`65b73a7`](https://github.com/eea/volto-datahub/commit/65b73a79d73e626f652716305e80d9a2b017c85c)]
|
|
50
73
|
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`ead1c04`](https://github.com/eea/volto-datahub/commit/ead1c042d1358b385c19ec66ec84d7c736574b1d)]
|
|
51
74
|
- Added 'DOI' links to datahub [Zoltan Szabo - [`b33a657`](https://github.com/eea/volto-datahub/commit/b33a657096eaec4caa641379e69e941a3b2c1583)]
|
|
75
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`39a4a69`](https://github.com/eea/volto-datahub/commit/39a4a695733514890075886753b9d7b91d853646)]
|
|
52
76
|
- i18n: Add en [Alin Voinea - [`cdb303f`](https://github.com/eea/volto-datahub/commit/cdb303f2ac5e1f9eb22eda46bb58087c62af6ba5)]
|
|
53
77
|
### [1.0.27](https://github.com/eea/volto-datahub/compare/1.0.26...1.0.27) - 25 August 2023
|
|
54
78
|
|
|
@@ -96,6 +120,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
96
120
|
|
|
97
121
|
#### :house: Internal changes
|
|
98
122
|
|
|
123
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`e5933ce`](https://github.com/eea/volto-datahub/commit/e5933ce8879d98aabe0bab56980dbd50ce856a36)]
|
|
99
124
|
|
|
100
125
|
#### :hammer_and_wrench: Others
|
|
101
126
|
|
|
@@ -150,6 +175,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
150
175
|
- added utils.js [Zoltan Szabo - [`fdb33c3`](https://github.com/eea/volto-datahub/commit/fdb33c37e1af2fe071dbe8f4f5dcd2b82932edc8)]
|
|
151
176
|
- Show 'Obsolete' info in the metadata section in the banner [Zoltan Szabo - [`fddfd2a`](https://github.com/eea/volto-datahub/commit/fddfd2aea63d1a1d1567c163ab29dd7119781117)]
|
|
152
177
|
- Show 'More information' section only if it's not empty [Zoltan Szabo - [`612f035`](https://github.com/eea/volto-datahub/commit/612f03509c6adf143631ae6dee5ca2bd48a501c3)]
|
|
178
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b9100f6`](https://github.com/eea/volto-datahub/commit/b9100f6b2b2e9e9a26b9c11708c8fda94137cecc)]
|
|
153
179
|
### [1.0.15](https://github.com/eea/volto-datahub/compare/1.0.14...1.0.15) - 1 March 2023
|
|
154
180
|
|
|
155
181
|
### [1.0.14](https://github.com/eea/volto-datahub/compare/1.0.13...1.0.14) - 1 March 2023
|
|
@@ -242,9 +268,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
242
268
|
#### :hammer_and_wrench: Others
|
|
243
269
|
|
|
244
270
|
- Fix eslintrc: add @eeacms/search [kreafox - [`465816f`](https://github.com/eea/volto-datahub/commit/465816feb8f58095ab4b5b3168cd29ebede3a10c)]
|
|
271
|
+
- Use latest Volto before yarn 3 [Tiberiu Ichim - [`69f5859`](https://github.com/eea/volto-datahub/commit/69f585980fd9a38ff99d0c7875704671857720f7)]
|
|
245
272
|
- Reorder sections on landing page [kreafox - [`46fac8d`](https://github.com/eea/volto-datahub/commit/46fac8d821cf93fe1b2c380380719de130c3f1cb)]
|
|
246
273
|
- Fix project eslintrc [kreafox - [`5baa150`](https://github.com/eea/volto-datahub/commit/5baa1505ec38ed313269f5608c186c6a6a8bbfc4)]
|
|
247
274
|
- Open dataset links in new tab [kreafox - [`bbed914`](https://github.com/eea/volto-datahub/commit/bbed914dc2edf6c749d1d73d93a423bc642e680c)]
|
|
275
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`380a2a9`](https://github.com/eea/volto-datahub/commit/380a2a9625c6f799df7a7c343fad3f3b3d959f96)]
|
|
248
276
|
## [1.0.0](https://github.com/eea/volto-datahub/compare/0.1.12...1.0.0) - 28 October 2022
|
|
249
277
|
|
|
250
278
|
#### :nail_care: Enhancements
|
|
@@ -269,6 +297,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
269
297
|
#### :hammer_and_wrench: Others
|
|
270
298
|
|
|
271
299
|
- fixed query for related items [Zoltan Szabo - [`b66faee`](https://github.com/eea/volto-datahub/commit/b66faee1f8a1922cd22b3a36eccc9c7b92e377d4)]
|
|
300
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`158fe1a`](https://github.com/eea/volto-datahub/commit/158fe1a0b1767452e2e51a3e2ef97169589a50e8)]
|
|
272
301
|
### [0.1.10](https://github.com/eea/volto-datahub/compare/0.1.9...0.1.10) - 21 September 2022
|
|
273
302
|
|
|
274
303
|
#### :hammer_and_wrench: Others
|
|
@@ -357,6 +386,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
357
386
|
#### :hammer_and_wrench: Others
|
|
358
387
|
|
|
359
388
|
- Hide questions & fix landing page [kreafox - [`a1ef303`](https://github.com/eea/volto-datahub/commit/a1ef3033df0e84f3a72dd0f984c8717dff2a771c)]
|
|
389
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`910688e`](https://github.com/eea/volto-datahub/commit/910688e3ddf2f8cda4f941595ae9a6ee0ec0ea3b)]
|
|
360
390
|
### [0.1.1](https://github.com/eea/volto-datahub/compare/0.1.0...0.1.1) - 10 June 2022
|
|
361
391
|
|
|
362
392
|
### [0.1.0](https://github.com/eea/volto-datahub/compare/0.0.1...0.1.0) - 9 June 2022
|
package/cypress.config.js
CHANGED
|
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
|
|
|
2
2
|
|
|
3
3
|
module.exports = defineConfig({
|
|
4
4
|
viewportWidth: 1280,
|
|
5
|
-
defaultCommandTimeout:
|
|
5
|
+
defaultCommandTimeout: 8888,
|
|
6
6
|
chromeWebSecurity: false,
|
|
7
7
|
reporter: 'junit',
|
|
8
|
-
video:
|
|
8
|
+
video: false,
|
|
9
9
|
retries: {
|
|
10
|
-
runMode:
|
|
10
|
+
runMode: 2,
|
|
11
11
|
openMode: 0,
|
|
12
12
|
},
|
|
13
13
|
reporterOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-datahub",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.33",
|
|
4
4
|
"description": "@eeacms/volto-datahub: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@cypress/code-coverage": "^3.10.0",
|
|
27
27
|
"@plone/scripts": "*",
|
|
28
28
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
29
|
-
"husky": "
|
|
30
|
-
"lint-staged": "
|
|
29
|
+
"husky": "^8.0.3",
|
|
30
|
+
"lint-staged": "^14.0.1",
|
|
31
31
|
"md5": "^2.3.0"
|
|
32
32
|
},
|
|
33
33
|
"addons": [
|
|
@@ -10,12 +10,7 @@ const ItemLink = ({ item }) => (
|
|
|
10
10
|
<List.Content>
|
|
11
11
|
<div className="dataset-item">
|
|
12
12
|
<SVGIcon name={servicesSVG} size="20px" />
|
|
13
|
-
<a
|
|
14
|
-
className="item-link"
|
|
15
|
-
href={item.url}
|
|
16
|
-
target="_blank"
|
|
17
|
-
rel="noreferrer"
|
|
18
|
-
>
|
|
13
|
+
<a className="item-link" href={item.url} target="_blank">
|
|
19
14
|
{item.protocol} {item.name || item.description}
|
|
20
15
|
</a>
|
|
21
16
|
{isInternalURL(item.url) ? (
|
|
@@ -15,12 +15,7 @@ export default function DatasetHttpLinks({ dataset }) {
|
|
|
15
15
|
<List.Content>
|
|
16
16
|
<div className="dataset-item">
|
|
17
17
|
<Icon className="linkify" />
|
|
18
|
-
<a
|
|
19
|
-
href={item.url}
|
|
20
|
-
className="item-link"
|
|
21
|
-
target="_blank"
|
|
22
|
-
rel="noreferrer"
|
|
23
|
-
>
|
|
18
|
+
<a href={item.url} className="item-link" target="_blank">
|
|
24
19
|
<span>{item.name || item.url}</span>
|
|
25
20
|
</a>
|
|
26
21
|
{isInternalURL(item.url) ? (
|
|
@@ -40,12 +35,7 @@ export default function DatasetHttpLinks({ dataset }) {
|
|
|
40
35
|
<List.Content>
|
|
41
36
|
<div className="dataset-item">
|
|
42
37
|
<Icon className="info circle" />
|
|
43
|
-
<a
|
|
44
|
-
href={item.url}
|
|
45
|
-
className="item-link"
|
|
46
|
-
target="_blank"
|
|
47
|
-
rel="noreferrer"
|
|
48
|
-
>
|
|
38
|
+
<a href={item.url} className="item-link" target="_blank">
|
|
49
39
|
<span>{item.name || item.url}</span>
|
|
50
40
|
</a>
|
|
51
41
|
{isInternalURL(item.url) ? (
|
|
@@ -80,7 +80,6 @@ const MetadataSection = (props) => {
|
|
|
80
80
|
<Icon className="file pdf" />
|
|
81
81
|
<a
|
|
82
82
|
target="_blank"
|
|
83
|
-
rel="noreferrer"
|
|
84
83
|
href={
|
|
85
84
|
`${appConfig.indexBaseUrl}/catalogue/datahub/api/records/` +
|
|
86
85
|
`${docid}/formatters/xsl-view?output=pdf&language=eng&approved=true`
|
|
@@ -94,7 +93,6 @@ const MetadataSection = (props) => {
|
|
|
94
93
|
<Icon className="ri-external-link-line" />
|
|
95
94
|
<a
|
|
96
95
|
target="_blank"
|
|
97
|
-
rel="noreferrer"
|
|
98
96
|
href={`${appConfig.indexBaseUrl}/catalogue/srv/eng/catalog.search#/metadata/${docid}`}
|
|
99
97
|
>
|
|
100
98
|
Metadata catalogue
|
package/src/config/models.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { ResultModel } from '@eeacms/search';
|
|
2
|
-
const path = require('path');
|
|
3
2
|
|
|
4
3
|
export class DatahubResultModel extends ResultModel {
|
|
5
4
|
get href() {
|
|
6
5
|
if (__CLIENT__) {
|
|
7
|
-
return
|
|
8
|
-
window.location.pathname,
|
|
9
|
-
'datahubitem-view/',
|
|
10
|
-
this._result.about?.raw,
|
|
11
|
-
);
|
|
6
|
+
return `${window.location.pathname}/datahubitem-view/${this._result.about?.raw}`;
|
|
12
7
|
} else {
|
|
13
8
|
return ''; //TODO
|
|
14
9
|
}
|