@eeacms/volto-cca-policy 0.3.10 → 0.3.12
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 +14 -0
- package/package.json +2 -2
- package/src/components/manage/Blocks/Listing/EventCardsListingView.jsx +6 -9
- package/src/components/manage/Blocks/Listing/IndicatorCardsListingView.jsx +6 -15
- package/src/components/manage/Blocks/Listing/OrganisationCardsListingView.jsx +3 -3
- package/src/components/manage/Blocks/Listing/styles.less +1 -6
- package/theme/globals/site.overrides +8 -5
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,20 @@ 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.3.12](https://github.com/eea/volto-cca-policy/compare/0.3.11...0.3.12) - 24 February 2025
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix(style): prevent column break in main menu [kreafox - [`3fb7a9f`](https://github.com/eea/volto-cca-policy/commit/3fb7a9f8347e229acb896bd807fb658570ff615f)]
|
|
12
|
+
- fix(listing): code cleanup [kreafox - [`19d48f3`](https://github.com/eea/volto-cca-policy/commit/19d48f33afcbab5de0475c145fedb9c4121e397c)]
|
|
13
|
+
- fix(listing): remove organisation logo from mission events - refs #271085 [kreafox - [`4e6c459`](https://github.com/eea/volto-cca-policy/commit/4e6c4592d434c626b1e4fc0ddffdf8814a83c318)]
|
|
14
|
+
|
|
15
|
+
### [0.3.11](https://github.com/eea/volto-cca-policy/compare/0.3.10...0.3.11) - 21 February 2025
|
|
16
|
+
|
|
17
|
+
#### :rocket: Dependency updates
|
|
18
|
+
|
|
19
|
+
- Release @eeacms/volto-globalsearch@2.0.8 [EEA Jenkins - [`dd60ad8`](https://github.com/eea/volto-cca-policy/commit/dd60ad88dc6d069b746859ce472d1e5d8c158d1b)]
|
|
20
|
+
|
|
7
21
|
### [0.3.10](https://github.com/eea/volto-cca-policy/compare/0.3.9...0.3.10) - 21 February 2025
|
|
8
22
|
|
|
9
23
|
#### :rocket: Dependency updates
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-cca-policy",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
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",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"@eeacms/volto-eea-design-system": "*",
|
|
33
33
|
"@eeacms/volto-eea-website-theme": "^1.35.0",
|
|
34
34
|
"@eeacms/volto-embed": "^9.1.1",
|
|
35
|
-
"@eeacms/volto-globalsearch": "2.0.
|
|
35
|
+
"@eeacms/volto-globalsearch": "2.0.8",
|
|
36
36
|
"@eeacms/volto-hero-block": "^7.1.0",
|
|
37
37
|
"@eeacms/volto-openlayers-map": "*",
|
|
38
38
|
"@eeacms/volto-searchlib": "2.0.11",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { compose } from 'redux';
|
|
3
2
|
import PropTypes from 'prop-types';
|
|
4
3
|
import { FormattedMessage } from 'react-intl';
|
|
5
|
-
import {
|
|
4
|
+
import { useSelector } from 'react-redux';
|
|
6
5
|
import { Card, Grid, Icon, Label, Image } from 'semantic-ui-react';
|
|
7
6
|
import { ConditionalLink, UniversalLink } from '@plone/volto/components';
|
|
8
7
|
import { When } from '@plone/volto/components/theme/View/EventDatesInfo';
|
|
9
|
-
import eeaLogo from '@eeacms/volto-cca-policy/../theme/assets/images/eea-logo.svg';
|
|
10
8
|
import { capitalizeFirstLetter } from '@eeacms/volto-cca-policy/helpers';
|
|
11
9
|
import config from '@plone/volto/registry';
|
|
10
|
+
|
|
11
|
+
import eeaLogo from '@eeacms/volto-cca-policy/../theme/assets/images/eea-logo.svg';
|
|
12
12
|
import './styles.less';
|
|
13
13
|
|
|
14
14
|
const goToContact = (contactInfo) =>
|
|
@@ -97,10 +97,11 @@ const BottomInfo = ({ item, isEditMode }) => {
|
|
|
97
97
|
const { '@type': itemType, event_url, subjects, contact_email } = item || {};
|
|
98
98
|
const isCcaEventType = itemType === 'cca-event';
|
|
99
99
|
const isExternal = event_url && !event_url.includes(config.settings.apiPath);
|
|
100
|
+
const isMissionEvent = item['@id'].includes('/en/mission');
|
|
100
101
|
|
|
101
102
|
return (
|
|
102
103
|
<>
|
|
103
|
-
{(!isExternal || isCcaEventType) && (
|
|
104
|
+
{!isMissionEvent && (!isExternal || isCcaEventType) && (
|
|
104
105
|
<div className="event-organisation">
|
|
105
106
|
<FormattedMessage
|
|
106
107
|
id="Organised by EEA"
|
|
@@ -166,8 +167,4 @@ EventCardsListingView.propTypes = {
|
|
|
166
167
|
isEditMode: PropTypes.bool,
|
|
167
168
|
};
|
|
168
169
|
|
|
169
|
-
export default
|
|
170
|
-
connect((state) => ({
|
|
171
|
-
token: state.userSession.token,
|
|
172
|
-
})),
|
|
173
|
-
)(EventCardsListingView);
|
|
170
|
+
export default EventCardsListingView;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { connect } from 'react-redux';
|
|
4
|
-
import { compose } from 'redux';
|
|
5
|
-
import cx from 'classnames';
|
|
6
3
|
import { ConditionalLink } from '@plone/volto/components';
|
|
7
4
|
import { flattenToAppURL, getBaseUrl } from '@plone/volto/helpers';
|
|
5
|
+
|
|
8
6
|
import './styles.less';
|
|
9
7
|
|
|
10
8
|
const fixedTitles = {
|
|
@@ -16,14 +14,11 @@ const fixTitle = (title) => {
|
|
|
16
14
|
return fixedTitles[title] || title;
|
|
17
15
|
};
|
|
18
16
|
|
|
19
|
-
const IndicatorCardsListingView = ({ items, isEditMode
|
|
17
|
+
const IndicatorCardsListingView = ({ items, isEditMode }) => {
|
|
20
18
|
return (
|
|
21
|
-
<div className=
|
|
19
|
+
<div className="ui fluid indicatorCards">
|
|
22
20
|
{items.map((item, index) => (
|
|
23
|
-
<div
|
|
24
|
-
className={cx('u-item listing-item simple-listing-item')}
|
|
25
|
-
key={item['@id']}
|
|
26
|
-
>
|
|
21
|
+
<div className="u-item listing-item simple-listing-item" key={index}>
|
|
27
22
|
<div className="wrapper">
|
|
28
23
|
<div className="slot-top">
|
|
29
24
|
<ConditionalLink
|
|
@@ -31,7 +26,7 @@ const IndicatorCardsListingView = ({ items, isEditMode, token }) => {
|
|
|
31
26
|
condition={!isEditMode}
|
|
32
27
|
>
|
|
33
28
|
<div className="listing-body">
|
|
34
|
-
<h4 className=
|
|
29
|
+
<h4 className="listing-header">
|
|
35
30
|
{item.title ? item.title : item.id}
|
|
36
31
|
</h4>
|
|
37
32
|
</div>
|
|
@@ -61,8 +56,4 @@ IndicatorCardsListingView.propTypes = {
|
|
|
61
56
|
isEditMode: PropTypes.bool,
|
|
62
57
|
};
|
|
63
58
|
|
|
64
|
-
export default
|
|
65
|
-
connect((state) => ({
|
|
66
|
-
token: state.userSession.token,
|
|
67
|
-
})),
|
|
68
|
-
)(IndicatorCardsListingView);
|
|
59
|
+
export default IndicatorCardsListingView;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import { makeContributionsSearchQuery } from '@eeacms/volto-cca-policy/helpers';
|
|
4
3
|
import { UniversalLink } from '@plone/volto/components';
|
|
4
|
+
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
5
|
+
import { makeContributionsSearchQuery } from '@eeacms/volto-cca-policy/helpers';
|
|
5
6
|
|
|
6
7
|
import './styles.less';
|
|
7
|
-
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
8
8
|
|
|
9
9
|
const messages = defineMessages({
|
|
10
10
|
website: {
|
|
@@ -19,7 +19,7 @@ const OrganisationCardsListingView = ({ items }) => {
|
|
|
19
19
|
return (
|
|
20
20
|
<div className="ui fluid four cards">
|
|
21
21
|
{items.map((item, index) => (
|
|
22
|
-
<div className="ui fluid card u-card" key={
|
|
22
|
+
<div className="ui fluid card u-card" key={index}>
|
|
23
23
|
<div className="content">
|
|
24
24
|
<div className="header">
|
|
25
25
|
<UniversalLink className="image" href={item['@id']}>
|
|
@@ -34,7 +34,7 @@ div.organisationCards {
|
|
|
34
34
|
// Indicators Cards Listing
|
|
35
35
|
div.indicatorCards {
|
|
36
36
|
a {
|
|
37
|
-
color:
|
|
37
|
+
color: @linkColor !important;
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
h4 {
|
|
@@ -91,10 +91,6 @@ div.indicatorCards {
|
|
|
91
91
|
justify-content: flex-start;
|
|
92
92
|
gap: 1em;
|
|
93
93
|
|
|
94
|
-
.sep {
|
|
95
|
-
color: #ddd;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
94
|
.email-info {
|
|
99
95
|
display: flex;
|
|
100
96
|
align-items: center;
|
|
@@ -125,7 +121,6 @@ div.indicatorCards {
|
|
|
125
121
|
align-items: center;
|
|
126
122
|
margin: 1em 0;
|
|
127
123
|
gap: 0.5em;
|
|
128
|
-
// flex-direction: column;
|
|
129
124
|
}
|
|
130
125
|
}
|
|
131
126
|
}
|
|
@@ -8,11 +8,6 @@
|
|
|
8
8
|
@import './blocks.less';
|
|
9
9
|
@import './print.less';
|
|
10
10
|
|
|
11
|
-
// [class~='view-defaultview'] [id='page-document'] > *,
|
|
12
|
-
// [class~='view-viewview'] [id='page-document'] > * {
|
|
13
|
-
// --container-text-width: 628px;
|
|
14
|
-
// }
|
|
15
|
-
|
|
16
11
|
@subsiteBackgroundGradient: linear-gradient(
|
|
17
12
|
248.86deg,
|
|
18
13
|
@green-1 24.22%,
|
|
@@ -237,3 +232,11 @@ iframe {
|
|
|
237
232
|
}
|
|
238
233
|
}
|
|
239
234
|
}
|
|
235
|
+
|
|
236
|
+
#mega-menu {
|
|
237
|
+
.ui.list.has--4--columns {
|
|
238
|
+
a.item {
|
|
239
|
+
break-inside: avoid-column;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|