@eeacms/volto-eea-website-theme 1.16.0 → 1.17.0
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 +16 -0
- package/jest-addon.config.js +1 -1
- package/package.json +1 -1
- package/src/config.js +37 -27
- package/src/customizations/volto/components/theme/Footer/Footer.jsx +5 -5
- package/src/index.js +6 -0
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
|
+
### [1.17.0](https://github.com/eea/volto-eea-website-theme/compare/1.16.0...1.17.0) - 8 June 2023
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix(breadcrumbs): update issue by forcing info to load on page load #145 from eea/breadcrumbs [ichim-david - [`aed0979`](https://github.com/eea/volto-eea-website-theme/commit/aed0979aa786ce6a788eb76041c09d190339e304)]
|
12
|
+
- fix: cypress [tedw87 - [`5d71a72`](https://github.com/eea/volto-eea-website-theme/commit/5d71a7287f5fd53ec555eb2932a1f76804718f7a)]
|
13
|
+
- fix:breadcrumbs update [tedw87 - [`22303c5`](https://github.com/eea/volto-eea-website-theme/commit/22303c5f6193bb698bfaf5488137433f3077ab15)]
|
14
|
+
|
15
|
+
#### :nail_care: Enhancements
|
16
|
+
|
17
|
+
- change(footer): add sites logo classes for easier logo sizing tweaks [David Ichim - [`4956438`](https://github.com/eea/volto-eea-website-theme/commit/49564383ac5ae6243fe341fdc73ae660df59948d)]
|
18
|
+
- change(footer): use url instead of link to reference footer action links [David Ichim - [`a288ee7`](https://github.com/eea/volto-eea-website-theme/commit/a288ee7083de5af6a59a9a29340df75f1f019c20)]
|
19
|
+
|
20
|
+
#### :hammer_and_wrench: Others
|
21
|
+
|
22
|
+
- test: Fix test config, coverage Refs #253277 [valentinab25 - [`be66cab`](https://github.com/eea/volto-eea-website-theme/commit/be66cab44b38908f2ab0ccf7af2393a2269b827e)]
|
7
23
|
### [1.16.0](https://github.com/eea/volto-eea-website-theme/compare/1.15.0...1.16.0) - 8 June 2023
|
8
24
|
|
9
25
|
#### :bug: Bug Fixes
|
package/jest-addon.config.js
CHANGED
@@ -5,6 +5,7 @@ module.exports = {
|
|
5
5
|
'!src/**/*.d.ts',
|
6
6
|
],
|
7
7
|
moduleNameMapper: {
|
8
|
+
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
8
9
|
'@plone/volto/cypress': '<rootDir>/node_modules/@plone/volto/cypress',
|
9
10
|
'@plone/volto/babel': '<rootDir>/node_modules/@plone/volto/babel',
|
10
11
|
'@plone/volto/(.*)$': '<rootDir>/node_modules/@plone/volto/src/$1',
|
@@ -17,7 +18,6 @@ module.exports = {
|
|
17
18
|
'~/(.*)$': '<rootDir>/src/$1',
|
18
19
|
'load-volto-addons':
|
19
20
|
'<rootDir>/node_modules/@plone/volto/jest-addons-loader.js',
|
20
|
-
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
21
21
|
},
|
22
22
|
transform: {
|
23
23
|
'^.+\\.js(x)?$': 'babel-jest',
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -21,78 +21,88 @@ export const footerOpts = {
|
|
21
21
|
actions: [
|
22
22
|
{
|
23
23
|
title: 'Privacy',
|
24
|
-
|
24
|
+
url: '/privacy',
|
25
25
|
},
|
26
26
|
{
|
27
|
-
|
27
|
+
url: '/sitemap',
|
28
28
|
title: 'Sitemap',
|
29
29
|
},
|
30
30
|
{
|
31
|
-
|
31
|
+
url: '/login',
|
32
32
|
title: 'CMS Login',
|
33
33
|
},
|
34
34
|
],
|
35
35
|
copyright: [
|
36
36
|
{
|
37
|
-
|
37
|
+
url: '/copyright',
|
38
38
|
site: 'EEA',
|
39
39
|
},
|
40
40
|
],
|
41
41
|
sites: [
|
42
42
|
{
|
43
|
-
|
43
|
+
url: 'https://water.europa.eu/marine',
|
44
44
|
src: marineLogo,
|
45
45
|
alt: 'WISE marine',
|
46
|
+
className: 'marine logo',
|
46
47
|
},
|
47
48
|
{
|
48
|
-
|
49
|
+
url: 'https://water.europa.eu/freshwater',
|
49
50
|
src: freshwaterLogo,
|
50
51
|
alt: 'WISE freshwater',
|
52
|
+
className: 'freshwater logo',
|
51
53
|
},
|
52
54
|
{
|
53
|
-
|
55
|
+
url: 'https://biodiversity.europa.eu/',
|
54
56
|
src: biseLogo,
|
55
57
|
alt: 'Biodiversity',
|
58
|
+
className: 'biodiversity logo',
|
56
59
|
},
|
57
60
|
{
|
58
|
-
|
61
|
+
url: 'https://forest.eea.europa.eu/',
|
59
62
|
src: fiseLogo,
|
60
63
|
alt: 'Forest information system for europe',
|
64
|
+
className: 'fise logo',
|
61
65
|
},
|
62
66
|
{
|
63
|
-
|
67
|
+
url: 'https://climate-adapt.eea.europa.eu/observatory',
|
64
68
|
src: climateLogo,
|
65
69
|
alt: 'European Climate and Health Observatory',
|
70
|
+
className: 'climate logo',
|
66
71
|
},
|
67
72
|
{
|
68
|
-
|
73
|
+
url: 'https://climate-adapt.eea.europa.eu/',
|
69
74
|
src: ccaLogo,
|
70
75
|
alt: 'Climate adapt',
|
76
|
+
className: 'cca logo',
|
71
77
|
},
|
72
78
|
{
|
73
|
-
|
79
|
+
url: 'https://industry.eea.europa.eu/',
|
74
80
|
src: industryLogo,
|
75
81
|
alt: 'European industrial emissions portal',
|
82
|
+
className: 'industry logo',
|
76
83
|
},
|
77
84
|
{
|
78
|
-
|
85
|
+
url: 'https://climate-energy.eea.europa.eu/',
|
79
86
|
src: energyLogo,
|
80
87
|
alt: 'Climate and energy in the EU',
|
88
|
+
className: 'energy logo',
|
81
89
|
},
|
82
90
|
{
|
83
|
-
|
91
|
+
url: 'https://land.copernicus.eu/',
|
84
92
|
src: copernicusLogo,
|
85
93
|
alt: 'Copernicus land monitoring service',
|
94
|
+
className: 'copernicus logo',
|
86
95
|
},
|
87
96
|
{
|
88
|
-
|
97
|
+
url: 'https://insitu.copernicus.eu/',
|
89
98
|
src: insituLogo,
|
90
99
|
alt: 'Copernicus in situ',
|
100
|
+
className: 'insitu logo',
|
91
101
|
},
|
92
102
|
],
|
93
103
|
managedBy: [
|
94
104
|
{
|
95
|
-
|
105
|
+
url: 'https://www.eea.europa.eu/',
|
96
106
|
src: eeaWhiteLogo,
|
97
107
|
alt: 'EEA Logo',
|
98
108
|
className: 'site logo',
|
@@ -103,7 +113,7 @@ export const footerOpts = {
|
|
103
113
|
},
|
104
114
|
},
|
105
115
|
{
|
106
|
-
|
116
|
+
url: 'https://www.eionet.europa.eu/',
|
107
117
|
src: eionetLogo,
|
108
118
|
alt: 'EIONET Logo',
|
109
119
|
className: 'eionet logo',
|
@@ -118,46 +128,46 @@ export const footerOpts = {
|
|
118
128
|
{
|
119
129
|
name: 'twitter',
|
120
130
|
icon: 'ri-twitter-fill',
|
121
|
-
|
131
|
+
url: 'https://twitter.com/euenvironment',
|
122
132
|
},
|
123
133
|
{
|
124
134
|
name: 'facebook',
|
125
135
|
icon: 'ri-facebook-box-fill',
|
126
|
-
|
136
|
+
url: 'https://www.facebook.com/European.Environment.Agency',
|
127
137
|
},
|
128
138
|
{
|
129
139
|
name: 'linkedin',
|
130
140
|
icon: 'ri-linkedin-fill',
|
131
|
-
|
141
|
+
url: 'https://www.linkedin.com/company/european-environment-agency',
|
132
142
|
},
|
133
143
|
{
|
134
144
|
name: 'youtube',
|
135
145
|
icon: 'ri-youtube-fill',
|
136
|
-
|
146
|
+
url: 'https://www.youtube.com/user/EEAvideos',
|
137
147
|
},
|
138
148
|
{
|
139
149
|
name: 'instagram',
|
140
150
|
icon: 'ri-instagram-fill',
|
141
|
-
|
151
|
+
url: 'https://www.instagram.com/ourplanet_eu',
|
142
152
|
},
|
143
153
|
{
|
144
154
|
name: 'rss',
|
145
155
|
icon: 'ri-rss-fill',
|
146
|
-
|
156
|
+
url: '/subscription/news-feeds',
|
147
157
|
},
|
148
158
|
],
|
149
159
|
contacts: [
|
150
160
|
{
|
151
161
|
icon: 'comment outline',
|
152
162
|
text: 'About us',
|
153
|
-
|
163
|
+
url: '/about',
|
154
164
|
children: [
|
155
165
|
{
|
156
|
-
|
166
|
+
url: '/faq',
|
157
167
|
text: 'FAQs',
|
158
168
|
},
|
159
169
|
{
|
160
|
-
|
170
|
+
url: '/careers',
|
161
171
|
text: 'Careers',
|
162
172
|
},
|
163
173
|
],
|
@@ -165,12 +175,12 @@ export const footerOpts = {
|
|
165
175
|
{
|
166
176
|
icon: 'comment outline',
|
167
177
|
text: 'Contact us',
|
168
|
-
|
178
|
+
url: '/contact-us',
|
169
179
|
},
|
170
180
|
{
|
171
181
|
icon: 'envelope outline',
|
172
182
|
text: 'Sign up to our newsletter',
|
173
|
-
|
183
|
+
url: '/newsletter',
|
174
184
|
},
|
175
185
|
],
|
176
186
|
address: 'Kongens Nytorv 6 1050 Copenhagen K (+45) 33 36 71 00',
|
@@ -32,7 +32,7 @@ const Footer = () => {
|
|
32
32
|
const actions = isArray(footerActions)
|
33
33
|
? footerActions.map((action) => ({
|
34
34
|
title: action.title,
|
35
|
-
|
35
|
+
url: flattenToAppURL(action.url),
|
36
36
|
}))
|
37
37
|
: eea.footerOpts.actions;
|
38
38
|
|
@@ -41,7 +41,7 @@ const Footer = () => {
|
|
41
41
|
? copyrightActions.map((action) => ({
|
42
42
|
title: action.title,
|
43
43
|
site: action.title,
|
44
|
-
|
44
|
+
url: flattenToAppURL(action.url),
|
45
45
|
}))
|
46
46
|
: eea.footerOpts.copyright;
|
47
47
|
|
@@ -50,7 +50,7 @@ const Footer = () => {
|
|
50
50
|
? socialActions.map((action) => ({
|
51
51
|
name: action.id,
|
52
52
|
icon: action.icon,
|
53
|
-
|
53
|
+
url: action.url,
|
54
54
|
}))
|
55
55
|
: eea.footerOpts.social;
|
56
56
|
|
@@ -59,13 +59,13 @@ const Footer = () => {
|
|
59
59
|
? contactActions.map((action, idx) => ({
|
60
60
|
text: action.title,
|
61
61
|
icon: action.icon,
|
62
|
-
|
62
|
+
url: flattenToAppURL(action.url),
|
63
63
|
children:
|
64
64
|
idx === 0
|
65
65
|
? contactExtraActions.map((child) => ({
|
66
66
|
text: child.title,
|
67
67
|
icon: child.icon,
|
68
|
-
|
68
|
+
url: flattenToAppURL(child.url),
|
69
69
|
}))
|
70
70
|
: [],
|
71
71
|
}))
|
package/src/index.js
CHANGED
@@ -261,6 +261,12 @@ const applyConfig = (config) => {
|
|
261
261
|
config.blocks.blocksConfig.accordion.mostUsed = true;
|
262
262
|
}
|
263
263
|
|
264
|
+
// Breadcrumbs
|
265
|
+
config.settings.apiExpanders.push({
|
266
|
+
match: '',
|
267
|
+
GET_CONTENT: ['breadcrumbs'], // 'navigation', 'actions', 'types'],
|
268
|
+
});
|
269
|
+
|
264
270
|
// Custom blocks: Title
|
265
271
|
return [installCustomTitle].reduce((acc, apply) => apply(acc), config);
|
266
272
|
};
|