@eeacms/volto-eea-website-theme 1.8.2 → 1.9.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,6 +4,23 @@ 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.9.0](https://github.com/eea/volto-eea-website-theme/compare/1.8.2...1.9.0) - 21 February 2023
|
8
|
+
|
9
|
+
#### :rocket: New Features
|
10
|
+
|
11
|
+
- feat(contact-form): Redirect to config.settings.contactForm - refs #160689 [Alin Voinea - [`8d93c76`](https://github.com/eea/volto-eea-website-theme/commit/8d93c76f022d0036a43ff1564189dc49530ca4e1)]
|
12
|
+
|
13
|
+
#### :bug: Bug Fixes
|
14
|
+
|
15
|
+
- fix(dropdown): navigation of links when using the keyboard only [David Ichim - [`1d97367`](https://github.com/eea/volto-eea-website-theme/commit/1d973671a2941ebb1463ba65ae6bbee5447edf1a)]
|
16
|
+
|
17
|
+
#### :nail_care: Enhancements
|
18
|
+
|
19
|
+
- change(language): hide language dropdown by default on eea-website-theme [David Ichim - [`23ba000`](https://github.com/eea/volto-eea-website-theme/commit/23ba000e7c8998c5f1a6f706f706027e95abeb84)]
|
20
|
+
|
21
|
+
#### :hammer_and_wrench: Others
|
22
|
+
|
23
|
+
- Release 1.9.0 [Alin Voinea - [`895e0ae`](https://github.com/eea/volto-eea-website-theme/commit/895e0ae0f6174976a5ad4965274bfebb2c65433f)]
|
7
24
|
### [1.8.2](https://github.com/eea/volto-eea-website-theme/compare/1.8.1...1.8.2) - 14 February 2023
|
8
25
|
|
9
26
|
#### :rocket: New Features
|
@@ -126,7 +143,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
126
143
|
|
127
144
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
128
145
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
129
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
130
146
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
131
147
|
|
132
148
|
#### :hammer_and_wrench: Others
|
@@ -160,7 +176,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
160
176
|
|
161
177
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
162
178
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
163
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
164
179
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
165
180
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
166
181
|
|
@@ -170,7 +185,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
170
185
|
|
171
186
|
#### :hammer_and_wrench: Others
|
172
187
|
|
173
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
174
188
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
175
189
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
176
190
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
@@ -179,9 +193,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
179
193
|
|
180
194
|
- feat(Footer): Bring back footer contacts extra actions - refs #151856 [Alin Voinea - [`6c19413`](https://github.com/eea/volto-eea-website-theme/commit/6c194139420c9fd847692d180db1c1593e2483de)]
|
181
195
|
|
182
|
-
#### :hammer_and_wrench: Others
|
183
|
-
|
184
|
-
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
185
196
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
186
197
|
|
187
198
|
#### :rocket: New Features
|
@@ -222,7 +233,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
222
233
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
223
234
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
224
235
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
225
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
226
236
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
227
237
|
|
228
238
|
#### :nail_care: Enhancements
|
@@ -270,7 +280,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
270
280
|
|
271
281
|
#### :hammer_and_wrench: Others
|
272
282
|
|
273
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
274
283
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
275
284
|
|
276
285
|
#### :hammer_and_wrench: Others
|
@@ -538,7 +547,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
538
547
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
539
548
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
540
549
|
- 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)]
|
541
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
542
550
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
543
551
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
544
552
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -580,5 +588,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
580
588
|
|
581
589
|
#### :hammer_and_wrench: Others
|
582
590
|
|
583
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
584
591
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/package.json
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
import React, { Component } from 'react';
|
2
|
+
import { UniversalLink } from '@plone/volto/components';
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
4
|
+
import { Container } from 'semantic-ui-react';
|
5
|
+
import config from '@plone/volto/registry';
|
6
|
+
|
7
|
+
export class ContactFormComponent extends Component {
|
8
|
+
componentDidMount() {
|
9
|
+
if (config.settings.contactForm) {
|
10
|
+
this.props.history.replace(config.settings.contactForm);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
render() {
|
15
|
+
const remoteUrl = config.settings.contactForm;
|
16
|
+
return (
|
17
|
+
<Container id="page-document">
|
18
|
+
<p>
|
19
|
+
<FormattedMessage id="Contact us:" defaultMessage="Contact us:" />{' '}
|
20
|
+
<UniversalLink href={remoteUrl}>{remoteUrl}</UniversalLink>
|
21
|
+
</p>
|
22
|
+
</Container>
|
23
|
+
);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
export default ContactFormComponent;
|
@@ -101,10 +101,9 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
101
101
|
className=""
|
102
102
|
viewportWidth={width}
|
103
103
|
>
|
104
|
+
{/* eslint-disable-next-line jsx-a11y/no-static-element-interactions */}
|
104
105
|
<div
|
105
106
|
className="content"
|
106
|
-
role="menu"
|
107
|
-
tabIndex="0"
|
108
107
|
onClick={(evt) => evt.stopPropagation()}
|
109
108
|
onKeyDown={(evt) => evt.stopPropagation()}
|
110
109
|
>
|
@@ -116,8 +115,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
116
115
|
href="https://europa.eu/european-union/contact/institutions-bodies_en"
|
117
116
|
target="_blank"
|
118
117
|
rel="noreferrer"
|
119
|
-
|
120
|
-
aria-selected="false"
|
118
|
+
onKeyDown={(evt) => evt.stopPropagation()}
|
121
119
|
>
|
122
120
|
See all EU institutions and bodies
|
123
121
|
</a>
|
@@ -140,6 +138,7 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
140
138
|
className="site"
|
141
139
|
target="_blank"
|
142
140
|
rel="noreferrer"
|
141
|
+
onKeyDown={(evt) => evt.stopPropagation()}
|
143
142
|
>
|
144
143
|
{item.title}
|
145
144
|
</a>
|
@@ -154,7 +153,10 @@ const EEAHeader = ({ pathname, token, items, history, subsite }) => {
|
|
154
153
|
<Header.TopDropdownMenu
|
155
154
|
id="language-switcher"
|
156
155
|
className="item"
|
157
|
-
hasLanguageDropdown={
|
156
|
+
hasLanguageDropdown={
|
157
|
+
config.settings.supportedLanguages.length > 1 &&
|
158
|
+
config.settings.hasLanguageDropdown
|
159
|
+
}
|
158
160
|
text={`${language.toUpperCase()}`}
|
159
161
|
mobileText={`${language.toUpperCase()}`}
|
160
162
|
icon={
|
package/src/index.js
CHANGED
@@ -20,6 +20,9 @@ const applyConfig = (config) => {
|
|
20
20
|
...(config.settings.eea || {}),
|
21
21
|
};
|
22
22
|
|
23
|
+
// #160689 Redirect contact-form to contact-us
|
24
|
+
config.settings.contactForm = '/contact';
|
25
|
+
|
23
26
|
// Insert scripts on Error pages
|
24
27
|
if (config.settings?.serverConfig?.extractScripts) {
|
25
28
|
config.settings.serverConfig.extractScripts.errorPages = true;
|
@@ -115,6 +118,9 @@ const applyConfig = (config) => {
|
|
115
118
|
// Custom block-style colors
|
116
119
|
config.settings.available_colors = eea.colors;
|
117
120
|
|
121
|
+
// hide language dropdown by default
|
122
|
+
config.settings.hasLanguageDropdown = false;
|
123
|
+
|
118
124
|
// Site theme colors
|
119
125
|
config.settings.themeColors = [
|
120
126
|
{ value: undefined, title: 'No theme' },
|