@eeacms/volto-cca-policy 0.2.79 → 0.2.81
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 +20 -8
- package/package.json +2 -2
- package/src/customizations/volto/components/theme/View/LinkView.jsx +105 -0
- package/src/search/health_observatory/config-health.js +11 -0
- package/src/search/mission_all/config-all.js +11 -0
- package/src/search/mission_funding/config-funding.js +12 -5
- package/src/search/mission_funding/facets-funding.js +1 -1
- package/src/search/mission_projects/config-projects.js +12 -0
- package/src/search/mission_stories/config-stories.js +11 -1
- package/src/search/mission_tools/config-tools.js +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@ 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.2.81](https://github.com/eea/volto-cca-policy/compare/0.2.80...0.2.81) - 25 November 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Remove console.log [Tiberiu Ichim - [`1c82ad8`](https://github.com/eea/volto-cca-policy/commit/1c82ad898054a723d47144100139f6880ef5ea0d)]
|
|
12
|
+
- WIP [Tiberiu Ichim - [`5fa406c`](https://github.com/eea/volto-cca-policy/commit/5fa406ca4824829fc8700f8172ae52903f39bd55)]
|
|
13
|
+
- refs #272894: added permanentFilters to search apps to exclude pages with seo_noindex [laszlocseh - [`a64ffb1`](https://github.com/eea/volto-cca-policy/commit/a64ffb11984c122dceddb94294c19b17dfd39ead)]
|
|
14
|
+
### [0.2.80](https://github.com/eea/volto-cca-policy/compare/0.2.79...0.2.80) - 15 November 2024
|
|
15
|
+
|
|
16
|
+
#### :rocket: Dependency updates
|
|
17
|
+
|
|
18
|
+
- Release @eeacms/volto-eea-website-theme@3.2.0 [EEA Jenkins - [`1308dd8`](https://github.com/eea/volto-cca-policy/commit/1308dd86de26ed38680967f31b4e83874b54160b)]
|
|
19
|
+
|
|
20
|
+
#### :hammer_and_wrench: Others
|
|
21
|
+
|
|
22
|
+
- Cleanup [Tiberiu Ichim - [`965ac84`](https://github.com/eea/volto-cca-policy/commit/965ac84f05dea092dff9b9900dfc41259b3b2caf)]
|
|
23
|
+
- Downgrade eea website theme [Tiberiu Ichim - [`d074718`](https://github.com/eea/volto-cca-policy/commit/d0747189db37e3496baf11b0886c91b18f70b9d4)]
|
|
24
|
+
- Downgrade eea website theme [Tiberiu Ichim - [`38f482f`](https://github.com/eea/volto-cca-policy/commit/38f482fdb52bf7f35c6102021347d3d77b4ee177)]
|
|
25
|
+
- Add patch for compatibility with volto 17 [Tiberiu Ichim - [`393bb08`](https://github.com/eea/volto-cca-policy/commit/393bb085551b8cdef7a0a29fcddb72e5c95f6255)]
|
|
26
|
+
- Add override for LinkView [Tiberiu Ichim - [`b478df3`](https://github.com/eea/volto-cca-policy/commit/b478df3b6cdaa24cdfffd7146181f66c5e3e5ddb)]
|
|
7
27
|
### [0.2.79](https://github.com/eea/volto-cca-policy/compare/0.2.78...0.2.79) - 14 November 2024
|
|
8
28
|
|
|
9
29
|
#### :hammer_and_wrench: Others
|
|
@@ -1653,13 +1673,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1653
1673
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
1654
1674
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
1655
1675
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
1656
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
1657
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
1658
1676
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
1659
1677
|
|
|
1660
1678
|
#### :house: Internal changes
|
|
1661
1679
|
|
|
1662
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
1663
1680
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
1664
1681
|
|
|
1665
1682
|
#### :hammer_and_wrench: Others
|
|
@@ -1676,9 +1693,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1676
1693
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
1677
1694
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
1678
1695
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
1679
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
1680
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
1681
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
1682
1696
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
1683
1697
|
- Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
|
|
1684
1698
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -1895,7 +1909,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1895
1909
|
|
|
1896
1910
|
#### :house: Internal changes
|
|
1897
1911
|
|
|
1898
|
-
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
1899
1912
|
|
|
1900
1913
|
#### :hammer_and_wrench: Others
|
|
1901
1914
|
|
|
@@ -2376,7 +2389,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2376
2389
|
#### :hammer_and_wrench: Others
|
|
2377
2390
|
|
|
2378
2391
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
2379
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
2380
2392
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
2381
2393
|
|
|
2382
2394
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.81",
|
|
4
4
|
"description": "@eeacms/volto-cca-policy: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@eeacms/volto-block-style": "github:eea/volto-block-style#6.x.x",
|
|
31
31
|
"@eeacms/volto-datablocks": "^7.2.5",
|
|
32
32
|
"@eeacms/volto-eea-design-system": "*",
|
|
33
|
-
"@eeacms/volto-eea-website-theme": "1.35.0",
|
|
33
|
+
"@eeacms/volto-eea-website-theme": "^1.35.0",
|
|
34
34
|
"@eeacms/volto-embed": "^9.1.1",
|
|
35
35
|
"@eeacms/volto-globalsearch": "^1.1.0",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Link View.
|
|
3
|
+
* @module components/theme/View/LinkView
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import React, { Component } from 'react';
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import { isInternalURL, flattenToAppURL } from '@plone/volto/helpers';
|
|
9
|
+
import { Container as SemanticContainer } from 'semantic-ui-react';
|
|
10
|
+
import { UniversalLink } from '@plone/volto/components';
|
|
11
|
+
import { Redirect } from 'react-router-dom';
|
|
12
|
+
import { FormattedMessage } from 'react-intl';
|
|
13
|
+
import config from '@plone/volto/registry';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* View container class.
|
|
17
|
+
* @class View
|
|
18
|
+
* @extends Component
|
|
19
|
+
*/
|
|
20
|
+
class LinkView extends Component {
|
|
21
|
+
/**
|
|
22
|
+
* Property types.
|
|
23
|
+
* @property {Object} propTypes Property types.
|
|
24
|
+
* @static
|
|
25
|
+
*/
|
|
26
|
+
static propTypes = {
|
|
27
|
+
content: PropTypes.shape({
|
|
28
|
+
title: PropTypes.string,
|
|
29
|
+
description: PropTypes.string,
|
|
30
|
+
remoteUrl: PropTypes.string,
|
|
31
|
+
}),
|
|
32
|
+
token: PropTypes.string,
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Default properties.
|
|
37
|
+
* @property {Object} defaultProps Default properties.
|
|
38
|
+
* @static
|
|
39
|
+
*/
|
|
40
|
+
static defaultProps = {
|
|
41
|
+
content: null,
|
|
42
|
+
token: null,
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
componentDidMount() {
|
|
46
|
+
if (!this.props.token) {
|
|
47
|
+
let { remoteUrl } = this.props.content;
|
|
48
|
+
// eslint-disable-next-line
|
|
49
|
+
remoteUrl = remoteUrl.replaceAll('${portal_url}', '');
|
|
50
|
+
|
|
51
|
+
if (isInternalURL(remoteUrl)) {
|
|
52
|
+
this.props.history.replace(flattenToAppURL(remoteUrl));
|
|
53
|
+
} else if (!__SERVER__) {
|
|
54
|
+
window.location.href = flattenToAppURL(remoteUrl);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Render method.
|
|
61
|
+
* @method render
|
|
62
|
+
* @returns {string} Markup for the component.
|
|
63
|
+
*/
|
|
64
|
+
render() {
|
|
65
|
+
let { remoteUrl } = this.props.content;
|
|
66
|
+
// eslint-disable-next-line
|
|
67
|
+
remoteUrl = flattenToAppURL(remoteUrl.replaceAll('${portal_url}', ''));
|
|
68
|
+
|
|
69
|
+
if (__SERVER__ && !this.props.token && remoteUrl) {
|
|
70
|
+
return <Redirect to={remoteUrl} />;
|
|
71
|
+
}
|
|
72
|
+
const { openExternalLinkInNewTab } = config.settings;
|
|
73
|
+
const Container =
|
|
74
|
+
config.getComponent({ name: 'Container' }).component || SemanticContainer;
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<Container id="page-document">
|
|
78
|
+
<h1 className="documentFirstHeading">{this.props.content.title}</h1>
|
|
79
|
+
{this.props.content.description && (
|
|
80
|
+
<p className="documentDescription">
|
|
81
|
+
{this.props.content.description}
|
|
82
|
+
</p>
|
|
83
|
+
)}
|
|
84
|
+
{remoteUrl && (
|
|
85
|
+
<p>
|
|
86
|
+
<FormattedMessage
|
|
87
|
+
id="The link address is:"
|
|
88
|
+
defaultMessage="The link address is:"
|
|
89
|
+
/>{' '}
|
|
90
|
+
<UniversalLink
|
|
91
|
+
href={remoteUrl}
|
|
92
|
+
openLinkInNewTab={
|
|
93
|
+
openExternalLinkInNewTab && !isInternalURL(remoteUrl)
|
|
94
|
+
}
|
|
95
|
+
>
|
|
96
|
+
{flattenToAppURL(remoteUrl)}
|
|
97
|
+
</UniversalLink>
|
|
98
|
+
</p>
|
|
99
|
+
)}
|
|
100
|
+
</Container>
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export default LinkView;
|
|
@@ -87,6 +87,17 @@ export default function installMainSearch(config) {
|
|
|
87
87
|
cca_include_in_search_observatory: 'true',
|
|
88
88
|
},
|
|
89
89
|
});
|
|
90
|
+
ccaHealthSearch.permanentFilters.push({
|
|
91
|
+
bool: {
|
|
92
|
+
must_not: [
|
|
93
|
+
{
|
|
94
|
+
term: {
|
|
95
|
+
'seo_noindex.keyword': 'true',
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
});
|
|
90
101
|
ccaHealthSearch.contentSectionsParams = {
|
|
91
102
|
enable: true,
|
|
92
103
|
sectionFacetsField: 'op_cluster',
|
|
@@ -54,6 +54,17 @@ export default function installMainSearch(config) {
|
|
|
54
54
|
cluster_name: 'cca',
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
|
+
missionAll.permanentFilters.push({
|
|
58
|
+
bool: {
|
|
59
|
+
must_not: [
|
|
60
|
+
{
|
|
61
|
+
term: {
|
|
62
|
+
'seo_noindex.keyword': 'true',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
});
|
|
57
68
|
// missionAll.permanentFilters.push({
|
|
58
69
|
// bool: {
|
|
59
70
|
// must_not: [
|
|
@@ -5,7 +5,7 @@ import facets from './facets-funding';
|
|
|
5
5
|
|
|
6
6
|
const missionFundingSearchConfig = {
|
|
7
7
|
title: 'Mission Funding Search',
|
|
8
|
-
|
|
8
|
+
facets,
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export default function installMissionFundingSearch(config) {
|
|
@@ -30,15 +30,22 @@ export default function installMissionFundingSearch(config) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const { missionFundingSearch } = config.searchui;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
missionFundingSearch.permanentFilters.push({
|
|
34
|
+
bool: {
|
|
35
|
+
must_not: [
|
|
36
|
+
{
|
|
37
|
+
term: {
|
|
38
|
+
'seo_noindex.keyword': 'true',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
});
|
|
35
44
|
|
|
36
45
|
if (typeof window !== 'undefined') {
|
|
37
46
|
config.searchui.missionFundingSearch.host =
|
|
38
47
|
process.env.RAZZLE_ES_PROXY_ADDR || getClientProxyAddress();
|
|
39
48
|
}
|
|
40
49
|
|
|
41
|
-
// console.log(config.searchui);
|
|
42
|
-
|
|
43
50
|
return config;
|
|
44
51
|
}
|
|
@@ -3,7 +3,7 @@ import globalSearchBaseConfig from '@eeacms/volto-globalsearch/config/global-sea
|
|
|
3
3
|
import spatialWhitelist from '@eeacms/volto-globalsearch/config/json/spatialWhitelist';
|
|
4
4
|
import { cca_adaptation_sectors } from './../common';
|
|
5
5
|
|
|
6
|
-
const blacklist = ['IncludeArchived', 'issued.date', 'spatial'];
|
|
6
|
+
const blacklist = ['IncludeArchived', 'issued.date', 'spatial', 'language'];
|
|
7
7
|
|
|
8
8
|
const facets = [
|
|
9
9
|
multiTermFacet({
|
|
@@ -58,6 +58,18 @@ export default function installMainSearch(config) {
|
|
|
58
58
|
},
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
+
missionProjects.permanentFilters.push({
|
|
62
|
+
bool: {
|
|
63
|
+
must_not: [
|
|
64
|
+
{
|
|
65
|
+
term: {
|
|
66
|
+
'seo_noindex.keyword': 'true',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
|
|
61
73
|
missionProjects.facets = facets;
|
|
62
74
|
|
|
63
75
|
if (typeof window !== 'undefined') {
|
|
@@ -29,7 +29,17 @@ export default function installMissionStoriesSearch(config) {
|
|
|
29
29
|
};
|
|
30
30
|
|
|
31
31
|
const { missionStoriesSearch } = config.searchui;
|
|
32
|
-
|
|
32
|
+
missionStoriesSearch.permanentFilters.push({
|
|
33
|
+
bool: {
|
|
34
|
+
must_not: [
|
|
35
|
+
{
|
|
36
|
+
term: {
|
|
37
|
+
'seo_noindex.keyword': 'true',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
});
|
|
33
43
|
missionStoriesSearch.facets = facets;
|
|
34
44
|
|
|
35
45
|
if (typeof window !== 'undefined') {
|
|
@@ -30,7 +30,17 @@ export default function installMissionToolsSearch(config) {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
const { missionToolsSearch } = config.searchui;
|
|
33
|
-
|
|
33
|
+
missionToolsSearch.permanentFilters.push({
|
|
34
|
+
bool: {
|
|
35
|
+
must_not: [
|
|
36
|
+
{
|
|
37
|
+
term: {
|
|
38
|
+
'seo_noindex.keyword': 'true',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
},
|
|
43
|
+
});
|
|
34
44
|
missionToolsSearch.facets = facets;
|
|
35
45
|
|
|
36
46
|
if (typeof window !== 'undefined') {
|