@eeacms/volto-marine-policy 2.0.15 → 2.0.16
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,22 @@ 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
|
+
### [2.0.16](https://github.com/eea/volto-marine-policy/compare/2.0.15...2.0.16) - 15 July 2025
|
|
8
|
+
|
|
9
|
+
#### :rocket: Dependency updates
|
|
10
|
+
|
|
11
|
+
- Release @eeacms/volto-openlayers-map@1.0.1 [EEA Jenkins - [`9d21a45`](https://github.com/eea/volto-marine-policy/commit/9d21a45dc040ffafa93a1dcdb10b521c429b7fe3)]
|
|
12
|
+
- Release @eeacms/volto-openlayers-map@1.0.0 [EEA Jenkins - [`6f7be1b`](https://github.com/eea/volto-marine-policy/commit/6f7be1b5c4830c639c71a94ba404bf0df6dd14f4)]
|
|
13
|
+
|
|
14
|
+
#### :house: Internal changes
|
|
15
|
+
|
|
16
|
+
- style: Automated code fix [eea-jenkins - [`efe44fc`](https://github.com/eea/volto-marine-policy/commit/efe44fcb0bde4e0339f4a9fea70fb49fb878a095)]
|
|
17
|
+
|
|
18
|
+
#### :hammer_and_wrench: Others
|
|
19
|
+
|
|
20
|
+
- fix eslint [laszlocseh - [`5ab04fb`](https://github.com/eea/volto-marine-policy/commit/5ab04fb5734c00c2fc2f8b2a3fa381b5a5f40a71)]
|
|
21
|
+
- added NIS listing view [laszlocseh - [`64258c1`](https://github.com/eea/volto-marine-policy/commit/64258c1094b5ae57547f965b066c52e2e29f9fd8)]
|
|
22
|
+
- added middleware for NIS download [laszlocseh - [`796f3ab`](https://github.com/eea/volto-marine-policy/commit/796f3abc08d632079486eb7c5e7517dfb1d83657)]
|
|
7
23
|
### [2.0.15](https://github.com/eea/volto-marine-policy/compare/2.0.14...2.0.15) - 16 June 2025
|
|
8
24
|
|
|
9
25
|
#### :house: Internal changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-marine-policy",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.16",
|
|
4
4
|
"description": "@eeacms/volto-marine-policy: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@eeacms/volto-eea-website-theme": "*",
|
|
36
36
|
"@eeacms/volto-embed": "*",
|
|
37
37
|
"@eeacms/volto-globalsearch": "2.1.2",
|
|
38
|
-
"@eeacms/volto-openlayers-map": "0.
|
|
38
|
+
"@eeacms/volto-openlayers-map": "1.0.1",
|
|
39
39
|
"@eeacms/volto-searchlib": "2.0.16",
|
|
40
40
|
"@eeacms/volto-tabs-block": "*",
|
|
41
41
|
"axios": "0.30.0",
|
package/src/components/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export StickyHeader from './theme/Header/StickyHeader';
|
|
|
3
3
|
export HeroSectionView from './theme/View/HeroSectionView';
|
|
4
4
|
export FullwidthView from './theme/View/FullwidthView';
|
|
5
5
|
export MetadataListingView from './theme/MetadataListingView/MetadataListingView';
|
|
6
|
+
export NISListingView from './theme/NISListingView/NISListingView';
|
|
6
7
|
export ItemMetadata from './theme/ItemMetadata/ItemMetadata';
|
|
7
8
|
export ItemTitle from './theme/ItemMetadata/ItemTitle';
|
|
8
9
|
export MetadataHeader from './theme/MetadataListingView/MetadataHeader';
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Link } from 'react-router-dom';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import './style.less';
|
|
4
|
+
|
|
5
|
+
const NISListingView = ({ items, isEditMode }) => {
|
|
6
|
+
return (
|
|
7
|
+
<div className="items">
|
|
8
|
+
{items.map((item, index) => (
|
|
9
|
+
<div className="listing-item" key={item['@id']}>
|
|
10
|
+
<div className="listing-body">
|
|
11
|
+
<h3>
|
|
12
|
+
<Link to={item['@id']}>{item.title}</Link>
|
|
13
|
+
</h3>
|
|
14
|
+
<div className="listing-metadata">
|
|
15
|
+
{item.nis_species_name_accepted && (
|
|
16
|
+
<div className="metadata-item">
|
|
17
|
+
<b>Species name accepted:</b> {item.nis_species_name_accepted}
|
|
18
|
+
</div>
|
|
19
|
+
)}
|
|
20
|
+
{item.nis_region && (
|
|
21
|
+
<div className="metadata-item">
|
|
22
|
+
<b>Region:</b> {item.nis_region}
|
|
23
|
+
</div>
|
|
24
|
+
)}
|
|
25
|
+
{item.nis_subregion && (
|
|
26
|
+
<div className="metadata-item">
|
|
27
|
+
<b>Subregion:</b> {item.nis_subregion}
|
|
28
|
+
</div>
|
|
29
|
+
)}
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
))}
|
|
34
|
+
</div>
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
NISListingView.propTypes = {
|
|
39
|
+
items: PropTypes.arrayOf(PropTypes.any).isRequired,
|
|
40
|
+
isEditMode: PropTypes.bool,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export default NISListingView;
|
|
@@ -30,7 +30,10 @@ export default function middleware(config) {
|
|
|
30
30
|
// TODO: do we want catch all?
|
|
31
31
|
// middleware.all(['**/@@*'], viewMiddleware);
|
|
32
32
|
|
|
33
|
-
middleware.all(
|
|
33
|
+
middleware.all(
|
|
34
|
+
['**/@@demo-sites-map.arcgis.json', '**/@@nis-export'],
|
|
35
|
+
viewMiddleware,
|
|
36
|
+
);
|
|
34
37
|
middleware.id = 'viewsMiddleware';
|
|
35
38
|
config.settings.expressMiddleware.push(middleware);
|
|
36
39
|
return config;
|
package/src/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
DatabaseItemView,
|
|
6
6
|
MetadataListingView,
|
|
7
7
|
SimpleListingView,
|
|
8
|
+
NISListingView,
|
|
8
9
|
} from './components';
|
|
9
10
|
// import installAppExtras from './components/theme/AppExtras';
|
|
10
11
|
// import HomePageView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageView';
|
|
@@ -153,6 +154,12 @@ const applyConfig = (config) => {
|
|
|
153
154
|
template: SimpleListingView,
|
|
154
155
|
isDefault: false,
|
|
155
156
|
},
|
|
157
|
+
{
|
|
158
|
+
id: 'nis',
|
|
159
|
+
title: 'NIS Listing',
|
|
160
|
+
template: NISListingView,
|
|
161
|
+
isDefault: false,
|
|
162
|
+
},
|
|
156
163
|
],
|
|
157
164
|
};
|
|
158
165
|
|