@eeacms/volto-arcgis-block 0.1.68 → 0.1.69
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,19 @@ 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.69](https://github.com/eea/volto-arcgis-block/compare/0.1.68...0.1.69) - 6 October 2022
|
|
8
|
+
|
|
9
|
+
#### :rocket: New Features
|
|
10
|
+
|
|
11
|
+
- feat: CLMS-1424 'added to cart' and 'please select an area' floating messages now shown as toasts using react-toastify & CLMS-1418 [joewdavies - [`b91c302`](https://github.com/eea/volto-arcgis-block/commit/b91c3024c6575332a1f5250357f427d85193cdd2)]
|
|
12
|
+
|
|
13
|
+
#### :hammer_and_wrench: Others
|
|
14
|
+
|
|
15
|
+
- Use universal links [joewdavies - [`d4467ab`](https://github.com/eea/volto-arcgis-block/commit/d4467abbae9867fb9dafa2284f58a6710be1086d)]
|
|
16
|
+
- Use universal links [joewdavies - [`84fc91a`](https://github.com/eea/volto-arcgis-block/commit/84fc91a08f0397acac861904a31ef1309115e660)]
|
|
17
|
+
- minor text correction [joewdavies - [`b16db04`](https://github.com/eea/volto-arcgis-block/commit/b16db04f924e0af183aed2a4b3af94610f1c5ff3)]
|
|
18
|
+
- ESlint fix [joewdavies - [`bc248f6`](https://github.com/eea/volto-arcgis-block/commit/bc248f6f1dc6f68e6e9dbbe0c997fd6d9007ca71)]
|
|
19
|
+
- ESlint fix [joewdavies - [`264b1d0`](https://github.com/eea/volto-arcgis-block/commit/264b1d03c2567226478ed6567e9e5417a455fcc3)]
|
|
7
20
|
### [0.1.68](https://github.com/eea/volto-arcgis-block/compare/0.1.67...0.1.68) - 3 October 2022
|
|
8
21
|
|
|
9
22
|
#### :rocket: New Features
|
|
@@ -161,10 +174,13 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
161
174
|
#### :hammer_and_wrench: Others
|
|
162
175
|
|
|
163
176
|
- Merge pull request #148 from eea/develop [KCarpinteroBM - [`24266fb`](https://github.com/eea/volto-arcgis-block/commit/24266fb3a0c1662d22ae0529dc1d5a25c711cf97)]
|
|
177
|
+
- Revert "[JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`f751f69`](https://github.com/eea/volto-arcgis-block/commit/f751f69f652f0340ae55af6a4dab89d6bdc80906)]
|
|
164
178
|
- Revert "Revert "Mapviewer menu and map viewer options persistence"" [Mikel Larreategi - [`ad6e440`](https://github.com/eea/volto-arcgis-block/commit/ad6e440cdc160cffb1e86e1b26e501dbe648476c)]
|
|
165
179
|
- Revert "code coverage removal" [Mikel Larreategi - [`376f2d1`](https://github.com/eea/volto-arcgis-block/commit/376f2d1cd6e4e5110b3b63d5114af1bcfebe094b)]
|
|
166
180
|
- Revert "Update cypress.json" [Mikel Larreategi - [`43d01a0`](https://github.com/eea/volto-arcgis-block/commit/43d01a0a95a58ef5215c6cbf18223ca30a11b9cc)]
|
|
167
181
|
- Revert "Update cypress.json" [Mikel Larreategi - [`054c4ae`](https://github.com/eea/volto-arcgis-block/commit/054c4ae1767e1f26e6ec7e96a0e26a9711f29f04)]
|
|
182
|
+
- Revert "revert [JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967" [Mikel Larreategi - [`64ab56e`](https://github.com/eea/volto-arcgis-block/commit/64ab56e0f1f8dddc26f26039509a028e34653e64)]
|
|
183
|
+
- revert [JENKINS] Use eeacms/plone-backend and Volto alpha version- Refs #151967 [Mikel Larreategi - [`85ee194`](https://github.com/eea/volto-arcgis-block/commit/85ee1941e029df2b7dc910bf75231c75ffeca8c2)]
|
|
168
184
|
- Update cypress.json [KCarpinteroBM - [`be285ff`](https://github.com/eea/volto-arcgis-block/commit/be285fff0c53e06a0180d5318cce81195eabcf80)]
|
|
169
185
|
- Update cypress.json [KCarpinteroBM - [`a7f2118`](https://github.com/eea/volto-arcgis-block/commit/a7f2118acb7b048b4cef85aa9663c2244a1c9ca0)]
|
|
170
186
|
- linting fix [KCarpinteroBM - [`27e969a`](https://github.com/eea/volto-arcgis-block/commit/27e969a7a411fd4646e0e742ce846efc0d79703e)]
|
|
@@ -224,6 +240,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
224
240
|
- UX improvements [rodriama - [`151dc4b`](https://github.com/eea/volto-arcgis-block/commit/151dc4b02d0a73fdd66de9d594620ac0fa5f1dbf)]
|
|
225
241
|
- deleted failing tests [KCarpinteroBM - [`ddaa9e6`](https://github.com/eea/volto-arcgis-block/commit/ddaa9e6f06db6960a4c214d3be2420c48b26715d)]
|
|
226
242
|
- cleaning unnecessary files [KCarpinteroBM - [`2c02199`](https://github.com/eea/volto-arcgis-block/commit/2c021990912beb02b603a1de89aecd62e0063769)]
|
|
243
|
+
- Reverting to Automated release 0.1.39 [KCarpinteroBM - [`fb9f317`](https://github.com/eea/volto-arcgis-block/commit/fb9f3176ccdea18fceb329eaac13ced0566ee648)]
|
|
227
244
|
- commands added [KCarpinteroBM - [`049e60b`](https://github.com/eea/volto-arcgis-block/commit/049e60b7d124d1c05abd0b2775b510795f4ed59f)]
|
|
228
245
|
- Mapviewer testing implementation [KCarpinteroBM - [`0103002`](https://github.com/eea/volto-arcgis-block/commit/0103002869eea108e16e3b5ff2e77a725dcc7c4b)]
|
|
229
246
|
### [0.1.39](https://github.com/eea/volto-arcgis-block/compare/0.1.38...0.1.39) - 24 March 2022
|
|
@@ -243,6 +260,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
243
260
|
- ESLint fix [rodriama - [`75dae9b`](https://github.com/eea/volto-arcgis-block/commit/75dae9b5bba18ab6d9624f6c99714b4bd2179003)]
|
|
244
261
|
- Remove section title [rodriama - [`ece860e`](https://github.com/eea/volto-arcgis-block/commit/ece860eae3519c7e611abac16e8d53c9a9408b34)]
|
|
245
262
|
- Es-Lint [manuelmartinezbilbomatica - [`39d8d11`](https://github.com/eea/volto-arcgis-block/commit/39d8d11b9096fd603df8510c119d2e12817415d6)]
|
|
263
|
+
- Add Sonarqube tag using clms-frontend addons list [EEA Jenkins - [`bf9f683`](https://github.com/eea/volto-arcgis-block/commit/bf9f683dd35a9edb4cfd9111affcb8f8edbeae89)]
|
|
246
264
|
- FEAT: Parser Time implemented [manuelmartinezbilbomatica - [`689c99e`](https://github.com/eea/volto-arcgis-block/commit/689c99e55221fee6c7c7fafc4ab95ae7a646d3dd)]
|
|
247
265
|
### [0.1.38](https://github.com/eea/volto-arcgis-block/compare/0.1.37...0.1.38) - 18 March 2022
|
|
248
266
|
|
|
@@ -337,6 +355,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
337
355
|
- ESLint fix [rodriama - [`5fd3772`](https://github.com/eea/volto-arcgis-block/commit/5fd3772f197a3a380067962a5638dbf901a4624e)]
|
|
338
356
|
- Pixel info [rodriama - [`1ccef39`](https://github.com/eea/volto-arcgis-block/commit/1ccef39a9adcc3ee94655c77a5a166b613600a08)]
|
|
339
357
|
- NUTS bug fix [rodriama - [`37fe7f3`](https://github.com/eea/volto-arcgis-block/commit/37fe7f3fad2c005e3b7c234b3b0564d5df92fa8c)]
|
|
358
|
+
- Add Sonarqube tag using freshwater-frontend addons list [EEA Jenkins - [`ea5af8b`](https://github.com/eea/volto-arcgis-block/commit/ea5af8b02a5f2ee25b9b0be67cf3792bbbe84ed7)]
|
|
340
359
|
### [0.1.23](https://github.com/eea/volto-arcgis-block/compare/0.1.22...0.1.23) - 17 December 2021
|
|
341
360
|
|
|
342
361
|
#### :hammer_and_wrench: Others
|
|
@@ -581,6 +600,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
581
600
|
- Trying to delay ArcGIS modules load [gonzalezsd - [`ff16985`](https://github.com/eea/volto-arcgis-block/commit/ff169858e42d30bfcacc423ffc27762bb9ef05a4)]
|
|
582
601
|
- Run bootstrap to fix files [valentinab25 - [`236893f`](https://github.com/eea/volto-arcgis-block/commit/236893f03314eb638b7667f81b1f91491a98ee17)]
|
|
583
602
|
- fix git_name [valentinab25 - [`c7806c3`](https://github.com/eea/volto-arcgis-block/commit/c7806c312964425dc23e5d4c6973de8b81ddaeac)]
|
|
603
|
+
- Add Sonarqube tag using frontend addons list [EEA Jenkins - [`e3afb51`](https://github.com/eea/volto-arcgis-block/commit/e3afb515dda459ee03e2b5d4b56465d2d4ad1503)]
|
|
584
604
|
- Trying to change imports [gonzalezsd - [`d83d7e2`](https://github.com/eea/volto-arcgis-block/commit/d83d7e2f68da4b2a284735847f93c0763a7e13b6)]
|
|
585
605
|
- default design [bipoza - [`88fbe0b`](https://github.com/eea/volto-arcgis-block/commit/88fbe0b2bc73e732e2993324a567f53902e85506)]
|
|
586
606
|
- cleanup of unused code [bipoza - [`b167677`](https://github.com/eea/volto-arcgis-block/commit/b1676771f637f056cad50cb0bc186f2ea79e8517)]
|
package/package.json
CHANGED
|
@@ -6,6 +6,9 @@ import useCartState from '@eeacms/volto-clms-utils/cart/useCartState';
|
|
|
6
6
|
import { Message, Modal, Popup } from 'semantic-ui-react';
|
|
7
7
|
import AreaWidget from './AreaWidget';
|
|
8
8
|
import TimesliderWidget from './TimesliderWidget';
|
|
9
|
+
import { Toast } from '@plone/volto/components';
|
|
10
|
+
import { toast } from 'react-toastify';
|
|
11
|
+
import { UniversalLink } from '@plone/volto/components';
|
|
9
12
|
var WMSLayer, WMTSLayer, FeatureLayer;
|
|
10
13
|
|
|
11
14
|
const popupSettings = {
|
|
@@ -29,7 +32,7 @@ export const AddCartItem = ({
|
|
|
29
32
|
}) => {
|
|
30
33
|
const { addCartItem, isLoggedIn } = useCartState();
|
|
31
34
|
const [message, setMessage] = useState(0);
|
|
32
|
-
const [showMessage
|
|
35
|
+
const [showMessage] = useState(false);
|
|
33
36
|
const [modal, setModal] = useState(false);
|
|
34
37
|
|
|
35
38
|
const checkArea = (e) => {
|
|
@@ -61,18 +64,18 @@ export const AddCartItem = ({
|
|
|
61
64
|
let data = checkCartData(cartData, area);
|
|
62
65
|
addCartItem(data).then(() => {
|
|
63
66
|
setMessage('Added to cart');
|
|
64
|
-
showMessageTimer();
|
|
67
|
+
showMessageTimer('Added to cart', 'success');
|
|
65
68
|
});
|
|
66
69
|
} else {
|
|
67
|
-
setMessage('
|
|
68
|
-
showMessageTimer();
|
|
70
|
+
setMessage('Please select an area');
|
|
71
|
+
showMessageTimer('Please select an area', 'warning');
|
|
69
72
|
}
|
|
70
73
|
} else {
|
|
71
74
|
closeModal(e);
|
|
72
75
|
let data = checkCartData(cartData, area, dataset);
|
|
73
76
|
addCartItem(data).then(() => {
|
|
74
77
|
setMessage('Added to cart');
|
|
75
|
-
showMessageTimer();
|
|
78
|
+
showMessageTimer('Added to cart', 'success');
|
|
76
79
|
});
|
|
77
80
|
}
|
|
78
81
|
};
|
|
@@ -114,11 +117,24 @@ export const AddCartItem = ({
|
|
|
114
117
|
props.updateArea('');
|
|
115
118
|
};
|
|
116
119
|
|
|
117
|
-
const showMessageTimer = () => {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
const showMessageTimer = (msg, type) => {
|
|
121
|
+
toast[type](
|
|
122
|
+
<Toast
|
|
123
|
+
info
|
|
124
|
+
autoClose={4000}
|
|
125
|
+
// title={'test'}
|
|
126
|
+
content={msg}
|
|
127
|
+
/>,
|
|
128
|
+
{
|
|
129
|
+
position: 'top-center',
|
|
130
|
+
autoClose: 4000,
|
|
131
|
+
hideProgressBar: false,
|
|
132
|
+
closeOnClick: true,
|
|
133
|
+
pauseOnHover: false,
|
|
134
|
+
draggable: true,
|
|
135
|
+
progress: undefined,
|
|
136
|
+
},
|
|
137
|
+
);
|
|
122
138
|
};
|
|
123
139
|
|
|
124
140
|
const showModal = (e) => {
|
|
@@ -264,10 +280,11 @@ export const AddCartItem = ({
|
|
|
264
280
|
If you would like to download data for your area of
|
|
265
281
|
interest and for the selected time interval, please
|
|
266
282
|
follow this{' '}
|
|
267
|
-
<
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
283
|
+
<UniversalLink
|
|
284
|
+
href={dataset.DatasetURL + '/download-by-area'}
|
|
285
|
+
>
|
|
286
|
+
link.
|
|
287
|
+
</UniversalLink>
|
|
271
288
|
</p>
|
|
272
289
|
</li>
|
|
273
290
|
</>
|
|
@@ -282,6 +299,18 @@ export const AddCartItem = ({
|
|
|
282
299
|
)}
|
|
283
300
|
</ul>
|
|
284
301
|
)}
|
|
302
|
+
{areaData && dataset.IsTimeSeries && (
|
|
303
|
+
<p>
|
|
304
|
+
If you would like to download data for your area of interest
|
|
305
|
+
and for the selected time interval, please follow this{' '}
|
|
306
|
+
<UniversalLink
|
|
307
|
+
href={dataset.DatasetURL + '/download-by-area'}
|
|
308
|
+
>
|
|
309
|
+
link.
|
|
310
|
+
</UniversalLink>
|
|
311
|
+
.
|
|
312
|
+
</p>
|
|
313
|
+
)}
|
|
285
314
|
</Modal.Content>
|
|
286
315
|
<Modal.Actions>
|
|
287
316
|
<div className="map-download-buttons">
|
|
@@ -58,7 +58,7 @@ class InfoWidget extends React.Component {
|
|
|
58
58
|
</div>
|
|
59
59
|
<div className="use-case-detail-content">
|
|
60
60
|
<div className="use-case-detail-product">
|
|
61
|
-
{/* {UseCase.
|
|
61
|
+
{/* {UseCase.Copernicus_Land_Monitoring_Service_products_used} */}
|
|
62
62
|
</div>
|
|
63
63
|
<div className="use-case-detail-title">
|
|
64
64
|
<h3>{UseCase.Use_case_title}</h3>
|
|
@@ -159,7 +159,7 @@ class InfoWidget extends React.Component {
|
|
|
159
159
|
{val.Use_case_title}
|
|
160
160
|
</div>
|
|
161
161
|
<div className="use-case-element-description">
|
|
162
|
-
|
|
162
|
+
<span>{val.Copernicus_Land_Monitoring_Service_products_used}</span>
|
|
163
163
|
<span>{val.Use_case_submitting_production_year}</span>
|
|
164
164
|
<span
|
|
165
165
|
className="use-case-coverage"
|