@eeacms/volto-eea-website-policy 2.4.1 → 2.5.1
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 +31 -0
- package/package.json +1 -1
- package/src/index.js +37 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,37 @@ 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
|
+
### [2.5.1](https://github.com/eea/volto-eea-website-policy/compare/2.5.0...2.5.1) - 7 July 2025
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- refactor: move code to volto-eea-website-theme [nileshgulia1 - [`fa894be`](https://github.com/eea/volto-eea-website-policy/commit/fa894beba428d7eeb0ea67465184e70787c248ab)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`dea8b11`](https://github.com/eea/volto-eea-website-policy/commit/dea8b116c2d6b205bb1b60f27c3922465aacec97)]
|
|
16
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`f7d9e33`](https://github.com/eea/volto-eea-website-policy/commit/f7d9e336556446f6877066bdeeb53ef1a006d376)]
|
|
17
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`287c100`](https://github.com/eea/volto-eea-website-policy/commit/287c1008112d8109a4f6df2eca91a1be0d852e8f)]
|
|
18
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`5307d77`](https://github.com/eea/volto-eea-website-policy/commit/5307d775dcfc04cc7a24714e8e61ede500a942cb)]
|
|
19
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da1ea51`](https://github.com/eea/volto-eea-website-policy/commit/da1ea51076b5f908a07d512c7a0c987b850613f7)]
|
|
20
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`bf3caa0`](https://github.com/eea/volto-eea-website-policy/commit/bf3caa0c1e3227edf9f1e686245c9d71e033365d)]
|
|
21
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`f9bde27`](https://github.com/eea/volto-eea-website-policy/commit/f9bde271dd1276246a46306104118019ce12ed6c)]
|
|
22
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`0cc2faf`](https://github.com/eea/volto-eea-website-policy/commit/0cc2faff274cb16d5252aea2159b4e7b3e3320bc)]
|
|
23
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`c9dca93`](https://github.com/eea/volto-eea-website-policy/commit/c9dca93703c9d2034203f68b5c4f67d5e9c189c2)]
|
|
24
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`ab4682e`](https://github.com/eea/volto-eea-website-policy/commit/ab4682e6bb47a967e24cad3c181aa512bddd868f)]
|
|
25
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`12cd68a`](https://github.com/eea/volto-eea-website-policy/commit/12cd68a84fe22811c35bba2fc2024c9c3f568dec)]
|
|
26
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`f1861b2`](https://github.com/eea/volto-eea-website-policy/commit/f1861b2cad513fd0f94cc80a5b2084d1a283a3a9)]
|
|
27
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`950568a`](https://github.com/eea/volto-eea-website-policy/commit/950568a49e5670a55d6fa52ac04e90f80982ec43)]
|
|
28
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4d9ba3a`](https://github.com/eea/volto-eea-website-policy/commit/4d9ba3ac6663ba86cac62306bea65519c9e90fbc)]
|
|
29
|
+
- remove readme.md [nileshgulia1 - [`d60dca9`](https://github.com/eea/volto-eea-website-policy/commit/d60dca9baec362c1ebaaf55213438ad4b8a711e9)]
|
|
30
|
+
- Serialize formatted json; disable server etag [Tiberiu Ichim - [`0d82bcd`](https://github.com/eea/volto-eea-website-policy/commit/0d82bcd2d0ced3dc9406af82668dc80ef89a19c3)]
|
|
31
|
+
- Make them work [Tiberiu Ichim - [`2de8737`](https://github.com/eea/volto-eea-website-policy/commit/2de87379b97aebf12354d181a9f9de32a34a02fc)]
|
|
32
|
+
- WIP on csp headers [Tiberiu Ichim - [`135b67a`](https://github.com/eea/volto-eea-website-policy/commit/135b67a50cc22f4372bcc0fd1f1ac9485157a177)]
|
|
33
|
+
### [2.5.0](https://github.com/eea/volto-eea-website-policy/compare/2.4.1...2.5.0) - 6 June 2025
|
|
34
|
+
|
|
35
|
+
#### :hammer_and_wrench: Others
|
|
36
|
+
|
|
37
|
+
- Release 2.5.0 [Alin Voinea - [`b633e0c`](https://github.com/eea/volto-eea-website-policy/commit/b633e0c77705290c5a2d9645efdaa3e7a288e819)]
|
|
7
38
|
### [2.4.1](https://github.com/eea/volto-eea-website-policy/compare/2.4.0...2.4.1) - 2 June 2025
|
|
8
39
|
|
|
9
40
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -54,6 +54,15 @@ const applyConfig = (config) => {
|
|
|
54
54
|
// #160689 Redirect contact-form to contact-us
|
|
55
55
|
config.settings.contactForm = '/en/about/contact-us';
|
|
56
56
|
|
|
57
|
+
if (__SERVER__) {
|
|
58
|
+
const devsource = __DEVELOPMENT__
|
|
59
|
+
? ` http://localhost:${parseInt(process.env.PORT || '3000') + 1}`
|
|
60
|
+
: '';
|
|
61
|
+
config.settings.serverConfig.csp = {
|
|
62
|
+
'script-src': `'self' {nonce}${devsource}`,
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
57
66
|
// #137187 Keycloak integration
|
|
58
67
|
if (runtimeConfig['RAZZLE_KEYCLOAK'] === 'Yes') {
|
|
59
68
|
config.settings.externalRoutes = [
|
|
@@ -108,6 +117,34 @@ const applyConfig = (config) => {
|
|
|
108
117
|
rolesWhoCanChangeLayout: ['Manager'],
|
|
109
118
|
};
|
|
110
119
|
|
|
120
|
+
// mega menu layout settings
|
|
121
|
+
config.settings.menuItemsLayouts = {
|
|
122
|
+
'/en/topics': {
|
|
123
|
+
menuItemChildrenListColumns: [1, 4],
|
|
124
|
+
menuItemColumns: [
|
|
125
|
+
'at-a-glance three wide column',
|
|
126
|
+
'topics-right-column nine wide column',
|
|
127
|
+
],
|
|
128
|
+
hideChildrenFromNavigation: false,
|
|
129
|
+
},
|
|
130
|
+
'/en/countries': {
|
|
131
|
+
menuItemColumns: ['eight wide column', 'four wide column'],
|
|
132
|
+
menuItemChildrenListColumns: [5, 2],
|
|
133
|
+
appendExtraMenuItemsToLastColumn: true,
|
|
134
|
+
hideChildrenFromNavigation: false,
|
|
135
|
+
},
|
|
136
|
+
'/en/about': {
|
|
137
|
+
hideChildrenFromNavigation: false,
|
|
138
|
+
},
|
|
139
|
+
'/en/ghg-knowledge-hub': {
|
|
140
|
+
hideChildrenFromNavigation: false,
|
|
141
|
+
},
|
|
142
|
+
// if you want to set default settings for all menu items that don't have a specific path
|
|
143
|
+
// '*': {
|
|
144
|
+
// hideChildrenFromNavigation: false,
|
|
145
|
+
// },
|
|
146
|
+
};
|
|
147
|
+
|
|
111
148
|
// Add groups
|
|
112
149
|
config.blocks.groupBlocksOrder = appendGroup(
|
|
113
150
|
config,
|