@eeacms/volto-cca-policy 0.2.63 → 0.2.65
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 +19 -2
- package/package.json +2 -2
- package/src/components/theme/ImageGallery/ImageGallery.jsx +16 -3
- package/src/components/theme/ImageGallery/styles.less +17 -0
- package/src/components/theme/Views/CaseStudyView.jsx +12 -12
- package/src/search/common.js +1 -1
- package/src/search/config.js +1 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,28 @@ 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.
|
|
7
|
+
### [0.2.65](https://github.com/eea/volto-cca-policy/compare/0.2.64...0.2.65) - 16 September 2024
|
|
8
|
+
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- style: Automated code fix [eea-jenkins - [`b5f1f67`](https://github.com/eea/volto-cca-policy/commit/b5f1f677a8624cf2360c8a9df7cf9bacb6510e65)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Remove duplicate line [Tiberiu Ichim - [`f83f770`](https://github.com/eea/volto-cca-policy/commit/f83f770e75a5b5fd4644e382e272d3b4e4e5db99)]
|
|
16
|
+
- Try to fix include archived error [Tiberiu Ichim - [`61dc5d4`](https://github.com/eea/volto-cca-policy/commit/61dc5d4e5840c84dadb55b615d4d5b11bdd64171)]
|
|
17
|
+
- Add styling for image copyright [Tiberiu Ichim - [`eb81a90`](https://github.com/eea/volto-cca-policy/commit/eb81a906bd365916c121ad354d4badd0c8c2f0f0)]
|
|
18
|
+
### [0.2.64](https://github.com/eea/volto-cca-policy/compare/0.2.63...0.2.64) - 2 September 2024
|
|
19
|
+
|
|
20
|
+
#### :rocket: Dependency updates
|
|
21
|
+
|
|
22
|
+
- Release @eeacms/volto-searchlib@2.0.3 [EEA Jenkins - [`7092fa0`](https://github.com/eea/volto-cca-policy/commit/7092fa0a104820239d05aa76cebbbeaa90222e25)]
|
|
8
23
|
|
|
9
24
|
#### :hammer_and_wrench: Others
|
|
10
25
|
|
|
11
|
-
-
|
|
26
|
+
- Add image rights to gallery [Tiberiu Ichim - [`8c1a716`](https://github.com/eea/volto-cca-policy/commit/8c1a716d95f4817a311af9a273409e0b1a1d9bf0)]
|
|
27
|
+
### [0.2.63](https://github.com/eea/volto-cca-policy/compare/0.2.62...0.2.63) - 27 August 2024
|
|
28
|
+
|
|
12
29
|
### [0.2.62](https://github.com/eea/volto-cca-policy/compare/0.2.61...0.2.62) - 26 August 2024
|
|
13
30
|
|
|
14
31
|
### [0.2.61](https://github.com/eea/volto-cca-policy/compare/0.2.60...0.2.61) - 22 August 2024
|
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.65",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@eeacms/volto-globalsearch": "^1.1.0",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
37
|
"@eeacms/volto-openlayers-map": "*",
|
|
38
|
-
"@eeacms/volto-searchlib": "2.0.
|
|
38
|
+
"@eeacms/volto-searchlib": "2.0.3",
|
|
39
39
|
"@eeacms/volto-slate-label": "^0.6.0",
|
|
40
40
|
"@eeacms/volto-tabs-block": "^7.5.1",
|
|
41
41
|
"@elastic/search-ui": "1.21.2",
|
|
@@ -5,6 +5,8 @@ import { Modal, Image } from 'semantic-ui-react';
|
|
|
5
5
|
import 'slick-carousel/slick/slick.css';
|
|
6
6
|
import 'slick-carousel/slick/slick-theme.css';
|
|
7
7
|
|
|
8
|
+
import './styles.less';
|
|
9
|
+
|
|
8
10
|
const Slider = loadable(() => import('react-slick'));
|
|
9
11
|
|
|
10
12
|
const ImageGallery = (props) => {
|
|
@@ -40,6 +42,8 @@ const ImageGallery = (props) => {
|
|
|
40
42
|
}
|
|
41
43
|
};
|
|
42
44
|
|
|
45
|
+
const image = items[slideIndex];
|
|
46
|
+
|
|
43
47
|
return (
|
|
44
48
|
<div className="image-gallery">
|
|
45
49
|
<div
|
|
@@ -63,11 +67,20 @@ const ImageGallery = (props) => {
|
|
|
63
67
|
onOpen={() => setOpen(true)}
|
|
64
68
|
>
|
|
65
69
|
<Modal.Content>
|
|
66
|
-
<h3>{
|
|
67
|
-
<p>{
|
|
70
|
+
<h3>{image?.title}</h3>
|
|
71
|
+
<p>{image?.description}</p>
|
|
68
72
|
<Slider {...carouselSettings} ref={sliderRef}>
|
|
69
73
|
{items.map((item, i) => {
|
|
70
|
-
return
|
|
74
|
+
return image.rights ? (
|
|
75
|
+
<div>
|
|
76
|
+
<div className="image-slide">
|
|
77
|
+
<div className="image-rights">{image.rights}</div>
|
|
78
|
+
<Image key={i} src={item.url} alt={item?.title} />
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
) : (
|
|
82
|
+
<Image key={i} src={item.url} alt={item?.title} />
|
|
83
|
+
);
|
|
71
84
|
})}
|
|
72
85
|
</Slider>
|
|
73
86
|
<div className="slide-image-count">
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
.image-slide {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
|
|
5
|
+
.image-rights {
|
|
6
|
+
position: absolute;
|
|
7
|
+
z-index: 100;
|
|
8
|
+
right: 1em;
|
|
9
|
+
bottom: 1em;
|
|
10
|
+
left: 1em;
|
|
11
|
+
padding: 5px;
|
|
12
|
+
background: rgba(0, 0, 0, 0.5); /* optional: semi-transparent background */
|
|
13
|
+
color: white; /* text color */
|
|
14
|
+
font-size: 14px; /* adjust font size as needed */
|
|
15
|
+
text-align: left; /* optional: center the text */
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
1
|
import {
|
|
3
|
-
|
|
2
|
+
ImageGallery,
|
|
3
|
+
PortalMessage,
|
|
4
|
+
ShareInfoButton,
|
|
5
|
+
} from '@eeacms/volto-cca-policy/components';
|
|
6
|
+
import {
|
|
7
|
+
BannerTitle,
|
|
4
8
|
ContentMetadata,
|
|
9
|
+
DocumentsList,
|
|
10
|
+
HTMLField,
|
|
5
11
|
LinksList,
|
|
6
12
|
PublishedModifiedInfo,
|
|
7
|
-
DocumentsList,
|
|
8
|
-
BannerTitle,
|
|
9
13
|
} from '@eeacms/volto-cca-policy/helpers';
|
|
14
|
+
import React, { Fragment } from 'react';
|
|
15
|
+
import AnchorLink from 'react-anchor-link-smooth-scroll';
|
|
16
|
+
import { defineMessages, FormattedMessage, useIntl } from 'react-intl';
|
|
10
17
|
import {
|
|
11
18
|
Container,
|
|
12
19
|
Divider,
|
|
13
20
|
Grid,
|
|
14
21
|
Icon,
|
|
15
22
|
Image,
|
|
16
|
-
ListItem,
|
|
17
23
|
List,
|
|
24
|
+
ListItem,
|
|
18
25
|
} from 'semantic-ui-react';
|
|
19
|
-
import {
|
|
20
|
-
ShareInfoButton,
|
|
21
|
-
ImageGallery,
|
|
22
|
-
PortalMessage,
|
|
23
|
-
} from '@eeacms/volto-cca-policy/components';
|
|
24
|
-
import AnchorLink from 'react-anchor-link-smooth-scroll';
|
|
25
|
-
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
26
26
|
|
|
27
27
|
const messages = defineMessages({
|
|
28
28
|
References: { id: 'References', defaultMessage: 'References' },
|
package/src/search/common.js
CHANGED
|
@@ -37,7 +37,7 @@ export const cca_adaptation_sectors = {
|
|
|
37
37
|
export const include_archived = booleanFacet(() => ({
|
|
38
38
|
field: 'IncludeArchived',
|
|
39
39
|
label: 'Include archived content',
|
|
40
|
-
id: '
|
|
40
|
+
id: 'IncludeArchived',
|
|
41
41
|
showInFacetsList: false,
|
|
42
42
|
showInSecondaryFacetsList: true,
|
|
43
43
|
isFilter: true, // filters don't need facet options to show up
|
package/src/search/config.js
CHANGED
|
@@ -23,9 +23,7 @@ export const clusters = {
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export default function installMainSearch(config) {
|
|
26
|
-
const envConfig =
|
|
27
|
-
? JSON.parse(process.env.RAZZLE_ENV_CONFIG)
|
|
28
|
-
: ccaConfig;
|
|
26
|
+
const envConfig = ccaConfig;
|
|
29
27
|
|
|
30
28
|
const pjson = require('@eeacms/volto-cca-policy/../package.json');
|
|
31
29
|
|
|
@@ -48,11 +46,6 @@ export default function installMainSearch(config) {
|
|
|
48
46
|
cluster_name: 'cca',
|
|
49
47
|
},
|
|
50
48
|
});
|
|
51
|
-
// ccaSearch.permanentFilters.push({
|
|
52
|
-
// term: {
|
|
53
|
-
// cca_include_in_search: 'true',
|
|
54
|
-
// },
|
|
55
|
-
// });
|
|
56
49
|
|
|
57
50
|
ccaSearch.permanentFilters.push({
|
|
58
51
|
terms: {
|