@eeacms/volto-eea-website-theme 1.24.2 → 1.25.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 +20 -16
- package/README.md +19 -15
- package/locales/de/LC_MESSAGES/volto.po +10 -0
- package/locales/en/LC_MESSAGES/volto.po +10 -0
- package/locales/it/LC_MESSAGES/volto.po +10 -0
- package/locales/ro/LC_MESSAGES/volto.po +10 -0
- package/locales/volto.pot +11 -1
- package/package.json +1 -1
- package/src/components/theme/Banner/View.jsx +1 -1
- package/src/customizations/volto/components/manage/Sidebar/README.md +9 -0
- package/src/customizations/volto/components/manage/Sidebar/SidebarPopup.jsx +82 -0
- package/src/customizations/volto/components/theme/PasswordReset/RequestPasswordReset.jsx +41 -0
package/CHANGELOG.md
CHANGED
@@ -4,6 +4,26 @@ 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.25.0](https://github.com/eea/volto-eea-website-theme/compare/1.24.3...1.25.0) - 12 December 2023
|
8
|
+
|
9
|
+
#### :bug: Bug Fixes
|
10
|
+
|
11
|
+
- fix: customize SidebarPopup volto component [Miu Razvan - [`0bdf736`](https://github.com/eea/volto-eea-website-theme/commit/0bdf736045509938ad562b26c8c87f040c7994e4)]
|
12
|
+
|
13
|
+
#### :house: Documentation changes
|
14
|
+
|
15
|
+
- docs: Update Sidbar customizations README [Alin Voinea - [`7a39ac0`](https://github.com/eea/volto-eea-website-theme/commit/7a39ac0b74aaa0e8f4d0d77d7b6718f297979228)]
|
16
|
+
- docs: Add Sidebar customizations README [Alin Voinea - [`dd220bd`](https://github.com/eea/volto-eea-website-theme/commit/dd220bd4b977320860392a7637b441a41354936d)]
|
17
|
+
|
18
|
+
#### :hammer_and_wrench: Others
|
19
|
+
|
20
|
+
- Release 1.25.0 [Alin Voinea - [`ed2083b`](https://github.com/eea/volto-eea-website-theme/commit/ed2083b6dc1150c6d030f988fbfd94103777844e)]
|
21
|
+
### [1.24.3](https://github.com/eea/volto-eea-website-theme/compare/1.24.2...1.24.3) - 5 December 2023
|
22
|
+
|
23
|
+
#### :rocket: New Features
|
24
|
+
|
25
|
+
- feat: modify the password reset page - refs #259024 [ana-oprea - [`966e441`](https://github.com/eea/volto-eea-website-theme/commit/966e44163b43f8d41535617f0bb491210465751e)]
|
26
|
+
|
7
27
|
### [1.24.2](https://github.com/eea/volto-eea-website-theme/compare/1.24.1...1.24.2) - 4 December 2023
|
8
28
|
|
9
29
|
#### :bug: Bug Fixes
|
@@ -40,11 +60,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
40
60
|
- test: Add real image to cypress test [Alin Voinea - [`4ff591a`](https://github.com/eea/volto-eea-website-theme/commit/4ff591ae3318c9588b4e2114582c0fa6cfdf31ae)]
|
41
61
|
- test: Add cypress tests for Image block styling position and align [Alin Voinea - [`7341ef7`](https://github.com/eea/volto-eea-website-theme/commit/7341ef7b92714fc0cc3ab0c31c39033e7b3e19e7)]
|
42
62
|
- Revert "change(tests): commented out rss test since title block config is missing" [Alin Voinea - [`fb61191`](https://github.com/eea/volto-eea-website-theme/commit/fb611918d6ca380b89b594f283dcf9f685a4b294)]
|
43
|
-
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`6a3be30`](https://github.com/eea/volto-eea-website-theme/commit/6a3be3092589411af7808a235f76de5222fd3868)]
|
44
|
-
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`c3978f2`](https://github.com/eea/volto-eea-website-theme/commit/c3978f23375ef066e9fd6f6c2e34ba6c1c058f69)]
|
45
|
-
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`f672779`](https://github.com/eea/volto-eea-website-theme/commit/f672779e845bec9240ccc901e9f53ec80c5a1819)]
|
46
|
-
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`ae5d8e3`](https://github.com/eea/volto-eea-website-theme/commit/ae5d8e3f4e04dc2808d47ce2ee886e1b23b528da)]
|
47
|
-
- test: [JENKINS] Improve cypress time [valentinab25 - [`170ff0c`](https://github.com/eea/volto-eea-website-theme/commit/170ff0c8e3b30e69479bdf1117e811fea94f1027)]
|
48
63
|
### [1.23.0](https://github.com/eea/volto-eea-website-theme/compare/1.22.1...1.23.0) - 2 November 2023
|
49
64
|
|
50
65
|
#### :rocket: New Features
|
@@ -57,7 +72,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
57
72
|
|
58
73
|
#### :house: Internal changes
|
59
74
|
|
60
|
-
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`f28fce3`](https://github.com/eea/volto-eea-website-theme/commit/f28fce3d1eb815f95fb9aa40de42b10b7e8e30c5)]
|
61
75
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`6d15088`](https://github.com/eea/volto-eea-website-theme/commit/6d150886c5aeb2ca0b569270486e60f7cc274e2c)]
|
62
76
|
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`20c0323`](https://github.com/eea/volto-eea-website-theme/commit/20c032380b33c0077c869a05136f93e2fb68e5d4)]
|
63
77
|
|
@@ -243,7 +257,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
243
257
|
|
244
258
|
#### :house: Internal changes
|
245
259
|
|
246
|
-
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`370dcbf`](https://github.com/eea/volto-eea-website-theme/commit/370dcbfbf1a8135ce7b1b3b271b004552a631837)]
|
247
260
|
|
248
261
|
#### :hammer_and_wrench: Others
|
249
262
|
|
@@ -399,7 +412,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
399
412
|
|
400
413
|
#### :hammer_and_wrench: Others
|
401
414
|
|
402
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6c5e2f8`](https://github.com/eea/volto-eea-website-theme/commit/6c5e2f80456e2061d9e9c15fd0a0b91b9ac70568)]
|
403
415
|
### [1.9.1](https://github.com/eea/volto-eea-website-theme/compare/1.9.0...1.9.1) - 28 February 2023
|
404
416
|
|
405
417
|
#### :bug: Bug Fixes
|
@@ -546,7 +558,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
546
558
|
|
547
559
|
- For some reasons types is a string [Alin Voinea - [`3769a09`](https://github.com/eea/volto-eea-website-theme/commit/3769a0981181d5b633f3498daebbe96be8b4b833)]
|
548
560
|
- Fix(redirect): o.filter - refs #157627 [Alin Voinea - [`deb23da`](https://github.com/eea/volto-eea-website-theme/commit/deb23da846444cc96539697fd798429ae0abe89e)]
|
549
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`f1fffc5`](https://github.com/eea/volto-eea-website-theme/commit/f1fffc5db96725440863d545580b4e76cce4b796)]
|
550
561
|
### [1.5.0](https://github.com/eea/volto-eea-website-theme/compare/1.4.2...1.5.0) - 9 January 2023
|
551
562
|
|
552
563
|
#### :hammer_and_wrench: Others
|
@@ -580,7 +591,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
580
591
|
|
581
592
|
- Release 1.4.0 [Alin Voinea - [`bd42a0d`](https://github.com/eea/volto-eea-website-theme/commit/bd42a0d26e928cac5d99933194755da3db06b341)]
|
582
593
|
- bump version to use as volto-eea-design-system [David Ichim - [`f4be047`](https://github.com/eea/volto-eea-website-theme/commit/f4be047328b46399b03b612d378b18aaf82e7dc1)]
|
583
|
-
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`9b7cfef`](https://github.com/eea/volto-eea-website-theme/commit/9b7cfefb4d34fc1c948015e491feb370f9795bd8)]
|
584
594
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`df252a9`](https://github.com/eea/volto-eea-website-theme/commit/df252a9bfed0bb86cadf53c59dd1603b1e2cd822)]
|
585
595
|
### [1.3.2](https://github.com/eea/volto-eea-website-theme/compare/1.3.1...1.3.2) - 16 December 2022
|
586
596
|
|
@@ -590,7 +600,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
590
600
|
|
591
601
|
#### :hammer_and_wrench: Others
|
592
602
|
|
593
|
-
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`a43c658`](https://github.com/eea/volto-eea-website-theme/commit/a43c658a7920c8df95e763b9a637f38ce77eba2c)]
|
594
603
|
- Better razzle.config [Tiberiu Ichim - [`81dbf48`](https://github.com/eea/volto-eea-website-theme/commit/81dbf48815fb27facb4f82c9b764540fdf188b2e)]
|
595
604
|
- Better razzle.config [Tiberiu Ichim - [`7bc9da2`](https://github.com/eea/volto-eea-website-theme/commit/7bc9da2cd837ab62a95cd29979cdd9b0055b7d67)]
|
596
605
|
### [1.3.1](https://github.com/eea/volto-eea-website-theme/compare/1.3.0...1.3.1) - 28 November 2022
|
@@ -601,7 +610,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
601
610
|
|
602
611
|
#### :hammer_and_wrench: Others
|
603
612
|
|
604
|
-
- yarn 3 [Alin Voinea - [`ea7a709`](https://github.com/eea/volto-eea-website-theme/commit/ea7a7094945312776e9b6f44e371178603e92139)]
|
605
613
|
### [1.3.0](https://github.com/eea/volto-eea-website-theme/compare/1.2.0...1.3.0) - 22 November 2022
|
606
614
|
|
607
615
|
#### :rocket: New Features
|
@@ -642,7 +650,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
642
650
|
- Add subsite class to body [Tiberiu Ichim - [`74d700f`](https://github.com/eea/volto-eea-website-theme/commit/74d700fbfd6249a8604762a7e4e49cce857db0f3)]
|
643
651
|
- Add subsite info to header [Tiberiu Ichim - [`47daf8b`](https://github.com/eea/volto-eea-website-theme/commit/47daf8bb6374a1222040626b19d4154df7ba1b83)]
|
644
652
|
- fix eslint [Miu Razvan - [`eb8d0a7`](https://github.com/eea/volto-eea-website-theme/commit/eb8d0a790bc70c0aae256c6ff35f63c4885f338e)]
|
645
|
-
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`cc578a4`](https://github.com/eea/volto-eea-website-theme/commit/cc578a413b205a8e61e091fab3a88f94cedefc89)]
|
646
653
|
### [1.1.0](https://github.com/eea/volto-eea-website-theme/compare/1.0.0...1.1.0) - 28 October 2022
|
647
654
|
|
648
655
|
#### :nail_care: Enhancements
|
@@ -690,7 +697,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
690
697
|
|
691
698
|
#### :hammer_and_wrench: Others
|
692
699
|
|
693
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`33b56ac`](https://github.com/eea/volto-eea-website-theme/commit/33b56acb13fbaf0c5b79e8fc6e13c4b699c79c90)]
|
694
700
|
### [0.7.3](https://github.com/eea/volto-eea-website-theme/compare/0.7.2...0.7.3) - 22 September 2022
|
695
701
|
|
696
702
|
#### :hammer_and_wrench: Others
|
@@ -958,7 +964,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
958
964
|
- Header refactor, add custom logo #5 [ichim-david - [`4950235`](https://github.com/eea/volto-eea-website-theme/commit/49502358105437cfeac3b144e6d301cb59aa2346)]
|
959
965
|
- Update footer.config with new publication card component [ichim-david - [`2e38e9a`](https://github.com/eea/volto-eea-website-theme/commit/2e38e9a417f835009d60c80d4eb4b30229f55e45)]
|
960
966
|
- 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)]
|
961
|
-
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`da8ceb6`](https://github.com/eea/volto-eea-website-theme/commit/da8ceb68ea68bfbc9504e48ccd4d68277f11ab9a)]
|
962
967
|
- use breadcrumbs from eea-design-system [nileshgulia1 - [`db2f9e9`](https://github.com/eea/volto-eea-website-theme/commit/db2f9e9a4327420a3cce9a9903cd88549b129eab)]
|
963
968
|
- Update theme.config [ichim-david - [`8eca4f4`](https://github.com/eea/volto-eea-website-theme/commit/8eca4f40397a4aeca6d39029c92db78968d37064)]
|
964
969
|
- Added keyContent component to theme.config [ichim-david - [`d86f202`](https://github.com/eea/volto-eea-website-theme/commit/d86f202d0274d839487a88b51cae9a0e899beb23)]
|
@@ -1000,5 +1005,4 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
1000
1005
|
|
1001
1006
|
#### :hammer_and_wrench: Others
|
1002
1007
|
|
1003
|
-
- yarn bootstrap [Alin Voinea - [`6995e9e`](https://github.com/eea/volto-eea-website-theme/commit/6995e9e091f21fdbbdffa8a44fc0e2c626f6d46a)]
|
1004
1008
|
- Initial commit [Alin Voinea - [`6a9c03a`](https://github.com/eea/volto-eea-website-theme/commit/6a9c03a7cebe71ca87e82cf58c42904063e9d8d3)]
|
package/README.md
CHANGED
@@ -25,6 +25,10 @@ EEA Website [Volto](https://github.com/plone/volto) Theme
|
|
25
25
|
See [Docusaurus](https://eea.github.io/).
|
26
26
|
See [Storybook](https://eea.github.io/eea-storybook/).
|
27
27
|
|
28
|
+
## Volto customizations
|
29
|
+
|
30
|
+
- `volto/components/manage/Sidebar/SidebarPopup` -> https://github.com/plone/volto/pull/5520
|
31
|
+
|
28
32
|
## Getting started
|
29
33
|
|
30
34
|
### Try volto-eea-website-theme with Docker
|
@@ -46,25 +50,25 @@ Go to http://localhost:3000
|
|
46
50
|
|
47
51
|
1. Start Volto frontend
|
48
52
|
|
49
|
-
|
53
|
+
- If you already have a volto project, just update `package.json`:
|
50
54
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
+
```JSON
|
56
|
+
"addons": [
|
57
|
+
"@eeacms/volto-eea-website-theme"
|
58
|
+
],
|
55
59
|
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
+
"dependencies": {
|
61
|
+
"@eeacms/volto-eea-website-theme": "*"
|
62
|
+
}
|
63
|
+
```
|
60
64
|
|
61
|
-
|
65
|
+
- If not, create one:
|
62
66
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
67
|
+
```
|
68
|
+
npm install -g yo @plone/generator-volto
|
69
|
+
yo @plone/volto my-volto-project --canary --addon @eeacms/volto-eea-website-theme
|
70
|
+
cd my-volto-project
|
71
|
+
```
|
68
72
|
|
69
73
|
1. Install new add-ons and restart Volto:
|
70
74
|
|
@@ -26,6 +26,11 @@ msgstr ""
|
|
26
26
|
msgid "European Environment Agency"
|
27
27
|
msgstr ""
|
28
28
|
|
29
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
+
# defaultMessage: Invalid block - Will be removed on saving
|
31
|
+
msgid "Invalid Block"
|
32
|
+
msgstr ""
|
33
|
+
|
29
34
|
#: components/theme/Banner/View
|
30
35
|
# defaultMessage: Modified
|
31
36
|
msgid "Modified"
|
@@ -56,6 +61,11 @@ msgstr ""
|
|
56
61
|
msgid "Type the title…"
|
57
62
|
msgstr ""
|
58
63
|
|
64
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
+
# defaultMessage: Unknown Block {block}
|
66
|
+
msgid "Unknown Block"
|
67
|
+
msgstr ""
|
68
|
+
|
59
69
|
#: components/theme/Banner/View
|
60
70
|
# defaultMessage: RSS Feed
|
61
71
|
msgid "rssFeed"
|
@@ -26,6 +26,11 @@ msgstr ""
|
|
26
26
|
msgid "European Environment Agency"
|
27
27
|
msgstr ""
|
28
28
|
|
29
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
+
# defaultMessage: Invalid block - Will be removed on saving
|
31
|
+
msgid "Invalid Block"
|
32
|
+
msgstr ""
|
33
|
+
|
29
34
|
#: components/theme/Banner/View
|
30
35
|
# defaultMessage: Modified
|
31
36
|
msgid "Modified"
|
@@ -56,6 +61,11 @@ msgstr ""
|
|
56
61
|
msgid "Type the title…"
|
57
62
|
msgstr ""
|
58
63
|
|
64
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
+
# defaultMessage: Unknown Block {block}
|
66
|
+
msgid "Unknown Block"
|
67
|
+
msgstr ""
|
68
|
+
|
59
69
|
#: components/theme/Banner/View
|
60
70
|
# defaultMessage: RSS Feed
|
61
71
|
msgid "rssFeed"
|
@@ -26,6 +26,11 @@ msgstr ""
|
|
26
26
|
msgid "European Environment Agency"
|
27
27
|
msgstr ""
|
28
28
|
|
29
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
+
# defaultMessage: Invalid block - Will be removed on saving
|
31
|
+
msgid "Invalid Block"
|
32
|
+
msgstr ""
|
33
|
+
|
29
34
|
#: components/theme/Banner/View
|
30
35
|
# defaultMessage: Modified
|
31
36
|
msgid "Modified"
|
@@ -56,6 +61,11 @@ msgstr ""
|
|
56
61
|
msgid "Type the title…"
|
57
62
|
msgstr ""
|
58
63
|
|
64
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
+
# defaultMessage: Unknown Block {block}
|
66
|
+
msgid "Unknown Block"
|
67
|
+
msgstr ""
|
68
|
+
|
59
69
|
#: components/theme/Banner/View
|
60
70
|
# defaultMessage: RSS Feed
|
61
71
|
msgid "rssFeed"
|
@@ -26,6 +26,11 @@ msgstr ""
|
|
26
26
|
msgid "European Environment Agency"
|
27
27
|
msgstr ""
|
28
28
|
|
29
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
30
|
+
# defaultMessage: Invalid block - Will be removed on saving
|
31
|
+
msgid "Invalid Block"
|
32
|
+
msgstr ""
|
33
|
+
|
29
34
|
#: components/theme/Banner/View
|
30
35
|
# defaultMessage: Modified
|
31
36
|
msgid "Modified"
|
@@ -56,6 +61,11 @@ msgstr ""
|
|
56
61
|
msgid "Type the title…"
|
57
62
|
msgstr ""
|
58
63
|
|
64
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
65
|
+
# defaultMessage: Unknown Block {block}
|
66
|
+
msgid "Unknown Block"
|
67
|
+
msgstr ""
|
68
|
+
|
59
69
|
#: components/theme/Banner/View
|
60
70
|
# defaultMessage: RSS Feed
|
61
71
|
msgid "rssFeed"
|
package/locales/volto.pot
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
msgid ""
|
2
2
|
msgstr ""
|
3
3
|
"Project-Id-Version: Plone\n"
|
4
|
-
"POT-Creation-Date: 2023-
|
4
|
+
"POT-Creation-Date: 2023-12-05T09:30:23.741Z\n"
|
5
5
|
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
6
6
|
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
|
7
7
|
"MIME-Version: 1.0\n"
|
@@ -28,6 +28,11 @@ msgstr ""
|
|
28
28
|
msgid "European Environment Agency"
|
29
29
|
msgstr ""
|
30
30
|
|
31
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
32
|
+
# defaultMessage: Invalid block - Will be removed on saving
|
33
|
+
msgid "Invalid Block"
|
34
|
+
msgstr ""
|
35
|
+
|
31
36
|
#: components/theme/Banner/View
|
32
37
|
# defaultMessage: Modified
|
33
38
|
msgid "Modified"
|
@@ -58,6 +63,11 @@ msgstr ""
|
|
58
63
|
msgid "Type the title…"
|
59
64
|
msgstr ""
|
60
65
|
|
66
|
+
#: components/manage/Blocks/GroupBlockTemplate/FlexGroup/RenderBlocks
|
67
|
+
# defaultMessage: Unknown Block {block}
|
68
|
+
msgid "Unknown Block"
|
69
|
+
msgstr ""
|
70
|
+
|
61
71
|
#: components/theme/Banner/View
|
62
72
|
# defaultMessage: RSS Feed
|
63
73
|
msgid "rssFeed"
|
package/package.json
CHANGED
@@ -0,0 +1,82 @@
|
|
1
|
+
// Check this https://github.com/plone/volto/pull/5520
|
2
|
+
import React from 'react';
|
3
|
+
import { Portal } from 'react-portal';
|
4
|
+
import { CSSTransition } from 'react-transition-group';
|
5
|
+
import PropTypes from 'prop-types';
|
6
|
+
import { doesNodeContainClick } from 'semantic-ui-react/dist/commonjs/lib';
|
7
|
+
|
8
|
+
const DEFAULT_TIMEOUT = 500;
|
9
|
+
|
10
|
+
const SidebarPopup = (props) => {
|
11
|
+
const { children, open, onClose, overlay } = props;
|
12
|
+
|
13
|
+
const asideElement = React.useRef();
|
14
|
+
|
15
|
+
const handleClickOutside = (e) => {
|
16
|
+
if (asideElement && doesNodeContainClick(asideElement.current, e)) return;
|
17
|
+
onClose();
|
18
|
+
};
|
19
|
+
|
20
|
+
React.useEffect(() => {
|
21
|
+
document.addEventListener('mousedown', handleClickOutside, false);
|
22
|
+
return () => {
|
23
|
+
document.removeEventListener('mousedown', handleClickOutside, false);
|
24
|
+
};
|
25
|
+
});
|
26
|
+
|
27
|
+
return (
|
28
|
+
<>
|
29
|
+
{overlay && (
|
30
|
+
<CSSTransition
|
31
|
+
in={open}
|
32
|
+
timeout={DEFAULT_TIMEOUT}
|
33
|
+
classNames="overlay-container"
|
34
|
+
unmountOnExit
|
35
|
+
>
|
36
|
+
<Portal node={document?.body}>
|
37
|
+
<div className="overlay-container"></div>
|
38
|
+
</Portal>
|
39
|
+
</CSSTransition>
|
40
|
+
)}
|
41
|
+
<CSSTransition
|
42
|
+
in={open}
|
43
|
+
timeout={DEFAULT_TIMEOUT}
|
44
|
+
classNames="sidebar-container"
|
45
|
+
unmountOnExit
|
46
|
+
>
|
47
|
+
<Portal>
|
48
|
+
<aside
|
49
|
+
id="test"
|
50
|
+
role="presentation"
|
51
|
+
onClick={(e) => {
|
52
|
+
e.stopPropagation();
|
53
|
+
}}
|
54
|
+
onKeyDown={(e) => {
|
55
|
+
e.stopPropagation();
|
56
|
+
}}
|
57
|
+
ref={asideElement}
|
58
|
+
key="sidebarpopup"
|
59
|
+
className="sidebar-container"
|
60
|
+
style={{ overflowY: 'auto' }}
|
61
|
+
>
|
62
|
+
{children}
|
63
|
+
</aside>
|
64
|
+
</Portal>
|
65
|
+
</CSSTransition>
|
66
|
+
</>
|
67
|
+
);
|
68
|
+
};
|
69
|
+
|
70
|
+
SidebarPopup.propTypes = {
|
71
|
+
open: PropTypes.bool,
|
72
|
+
onClose: PropTypes.func,
|
73
|
+
overlay: PropTypes.bool,
|
74
|
+
};
|
75
|
+
|
76
|
+
SidebarPopup.defaultProps = {
|
77
|
+
open: false,
|
78
|
+
onClose: () => {},
|
79
|
+
overlay: false,
|
80
|
+
};
|
81
|
+
|
82
|
+
export default SidebarPopup;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { Container } from 'semantic-ui-react';
|
3
|
+
import { FormattedMessage } from 'react-intl';
|
4
|
+
|
5
|
+
function RequestPasswordReset() {
|
6
|
+
return (
|
7
|
+
<Container id="passwordreset">
|
8
|
+
<h1 className="documentFirstHeading">
|
9
|
+
<FormattedMessage id="Lost Password" defaultMessage="Lost Password" />
|
10
|
+
</h1>
|
11
|
+
<p className="documentDescription">
|
12
|
+
<div>
|
13
|
+
<FormattedMessage
|
14
|
+
id="For security reasons, we store your password encrypted, and cannot mail it to you. If you would like to reset your password, fill out the form below and we will send you an email at the address you gave when you registered to start the process of resetting your password."
|
15
|
+
defaultMessage="For security reasons, we store your password encrypted, and cannot mail it to you. If you would like to reset your password, fill out the form below and we will send you an email at the address you gave when you registered to start the process of resetting your password."
|
16
|
+
/>
|
17
|
+
</div>
|
18
|
+
</p>
|
19
|
+
<div className="documentContent">
|
20
|
+
<p>
|
21
|
+
<FormattedMessage
|
22
|
+
id="To reset your password visit {link}."
|
23
|
+
defaultMessage="To reset your password visit {link}."
|
24
|
+
values={{
|
25
|
+
link: (
|
26
|
+
<a href="https://www.eionet.europa.eu/password-reset">
|
27
|
+
<FormattedMessage
|
28
|
+
id="Reset Eionet account password page"
|
29
|
+
defaultMessage="Reset Eionet account password page"
|
30
|
+
/>
|
31
|
+
</a>
|
32
|
+
),
|
33
|
+
}}
|
34
|
+
/>
|
35
|
+
</p>
|
36
|
+
</div>
|
37
|
+
</Container>
|
38
|
+
);
|
39
|
+
}
|
40
|
+
|
41
|
+
export default RequestPasswordReset;
|