@eeacms/volto-eea-website-theme 0.6.4 → 0.6.7

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,33 @@ 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.7](https://github.com/eea/volto-eea-website-theme/compare/0.6.6...0.6.7)
8
+
9
+ - change(footer): updated managed by grid sizes from footer.stories #37 [`63b86be`](https://github.com/eea/volto-eea-website-theme/commit/63b86becdf5a501b133e3b4ff05b1ab0e6281f12)
10
+ - change(footer): updated managed by grid sizes as se [`6be36fa`](https://github.com/eea/volto-eea-website-theme/commit/6be36fa6e8d8a2762fce65b71bb0e0c795a050a2)
11
+
12
+ #### [0.6.6](https://github.com/eea/volto-eea-website-theme/compare/0.6.5...0.6.6)
13
+
14
+ > 8 June 2022
15
+
16
+ - condition config of accordion only if found to avoid error [`#36`](https://github.com/eea/volto-eea-website-theme/pull/36)
17
+ - Add customization for volto-tabs-block [`#35`](https://github.com/eea/volto-eea-website-theme/pull/35)
18
+ - change(footer): update footer implementation [`#34`](https://github.com/eea/volto-eea-website-theme/pull/34)
19
+ - change(footer): update footer implementation to use subfooter section #33 [`e4cb3c0`](https://github.com/eea/volto-eea-website-theme/commit/e4cb3c042414ba5811924b40c532738da978fdbd)
20
+ - change(footer): update footer implementation to use latest changes to the subfooter component [`efa23fe`](https://github.com/eea/volto-eea-website-theme/commit/efa23fecee0786c3d9a254c8115b3f28a8be5302)
21
+
22
+ #### [0.6.5](https://github.com/eea/volto-eea-website-theme/compare/0.6.4...0.6.5)
23
+
24
+ > 3 June 2022
25
+
26
+ - fix(tags): Replace customizations of volto-widgets-view with config r… [`#32`](https://github.com/eea/volto-eea-website-theme/pull/32)
27
+ - fix(tags): Replace customizations of volto-widgets-view with config registry [`8f8c6fc`](https://github.com/eea/volto-eea-website-theme/commit/8f8c6fcdc6d48a56fbb35db781432390a703a215)
28
+
7
29
  #### [0.6.4](https://github.com/eea/volto-eea-website-theme/compare/0.6.3...0.6.4)
8
30
 
31
+ > 2 June 2022
32
+
33
+ - Release [`#31`](https://github.com/eea/volto-eea-website-theme/pull/31)
9
34
  - Fix: missing translations [`53b0f20`](https://github.com/eea/volto-eea-website-theme/commit/53b0f20daf01f48d81d6b79f9f7a5bcd166b0d2d)
10
35
  - Customize Toolbar.jsx - volto 16.0.0-alpha.7 [`b26182f`](https://github.com/eea/volto-eea-website-theme/commit/b26182f9ac7369497f3602fb5842248f7b7da7c5)
11
36
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "0.6.4",
3
+ "version": "0.6.7",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/config.js CHANGED
@@ -8,60 +8,151 @@ import ccaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/
8
8
  import copernicusLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/copernicus.svg';
9
9
  import industryLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/industry.svg';
10
10
  import marineLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/marine.svg';
11
+ import eionetLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eionet.svg';
12
+ import eeaLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/eea.svg';
11
13
 
12
14
  // TODO: to be consolidated with headerLinks
13
- export const partnerWebsites = [
14
- {
15
- link: 'https://biodiversity.europa.eu/',
16
- src: biseLogo,
17
- alt: 'Biodiversity',
18
- },
19
- {
20
- link: 'https://climate-energy.eea.europa.eu/',
21
- src: energyLogo,
22
- alt: 'Climate and energy in the EU',
23
- },
24
- {
25
- link: 'https://insitu.copernicus.eu/',
26
- src: insituLogo,
27
- alt: 'Copernicus in situ',
28
- },
29
- {
30
- link: 'https://ipchem.jrc.ec.europa.eu/RDSIdiscovery/ipchem/index.html',
31
- src: ipchemLogo,
32
- alt: 'Information platform for chemical monitoring',
33
- },
34
- {
35
- link: 'https://water.europa.eu/freshwater',
36
- src: freshwaterLogo,
37
- alt: 'WISE freshwater',
38
- },
39
- {
40
- link: 'https://forest.eea.europa.eu/',
41
- src: fiseLogo,
42
- alt: 'Forest information system for europe',
43
- },
44
- {
45
- link: 'https://climate-adapt.eea.europa.eu/',
46
- src: ccaLogo,
47
- alt: 'Climate adapt',
48
- },
49
- {
50
- link: 'https://land.copernicus.eu/',
51
- src: copernicusLogo,
52
- alt: 'Copernicus land monitoring service',
53
- },
54
- {
55
- link: 'https://industry.eea.europa.eu/',
56
- src: industryLogo,
57
- alt: 'European industrial emissions portal',
58
- },
59
- {
60
- link: 'https://water.europa.eu/marine',
61
- src: marineLogo,
62
- alt: 'WISE marine',
63
- },
64
- ];
15
+ // Footer.jsx config options
16
+ export const footerOpts = {
17
+ header: 'EEA information systems',
18
+ logosHeader: 'Managed by',
19
+ contactHeader: 'Contact Us',
20
+ actions: [
21
+ {
22
+ title: 'Login',
23
+ link: '/login',
24
+ },
25
+ {
26
+ link: '/sitemap',
27
+ title: 'Sitemap',
28
+ },
29
+ {
30
+ link: '/privacy',
31
+ title: 'Privacy',
32
+ },
33
+ {
34
+ link: '/copyright',
35
+ title: 'Copyright',
36
+ copy: true,
37
+ },
38
+ ],
39
+ sites: [
40
+ {
41
+ link: 'https://biodiversity.europa.eu/',
42
+ src: biseLogo,
43
+ alt: 'Biodiversity',
44
+ },
45
+ {
46
+ link: 'https://climate-energy.eea.europa.eu/',
47
+ src: energyLogo,
48
+ alt: 'Climate and energy in the EU',
49
+ },
50
+ {
51
+ link: 'https://insitu.copernicus.eu/',
52
+ src: insituLogo,
53
+ alt: 'Copernicus in situ',
54
+ },
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
+ {
61
+ link: 'https://water.europa.eu/freshwater',
62
+ src: freshwaterLogo,
63
+ alt: 'WISE freshwater',
64
+ },
65
+ {
66
+ link: 'https://forest.eea.europa.eu/',
67
+ src: fiseLogo,
68
+ alt: 'Forest information system for europe',
69
+ },
70
+ {
71
+ link: 'https://climate-adapt.eea.europa.eu/',
72
+ src: ccaLogo,
73
+ alt: 'Climate adapt',
74
+ },
75
+ {
76
+ link: 'https://land.copernicus.eu/',
77
+ src: copernicusLogo,
78
+ alt: 'Copernicus land monitoring service',
79
+ },
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
+ ],
91
+ managedBy: [
92
+ {
93
+ link: 'https://www.eea.europa.eu/',
94
+ src: eeaLogo,
95
+ alt: 'EEA Logo',
96
+ className: 'site logo',
97
+ columnSize: {
98
+ mobile: 6,
99
+ tablet: 12,
100
+ computer: 5,
101
+ },
102
+ },
103
+ {
104
+ link: 'https://www.eionet.europa.eu/',
105
+ src: eionetLogo,
106
+ alt: 'EIONET Logo',
107
+ className: 'eionet logo',
108
+ columnSize: {
109
+ mobile: 6,
110
+ tablet: 12,
111
+ computer: 7,
112
+ },
113
+ },
114
+ ],
115
+ social: [
116
+ {
117
+ name: 'twitter',
118
+ icon: 'ri-twitter-fill',
119
+ link: 'https://twitter.com/euenvironment',
120
+ },
121
+ {
122
+ name: 'facebook',
123
+ icon: 'ri-facebook-box-fill',
124
+ link: 'https://www.facebook.com/European.Environment.Agency',
125
+ },
126
+ {
127
+ name: 'linkedin',
128
+ icon: 'ri-linkedin-fill',
129
+ link: 'https://www.linkedin.com/company/european-environment-agency',
130
+ },
131
+ {
132
+ name: 'youtube',
133
+ icon: 'ri-youtube-fill',
134
+ link: 'https://www.youtube.com/user/EEAvideos',
135
+ },
136
+ {
137
+ name: 'rss',
138
+ icon: 'ri-rss-fill',
139
+ link: '/subscription/news-feeds',
140
+ },
141
+ ],
142
+ contacts: [
143
+ {
144
+ icon: 'comment outline',
145
+ text: 'Ask your question',
146
+ link: '/contact-us',
147
+ },
148
+ {
149
+ icon: 'envelope outline',
150
+ text: 'Sign up to our newsletter',
151
+ link: '/newsletter',
152
+ },
153
+ ],
154
+ address: 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00',
155
+ };
65
156
 
66
157
  export const globalHeaderPartnerLinks = {
67
158
  title: 'Environmental information systems',
@@ -101,64 +192,6 @@ export const globalHeaderPartnerLinks = {
101
192
  ],
102
193
  };
103
194
 
104
- export const globalActions = [
105
- {
106
- link: '/login',
107
- title: 'CMS Login',
108
- },
109
- {
110
- link: '/sitemap',
111
- title: 'Sitemap',
112
- },
113
- {
114
- link: '/privacy',
115
- title: 'Privacy',
116
- },
117
- {
118
- link: '/copyright',
119
- title: 'Copyright',
120
- copy: true,
121
- },
122
- ];
123
-
124
- export const socialActions = [
125
- {
126
- name: 'twitter',
127
- link: 'https://twitter.com/euenvironment',
128
- },
129
- {
130
- name: 'facebook',
131
- link: 'https://www.facebook.com/European.Environment.Agency',
132
- },
133
- {
134
- name: 'linkedin',
135
- link: 'https://www.linkedin.com/company/european-environment-agency',
136
- },
137
- {
138
- name: 'youtube',
139
- link: 'https://www.youtube.com/user/EEAvideos',
140
- },
141
- {
142
- name: 'rss',
143
- link: '/subscription/news-feeds',
144
- },
145
- ];
146
-
147
- export const footerActions = [
148
- {
149
- icon: 'comment outline',
150
- text: 'Ask your question',
151
- link: '/contact-us',
152
- },
153
- {
154
- icon: 'envelope outline',
155
- text: 'Sign up to our newsletter',
156
- link: '/newsletter',
157
- },
158
- ];
159
-
160
- export const address = 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00';
161
-
162
195
  export const languages = [
163
196
  { name: 'Български', code: 'bg' },
164
197
  { name: 'čeština', code: 'cs' },
@@ -5,68 +5,15 @@
5
5
 
6
6
  import React from 'react';
7
7
  import EEAFooter from '@eeacms/volto-eea-design-system/ui/Footer/Footer';
8
- import { Grid, Image } from 'semantic-ui-react';
9
- import { Link } from 'react-router-dom';
10
-
11
- import EIONETLogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/EIONETLogo.png';
12
- import EEALogo from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/logo/EEA-Logo-white.svg';
13
-
14
8
  import config from '@plone/volto/registry';
15
9
 
16
10
  const Footer = (props) => {
17
11
  const { eea } = config.settings;
18
-
19
12
  return (
20
13
  <EEAFooter>
21
- <EEAFooter.Header>The EEA also contributes to</EEAFooter.Header>
22
- <EEAFooter.Sites sites={config.settings.eea.partnerWebsites} />
23
-
24
- <EEAFooter.SubFooter>
25
- <div className="subfooter">
26
- <Grid>
27
- <Grid.Column mobile={6} tablet={7} computer={8}>
28
- <div className="item">
29
- <div className="site logo">
30
- <Link to="/">
31
- <Image src={EEALogo} alt="EEA Logo"></Image>
32
- </Link>
33
- <p className="description">An agency of the European Union</p>
34
- </div>
35
-
36
- <div className="eionet logo">
37
- <a href="https://www.eionet.europa.eu/">
38
- <Image src={EIONETLogo} alt="EIONET Logo"></Image>
39
- </a>
40
- <p className="description">
41
- European Environment
42
- <br />
43
- Information and
44
- <br />
45
- Observation Network
46
- </p>
47
- </div>
48
- </div>
49
- </Grid.Column>
50
- <Grid.Column mobile={6} tablet={5} computer={4}>
51
- <div className="item">
52
- <EEAFooter.Contact
53
- contacts={eea.footerActions}
54
- header="Contact Us"
55
- address={eea.address}
56
- />
57
- <EEAFooter.Social social={eea.socialActions} />
58
- </div>
59
- </Grid.Column>
60
- </Grid>
61
- <Grid>
62
- <Grid.Row>
63
- <Grid.Column>
64
- <EEAFooter.Actions actions={eea.globalActions} />
65
- </Grid.Column>
66
- </Grid.Row>
67
- </Grid>
68
- </div>
69
- </EEAFooter.SubFooter>
14
+ <EEAFooter.Header>{eea.footerOpts.header}</EEAFooter.Header>
15
+ <EEAFooter.Sites sites={eea.footerOpts.sites} />
16
+ <EEAFooter.SubFooter {...eea.footerOpts} />
70
17
  </EEAFooter>
71
18
  );
72
19
  };
package/src/index.js CHANGED
@@ -3,6 +3,7 @@ import InpageNavigation from '@eeacms/volto-eea-design-system/ui/InpageNavigatio
3
3
  import installCustomTitle from '@eeacms/volto-eea-website-theme/components/manage/Blocks/Title';
4
4
  import CustomCSS from '@eeacms/volto-eea-website-theme/components/theme/CustomCSS/CustomCSS';
5
5
  import DraftBackground from '@eeacms/volto-eea-website-theme/components/theme/DraftBackground/DraftBackground';
6
+ import { TokenWidget } from '@eeacms/volto-eea-website-theme/components/theme/Widgets/TokenWidget';
6
7
 
7
8
  const applyConfig = (config) => {
8
9
  config.settings.eea = {
@@ -15,10 +16,26 @@ const applyConfig = (config) => {
15
16
  config.blocks.blocksConfig.accordion.semanticIcon = 'ri-arrow-down-s-line';
16
17
  }
17
18
 
19
+ // Apply tabs block customization
20
+ if (config.blocks.blocksConfig.tabs_block) {
21
+ if (config.blocks.blocksConfig.tabs_block.templates.accordion) {
22
+ config.blocks.blocksConfig.tabs_block.templates.accordion.semanticIcon = {
23
+ opened: 'ri-arrow-up-s-line',
24
+ closed: 'ri-arrow-down-s-line',
25
+ };
26
+ }
27
+ }
28
+
18
29
  // Description block custom CSS
19
30
  config.blocks.blocksConfig.description.className =
20
31
  'documentDescription eea callout';
21
32
 
33
+ // Custom TokenWidget
34
+ if (config.widgets.views) {
35
+ config.widgets.views.id.subjects = TokenWidget;
36
+ config.widgets.views.widget.tags = TokenWidget;
37
+ }
38
+
22
39
  // apply inPage navigation
23
40
  config.settings.appExtras = [
24
41
  ...(config.settings.appExtras || []),