@eeacms/volto-eea-website-theme 4.0.4 → 4.1.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 +13 -29
- package/README.md +4 -0
- package/package.json +1 -1
- package/src/actions/eea-settings.js +9 -0
- package/src/actions/index.js +1 -0
- package/src/config.js +36 -19
- package/src/constants/ActionTypes.js +1 -0
- package/src/customizations/volto/components/theme/Header/Header.jsx +4 -1
- package/src/customizations/volto/server.jsx +3 -0
- package/src/index.js +2 -1
- package/src/reducers/eea-settings.js +33 -0
- package/src/reducers/index.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,11 +4,21 @@ 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
|
-
### [4.0
|
|
7
|
+
### [4.1.0](https://github.com/eea/volto-eea-website-theme/compare/4.0.5...4.1.0) - 17 April 2026
|
|
8
8
|
|
|
9
|
-
#### :
|
|
9
|
+
#### :house: Internal changes
|
|
10
|
+
|
|
11
|
+
- style: Automated code fix [eea-jenkins - [`791197c`](https://github.com/eea/volto-eea-website-theme/commit/791197cdab091e73cd4ddc5a7c6f7a4fc777642a)]
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- update config [Miu Razvan - [`863717b`](https://github.com/eea/volto-eea-website-theme/commit/863717bec385ac98a69cf86578efef6377de3189)]
|
|
16
|
+
- change default settings for headerSearchBox [Miu Razvan - [`8343209`](https://github.com/eea/volto-eea-website-theme/commit/834320954a7b358dd112641fbf8e5ede2cae4085)]
|
|
17
|
+
- update [Miu Razvan - [`16b13d0`](https://github.com/eea/volto-eea-website-theme/commit/16b13d0a40ce14d9cc40f9a3b22b3b1486037178)]
|
|
18
|
+
- update [Miu Razvan - [`3602223`](https://github.com/eea/volto-eea-website-theme/commit/3602223822f0346551fd13c196c89015621a1833)]
|
|
19
|
+
### [4.0.5](https://github.com/eea/volto-eea-website-theme/compare/4.0.4...4.0.5) - 16 April 2026
|
|
20
|
+
|
|
21
|
+
### [4.0.4](https://github.com/eea/volto-eea-website-theme/compare/4.0.3...4.0.4) - 10 April 2026
|
|
12
22
|
|
|
13
23
|
### [4.0.3](https://github.com/eea/volto-eea-website-theme/compare/4.0.2...4.0.3) - 9 April 2026
|
|
14
24
|
|
|
@@ -47,8 +57,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
47
57
|
|
|
48
58
|
#### :house: Internal changes
|
|
49
59
|
|
|
50
|
-
- chore: [JENKINSFILE] add package version in sonarqube [valentinab25 - [`b15b302`](https://github.com/eea/volto-eea-website-theme/commit/b15b302ff88ec6afa6901ee7e1726cc4e04a8739)]
|
|
51
|
-
- chore: [JENKINSFILE] use sonarqube branches [EEA Jenkins - [`36f2e1e`](https://github.com/eea/volto-eea-website-theme/commit/36f2e1e176471b3753d77ab8aaf0cba577b43b36)]
|
|
52
60
|
|
|
53
61
|
### [3.19.0](https://github.com/eea/volto-eea-website-theme/compare/3.18.1...3.19.0) - 11 February 2026
|
|
54
62
|
|
|
@@ -111,7 +119,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
111
119
|
#### :hammer_and_wrench: Others
|
|
112
120
|
|
|
113
121
|
- Release 3.12.0 [Alin Voinea - [`ea1e961`](https://github.com/eea/volto-eea-website-theme/commit/ea1e96144684b2a8238ae476fd8d47de82ff42b4)]
|
|
114
|
-
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`2cac56e`](https://github.com/eea/volto-eea-website-theme/commit/2cac56e22e580e042d368b69254172539ed33b65)]
|
|
115
122
|
### [3.11.0](https://github.com/eea/volto-eea-website-theme/compare/3.10.1...3.11.0) - 29 September 2025
|
|
116
123
|
|
|
117
124
|
#### :bug: Bug Fixes
|
|
@@ -205,8 +212,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
205
212
|
|
|
206
213
|
#### :hammer_and_wrench: Others
|
|
207
214
|
|
|
208
|
-
- Add Sonarqube tag using fise-frontend addons list [EEA Jenkins - [`3d50874`](https://github.com/eea/volto-eea-website-theme/commit/3d50874281ebcb91a1ae3727248f656a6f26c603)]
|
|
209
|
-
- Add Sonarqube tag using ied-frontend addons list [EEA Jenkins - [`a3f7676`](https://github.com/eea/volto-eea-website-theme/commit/a3f76767d99cb6dd93cc7fa0eafdea57e9000b2c)]
|
|
210
215
|
### [3.5.4](https://github.com/eea/volto-eea-website-theme/compare/3.5.3...3.5.4) - 30 January 2025
|
|
211
216
|
|
|
212
217
|
#### :bug: Bug Fixes
|
|
@@ -307,7 +312,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
307
312
|
|
|
308
313
|
#### :hammer_and_wrench: Others
|
|
309
314
|
|
|
310
|
-
- Add Sonarqube tag using bise-frontend addons list [EEA Jenkins - [`e417f83`](https://github.com/eea/volto-eea-website-theme/commit/e417f839312045c56b67ab8134fe5b0622b3e2c3)]
|
|
311
315
|
## [3.0.0](https://github.com/eea/volto-eea-website-theme/compare/2.4.0...3.0.0) - 21 October 2024
|
|
312
316
|
|
|
313
317
|
#### :nail_care: Enhancements
|
|
@@ -393,7 +397,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
393
397
|
- Refs #269520 - other_organisation test [Tripon Eugen - [`7558b27`](https://github.com/eea/volto-eea-website-theme/commit/7558b27a9d1cd6d3480a32b296c7325c796006c9)]
|
|
394
398
|
- Refs #269520 - other_organisation token widget edit mode [Tripon Eugen - [`b6df127`](https://github.com/eea/volto-eea-website-theme/commit/b6df127bd91b6f55dda8f468e1107037d43752ff)]
|
|
395
399
|
- Refs #269520 - other_organisation token widget [Tripon Eugen - [`6fd7543`](https://github.com/eea/volto-eea-website-theme/commit/6fd7543894bd2c593a1729116befd95c82ea3c8f)]
|
|
396
|
-
- Add Sonarqube tag using marine-frontend addons list [EEA Jenkins - [`cbc36c7`](https://github.com/eea/volto-eea-website-theme/commit/cbc36c74dfcd5f7cb1013a4c673d9c02e0023766)]
|
|
397
400
|
### [2.1.1](https://github.com/eea/volto-eea-website-theme/compare/2.1.0...2.1.1) - 28 May 2024
|
|
398
401
|
|
|
399
402
|
#### :bug: Bug Fixes
|
|
@@ -478,7 +481,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
478
481
|
|
|
479
482
|
#### :hammer_and_wrench: Others
|
|
480
483
|
|
|
481
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`adc6730`](https://github.com/eea/volto-eea-website-theme/commit/adc6730e21a37afb865b842182624401de6a29f5)]
|
|
482
484
|
### [1.33.1](https://github.com/eea/volto-eea-website-theme/compare/1.33.0...1.33.1) - 4 April 2024
|
|
483
485
|
|
|
484
486
|
#### :bug: Bug Fixes
|
|
@@ -612,8 +614,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
612
614
|
|
|
613
615
|
- bump version [Razvan - [`721e939`](https://github.com/eea/volto-eea-website-theme/commit/721e939d12e324b459ebfa78a2e656ee7142a3d6)]
|
|
614
616
|
- merge master into this branch [Razvan - [`586c8f9`](https://github.com/eea/volto-eea-website-theme/commit/586c8f910bac55a043bd8dda60e9444bd2ae1663)]
|
|
615
|
-
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`fd90044`](https://github.com/eea/volto-eea-website-theme/commit/fd9004442a9d1d465f7601ecdefe3e23c61e6a9c)]
|
|
616
|
-
- Add Sonarqube tag using insitu-frontend addons list [EEA Jenkins - [`4bc3dd3`](https://github.com/eea/volto-eea-website-theme/commit/4bc3dd3ae412a66befd04b5b80fab3716c929240)]
|
|
617
617
|
- test: Update jest,Jenkinsfile,lint to volto-addons-template PR30 [valentinab25 - [`c4dbd28`](https://github.com/eea/volto-eea-website-theme/commit/c4dbd289358205bc2d849aab7edb11ccf3b89cee)]
|
|
618
618
|
- fix tests [Razvan - [`042330b`](https://github.com/eea/volto-eea-website-theme/commit/042330bc97d32ffe7ba769b4f2453f71cffed706)]
|
|
619
619
|
- remove RemoveSchema logic [Razvan - [`08d10f8`](https://github.com/eea/volto-eea-website-theme/commit/08d10f8bf6f75478260e4e4c66d7316ba87b907a)]
|
|
@@ -708,11 +708,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
708
708
|
- test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
|
|
709
709
|
- test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
|
|
710
710
|
- Revert "change(tests): commented out rss test since title block config is missing" [Alin Voinea - [`fb61191`](https://github.com/eea/volto-eea-website-theme/commit/fb611918d6ca380b89b594f283dcf9f685a4b294)]
|
|
711
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
|
|
712
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
|
|
713
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
|
|
714
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
|
|
715
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
|
|
716
711
|
### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
|
|
717
712
|
|
|
718
713
|
#### :rocket: New Features
|
|
@@ -725,7 +720,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
725
720
|
|
|
726
721
|
#### :house: Internal changes
|
|
727
722
|
|
|
728
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
|
|
729
723
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
|
|
730
724
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
|
|
731
725
|
|
|
@@ -911,7 +905,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
911
905
|
|
|
912
906
|
#### :house: Internal changes
|
|
913
907
|
|
|
914
|
-
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
|
915
908
|
|
|
916
909
|
#### :hammer_and_wrench: Others
|
|
917
910
|
|
|
@@ -1067,7 +1060,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1067
1060
|
|
|
1068
1061
|
#### :hammer_and_wrench: Others
|
|
1069
1062
|
|
|
1070
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
|
1071
1063
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
|
1072
1064
|
|
|
1073
1065
|
#### :bug: Bug Fixes
|
|
@@ -1214,7 +1206,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1214
1206
|
|
|
1215
1207
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
|
1216
1208
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
|
1217
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
|
1218
1209
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
|
1219
1210
|
|
|
1220
1211
|
#### :hammer_and_wrench: Others
|
|
@@ -1248,7 +1239,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1248
1239
|
|
|
1249
1240
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
|
1250
1241
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
|
1251
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
|
1252
1242
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
|
1253
1243
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
|
1254
1244
|
|
|
@@ -1258,7 +1248,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1258
1248
|
|
|
1259
1249
|
#### :hammer_and_wrench: Others
|
|
1260
1250
|
|
|
1261
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
|
1262
1251
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
|
1263
1252
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
|
1264
1253
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
|
@@ -1269,7 +1258,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1269
1258
|
|
|
1270
1259
|
#### :hammer_and_wrench: Others
|
|
1271
1260
|
|
|
1272
|
-
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
|
1273
1261
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
|
1274
1262
|
|
|
1275
1263
|
#### :rocket: New Features
|
|
@@ -1310,7 +1298,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1310
1298
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
|
1311
1299
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
|
1312
1300
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
|
1313
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
|
1314
1301
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
|
1315
1302
|
|
|
1316
1303
|
#### :nail_care: Enhancements
|
|
@@ -1358,7 +1345,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1358
1345
|
|
|
1359
1346
|
#### :hammer_and_wrench: Others
|
|
1360
1347
|
|
|
1361
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
|
1362
1348
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
|
1363
1349
|
|
|
1364
1350
|
#### :hammer_and_wrench: Others
|
|
@@ -1626,7 +1612,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1626
1612
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
|
1627
1613
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
|
1628
1614
|
- feature(breadcrumbs): implement eea-design-system breadcrumb as Volto component #32 #7 [ichim-david - [`181af41`](https://github.com/eea/volto-eea-website-theme/commit/181af4125ce2b9ddac56dab4723cb11c26633221)]
|
|
1629
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
|
1630
1615
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
|
1631
1616
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
|
1632
1617
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
|
@@ -1668,5 +1653,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1668
1653
|
|
|
1669
1654
|
#### :hammer_and_wrench: Others
|
|
1670
1655
|
|
|
1671
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
|
1672
1656
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/README.md
CHANGED
|
@@ -18,6 +18,10 @@ EEA Website [Volto](https://github.com/plone/volto) Theme
|
|
|
18
18
|
|
|
19
19
|
## Upgrade
|
|
20
20
|
|
|
21
|
+
### Upgrading to ^4.1.x
|
|
22
|
+
|
|
23
|
+
* This version requires `^eea.volto.policy@12.0`
|
|
24
|
+
|
|
21
25
|
### Upgrading to 3.x.x
|
|
22
26
|
|
|
23
27
|
* This version removes some Volto customizations and it requires **Volto 17.20.0+**. See [CHANGELOG.md](https://github.com/eea/volto-eea-website-theme/blob/master/CHANGELOG.md)
|
package/package.json
CHANGED
package/src/actions/index.js
CHANGED
package/src/config.js
CHANGED
|
@@ -242,6 +242,10 @@ export const headerOpts = {
|
|
|
242
242
|
title: 'Copernicus InSitu',
|
|
243
243
|
href: 'https://insitu.copernicus.eu',
|
|
244
244
|
},
|
|
245
|
+
{
|
|
246
|
+
title: 'Circularity Metrics Lab',
|
|
247
|
+
href: 'https://www.eea.europa.eu/en/circularity',
|
|
248
|
+
},
|
|
245
249
|
],
|
|
246
250
|
},
|
|
247
251
|
logoWidth: 350,
|
|
@@ -285,31 +289,44 @@ export const logoTargetUrl = '/';
|
|
|
285
289
|
|
|
286
290
|
export const headerSearchBox = [
|
|
287
291
|
{
|
|
288
|
-
|
|
292
|
+
type: 'search-input',
|
|
293
|
+
searchSuggestions: {},
|
|
289
294
|
path: '/en/advanced-search',
|
|
290
295
|
placeholder: 'Search or ask your question...',
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
'What countries had the highest land take in the EEA-39?',
|
|
304
|
-
'How many people are exposed to air pollution?',
|
|
305
|
-
],
|
|
306
|
-
},
|
|
296
|
+
maxToShow: 6,
|
|
297
|
+
suggestionsTitle: 'Try our suggestions',
|
|
298
|
+
suggestions: [
|
|
299
|
+
'What is PFAS?',
|
|
300
|
+
'Which transport mode has the lowest pollution?',
|
|
301
|
+
'Which countries use most renewable energy?',
|
|
302
|
+
'How many premature deaths are attributed to PM2.5?',
|
|
303
|
+
'How many premature deaths are attributed to air pollution?',
|
|
304
|
+
'How much have new cars co2 emissions decreased?',
|
|
305
|
+
'What countries had the highest land take in the EEA-39?',
|
|
306
|
+
'How many people are exposed to air pollution?',
|
|
307
|
+
],
|
|
307
308
|
},
|
|
308
309
|
{
|
|
310
|
+
type: 'search-input',
|
|
309
311
|
path: '/en/datahub',
|
|
310
312
|
placeholder: 'Search Datahub...',
|
|
311
|
-
|
|
312
|
-
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
type: 'info',
|
|
316
|
+
content: [
|
|
317
|
+
{ text: 'For more search options' },
|
|
318
|
+
{ text: 'Looking for more information?', path: '/en/datahub' },
|
|
319
|
+
],
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
type: 'button-link',
|
|
323
|
+
title: 'Go to advanced search',
|
|
324
|
+
url: '/en/advanced-search',
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
type: 'button-link',
|
|
328
|
+
title: 'Ask AI',
|
|
329
|
+
url: '/en/ask-ai',
|
|
313
330
|
},
|
|
314
331
|
];
|
|
315
332
|
|
|
@@ -57,10 +57,13 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
|
57
57
|
|
|
58
58
|
const { eea } = config.settings;
|
|
59
59
|
const headerOpts = eea.headerOpts || {};
|
|
60
|
-
const headerSearchBox = eea.headerSearchBox || [];
|
|
61
60
|
const { logo, logoWhite } = headerOpts;
|
|
62
61
|
const width = useSelector((state) => state.screen?.width);
|
|
63
62
|
const dispatch = useDispatch();
|
|
63
|
+
|
|
64
|
+
const eeaSettings = useSelector((state) => state.eeaSettings?.data);
|
|
65
|
+
const headerSearchBox =
|
|
66
|
+
eeaSettings?.header?.searchBox || eea.headerSearchBox || [];
|
|
64
67
|
const previousToken = usePrevious(token);
|
|
65
68
|
const navigationSettings =
|
|
66
69
|
useSelector((state) => state.navigationSettings?.settings) ||
|
|
@@ -33,6 +33,8 @@ import {
|
|
|
33
33
|
import { changeLanguage } from '@plone/volto/actions/language/language';
|
|
34
34
|
|
|
35
35
|
import userSession from '@plone/volto/reducers/userSession/userSession';
|
|
36
|
+
import { getEEASettings } from '@eeacms/volto-eea-website-theme/actions';
|
|
37
|
+
|
|
36
38
|
import configureStore from '@plone/volto/store';
|
|
37
39
|
import ErrorPage from '@plone/volto/error';
|
|
38
40
|
import {
|
|
@@ -262,6 +264,7 @@ server.get('/*', (req, res) => {
|
|
|
262
264
|
const location = parseUrl(url);
|
|
263
265
|
|
|
264
266
|
loadOnServer({ store, location, routes, api })
|
|
267
|
+
.then(() => Promise.all([store.dispatch(getEEASettings())]).catch(() => {}))
|
|
265
268
|
.then(() => {
|
|
266
269
|
const initialLang =
|
|
267
270
|
req.universalCookies.get('I18N_LANGUAGE') ||
|
package/src/index.js
CHANGED
|
@@ -49,7 +49,7 @@ import okMiddleware from './middleware/ok';
|
|
|
49
49
|
import voltoCustomCSSMiddleware from './middleware/voltoCustom';
|
|
50
50
|
import { voltoCustomJsMiddleware } from './middleware/voltoCustom';
|
|
51
51
|
import installSlate from './slate';
|
|
52
|
-
import { print, navigationSettings } from './reducers';
|
|
52
|
+
import { print, navigationSettings, eeaSettings } from './reducers';
|
|
53
53
|
|
|
54
54
|
import * as eea from './config';
|
|
55
55
|
|
|
@@ -676,6 +676,7 @@ const applyConfig = (config) => {
|
|
|
676
676
|
...(config.addonReducers || {}),
|
|
677
677
|
print,
|
|
678
678
|
navigationSettings,
|
|
679
|
+
eeaSettings,
|
|
679
680
|
};
|
|
680
681
|
|
|
681
682
|
// Mega menu object
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { GET_EEA_SETTINGS } from '../constants/ActionTypes';
|
|
2
|
+
|
|
3
|
+
const initialState = {
|
|
4
|
+
error: null,
|
|
5
|
+
loaded: false,
|
|
6
|
+
loading: false,
|
|
7
|
+
data: {},
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default function eeaSettings(state = initialState, action = {}) {
|
|
11
|
+
switch (action.type) {
|
|
12
|
+
case `${GET_EEA_SETTINGS}_PENDING`:
|
|
13
|
+
return { ...state, error: null, loaded: false, loading: true };
|
|
14
|
+
case `${GET_EEA_SETTINGS}_SUCCESS`:
|
|
15
|
+
return {
|
|
16
|
+
...state,
|
|
17
|
+
error: null,
|
|
18
|
+
loaded: true,
|
|
19
|
+
loading: false,
|
|
20
|
+
data: action.result || {},
|
|
21
|
+
};
|
|
22
|
+
case `${GET_EEA_SETTINGS}_FAIL`:
|
|
23
|
+
return {
|
|
24
|
+
...state,
|
|
25
|
+
error: action.error,
|
|
26
|
+
loaded: false,
|
|
27
|
+
loading: false,
|
|
28
|
+
data: {},
|
|
29
|
+
};
|
|
30
|
+
default:
|
|
31
|
+
return state;
|
|
32
|
+
}
|
|
33
|
+
}
|
package/src/reducers/index.js
CHANGED