@eeacms/volto-cca-policy 0.1.46 → 0.1.48

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 CHANGED
@@ -4,6 +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
+ ### [0.1.48](https://github.com/eea/volto-cca-policy/compare/0.1.47...0.1.48) - 16 October 2023
8
+
9
+ #### :house: Internal changes
10
+
11
+ - style: don't apply icon on empty links [kreafox - [`81670eb`](https://github.com/eea/volto-cca-policy/commit/81670ebd6d095d98c19ddffb323486518c3588d3)]
12
+ - style: make external link icon selector more specific [kreafox - [`7a52b81`](https://github.com/eea/volto-cca-policy/commit/7a52b81029842192d7ec2cdfdd5d814b7601d219)]
13
+
14
+ ### [0.1.47](https://github.com/eea/volto-cca-policy/compare/0.1.46...0.1.47) - 13 October 2023
15
+
16
+ #### :bug: Bug Fixes
17
+
18
+ - fix: listing style [kreafox - [`dac5e2f`](https://github.com/eea/volto-cca-policy/commit/dac5e2f394db365844eebf763a89fba82c1efed6)]
19
+
20
+ #### :house: Internal changes
21
+
22
+ - chore:volto 16 in tests, update docs, fix stylelint overrides [valentinab25 - [`0e00baa`](https://github.com/eea/volto-cca-policy/commit/0e00baa1ec41955a44e0f9c8820862419803c75c)]
23
+ - style: update listing syle for summary view [kreafox - [`b7d67d9`](https://github.com/eea/volto-cca-policy/commit/b7d67d9b3ced965201abc5e5a178e35a5b8de5b3)]
24
+
25
+ #### :hammer_and_wrench: Others
26
+
27
+ - Refs #161509 - Fix adaptation option view when no ipcc category selected. [GhitaB - [`2a3ee62`](https://github.com/eea/volto-cca-policy/commit/2a3ee62fb6caeedee0d6a9268fa41e419f0045bd)]
7
28
  ### [0.1.46](https://github.com/eea/volto-cca-policy/compare/0.1.45...0.1.46) - 6 October 2023
8
29
 
9
30
  #### :rocket: New Features
@@ -196,6 +217,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
196
217
 
197
218
  #### :house: Internal changes
198
219
 
220
+ - chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
199
221
 
200
222
  #### :hammer_and_wrench: Others
201
223
 
@@ -676,6 +698,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
676
698
  #### :hammer_and_wrench: Others
677
699
 
678
700
  - Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
701
+ - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
679
702
  ### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
680
703
 
681
704
  #### :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. Happy hacking!
19
+ 1. Initialize git hooks
20
20
 
21
21
  ```Bash
22
- cd src/addons/volto-cca-policy/
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
- yarn develop
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-cca-policy",
3
- "version": "0.1.46",
3
+ "version": "0.1.48",
4
4
  "description": "@eeacms/volto-cca-policy: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -136,31 +136,35 @@ function AdaptationOptionView(props) {
136
136
 
137
137
  <SectionsMenu sections={usedSections} />
138
138
 
139
- <h4>Adaptation Details</h4>
140
-
141
- <div id={sectionID('IPCC categories')} className="section">
142
- <h5 className="section-title">IPCC categories</h5>
143
- {content.ipcc_category
144
- .map((item) => item.title)
145
- .sort()
146
- .join(', ')}
147
- {usedSections.length > 0 && (
148
- <>
149
- {usedSections.map((data, index) => (
150
- <Fragment key={index}>
151
- <div id={sectionID(data.title)} className="section">
152
- <h5 className="section-title">{data.title}</h5>
153
- <HTMLField
154
- value={content[data.field]}
155
- className="long_description"
156
- />
157
- </div>
158
- </Fragment>
159
- ))}
160
- </>
161
- )}
162
- </div>
163
- <hr />
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
 
@@ -25,31 +25,33 @@ p.has--clear--both:empty {
25
25
 
26
26
  // Add icon for external links
27
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 {
28
+ p {
29
+ a[rel='noopener noreferrer']:not(.ui.button):not(:empty),
30
+ a[target='_blank']:not(.ui.button):not(:empty) {
41
31
  &:before {
42
- // fix visited link icon color
43
- // doesn't work with color: inherit
44
- color: @linkVisitedColor;
32
+ position: relative;
33
+ top: 2px;
34
+ margin-right: 3px;
35
+ color: inherit;
36
+ content: '\ecaf';
37
+ font-family: remixicon;
38
+ font-size: 1em;
45
39
  }
46
- }
47
40
 
48
- &:active {
49
- &:before {
50
- // fix active link icon color
51
- // doesn't work with color: inherit
52
- color: @linkActiveColor;
41
+ &:visited {
42
+ &:before {
43
+ // fix visited link icon color
44
+ // doesn't work with color: inherit
45
+ color: @linkVisitedColor;
46
+ }
47
+ }
48
+
49
+ &:active {
50
+ &:before {
51
+ // fix active link icon color
52
+ // doesn't work with color: inherit
53
+ color: @linkActiveColor;
54
+ }
53
55
  }
54
56
  }
55
57
  }
@@ -292,12 +294,11 @@ body.view-viewview.has-toolbar:not(.has-sidebar):not(.has-sidebar-collapsed) {
292
294
  /* Mission: Latest news updates, Latest events */
293
295
  body.subsite-root.section-mission {
294
296
  div.columns-view {
295
- div.block.listing.default,
296
- div.block.listing.summary {
297
+ div.block.listing.default {
297
298
  div.items {
298
299
  div.listing-item {
299
300
  border: none;
300
- margin-bottom: 0px !important;
301
+ margin: 0;
301
302
  }
302
303
 
303
304
  .listing-body {
@@ -314,13 +315,22 @@ body.subsite-root.section-mission {
314
315
  font-size: 1.5em;
315
316
  }
316
317
  }
317
- margin-top: 1.5em;
318
318
  }
319
319
  }
320
320
 
321
321
  div.block.listing.summary {
322
322
  .u-item {
323
- padding: 0 0 0.8em 0;
323
+ padding-top: 0;
324
+ padding-bottom: 20px;
325
+ border: none;
326
+ }
327
+
328
+ .listing-header {
329
+ font-size: @h4;
330
+ }
331
+
332
+ .listing-body.has-icon i.icon {
333
+ margin-top: 1px;
324
334
  }
325
335
  }
326
336
 
@@ -336,6 +346,10 @@ body.subsite-root.section-mission {
336
346
  }
337
347
  }
338
348
 
349
+ .listing-body-dates:empty {
350
+ margin-bottom: 0;
351
+ }
352
+
339
353
  body.subsite {
340
354
  .eea.header {
341
355
  .logo-wrapper {