@eeacms/volto-eea-website-policy 2.8.0 → 3.0.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
CHANGED
|
@@ -4,15 +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
|
-
### [
|
|
7
|
+
### [3.0.0](https://github.com/eea/volto-eea-website-policy/compare/2.8.0...3.0.0) - 23 December 2025
|
|
8
8
|
|
|
9
9
|
#### :rocket: New Features
|
|
10
10
|
|
|
11
|
-
- feat:
|
|
11
|
+
- feat: Release 3.0.0 - enable language menu and drop Plone 4 redirects [Alin Voinea - [`66e232a`](https://github.com/eea/volto-eea-website-policy/commit/66e232a1665f5989051ce7251fbe613fb5a5992c)]
|
|
12
|
+
- feat: Enable language dropdown, remove Plone 4 external routes, use english mega menu for all languages - refs #294286 [Alin Voinea - [`3459fef`](https://github.com/eea/volto-eea-website-policy/commit/3459fefabf78866c8c7a49b3940c969c8bd2938b)]
|
|
12
13
|
|
|
13
14
|
#### :hammer_and_wrench: Others
|
|
14
15
|
|
|
15
|
-
|
|
16
|
+
### [2.8.0](https://github.com/eea/volto-eea-website-policy/compare/2.7.0...2.8.0) - 4 December 2025
|
|
17
|
+
|
|
18
|
+
#### :rocket: New Features
|
|
19
|
+
|
|
20
|
+
- feat: Custom ErrorView - refs #291209 [Nilesh - [`842a21b`](https://github.com/eea/volto-eea-website-policy/commit/842a21b2ae439c61ef30c12a6636feb09a8ddd2e)]
|
|
21
|
+
|
|
16
22
|
### [2.7.0](https://github.com/eea/volto-eea-website-policy/compare/2.6.0...2.7.0) - 3 December 2025
|
|
17
23
|
|
|
18
24
|
#### :rocket: New Features
|
|
@@ -11,4 +11,12 @@ msgstr ""
|
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
|
12
12
|
"Plural-Forms: \n"
|
|
13
13
|
|
|
14
|
+
#. Default: "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
15
|
+
#: components/ErrorView/ErrorView
|
|
16
|
+
msgid "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
17
|
+
msgstr ""
|
|
14
18
|
|
|
19
|
+
#. Default: "Our apologies, our website is not available at the moment."
|
|
20
|
+
#: components/ErrorView/ErrorView
|
|
21
|
+
msgid "Our apologies, our website is not available at the moment."
|
|
22
|
+
msgstr ""
|
|
@@ -11,4 +11,12 @@ msgstr ""
|
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
|
12
12
|
"Plural-Forms: \n"
|
|
13
13
|
|
|
14
|
+
#. Default: "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
15
|
+
#: components/ErrorView/ErrorView
|
|
16
|
+
msgid "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
17
|
+
msgstr ""
|
|
14
18
|
|
|
19
|
+
#. Default: "Our apologies, our website is not available at the moment."
|
|
20
|
+
#: components/ErrorView/ErrorView
|
|
21
|
+
msgid "Our apologies, our website is not available at the moment."
|
|
22
|
+
msgstr ""
|
|
@@ -11,4 +11,12 @@ msgstr ""
|
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
|
12
12
|
"Plural-Forms: \n"
|
|
13
13
|
|
|
14
|
+
#. Default: "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
15
|
+
#: components/ErrorView/ErrorView
|
|
16
|
+
msgid "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
17
|
+
msgstr ""
|
|
14
18
|
|
|
19
|
+
#. Default: "Our apologies, our website is not available at the moment."
|
|
20
|
+
#: components/ErrorView/ErrorView
|
|
21
|
+
msgid "Our apologies, our website is not available at the moment."
|
|
22
|
+
msgstr ""
|
|
@@ -11,4 +11,12 @@ msgstr ""
|
|
|
11
11
|
"Content-Transfer-Encoding: \n"
|
|
12
12
|
"Plural-Forms: \n"
|
|
13
13
|
|
|
14
|
+
#. Default: "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
15
|
+
#: components/ErrorView/ErrorView
|
|
16
|
+
msgid "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
17
|
+
msgstr ""
|
|
14
18
|
|
|
19
|
+
#. Default: "Our apologies, our website is not available at the moment."
|
|
20
|
+
#: components/ErrorView/ErrorView
|
|
21
|
+
msgid "Our apologies, our website is not available at the moment."
|
|
22
|
+
msgstr ""
|
package/locales/volto.pot
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
msgid ""
|
|
2
2
|
msgstr ""
|
|
3
3
|
"Project-Id-Version: Plone\n"
|
|
4
|
-
"POT-Creation-Date:
|
|
4
|
+
"POT-Creation-Date: 2025-12-04T19:37:35.684Z\n"
|
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
|
7
7
|
"Content-Type: text/plain; charset=utf-8\n"
|
|
@@ -13,9 +13,12 @@ msgstr ""
|
|
|
13
13
|
"Preferred-Encodings: utf-8\n"
|
|
14
14
|
"Domain: volto\n"
|
|
15
15
|
|
|
16
|
-
#. Default: "
|
|
17
|
-
#: components/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
#. Default: "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
17
|
+
#: components/ErrorView/ErrorView
|
|
18
|
+
msgid "If this problem persists Contact EEA Web Team (web.helpdesk at eea.europa.eu)"
|
|
19
|
+
msgstr ""
|
|
20
|
+
|
|
21
|
+
#. Default: "Our apologies, our website is not available at the moment."
|
|
22
|
+
#: components/ErrorView/ErrorView
|
|
23
|
+
msgid "Our apologies, our website is not available at the moment."
|
|
21
24
|
msgstr ""
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { runtimeConfig } from '@plone/volto/runtime_config';
|
|
2
1
|
import { appendGroup, getAsyncData } from './helpers';
|
|
3
2
|
import { FrequencyOfDissemination } from '@eeacms/volto-eea-website-policy/components/Widgets/FrequencyOfDissemination';
|
|
4
3
|
import ErrorView from '@eeacms/volto-eea-website-policy/components/ErrorView/ErrorView';
|
|
@@ -38,20 +37,6 @@ const overrideBlocks = {
|
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
const applyConfig = (config) => {
|
|
41
|
-
// #158717#note-25 any path that isn't static, en or controlpanel is treated as external
|
|
42
|
-
const notInEN =
|
|
43
|
-
/^(?!(#|\/en|\/login-authomatic|\/personal-information|\/azure_login|\/fallback_login|\/static|\/controlpanel|\/cypress|\/login|\/logout|\/contact-form|\/passwordreset)).*$/;
|
|
44
|
-
config.settings.externalRoutes = [
|
|
45
|
-
...(config.settings.externalRoutes || []),
|
|
46
|
-
{
|
|
47
|
-
match: {
|
|
48
|
-
path: notInEN,
|
|
49
|
-
exact: false,
|
|
50
|
-
strict: false,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
];
|
|
54
|
-
|
|
55
40
|
// #160689 Redirect contact-form to contact-us
|
|
56
41
|
config.settings.contactForm = '/en/about/contact-us';
|
|
57
42
|
|
|
@@ -64,33 +49,15 @@ const applyConfig = (config) => {
|
|
|
64
49
|
};
|
|
65
50
|
}
|
|
66
51
|
|
|
52
|
+
// #293749 Language dropdown
|
|
53
|
+
config.settings.hasLanguageDropdown = true;
|
|
54
|
+
|
|
67
55
|
//This only works if the component is wrapped in ErrorBoundary from volto
|
|
68
56
|
config.registerComponent({
|
|
69
57
|
name: 'ErrorBoundary',
|
|
70
58
|
component: ErrorView,
|
|
71
59
|
});
|
|
72
60
|
|
|
73
|
-
// #137187 Keycloak integration
|
|
74
|
-
if (runtimeConfig['RAZZLE_KEYCLOAK'] === 'Yes') {
|
|
75
|
-
config.settings.externalRoutes = [
|
|
76
|
-
...(config.settings.externalRoutes || []),
|
|
77
|
-
{
|
|
78
|
-
match: {
|
|
79
|
-
path: '/login',
|
|
80
|
-
exact: true,
|
|
81
|
-
strict: false,
|
|
82
|
-
},
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
match: {
|
|
86
|
-
path: '/logout',
|
|
87
|
-
exact: true,
|
|
88
|
-
strict: false,
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
];
|
|
92
|
-
}
|
|
93
|
-
|
|
94
61
|
if (config.blocks.blocksConfig.embed_static_content) {
|
|
95
62
|
//prepopulate data for SSR particularly for history diffs
|
|
96
63
|
config.blocks.blocksConfig.embed_static_content.getAsyncData = getAsyncData;
|
|
@@ -108,7 +75,13 @@ const applyConfig = (config) => {
|
|
|
108
75
|
config.settings.isMultilingual = true;
|
|
109
76
|
config.settings.defaultLanguage =
|
|
110
77
|
config.settings.eea?.defaultLanguage || 'en';
|
|
111
|
-
|
|
78
|
+
|
|
79
|
+
config.settings.supportedLanguages = config.settings.eea?.languages?.map(
|
|
80
|
+
(item) => item.code,
|
|
81
|
+
) || ['en'];
|
|
82
|
+
|
|
83
|
+
config.settings.navigationLanguage = 'en';
|
|
84
|
+
|
|
112
85
|
// Disable languages #158616
|
|
113
86
|
// config.settings.eea?.languages?.map(
|
|
114
87
|
// (item) => item.code,
|