@eeacms/volto-eea-website-theme 1.18.1 → 1.19.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 +18 -12
- package/DEVELOP.md +56 -0
- package/README.md +13 -0
- package/docker-compose.yml +28 -0
- package/locales/de/LC_MESSAGES/volto.po +14 -0
- package/locales/it/LC_MESSAGES/volto.po +14 -0
- package/locales/ro/LC_MESSAGES/volto.po +14 -0
- package/locales/volto.pot +16 -0
- package/package.json +1 -1
- package/src/components/theme/Widgets/TokenWidget.jsx +2 -2
- package/src/components/theme/Widgets/{ThemesWidget.jsx → TopicsWidget.jsx} +4 -4
- package/src/index.js +43 -3
- package/.i18n.babel.config.js +0 -1
package/CHANGELOG.md
CHANGED
@@ -4,11 +4,27 @@ 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.
|
7
|
+
### [1.19.0](https://github.com/eea/volto-eea-website-theme/compare/1.18.1...1.19.0) - 17 August 2023
|
8
8
|
|
9
9
|
#### :bug: Bug Fixes
|
10
10
|
|
11
|
-
- fix:
|
11
|
+
- fix(filter): switch arrows for closed and opened states as before the refactoring [David Ichim - [`e228390`](https://github.com/eea/volto-eea-website-theme/commit/e228390bdcd675360b9edd61b550dc1c382d7010)]
|
12
|
+
- fix: align token widget to EEA DS - refs #256406 [Alin Voinea - [`f936549`](https://github.com/eea/volto-eea-website-theme/commit/f9365495b7ffb748429751c47ecc70daa33a25af)]
|
13
|
+
|
14
|
+
#### :nail_care: Enhancements
|
15
|
+
|
16
|
+
- refactor: Rename ThemesWidget to TopicsWidget and register it on topics id - refs #256408 [Alin Voinea - [`7648b3d`](https://github.com/eea/volto-eea-website-theme/commit/7648b3d47f1a59a5f570465503014792b3f8ed85)]
|
17
|
+
|
18
|
+
#### :house: Documentation changes
|
19
|
+
|
20
|
+
- docs: Cleanup Makefile, update DEVELOP documentation, i18n - refs #254894 [valentinab25 - [`5e25196`](https://github.com/eea/volto-eea-website-theme/commit/5e2519698c2720e36e63723879518d972fcaad7a)]
|
21
|
+
|
22
|
+
#### :hammer_and_wrench: Others
|
23
|
+
|
24
|
+
- bump package release version [David Ichim - [`19ecef9`](https://github.com/eea/volto-eea-website-theme/commit/19ecef9a61025fc7b3095d09aff62c67d3e36b36)]
|
25
|
+
- Undo previous commit [laszlocseh - [`65db1ac`](https://github.com/eea/volto-eea-website-theme/commit/65db1acef78ecbc0a72add0bef01a5deb7cd4051)]
|
26
|
+
- Added renderLinkElement to volto-slate/editor/render.jsx customization [laszlocseh - [`21799ec`](https://github.com/eea/volto-eea-website-theme/commit/21799ecd2dca868ebcdd4c8e12b56207f1a578ac)]
|
27
|
+
### [1.18.1](https://github.com/eea/volto-eea-website-theme/compare/1.18.0...1.18.1) - 26 June 2023
|
12
28
|
|
13
29
|
### [1.18.0](https://github.com/eea/volto-eea-website-theme/compare/1.17.2...1.18.0) - 20 June 2023
|
14
30
|
|
@@ -93,7 +109,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
93
109
|
|
94
110
|
#### :house: Internal changes
|
95
111
|
|
96
|
-
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
97
112
|
|
98
113
|
#### :hammer_and_wrench: Others
|
99
114
|
|
@@ -249,7 +264,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
249
264
|
|
250
265
|
#### :hammer_and_wrench: Others
|
251
266
|
|
252
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
253
267
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
254
268
|
|
255
269
|
#### :bug: Bug Fixes
|
@@ -396,7 +410,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
396
410
|
|
397
411
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
398
412
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
399
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
400
413
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
401
414
|
|
402
415
|
#### :hammer_and_wrench: Others
|
@@ -430,7 +443,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
430
443
|
|
431
444
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
432
445
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
433
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
434
446
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
435
447
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
436
448
|
|
@@ -440,7 +452,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
440
452
|
|
441
453
|
#### :hammer_and_wrench: Others
|
442
454
|
|
443
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
444
455
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
445
456
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
446
457
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
@@ -451,7 +462,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
451
462
|
|
452
463
|
#### :hammer_and_wrench: Others
|
453
464
|
|
454
|
-
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
455
465
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
456
466
|
|
457
467
|
#### :rocket: New Features
|
@@ -492,7 +502,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
492
502
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
493
503
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
494
504
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
495
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
496
505
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
497
506
|
|
498
507
|
#### :nail_care: Enhancements
|
@@ -540,7 +549,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
540
549
|
|
541
550
|
#### :hammer_and_wrench: Others
|
542
551
|
|
543
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
544
552
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
545
553
|
|
546
554
|
#### :hammer_and_wrench: Others
|
@@ -808,7 +816,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
808
816
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
809
817
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
810
818
|
- 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)]
|
811
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
812
819
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
813
820
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
814
821
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -850,5 +857,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
850
857
|
|
851
858
|
#### :hammer_and_wrench: Others
|
852
859
|
|
853
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
854
860
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/DEVELOP.md
CHANGED
@@ -2,6 +2,28 @@
|
|
2
2
|
|
3
3
|
## Develop
|
4
4
|
|
5
|
+
1. Make sure you have `docker` and `docker compose` installed and running on your machine:
|
6
|
+
|
7
|
+
```Bash
|
8
|
+
git clone https://github.com/eea/volto-eea-website-theme.git
|
9
|
+
cd volto-eea-website-theme
|
10
|
+
git checkout -b bugfix-123456 develop
|
11
|
+
make
|
12
|
+
make start
|
13
|
+
```
|
14
|
+
|
15
|
+
1. Wait for `Volto started at 0.0.0.0:3000` meesage
|
16
|
+
|
17
|
+
1. Go to http://localhost:3000
|
18
|
+
|
19
|
+
1. Happy hacking!
|
20
|
+
|
21
|
+
```Bash
|
22
|
+
cd src/addons/volto-eea-website-theme/
|
23
|
+
```
|
24
|
+
|
25
|
+
### Or add @eeacms/volto-eea-website-theme to your Volto project
|
26
|
+
|
5
27
|
Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
|
6
28
|
|
7
29
|
1. Make sure you have installed `yo`, `@plone/generator-volto` and `mrs-developer`
|
@@ -49,3 +71,37 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
49
71
|
1. Happy hacking!
|
50
72
|
|
51
73
|
cd src/addons/volto-eea-website-theme/
|
74
|
+
|
75
|
+
## Cypress
|
76
|
+
|
77
|
+
To run cypress locally, first make sure you don't have any Volto/Plone running on ports `8080` and `3000`.
|
78
|
+
|
79
|
+
You don't have to be in a `clean-volto-project`, you can be in any Volto Frontend
|
80
|
+
project where you added `volto-eea-website-theme` to `mrs.developer.json`
|
81
|
+
|
82
|
+
Go to:
|
83
|
+
|
84
|
+
```BASH
|
85
|
+
cd src/addons/volto-eea-website-theme/
|
86
|
+
```
|
87
|
+
|
88
|
+
Start:
|
89
|
+
|
90
|
+
```Bash
|
91
|
+
make
|
92
|
+
make start
|
93
|
+
```
|
94
|
+
|
95
|
+
This will build and start with Docker a clean `Plone backend` and `Volto Frontend` with `volto-eea-website-theme` block installed.
|
96
|
+
|
97
|
+
Open Cypress Interface:
|
98
|
+
|
99
|
+
```Bash
|
100
|
+
make cypress-open
|
101
|
+
```
|
102
|
+
|
103
|
+
Or run it:
|
104
|
+
|
105
|
+
```Bash
|
106
|
+
make cypress-run
|
107
|
+
```
|
package/README.md
CHANGED
@@ -23,10 +23,23 @@ EEA Website [Volto](https://github.com/plone/volto) Theme
|
|
23
23
|
|
24
24
|
## Getting started
|
25
25
|
|
26
|
+
### Try volto-eea-website-theme with Docker
|
27
|
+
|
28
|
+
git clone https://github.com/eea/volto-eea-website-theme.git
|
29
|
+
cd volto-eea-website-theme
|
30
|
+
make
|
31
|
+
make start
|
32
|
+
|
33
|
+
Go to http://localhost:3000
|
34
|
+
|
26
35
|
### Add volto-eea-website-theme to your Volto project
|
27
36
|
|
28
37
|
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
29
38
|
|
39
|
+
```Bash
|
40
|
+
docker compose up backend
|
41
|
+
```
|
42
|
+
|
30
43
|
1. Start Volto frontend
|
31
44
|
|
32
45
|
* If you already have a volto project, just update `package.json`:
|
@@ -0,0 +1,28 @@
|
|
1
|
+
version: "3"
|
2
|
+
services:
|
3
|
+
backend:
|
4
|
+
image: plone/plone-backend:${PLONE_VERSION:-6}
|
5
|
+
ports:
|
6
|
+
- "8080:8080"
|
7
|
+
environment:
|
8
|
+
SITE: "Plone"
|
9
|
+
|
10
|
+
frontend:
|
11
|
+
build:
|
12
|
+
context: ./
|
13
|
+
dockerfile: ./Dockerfile
|
14
|
+
args:
|
15
|
+
ADDON_NAME: "${ADDON_NAME}"
|
16
|
+
ADDON_PATH: "${ADDON_PATH}"
|
17
|
+
VOLTO_VERSION: ${VOLTO_VERSION:-16}
|
18
|
+
ports:
|
19
|
+
- "3000:3000"
|
20
|
+
- "3001:3001"
|
21
|
+
depends_on:
|
22
|
+
- backend
|
23
|
+
volumes:
|
24
|
+
- ./:/app/src/addons/${ADDON_PATH}
|
25
|
+
environment:
|
26
|
+
RAZZLE_INTERNAL_API_PATH: "http://backend:8080/Plone"
|
27
|
+
RAZZLE_DEV_PROXY_API_PATH: "http://backend:8080/Plone"
|
28
|
+
HOST: "0.0.0.0"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
msgid ""
|
2
|
+
msgstr ""
|
3
|
+
"Project-Id-Version: \n"
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
5
|
+
"POT-Creation-Date: \n"
|
6
|
+
"PO-Revision-Date: \n"
|
7
|
+
"Last-Translator: \n"
|
8
|
+
"Language: \n"
|
9
|
+
"Language-Team: \n"
|
10
|
+
"Content-Type: \n"
|
11
|
+
"Content-Transfer-Encoding: \n"
|
12
|
+
"Plural-Forms: \n"
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
msgid ""
|
2
|
+
msgstr ""
|
3
|
+
"Project-Id-Version: \n"
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
5
|
+
"POT-Creation-Date: \n"
|
6
|
+
"PO-Revision-Date: \n"
|
7
|
+
"Last-Translator: \n"
|
8
|
+
"Language: \n"
|
9
|
+
"Language-Team: \n"
|
10
|
+
"Content-Type: \n"
|
11
|
+
"Content-Transfer-Encoding: \n"
|
12
|
+
"Plural-Forms: \n"
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
msgid ""
|
2
|
+
msgstr ""
|
3
|
+
"Project-Id-Version: \n"
|
4
|
+
"Report-Msgid-Bugs-To: \n"
|
5
|
+
"POT-Creation-Date: \n"
|
6
|
+
"PO-Revision-Date: \n"
|
7
|
+
"Last-Translator: \n"
|
8
|
+
"Language: \n"
|
9
|
+
"Language-Team: \n"
|
10
|
+
"Content-Type: \n"
|
11
|
+
"Content-Transfer-Encoding: \n"
|
12
|
+
"Plural-Forms: \n"
|
13
|
+
|
14
|
+
|
package/locales/volto.pot
CHANGED
@@ -0,0 +1,16 @@
|
|
1
|
+
msgid ""
|
2
|
+
msgstr ""
|
3
|
+
"Project-Id-Version: Plone\n"
|
4
|
+
"POT-Creation-Date: 2023-06-28T10:48:22.678Z\n"
|
5
|
+
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
6
|
+
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
7
|
+
"MIME-Version: 1.0\n"
|
8
|
+
"Content-Type: text/plain; charset=utf-8\n"
|
9
|
+
"Content-Transfer-Encoding: 8bit\n"
|
10
|
+
"Plural-Forms: nplurals=1; plural=0;\n"
|
11
|
+
"Language-Code: en\n"
|
12
|
+
"Language-Name: English\n"
|
13
|
+
"Preferred-Encodings: utf-8\n"
|
14
|
+
"Domain: volto\n"
|
15
|
+
|
16
|
+
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@ import Tag from '@eeacms/volto-eea-design-system/ui/Tag/Tag';
|
|
4
4
|
|
5
5
|
export const TokenWidget = ({ value, children, className }) =>
|
6
6
|
value ? (
|
7
|
-
<
|
7
|
+
<div className={cx(className, 'token', 'widget', 'tags-content')}>
|
8
8
|
{value.map((tag) => (
|
9
9
|
<Tag
|
10
10
|
href={`https://www.eea.europa.eu/en/advanced-search?q=${tag}`}
|
@@ -13,7 +13,7 @@ export const TokenWidget = ({ value, children, className }) =>
|
|
13
13
|
{children ? children(tag) : tag}
|
14
14
|
</Tag>
|
15
15
|
))}
|
16
|
-
</
|
16
|
+
</div>
|
17
17
|
) : (
|
18
18
|
''
|
19
19
|
);
|
@@ -2,18 +2,18 @@ import React from 'react';
|
|
2
2
|
import cx from 'classnames';
|
3
3
|
import Tag from '@eeacms/volto-eea-design-system/ui/Tag/Tag';
|
4
4
|
|
5
|
-
export const
|
5
|
+
export const TopicsWidget = ({ value, children, className }) => {
|
6
6
|
return value ? (
|
7
|
-
<
|
7
|
+
<div className={cx(className, 'token', 'widget', 'tags-content')}>
|
8
8
|
{value.map((tag) => (
|
9
9
|
<Tag
|
10
|
-
href={`https://www.eea.europa.eu/en/advanced-search?filters[0][field]=topic&filters[0][values][0]=${tag.title}&filters[0][type]=any&filters[1][field]=language&filters[1][type]=any&filters[1][values][0]=en&sort-field=issued.date&sort-direction=desc`}
|
10
|
+
href={`https://www.eea.europa.eu/en/advanced-search?filters[0][field]=topic&filters[0][values][0]=${tag.title}&filters[0][type]=any&filters[1][field]=language&filters[1][type]=any&filters[1][values][0]=en&filters[2][field]=issued.date&filters[2][values][0]=Last 5 years&filters[2][type]=any&sort-field=issued.date&sort-direction=desc`}
|
11
11
|
key={tag.token}
|
12
12
|
>
|
13
13
|
{children ? children(tag.title) : tag.title}
|
14
14
|
</Tag>
|
15
15
|
))}
|
16
|
-
</
|
16
|
+
</div>
|
17
17
|
) : (
|
18
18
|
''
|
19
19
|
);
|
package/src/index.js
CHANGED
@@ -7,7 +7,7 @@ import CustomCSS from '@eeacms/volto-eea-website-theme/components/theme/CustomCS
|
|
7
7
|
import NotFound from '@eeacms/volto-eea-website-theme/components/theme/NotFound/NotFound';
|
8
8
|
import DraftBackground from '@eeacms/volto-eea-website-theme/components/theme/DraftBackground/DraftBackground';
|
9
9
|
import { TokenWidget } from '@eeacms/volto-eea-website-theme/components/theme/Widgets/TokenWidget';
|
10
|
-
import {
|
10
|
+
import { TopicsWidget } from '@eeacms/volto-eea-website-theme/components/theme/Widgets/TopicsWidget';
|
11
11
|
import SubsiteClass from './components/theme/SubsiteClass';
|
12
12
|
import HomePageView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageView';
|
13
13
|
import HomePageInverseView from '@eeacms/volto-eea-website-theme/components/theme/Homepage/HomePageInverseView';
|
@@ -83,7 +83,26 @@ const applyConfig = (config) => {
|
|
83
83
|
};
|
84
84
|
// Apply accordion block customization
|
85
85
|
if (config.blocks.blocksConfig.accordion) {
|
86
|
-
config.blocks.blocksConfig.accordion.
|
86
|
+
config.blocks.blocksConfig.accordion.titleIcons = {
|
87
|
+
closed: {
|
88
|
+
leftPosition: 'ri-arrow-down-s-line',
|
89
|
+
rightPosition: 'ri-arrow-down-s-line',
|
90
|
+
},
|
91
|
+
opened: {
|
92
|
+
leftPosition: 'ri-arrow-up-s-line',
|
93
|
+
rightPosition: 'ri-arrow-up-s-line',
|
94
|
+
},
|
95
|
+
unfiltered: {
|
96
|
+
leftPosition: 'ri-filter-3-line',
|
97
|
+
rightPosition: 'ri-filter-3-line',
|
98
|
+
},
|
99
|
+
filtered: {
|
100
|
+
leftPosition: 'ri-close-line',
|
101
|
+
rightPosition: 'ri-close-line',
|
102
|
+
},
|
103
|
+
iconComponent: 'SemanticIcon',
|
104
|
+
};
|
105
|
+
|
87
106
|
config.blocks.blocksConfig.accordion.options = {};
|
88
107
|
config.blocks.blocksConfig.accordion.defaults.theme = 'secondary';
|
89
108
|
}
|
@@ -113,7 +132,7 @@ const applyConfig = (config) => {
|
|
113
132
|
}
|
114
133
|
|
115
134
|
// Custom Widgets
|
116
|
-
config.widgets.views.id.
|
135
|
+
config.widgets.views.id.topics = TopicsWidget;
|
117
136
|
config.widgets.views.id.subjects = TokenWidget;
|
118
137
|
config.widgets.views.widget.tags = TokenWidget;
|
119
138
|
|
@@ -227,6 +246,27 @@ const applyConfig = (config) => {
|
|
227
246
|
},
|
228
247
|
];
|
229
248
|
|
249
|
+
// mega menu layout settings
|
250
|
+
config.settings.menuItemsLayouts = {
|
251
|
+
'/en/topics': {
|
252
|
+
menuItemChildrenListColumns: [1, 4],
|
253
|
+
menuItemColumns: [
|
254
|
+
'at-a-glance three wide column',
|
255
|
+
'topics-right-column nine wide column',
|
256
|
+
],
|
257
|
+
hideChildrenFromNavigation: false,
|
258
|
+
},
|
259
|
+
'/en/countries': {
|
260
|
+
menuItemColumns: ['eight wide column', 'four wide column'],
|
261
|
+
menuItemChildrenListColumns: [5, 2],
|
262
|
+
appendExtraMenuItemsToLastColumn: true,
|
263
|
+
hideChildrenFromNavigation: false,
|
264
|
+
},
|
265
|
+
'/en/about': {
|
266
|
+
hideChildrenFromNavigation: false,
|
267
|
+
},
|
268
|
+
};
|
269
|
+
|
230
270
|
// layout settings
|
231
271
|
config = [installLayoutSettingsBlock].reduce(
|
232
272
|
(acc, apply) => apply(acc),
|
package/.i18n.babel.config.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
module.exports = require('@plone/volto/babel');
|