@eeacms/volto-eea-website-theme 0.7.3 → 0.7.5
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 +16 -0
- package/package.json +1 -1
- package/src/config.js +37 -0
- package/src/customizations/@eeacms/volto-block-style/StyleWrapper/schema.js +24 -0
- package/src/index.js +3 -0
- package/src/middleware/voltoCustom.js +3 -7
- package/src/customizations/@eeacms/volto-block-style/StyleWrapper/EEAColorscheme.js +0 -38
package/CHANGELOG.md
CHANGED
@@ -4,6 +4,22 @@ 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
|
+
### [0.7.5](https://github.com/eea/volto-eea-website-theme/compare/0.7.4...0.7.5) - 27 September 2022
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix(block-style): Keep only Preset styles - refs #148213 [Alin Voinea - [`d372a7d`](https://github.com/eea/volto-eea-website-theme/commit/d372a7ddf6b4bd1820a5abcd3ea90f65a2932e52)]
|
12
|
+
|
13
|
+
### [0.7.4](https://github.com/eea/volto-eea-website-theme/compare/0.7.3...0.7.4) - 27 September 2022
|
14
|
+
|
15
|
+
#### :bug: Bug Fixes
|
16
|
+
|
17
|
+
- fix(voltoCustom.css): Better handle missing file on backend [Alin Voinea - [`679dcc8`](https://github.com/eea/volto-eea-website-theme/commit/679dcc8cbc94dcadec9e7b8c68f654d2d135186f)]
|
18
|
+
- fix(voltoCustom.css): resource.get(header) [Alin Voinea - [`708de42`](https://github.com/eea/volto-eea-website-theme/commit/708de42309043c72aea702acaa4a580cd0caea0f)]
|
19
|
+
|
20
|
+
#### :hammer_and_wrench: Others
|
21
|
+
|
22
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
7
23
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
8
24
|
|
9
25
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -247,3 +247,40 @@ export const defaultLanguage = 'en';
|
|
247
247
|
export const websiteTitle = 'Site';
|
248
248
|
export const organisationName = 'European Environment Agency';
|
249
249
|
export const logoTargetUrl = '/';
|
250
|
+
|
251
|
+
export const colors = [
|
252
|
+
// Primary & shades
|
253
|
+
'#007B6C',
|
254
|
+
'#005248',
|
255
|
+
'#007B6C',
|
256
|
+
'#00A390',
|
257
|
+
'#00CCB4',
|
258
|
+
'#00F5D8',
|
259
|
+
'#85FFF1',
|
260
|
+
'#C8FFF8',
|
261
|
+
// Secondary & shades
|
262
|
+
'#004B7F',
|
263
|
+
'#003052',
|
264
|
+
'#004B7F',
|
265
|
+
'#006BB8',
|
266
|
+
'#0083E0',
|
267
|
+
'#0A99FF',
|
268
|
+
'#47B3FF',
|
269
|
+
'#A0D7FF',
|
270
|
+
// Tertiary & shades
|
271
|
+
'#2E3E4C',
|
272
|
+
'#3D5265',
|
273
|
+
'#4C677F',
|
274
|
+
'#6989A5',
|
275
|
+
'#8EA6C2',
|
276
|
+
'#ACCAE5',
|
277
|
+
'#DAE8F4',
|
278
|
+
// Black & White shades
|
279
|
+
'#000000',
|
280
|
+
'#323232',
|
281
|
+
'#67696b',
|
282
|
+
'#BCBEC0',
|
283
|
+
'#E6E7E8',
|
284
|
+
'#F9F9F9',
|
285
|
+
'#FFFFFF',
|
286
|
+
];
|
@@ -0,0 +1,24 @@
|
|
1
|
+
export const StyleSchema = () => {
|
2
|
+
return {
|
3
|
+
title: 'Styles',
|
4
|
+
fieldsets: [
|
5
|
+
{
|
6
|
+
id: 'default',
|
7
|
+
title: 'Default',
|
8
|
+
fields: [],
|
9
|
+
},
|
10
|
+
{
|
11
|
+
id: 'presets',
|
12
|
+
title: 'Preset styles',
|
13
|
+
fields: ['style_name'],
|
14
|
+
},
|
15
|
+
],
|
16
|
+
properties: {
|
17
|
+
style_name: {
|
18
|
+
title: 'Style',
|
19
|
+
widget: 'style_select',
|
20
|
+
},
|
21
|
+
},
|
22
|
+
required: [],
|
23
|
+
};
|
24
|
+
};
|
package/src/index.js
CHANGED
@@ -13,19 +13,15 @@ function voltoCustomMiddleware(req, res, next) {
|
|
13
13
|
.then((resource) => {
|
14
14
|
// Just forward the headers that we need
|
15
15
|
HEADERS.forEach((header) => {
|
16
|
-
if (resource
|
16
|
+
if (resource?.get?.(header)) {
|
17
17
|
res.set(header, resource.get(header));
|
18
18
|
}
|
19
19
|
});
|
20
20
|
res.status(resource.statusCode);
|
21
21
|
res.send(resource.body);
|
22
22
|
})
|
23
|
-
.catch((
|
24
|
-
|
25
|
-
if (resource.get(header)) {
|
26
|
-
res.set(header, resource.get(header));
|
27
|
-
}
|
28
|
-
});
|
23
|
+
.catch(() => {
|
24
|
+
res.set('Content-Type', 'text/css; charset=utf-8');
|
29
25
|
res.status(200);
|
30
26
|
res.send(
|
31
27
|
'/* Override this by adding a File called voltoCustom.css to backend at portal_skins/custom/manage_main */',
|
@@ -1,38 +0,0 @@
|
|
1
|
-
const updatedEEAColorcheme = [
|
2
|
-
// Primary & shades
|
3
|
-
'#007B6C',
|
4
|
-
'#005248',
|
5
|
-
'#007B6C',
|
6
|
-
'#00A390',
|
7
|
-
'#00CCB4',
|
8
|
-
'#00F5D8',
|
9
|
-
'#85FFF1',
|
10
|
-
'#C8FFF8',
|
11
|
-
// Secondary & shades
|
12
|
-
'#004B7F',
|
13
|
-
'#003052',
|
14
|
-
'#004B7F',
|
15
|
-
'#006BB8',
|
16
|
-
'#0083E0',
|
17
|
-
'#0A99FF',
|
18
|
-
'#47B3FF',
|
19
|
-
'#A0D7FF',
|
20
|
-
// Tertiary & shades
|
21
|
-
'#2E3E4C',
|
22
|
-
'#3D5265',
|
23
|
-
'#4C677F',
|
24
|
-
'#6989A5',
|
25
|
-
'#8EA6C2',
|
26
|
-
'#ACCAE5',
|
27
|
-
'#DAE8F4',
|
28
|
-
// Black & White shades
|
29
|
-
'#000000',
|
30
|
-
'#323232',
|
31
|
-
'#67696b',
|
32
|
-
'#BCBEC0',
|
33
|
-
'#E6E7E8',
|
34
|
-
'#F9F9F9',
|
35
|
-
'#FFFFFF',
|
36
|
-
];
|
37
|
-
|
38
|
-
export default updatedEEAColorcheme;
|