@eeacms/volto-cca-policy 0.1.45 → 0.1.47
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 +30 -0
- package/DEVELOP.md +6 -7
- package/RELEASE.md +14 -14
- package/package.json +1 -1
- package/src/components/theme/Views/AdaptationOptionView.jsx +29 -25
- package/theme/globals/site.overrides +77 -16
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,34 @@ 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.1.47](https://github.com/eea/volto-cca-policy/compare/0.1.46...0.1.47) - 13 October 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: listing style [kreafox - [`dac5e2f`](https://github.com/eea/volto-cca-policy/commit/dac5e2f394db365844eebf763a89fba82c1efed6)]
|
|
12
|
+
|
|
13
|
+
#### :house: Internal changes
|
|
14
|
+
|
|
15
|
+
- chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`0e00baa`](https://github.com/eea/volto-cca-policy/commit/0e00baa1ec41955a44e0f9c8820862419803c75c)]
|
|
16
|
+
- style: update listing syle for summary view [kreafox - [`b7d67d9`](https://github.com/eea/volto-cca-policy/commit/b7d67d9b3ced965201abc5e5a178e35a5b8de5b3)]
|
|
17
|
+
|
|
18
|
+
#### :hammer_and_wrench: Others
|
|
19
|
+
|
|
20
|
+
- Refs #161509 - Fix adaptation option view when no ipcc category selected. [GhitaB - [`2a3ee62`](https://github.com/eea/volto-cca-policy/commit/2a3ee62fb6caeedee0d6a9268fa41e419f0045bd)]
|
|
21
|
+
### [0.1.46](https://github.com/eea/volto-cca-policy/compare/0.1.45...0.1.46) - 6 October 2023
|
|
22
|
+
|
|
23
|
+
#### :rocket: New Features
|
|
24
|
+
|
|
25
|
+
- feat: add icon for external links [kreafox - [`6cfc86b`](https://github.com/eea/volto-cca-policy/commit/6cfc86b1e15773578de3ba6f80467daf5b11b087)]
|
|
26
|
+
|
|
27
|
+
#### :nail_care: Enhancements
|
|
28
|
+
|
|
29
|
+
- change: add padding on listing summary view [kreafox - [`d86e321`](https://github.com/eea/volto-cca-policy/commit/d86e321a905dbb925847b2b0b88c20eea7da0003)]
|
|
30
|
+
|
|
31
|
+
#### :hammer_and_wrench: Others
|
|
32
|
+
|
|
33
|
+
- test: use volto version 16 [kreafox - [`a7ed678`](https://github.com/eea/volto-cca-policy/commit/a7ed678ac981213177d0377d312692b69e36c7d8)]
|
|
34
|
+
- Add style on listing view as well [kreafox - [`b741ca8`](https://github.com/eea/volto-cca-policy/commit/b741ca82a959a1261e8ec54ef0c7ecce9b8bfb15)]
|
|
7
35
|
### [0.1.45](https://github.com/eea/volto-cca-policy/compare/0.1.44...0.1.45) - 25 September 2023
|
|
8
36
|
|
|
9
37
|
#### :hammer_and_wrench: Others
|
|
@@ -182,6 +210,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
182
210
|
|
|
183
211
|
#### :house: Internal changes
|
|
184
212
|
|
|
213
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
185
214
|
|
|
186
215
|
#### :hammer_and_wrench: Others
|
|
187
216
|
|
|
@@ -662,6 +691,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
662
691
|
#### :hammer_and_wrench: Others
|
|
663
692
|
|
|
664
693
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
694
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
665
695
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
666
696
|
|
|
667
697
|
#### :hammer_and_wrench: Others
|
package/DEVELOP.md
CHANGED
|
@@ -16,12 +16,14 @@
|
|
|
16
16
|
|
|
17
17
|
1. Go to http://localhost:3000
|
|
18
18
|
|
|
19
|
-
1.
|
|
19
|
+
1. Initialize git hooks
|
|
20
20
|
|
|
21
21
|
```Bash
|
|
22
|
-
|
|
22
|
+
yarn prepare
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
+
1. Happy hacking!
|
|
26
|
+
|
|
25
27
|
### Or add @eeacms/volto-cca-policy to your Volto project
|
|
26
28
|
|
|
27
29
|
Before starting make sure your development environment is properly set. See [Volto Developer Documentation](https://docs.voltocms.com/getting-started/install/)
|
|
@@ -48,18 +50,15 @@ Before starting make sure your development environment is properly set. See [Vol
|
|
|
48
50
|
|
|
49
51
|
1. Install
|
|
50
52
|
|
|
51
|
-
|
|
53
|
+
make develop
|
|
52
54
|
yarn
|
|
53
55
|
|
|
54
56
|
1. Start backend
|
|
55
57
|
|
|
56
|
-
docker pull plone
|
|
57
|
-
docker run -d --name plone -p 8080:8080 -e SITE=Plone -e PROFILES="profile-plone.restapi:blocks" plone
|
|
58
|
+
docker run --pull always -it --rm --name plone -p 8080:8080 -e SITE=Plone plone/plone-backend
|
|
58
59
|
|
|
59
60
|
...wait for backend to setup and start - `Ready to handle requests`:
|
|
60
61
|
|
|
61
|
-
docker logs -f plone
|
|
62
|
-
|
|
63
62
|
...you can also check http://localhost:8080/Plone
|
|
64
63
|
|
|
65
64
|
1. Start frontend
|
package/RELEASE.md
CHANGED
|
@@ -20,9 +20,9 @@ You need to first install the [release-it](https://github.com/release-it/release
|
|
|
20
20
|
```
|
|
21
21
|
npm install -g release-it
|
|
22
22
|
```
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
Release-it uses the configuration written in the [`.release-it.json`](./.release-it.json) file located in the root of the repository.
|
|
25
|
-
|
|
25
|
+
|
|
26
26
|
Release-it is a tool that automates 4 important steps in the release process:
|
|
27
27
|
|
|
28
28
|
1. Version increase in `package.json` ( increased from the current version in `package.json`)
|
|
@@ -30,45 +30,45 @@ Release-it is a tool that automates 4 important steps in the release process:
|
|
|
30
30
|
3. GitHub release on the commit with the changelog and package.json modification on the develop branch
|
|
31
31
|
4. NPM release ( by default it's disabled, but can be enabled in the configuration file )
|
|
32
32
|
|
|
33
|
-
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
|
33
|
+
To configure the authentification, you need to export GITHUB_TOKEN for [GitHub](https://github.com/settings/tokens)
|
|
34
34
|
|
|
35
35
|
```
|
|
36
36
|
export GITHUB_TOKEN=XXX-XXXXXXXXXXXXXXXXXXXXXX
|
|
37
37
|
```
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
To configure npm, you can use the `npm login` command or use a configuration file with a TOKEN :
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
```
|
|
42
42
|
echo "//registry.npmjs.org/:_authToken=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY" > .npmrc
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
#### Using release-it tool
|
|
46
|
-
|
|
46
|
+
|
|
47
47
|
There are 3 yarn scripts that can be run to do the release
|
|
48
48
|
|
|
49
49
|
##### yarn release-beta
|
|
50
50
|
|
|
51
|
-
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
|
51
|
+
Automatically calculates and presents 3 beta versions - patch, minor and major for you to choose ( or Other for manual input).
|
|
52
52
|
|
|
53
53
|
```
|
|
54
|
-
? Select increment (next version):
|
|
55
|
-
❯ prepatch (0.1.1-beta.0)
|
|
56
|
-
preminor (0.2.0-beta.0)
|
|
57
|
-
premajor (1.0.0-beta.0)
|
|
58
|
-
Other, please specify...
|
|
54
|
+
? Select increment (next version):
|
|
55
|
+
❯ prepatch (0.1.1-beta.0)
|
|
56
|
+
preminor (0.2.0-beta.0)
|
|
57
|
+
premajor (1.0.0-beta.0)
|
|
58
|
+
Other, please specify...
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
##### yarn release-major-beta
|
|
62
62
|
|
|
63
63
|
Same as `yarn release-beta`, but with premajor version pre-selected.
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
##### yarn release
|
|
66
66
|
|
|
67
67
|
Generic command, does not automatically add the `beta` to version, but you can still manually write it if you choose Other.
|
|
68
68
|
|
|
69
69
|
#### Important notes
|
|
70
70
|
|
|
71
|
-
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
|
71
|
+
> Do not use release-it tool on master branch, the commit on CHANGELOG.md file and the version increase in the package.json file can't be done without a PULL REQUEST.
|
|
72
72
|
|
|
73
73
|
> Do not keep Pull Requests from develop to master branches open when you are doing beta releases from the develop branch. As long as a PR to master is open, an automatic script will run on every commit and will update both the version and the changelog to a production-ready state - ( MAJOR.MINOR.PATCH mandatory format for version).
|
|
74
74
|
|
package/package.json
CHANGED
|
@@ -136,31 +136,35 @@ function AdaptationOptionView(props) {
|
|
|
136
136
|
|
|
137
137
|
<SectionsMenu sections={usedSections} />
|
|
138
138
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
{usedSections.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
139
|
+
{content?.ipcc_category?.length > 0 && (
|
|
140
|
+
<Fragment>
|
|
141
|
+
<h4>Adaptation Details</h4>
|
|
142
|
+
|
|
143
|
+
<div id={sectionID('IPCC categories')} className="section">
|
|
144
|
+
<h5 className="section-title">IPCC categories</h5>
|
|
145
|
+
{content.ipcc_category
|
|
146
|
+
.map((item) => item.title)
|
|
147
|
+
.sort()
|
|
148
|
+
.join(', ')}
|
|
149
|
+
{usedSections.length > 0 && (
|
|
150
|
+
<>
|
|
151
|
+
{usedSections.map((data, index) => (
|
|
152
|
+
<Fragment key={index}>
|
|
153
|
+
<div id={sectionID(data.title)} className="section">
|
|
154
|
+
<h5 className="section-title">{data.title}</h5>
|
|
155
|
+
<HTMLField
|
|
156
|
+
value={content[data.field]}
|
|
157
|
+
className="long_description"
|
|
158
|
+
/>
|
|
159
|
+
</div>
|
|
160
|
+
</Fragment>
|
|
161
|
+
))}
|
|
162
|
+
</>
|
|
163
|
+
)}
|
|
164
|
+
</div>
|
|
165
|
+
<hr />
|
|
166
|
+
</Fragment>
|
|
167
|
+
)}
|
|
164
168
|
|
|
165
169
|
<h4>Reference information</h4>
|
|
166
170
|
|
|
@@ -23,6 +23,38 @@ p.has--clear--both:empty {
|
|
|
23
23
|
display: block;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// Add icon for external links
|
|
27
|
+
#page-document {
|
|
28
|
+
a[rel='noopener noreferrer']:not(.ui.button),
|
|
29
|
+
a[target='_blank']:not(.ui.button) {
|
|
30
|
+
&:before {
|
|
31
|
+
position: relative;
|
|
32
|
+
top: 2px;
|
|
33
|
+
margin-right: 3px;
|
|
34
|
+
color: inherit;
|
|
35
|
+
content: '\ecaf';
|
|
36
|
+
font-family: remixicon;
|
|
37
|
+
font-size: 1em;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&:visited {
|
|
41
|
+
&:before {
|
|
42
|
+
// fix visited link icon color
|
|
43
|
+
// doesn't work with color: inherit
|
|
44
|
+
color: @linkVisitedColor;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:active {
|
|
49
|
+
&:before {
|
|
50
|
+
// fix active link icon color
|
|
51
|
+
// doesn't work with color: inherit
|
|
52
|
+
color: @linkActiveColor;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
26
58
|
// Adaptation option view styles
|
|
27
59
|
div.adaptation-option-view,
|
|
28
60
|
div.case-study-view {
|
|
@@ -263,29 +295,58 @@ body.subsite-root.section-mission {
|
|
|
263
295
|
div.block.listing.default {
|
|
264
296
|
div.items {
|
|
265
297
|
div.listing-item {
|
|
266
|
-
h4 {
|
|
267
|
-
padding-left: 1.5em;
|
|
268
|
-
margin-bottom: 0.5em;
|
|
269
|
-
|
|
270
|
-
&:before {
|
|
271
|
-
position: absolute;
|
|
272
|
-
left: 0;
|
|
273
|
-
content: '\ea6c';
|
|
274
|
-
font-family: remixicon !important;
|
|
275
|
-
font-style: normal;
|
|
276
|
-
font-weight: normal;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
padding-bottom: 0.5em;
|
|
280
298
|
border: none;
|
|
281
|
-
margin-bottom: 0px !important;
|
|
282
299
|
}
|
|
283
|
-
|
|
300
|
+
|
|
301
|
+
.listing-body {
|
|
302
|
+
position: relative;
|
|
303
|
+
padding-left: 2em;
|
|
304
|
+
|
|
305
|
+
&:before {
|
|
306
|
+
position: absolute;
|
|
307
|
+
top: -5px;
|
|
308
|
+
left: 0;
|
|
309
|
+
color: inherit;
|
|
310
|
+
content: '\ea6c';
|
|
311
|
+
font-family: remixicon !important;
|
|
312
|
+
font-size: 1.5em;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
div.block.listing.summary {
|
|
319
|
+
.u-item {
|
|
320
|
+
padding-top: 0;
|
|
321
|
+
padding-bottom: 20px;
|
|
322
|
+
border: none;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.listing-header {
|
|
326
|
+
font-size: @h4;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.listing-body.has-icon i.icon {
|
|
330
|
+
margin-top: 1px;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
div.block.listing.default {
|
|
335
|
+
div.listing-item {
|
|
336
|
+
padding-bottom: 0.5em;
|
|
337
|
+
|
|
338
|
+
h4 {
|
|
339
|
+
margin-bottom: 0.5em;
|
|
340
|
+
}
|
|
284
341
|
}
|
|
285
342
|
}
|
|
286
343
|
}
|
|
287
344
|
}
|
|
288
345
|
|
|
346
|
+
.listing-body-dates:empty {
|
|
347
|
+
margin-bottom: 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
289
350
|
body.subsite {
|
|
290
351
|
.eea.header {
|
|
291
352
|
.logo-wrapper {
|