@eeacms/volto-cca-policy 0.2.21 → 0.2.22
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,12 @@ 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.22](https://github.com/eea/volto-cca-policy/compare/0.2.21...0.2.22) - 9 May 2024
|
|
8
|
+
|
|
9
|
+
#### :nail_care: Enhancements
|
|
10
|
+
|
|
11
|
+
- change(views): add link to download event calendar [kreafox - [`fa6f364`](https://github.com/eea/volto-cca-policy/commit/fa6f36420dc432eb5f7b6bf6195d7614a264fb21)]
|
|
12
|
+
|
|
7
13
|
### [0.2.21](https://github.com/eea/volto-cca-policy/compare/0.2.20...0.2.21) - 9 May 2024
|
|
8
14
|
|
|
9
15
|
#### :rocket: New Features
|
|
@@ -1132,10 +1138,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1132
1138
|
- Refs #260715 rast-block wip [Tripon Eugen - [`f19d54e`](https://github.com/eea/volto-cca-policy/commit/f19d54e0b9a6a86bf344eb85b6a1cda7f3de91bf)]
|
|
1133
1139
|
- Refs #260715 rast-block wip [Tripon Eugen - [`2828537`](https://github.com/eea/volto-cca-policy/commit/2828537b6c084cd1a82162d552fb4ef025b71f9f)]
|
|
1134
1140
|
- Refs #260715 rast-block updates [Tripon Eugen - [`1e803e5`](https://github.com/eea/volto-cca-policy/commit/1e803e5bd3d3fb7558f261c76c68866be7beb8b5)]
|
|
1141
|
+
- test: [JENKINS] Use java17 for sonarqube scanner [valentinab25 - [`0a15e1b`](https://github.com/eea/volto-cca-policy/commit/0a15e1b2ad081233685e80d5b3c60a8663f6b896)]
|
|
1142
|
+
- test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`9554e44`](https://github.com/eea/volto-cca-policy/commit/9554e44c92a621a52b2adb5a4830fb084ee5734b)]
|
|
1135
1143
|
### [0.1.49](https://github.com/eea/volto-cca-policy/compare/0.1.48...0.1.49) - 15 November 2023
|
|
1136
1144
|
|
|
1137
1145
|
#### :house: Internal changes
|
|
1138
1146
|
|
|
1147
|
+
- chore: [JENKINS] Refactor automated testing [valentinab25 - [`7b820a6`](https://github.com/eea/volto-cca-policy/commit/7b820a6369c2ddd5203b1a4abe352cb4bb43db7a)]
|
|
1139
1148
|
- chore: husky, lint-staged use fixed versions [valentinab25 - [`f0a8061`](https://github.com/eea/volto-cca-policy/commit/f0a8061c275c236deb00087c23fac9860a073106)]
|
|
1140
1149
|
|
|
1141
1150
|
#### :hammer_and_wrench: Others
|
|
@@ -1152,6 +1161,9 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1152
1161
|
- Refs #259267 - jenkins test [Tripon Eugen - [`cacd31e`](https://github.com/eea/volto-cca-policy/commit/cacd31e7b1afe0983674ed5c7632d2e1d7fa752e)]
|
|
1153
1162
|
- Refs #259267 - jenkins [Tripon Eugen - [`5b3affe`](https://github.com/eea/volto-cca-policy/commit/5b3affee8401239de10097884c1b7f2349d15ec0)]
|
|
1154
1163
|
- Refs #259267 - add When, lead image and title to files [Tripon Eugen - [`2cedb23`](https://github.com/eea/volto-cca-policy/commit/2cedb237f898af9057e13fba94b615ef71077204)]
|
|
1164
|
+
- test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`4d607a5`](https://github.com/eea/volto-cca-policy/commit/4d607a576e9d0a5c34e48c41b409e7df616ee3d6)]
|
|
1165
|
+
- test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`b7f74d5`](https://github.com/eea/volto-cca-policy/commit/b7f74d53513a6edbfbca5cb6d19687929bb1e5db)]
|
|
1166
|
+
- test: [JENKINS] Improve cypress time [valentinab25 - [`db65617`](https://github.com/eea/volto-cca-policy/commit/db656173391f65157098d95d388c25f6429753d8)]
|
|
1155
1167
|
- Refs #259267 - cca event blocks attachments and check not mandatoty fields [Tripon Eugen - [`3138e5a`](https://github.com/eea/volto-cca-policy/commit/3138e5afb5bfbdbed14e27ed457b16867b7fa414)]
|
|
1156
1168
|
- 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)]
|
|
1157
1169
|
- Refs #161485 - Fix ECDE name conflict. [GhitaB - [`8bfd99f`](https://github.com/eea/volto-cca-policy/commit/8bfd99ff68bb82a04d1c0ed625fa514fcf46289e)]
|
|
@@ -1368,6 +1380,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1368
1380
|
|
|
1369
1381
|
#### :house: Internal changes
|
|
1370
1382
|
|
|
1383
|
+
- chore: [JENKINS] Remove alpha testing version [valentinab25 - [`ad1ced0`](https://github.com/eea/volto-cca-policy/commit/ad1ced0971ba116c13a3b5fcc039172cc915c919)]
|
|
1371
1384
|
|
|
1372
1385
|
#### :hammer_and_wrench: Others
|
|
1373
1386
|
|
|
@@ -1848,6 +1861,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1848
1861
|
#### :hammer_and_wrench: Others
|
|
1849
1862
|
|
|
1850
1863
|
- Refs #158294 - Update supported languages list. [GhitaB - [`0a4f91f`](https://github.com/eea/volto-cca-policy/commit/0a4f91f39b7edc367bd4c127d6a8f273c7788361)]
|
|
1864
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`8f1f9ce`](https://github.com/eea/volto-cca-policy/commit/8f1f9ce6c22805670cc0800d3c779b6d619d0f31)]
|
|
1851
1865
|
### [0.1.1](https://github.com/eea/volto-cca-policy/compare/0.1.0...0.1.1) - 13 December 2022
|
|
1852
1866
|
|
|
1853
1867
|
#### :hammer_and_wrench: Others
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import ContentLinksView from './ContentLinksView';
|
|
|
5
5
|
export default function installBlock(config) {
|
|
6
6
|
config.blocks.blocksConfig.contentLinks = {
|
|
7
7
|
id: 'contentLinks',
|
|
8
|
-
title: 'Content
|
|
8
|
+
title: 'Content Links',
|
|
9
9
|
icon: listSVG,
|
|
10
10
|
group: 'site',
|
|
11
11
|
view: ContentLinksView,
|
|
@@ -4,12 +4,21 @@ import {
|
|
|
4
4
|
PortalMessage,
|
|
5
5
|
} from '@eeacms/volto-cca-policy/components';
|
|
6
6
|
import RenderBlocks from '@plone/volto/components/theme/View/RenderBlocks';
|
|
7
|
-
import { Grid, Container, Segment } from 'semantic-ui-react';
|
|
8
|
-
import { FormattedMessage } from 'react-intl';
|
|
7
|
+
import { Grid, Container, Segment, Button, Icon } from 'semantic-ui-react';
|
|
8
|
+
import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
|
|
9
9
|
import { SubjectTags, EventDetails } from '@eeacms/volto-cca-policy/helpers';
|
|
10
|
+
import { expandToBackendURL } from '@plone/volto/helpers';
|
|
11
|
+
|
|
12
|
+
const messages = defineMessages({
|
|
13
|
+
downloadEvent: {
|
|
14
|
+
id: 'Download this event in iCal format',
|
|
15
|
+
defaultMessage: 'Download this event in iCal format',
|
|
16
|
+
},
|
|
17
|
+
});
|
|
10
18
|
|
|
11
19
|
function CcaEventView(props) {
|
|
12
20
|
const { content } = props;
|
|
21
|
+
const intl = useIntl();
|
|
13
22
|
|
|
14
23
|
return (
|
|
15
24
|
<div className="cca-event-view">
|
|
@@ -41,6 +50,26 @@ function CcaEventView(props) {
|
|
|
41
50
|
</p>
|
|
42
51
|
</>
|
|
43
52
|
)}
|
|
53
|
+
|
|
54
|
+
<div className="download-event">
|
|
55
|
+
<a
|
|
56
|
+
className="ics-download"
|
|
57
|
+
target="_blank"
|
|
58
|
+
rel="noreferrer"
|
|
59
|
+
href={`${expandToBackendURL(content['@id'])}/ics_view`}
|
|
60
|
+
>
|
|
61
|
+
<Button
|
|
62
|
+
className="icon inverted primary labeled"
|
|
63
|
+
title={intl.formatMessage(messages.downloadEvent)}
|
|
64
|
+
>
|
|
65
|
+
<Icon name="calendar alternate outline" />
|
|
66
|
+
<FormattedMessage
|
|
67
|
+
id="Download Event"
|
|
68
|
+
defaultMessage="Download Event"
|
|
69
|
+
/>
|
|
70
|
+
</Button>
|
|
71
|
+
</a>
|
|
72
|
+
</div>
|
|
44
73
|
</Segment>
|
|
45
74
|
</Grid.Column>
|
|
46
75
|
</Grid.Row>
|