@eeacms/volto-eea-website-theme 1.9.2 → 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,11 @@ 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)]
7
12
  ### [1.9.2](https://github.com/eea/volto-eea-website-theme/compare/1.9.1...1.9.2) - 7 March 2023
8
13
 
9
14
  #### :rocket: New Features
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "1.9.2",
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-alpha.15",
25
+ "@eeacms/volto-eea-design-system": "^1.0.0-beta.5",
26
26
  "volto-subsites": "*"
27
27
  },
28
28
  "devDependencies": {
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
+ }