@eeacms/volto-eea-website-theme 1.9.1 → 1.9.3
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,20 @@ 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.3](https://github.com/eea/volto-eea-website-theme/compare/1.9.2...1.9.3) - 10 March 2023
|
8
|
+
|
9
|
+
#### :hammer_and_wrench: Others
|
10
|
+
|
11
|
+
- test(cypress): Fix volto-eea-design-system dependency version [Alin Voinea - [`01d8461`](https://github.com/eea/volto-eea-website-theme/commit/01d8461138b64f4826fe493743d079cc79bfad5f)]
|
12
|
+
### [1.9.2](https://github.com/eea/volto-eea-website-theme/compare/1.9.1...1.9.2) - 7 March 2023
|
13
|
+
|
14
|
+
#### :rocket: New Features
|
15
|
+
|
16
|
+
- feat(SEO): Add h1 to frontpage - refs #158717 [Alin Voinea - [`16bf24a`](https://github.com/eea/volto-eea-website-theme/commit/16bf24a70c9273d73a3b8bda18d29c23d172b497)]
|
17
|
+
|
18
|
+
#### :hammer_and_wrench: Others
|
19
|
+
|
20
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
7
21
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
8
22
|
|
9
23
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@eeacms/volto-eea-website-theme",
|
3
|
-
"version": "1.9.
|
3
|
+
"version": "1.9.3",
|
4
4
|
"description": "@eeacms/volto-eea-website-theme: Volto add-on",
|
5
5
|
"main": "src/index.js",
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
"url": "git@github.com:eea/volto-eea-website-theme.git"
|
23
23
|
},
|
24
24
|
"dependencies": {
|
25
|
-
"@eeacms/volto-eea-design-system": "^1.0.0-
|
25
|
+
"@eeacms/volto-eea-design-system": "^1.0.0-beta.5",
|
26
26
|
"volto-subsites": "*"
|
27
27
|
},
|
28
28
|
"devDependencies": {
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
import React from 'react';
|
7
7
|
import PropTypes from 'prop-types';
|
8
|
-
|
9
8
|
import { DefaultView } from '@plone/volto/components/';
|
10
9
|
|
11
10
|
import { BodyClass } from '@plone/volto/helpers';
|
@@ -22,6 +21,7 @@ const HomePageInverseView = ({ content }) => {
|
|
22
21
|
return hasBlocksData(content) ? (
|
23
22
|
<>
|
24
23
|
<BodyClass className="homepage homepage-inverse" />
|
24
|
+
<h1 className="hiddenStructure">{content.title}</h1>
|
25
25
|
<DefaultView content={content} />
|
26
26
|
</>
|
27
27
|
) : null;
|
@@ -5,7 +5,6 @@
|
|
5
5
|
|
6
6
|
import React from 'react';
|
7
7
|
import PropTypes from 'prop-types';
|
8
|
-
|
9
8
|
import { DefaultView } from '@plone/volto/components/';
|
10
9
|
|
11
10
|
import { BodyClass } from '@plone/volto/helpers';
|
@@ -22,6 +21,7 @@ const HomePageView = ({ content }) => {
|
|
22
21
|
return hasBlocksData(content) ? (
|
23
22
|
<>
|
24
23
|
<BodyClass className="homepage" />
|
24
|
+
<h1 className="hiddenStructure">{content.title}</h1>
|
25
25
|
<DefaultView content={content} />
|
26
26
|
</>
|
27
27
|
) : null;
|
package/src/index.js
CHANGED
@@ -11,6 +11,7 @@ import HomePageInverseView from '@eeacms/volto-eea-website-theme/components/them
|
|
11
11
|
import { Icon } from '@plone/volto/components';
|
12
12
|
import contentBoxSVG from './icons/content-box.svg';
|
13
13
|
import voltoCustomMiddleware from './middleware/voltoCustom';
|
14
|
+
import okMiddleware from './middleware/ok';
|
14
15
|
import installSlate from './slate';
|
15
16
|
|
16
17
|
const applyConfig = (config) => {
|
@@ -83,12 +84,14 @@ const applyConfig = (config) => {
|
|
83
84
|
config.widgets.views.widget.tags = TokenWidget;
|
84
85
|
}
|
85
86
|
|
86
|
-
// voltoCustom.css express-middleware
|
87
|
+
// /voltoCustom.css express-middleware
|
88
|
+
// /ok express-middleware - see also: https://github.com/plone/volto/pull/4432
|
87
89
|
if (__SERVER__) {
|
88
90
|
const express = require('express');
|
89
91
|
config.settings.expressMiddleware = [
|
90
92
|
...(config.settings.expressMiddleware || []),
|
91
93
|
voltoCustomMiddleware(express),
|
94
|
+
okMiddleware(express),
|
92
95
|
];
|
93
96
|
}
|
94
97
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import config from '@plone/volto/registry';
|
2
|
+
|
3
|
+
const ok = function (req, res, next) {
|
4
|
+
res.type('text/plain');
|
5
|
+
res.set('Expires', 'Sat, 1 Jan 2000 00:00:00 GMT');
|
6
|
+
res.set('Cache-Control', 'max-age=0, must-revalidate, private');
|
7
|
+
res.send('ok');
|
8
|
+
};
|
9
|
+
|
10
|
+
export default function (express) {
|
11
|
+
const middleware = express.Router();
|
12
|
+
middleware.all(config?.settings?.okRoute || '/ok', ok);
|
13
|
+
middleware.id = 'ok';
|
14
|
+
return middleware;
|
15
|
+
}
|