@eeacms/volto-eea-website-theme 0.6.11 → 0.6.14
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,8 +4,30 @@ 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.6.14](https://github.com/eea/volto-eea-website-theme/compare/0.6.13...0.6.14)
|
8
|
+
|
9
|
+
- change(header): show eea information systems on mobile [`abdf181`](https://github.com/eea/volto-eea-website-theme/commit/abdf1819465ba1ca582c2a2d82ec02a137c0cf7f)
|
10
|
+
- change(pageheader): share dropdown appears below the share icon [`10aaafc`](https://github.com/eea/volto-eea-website-theme/commit/10aaafc79d03784972b7cf40639077246340eda9)
|
11
|
+
- change(pageheader): removed blogger, reddit and stumbleupon sharing links [`0f7d887`](https://github.com/eea/volto-eea-website-theme/commit/0f7d88700076704abb04ba1bf806ab669fe085be)
|
12
|
+
|
13
|
+
#### [0.6.13](https://github.com/eea/volto-eea-website-theme/compare/0.6.12...0.6.13)
|
14
|
+
|
15
|
+
> 23 June 2022
|
16
|
+
|
17
|
+
- Fix double header issue - refs #151713 [`#45`](https://github.com/eea/volto-eea-website-theme/pull/45)
|
18
|
+
- Customize EventView - copied unchanged from @plone/volto 16.0.0-alpha.7 [`346fc87`](https://github.com/eea/volto-eea-website-theme/commit/346fc87c0834627efa70ed1303c5ee98a5a17ae2)
|
19
|
+
|
20
|
+
#### [0.6.12](https://github.com/eea/volto-eea-website-theme/compare/0.6.11...0.6.12)
|
21
|
+
|
22
|
+
> 23 June 2022
|
23
|
+
|
24
|
+
- change(footer): updated logos order and added climate observatory [`#44`](https://github.com/eea/volto-eea-website-theme/pull/44)
|
25
|
+
|
7
26
|
#### [0.6.11](https://github.com/eea/volto-eea-website-theme/compare/0.6.10...0.6.11)
|
8
27
|
|
28
|
+
> 16 June 2022
|
29
|
+
|
30
|
+
- content box fixes [`#43`](https://github.com/eea/volto-eea-website-theme/pull/43)
|
9
31
|
- change(website): removed container from styles that implement content-box [`c513000`](https://github.com/eea/volto-eea-website-theme/commit/c513000ce374f3209f57a3d050c29a0fbff0916c)
|
10
32
|
- Optimize Content Box SVG [`ba0d417`](https://github.com/eea/volto-eea-website-theme/commit/ba0d417ad30bfb3994855716d0d387463317d24e)
|
11
33
|
- Add preview for Content Box preset styles [`cbed054`](https://github.com/eea/volto-eea-website-theme/commit/cbed05403113cb46bc2ed63dd9c47fc6168ac492)
|
package/package.json
CHANGED
@@ -161,18 +161,10 @@ const View = (props) => {
|
|
161
161
|
sharePage(metadata['@id'], 'linkedin');
|
162
162
|
}}
|
163
163
|
/>
|
164
|
-
<Banner.Action icon="blogger b" />
|
165
|
-
<Banner.Action
|
166
|
-
icon="ri-reddit-line"
|
167
|
-
onClick={() => {
|
168
|
-
sharePage(metadata['@id'], 'reddit');
|
169
|
-
}}
|
170
|
-
/>
|
171
|
-
<Banner.Action icon="stumbleupon circle" />
|
172
164
|
</div>
|
173
165
|
</>
|
174
166
|
)}
|
175
|
-
position="
|
167
|
+
position="bottom center"
|
176
168
|
size="small"
|
177
169
|
trigger={
|
178
170
|
<Banner.Action
|
package/src/config.js
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import biseLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/bise.svg';
|
2
2
|
import energyLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/energy.svg';
|
3
3
|
import insituLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/insitu.svg';
|
4
|
-
import ipchemLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/ipchem.svg';
|
5
4
|
import freshwaterLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/freshwater.svg';
|
6
5
|
import fiseLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/fise.svg';
|
7
6
|
import ccaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/cca.svg';
|
@@ -10,6 +9,7 @@ import industryLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/as
|
|
10
9
|
import marineLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/marine.svg';
|
11
10
|
import eionetLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eionet.svg';
|
12
11
|
import eeaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea.svg';
|
12
|
+
import climateLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/climate-health.svg';
|
13
13
|
|
14
14
|
// TODO: to be consolidated with headerLinks
|
15
15
|
// Footer.jsx config options
|
@@ -37,26 +37,31 @@ export const footerOpts = {
|
|
37
37
|
},
|
38
38
|
],
|
39
39
|
sites: [
|
40
|
+
{
|
41
|
+
link: 'https://water.europa.eu/marine',
|
42
|
+
src: marineLogo,
|
43
|
+
alt: 'WISE marine',
|
44
|
+
},
|
40
45
|
{
|
41
46
|
link: 'https://biodiversity.europa.eu/',
|
42
47
|
src: biseLogo,
|
43
48
|
alt: 'Biodiversity',
|
44
49
|
},
|
45
50
|
{
|
46
|
-
link: 'https://climate-
|
47
|
-
src:
|
48
|
-
alt: 'Climate and
|
51
|
+
link: 'https://climate-adapt.eea.europa.eu/observatory',
|
52
|
+
src: climateLogo,
|
53
|
+
alt: 'European Climate and Health Observatory',
|
54
|
+
},
|
55
|
+
{
|
56
|
+
link: 'https://industry.eea.europa.eu/',
|
57
|
+
src: industryLogo,
|
58
|
+
alt: 'European industrial emissions portal',
|
49
59
|
},
|
50
60
|
{
|
51
61
|
link: 'https://insitu.copernicus.eu/',
|
52
62
|
src: insituLogo,
|
53
63
|
alt: 'Copernicus in situ',
|
54
64
|
},
|
55
|
-
{
|
56
|
-
link: 'https://ipchem.jrc.ec.europa.eu/RDSIdiscovery/ipchem/index.html',
|
57
|
-
src: ipchemLogo,
|
58
|
-
alt: 'Information platform for chemical monitoring',
|
59
|
-
},
|
60
65
|
{
|
61
66
|
link: 'https://water.europa.eu/freshwater',
|
62
67
|
src: freshwaterLogo,
|
@@ -72,21 +77,16 @@ export const footerOpts = {
|
|
72
77
|
src: ccaLogo,
|
73
78
|
alt: 'Climate adapt',
|
74
79
|
},
|
80
|
+
{
|
81
|
+
link: 'https://climate-energy.eea.europa.eu/',
|
82
|
+
src: energyLogo,
|
83
|
+
alt: 'Climate and energy in the EU',
|
84
|
+
},
|
75
85
|
{
|
76
86
|
link: 'https://land.copernicus.eu/',
|
77
87
|
src: copernicusLogo,
|
78
88
|
alt: 'Copernicus land monitoring service',
|
79
89
|
},
|
80
|
-
{
|
81
|
-
link: 'https://industry.eea.europa.eu/',
|
82
|
-
src: industryLogo,
|
83
|
-
alt: 'European industrial emissions portal',
|
84
|
-
},
|
85
|
-
{
|
86
|
-
link: 'https://water.europa.eu/marine',
|
87
|
-
src: marineLogo,
|
88
|
-
alt: 'WISE marine',
|
89
|
-
},
|
90
90
|
],
|
91
91
|
managedBy: [
|
92
92
|
{
|
@@ -83,7 +83,7 @@ const EEAHeader = ({ pathname, token, items, history }) => {
|
|
83
83
|
<Image src={eeaFlag} alt="eea flag"></Image>
|
84
84
|
<Header.TopDropdownMenu
|
85
85
|
text="An official website of the European Union | How do you Know?"
|
86
|
-
mobileText="
|
86
|
+
mobileText=" "
|
87
87
|
icon="chevron down"
|
88
88
|
aria-label="dropdown"
|
89
89
|
className=""
|
@@ -110,7 +110,6 @@ const EEAHeader = ({ pathname, token, items, history }) => {
|
|
110
110
|
<Header.TopItem>
|
111
111
|
<Header.TopDropdownMenu
|
112
112
|
id="theme-sites"
|
113
|
-
className="tablet or lower hidden"
|
114
113
|
text={eea.globalHeaderPartnerLinks.title}
|
115
114
|
viewportWidth={width}
|
116
115
|
>
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/**
|
2
|
+
* EventView view component.
|
3
|
+
* @module components/theme/View/EventView
|
4
|
+
*/
|
5
|
+
|
6
|
+
import React from 'react';
|
7
|
+
import PropTypes from 'prop-types';
|
8
|
+
import { hasBlocksData, flattenHTMLToAppURL } from '@plone/volto/helpers';
|
9
|
+
import { Image, Grid } from 'semantic-ui-react';
|
10
|
+
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
11
|
+
import { EventDetails } from '@plone/volto/components';
|
12
|
+
|
13
|
+
const EventTextfieldView = ({ content }) => (
|
14
|
+
<React.Fragment>
|
15
|
+
{content.title && <h1 className="documentFirstHeading">{content.title}</h1>}
|
16
|
+
{content.description && (
|
17
|
+
<p className="documentDescription">{content.description}</p>
|
18
|
+
)}
|
19
|
+
{content.image && (
|
20
|
+
<Image
|
21
|
+
className="document-image"
|
22
|
+
src={content.image.scales.thumb.download}
|
23
|
+
floated="right"
|
24
|
+
/>
|
25
|
+
)}
|
26
|
+
{content.text && (
|
27
|
+
<div
|
28
|
+
dangerouslySetInnerHTML={{
|
29
|
+
__html: flattenHTMLToAppURL(content.text.data),
|
30
|
+
}}
|
31
|
+
/>
|
32
|
+
)}
|
33
|
+
</React.Fragment>
|
34
|
+
);
|
35
|
+
|
36
|
+
/**
|
37
|
+
* EventView view component class.
|
38
|
+
* @function EventView
|
39
|
+
* @params {object} content Content object.
|
40
|
+
* @returns {string} Markup of the component.
|
41
|
+
*/
|
42
|
+
const EventView = (props) => {
|
43
|
+
const { content } = props;
|
44
|
+
|
45
|
+
return (
|
46
|
+
<div id="page-document" className="ui container viewwrapper event-view">
|
47
|
+
<Grid>
|
48
|
+
<Grid.Column mobile={12} tablet={7} computer={7}>
|
49
|
+
{hasBlocksData(content) ? (
|
50
|
+
<RenderBlocks {...props} />
|
51
|
+
) : (
|
52
|
+
<EventTextfieldView {...props} />
|
53
|
+
)}
|
54
|
+
</Grid.Column>
|
55
|
+
<Grid.Column mobile={12} tablet={5} computer={5}>
|
56
|
+
<EventDetails content={content} />
|
57
|
+
</Grid.Column>
|
58
|
+
</Grid>
|
59
|
+
</div>
|
60
|
+
);
|
61
|
+
};
|
62
|
+
|
63
|
+
/**
|
64
|
+
* Property types.
|
65
|
+
* @property {Object} propTypes Property types.
|
66
|
+
* @static
|
67
|
+
*/
|
68
|
+
EventView.propTypes = {
|
69
|
+
content: PropTypes.shape({
|
70
|
+
title: PropTypes.string,
|
71
|
+
description: PropTypes.string,
|
72
|
+
text: PropTypes.shape({
|
73
|
+
data: PropTypes.string,
|
74
|
+
}),
|
75
|
+
attendees: PropTypes.arrayOf(PropTypes.string).isRequired,
|
76
|
+
contact_email: PropTypes.string,
|
77
|
+
contact_name: PropTypes.string,
|
78
|
+
contact_phone: PropTypes.string,
|
79
|
+
end: PropTypes.string.isRequired,
|
80
|
+
event_url: PropTypes.string,
|
81
|
+
location: PropTypes.string,
|
82
|
+
open_end: PropTypes.bool,
|
83
|
+
recurrence: PropTypes.any,
|
84
|
+
start: PropTypes.string.isRequired,
|
85
|
+
subjects: PropTypes.arrayOf(PropTypes.string).isRequired,
|
86
|
+
whole_day: PropTypes.bool,
|
87
|
+
}).isRequired,
|
88
|
+
};
|
89
|
+
|
90
|
+
export default EventView;
|