@eeacms/volto-cca-policy 0.2.2 → 0.2.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 +15 -0
- package/README.md +0 -58
- package/package.json +1 -1
- package/src/components/manage/Blocks/RASTBlock/RASTMap.jsx +9 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ 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.2.3](https://github.com/eea/volto-cca-policy/compare/0.2.2...0.2.3) - 11 April 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Change readme [Tiberiu Ichim - [`b1b5fc5`](https://github.com/eea/volto-cca-policy/commit/b1b5fc5d878a2843db04904186268cdd6f530d4c)]
|
|
12
|
+
- Refs #260715 - rast check folder skip update skip null [Tripon Eugen - [`e17794f`](https://github.com/eea/volto-cca-policy/commit/e17794f9f202133f64862178995fbb32ef737d50)]
|
|
13
|
+
- Refs #260715 - rast check folder skip update [Tripon Eugen - [`4548818`](https://github.com/eea/volto-cca-policy/commit/45488183008e274c3d2523315028c57ae6e37c6e)]
|
|
7
14
|
### [0.2.2](https://github.com/eea/volto-cca-policy/compare/0.2.1...0.2.2) - 10 April 2024
|
|
8
15
|
|
|
9
16
|
#### :house: Internal changes
|
|
@@ -873,10 +880,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
873
880
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
874
881
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
875
882
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
883
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
884
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
876
885
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
877
886
|
|
|
878
887
|
#### :house: Internal changes
|
|
879
888
|
|
|
889
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
880
890
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
881
891
|
|
|
882
892
|
#### :hammer_and_wrench: Others
|
|
@@ -893,6 +903,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
893
903
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
894
904
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
895
905
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
906
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
907
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
908
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
896
909
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
897
910
|
- Refs #256681 - Fix error in CCA Event view menu. ([React Intl] An id must be provided to format a message.) [GhitaB - [`517eeb8`](https://github.com/eea/volto-cca-policy/commit/517eeb817264a47bbfd6b9b7d22aaf22d44ed224)]
|
|
898
911
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -1109,6 +1122,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1109
1122
|
|
|
1110
1123
|
#### :house: Internal changes
|
|
1111
1124
|
|
|
1125
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
1112
1126
|
|
|
1113
1127
|
#### :hammer_and_wrench: Others
|
|
1114
1128
|
|
|
@@ -1589,6 +1603,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1589
1603
|
#### :hammer_and_wrench: Others
|
|
1590
1604
|
|
|
1591
1605
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
1606
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
1592
1607
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
1593
1608
|
|
|
1594
1609
|
#### :hammer_and_wrench: Others
|
package/README.md
CHANGED
|
@@ -14,65 +14,8 @@
|
|
|
14
14
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
|
|
15
15
|
[](https://sonarqube.eea.europa.eu/dashboard?id=volto-cca-policy-develop)
|
|
16
16
|
|
|
17
|
-
|
|
18
17
|
[Volto](https://github.com/plone/volto) add-on
|
|
19
18
|
|
|
20
|
-
## Features
|
|
21
|
-
|
|
22
|
-
Demo GIF
|
|
23
|
-
|
|
24
|
-
## Getting started
|
|
25
|
-
|
|
26
|
-
### Try volto-cca-policy with Docker
|
|
27
|
-
|
|
28
|
-
git clone https://github.com/eea/volto-cca-policy.git
|
|
29
|
-
cd volto-cca-policy
|
|
30
|
-
make
|
|
31
|
-
make start
|
|
32
|
-
|
|
33
|
-
Go to http://localhost:3000
|
|
34
|
-
|
|
35
|
-
### Add volto-cca-policy to your Volto project
|
|
36
|
-
|
|
37
|
-
1. Make sure you have a [Plone backend](https://plone.org/download) up-and-running at http://localhost:8080/Plone
|
|
38
|
-
|
|
39
|
-
```Bash
|
|
40
|
-
docker compose up backend
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
1. Start Volto frontend
|
|
44
|
-
|
|
45
|
-
* If you already have a volto project, just update `package.json`:
|
|
46
|
-
|
|
47
|
-
```JSON
|
|
48
|
-
"addons": [
|
|
49
|
-
"@eeacms/volto-cca-policy"
|
|
50
|
-
],
|
|
51
|
-
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"@eeacms/volto-cca-policy": "*"
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
* If not, create one:
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
npm install -g yo @plone/generator-volto
|
|
61
|
-
yo @plone/volto my-volto-project --canary --addon @eeacms/volto-cca-policy
|
|
62
|
-
cd my-volto-project
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
1. Install new add-ons and restart Volto:
|
|
66
|
-
|
|
67
|
-
```
|
|
68
|
-
yarn
|
|
69
|
-
yarn start
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
1. Go to http://localhost:3000
|
|
73
|
-
|
|
74
|
-
1. Happy editing!
|
|
75
|
-
|
|
76
19
|
## Release
|
|
77
20
|
|
|
78
21
|
See [RELEASE.md](https://github.com/eea/volto-cca-policy/blob/master/RELEASE.md).
|
|
@@ -96,4 +39,3 @@ don-template/blob/master/LICENSE.md) for details.
|
|
|
96
39
|
## Funding
|
|
97
40
|
|
|
98
41
|
[European Environment Agency (EU)](http://eea.europa.eu)
|
|
99
|
-
|
package/package.json
CHANGED
|
@@ -23,11 +23,16 @@ export default function RASTMap(props) {
|
|
|
23
23
|
|
|
24
24
|
const items = props.items;
|
|
25
25
|
let data = skip_items.split(',');
|
|
26
|
-
let
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let currentMenu = activeMenu;
|
|
27
|
+
if (activeMenu !== null && data.includes(activeMenu.toString())) {
|
|
28
|
+
currentMenu = -1;
|
|
29
|
+
} else {
|
|
30
|
+
let activeMenuMinus = 0;
|
|
31
|
+
for (let i = 0; i < data.length; i++) {
|
|
32
|
+
if (data[i].length && data[i] <= activeMenu) activeMenuMinus++;
|
|
33
|
+
}
|
|
34
|
+
currentMenu -= activeMenuMinus;
|
|
29
35
|
}
|
|
30
|
-
let currentMenu = activeMenu - activeMenuMinus;
|
|
31
36
|
|
|
32
37
|
return (
|
|
33
38
|
<div className="rast-map-block">
|