@eeacms/volto-clms-theme 1.1.76 → 1.1.78
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 +19 -0
- package/package.json +1 -1
- package/src/components/CLMSDatasetDetailView/CLMSDatasetDetailView.jsx +21 -23
- package/src/components/CartIconCounter/CartIconCounter.jsx +2 -1
- package/src/customizations/volto/components/theme/Header/Header.jsx +6 -2
- package/src/customizations/volto/components/theme/Unauthorized/Unauthorized.jsx +2 -2
- package/src/customizations/volto/components/theme/Unauthorized/__snapshots__/Unauthorized.test.jsx.snap +3 -3
- package/theme/site/extras/faq.less +6 -2
- package/theme/site/extras/modal.less +12 -0
- package/theme/site/extras/styles.less +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,25 @@ 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
|
+
### [1.1.78](https://github.com/eea/volto-clms-theme/compare/1.1.77...1.1.78) - 16 November 2023
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- list z-index [Zaloa Etxaniz - [`d33a17e`](https://github.com/eea/volto-clms-theme/commit/d33a17eb77ef005dff9765fb84d96305ebba8916)]
|
|
12
|
+
### [1.1.77](https://github.com/eea/volto-clms-theme/compare/1.1.76...1.1.77) - 15 November 2023
|
|
13
|
+
|
|
14
|
+
#### :bug: Bug Fixes
|
|
15
|
+
|
|
16
|
+
- fix: CLMS-2771 ul li style fix commented until is decided the final solution [Unai - [`5753f56`](https://github.com/eea/volto-clms-theme/commit/5753f567ef6647a8b017c5c55f3e51149c249ee5)]
|
|
17
|
+
- fix: CLMS-2770 close shopping cart popup when going to the shopping cart [Unai - [`7c8763f`](https://github.com/eea/volto-clms-theme/commit/7c8763f1a945c1666c324fb696937324ee2894e7)]
|
|
18
|
+
|
|
19
|
+
#### :hammer_and_wrench: Others
|
|
20
|
+
|
|
21
|
+
- faq style fix [Unai - [`2fd354f`](https://github.com/eea/volto-clms-theme/commit/2fd354fca7ad654e515bc62ea133cce099de8b6f)]
|
|
22
|
+
- elementu flotanteen alboko ul li-ak margina hartzeko [Zaloa Etxaniz - [`7e9b1ee`](https://github.com/eea/volto-clms-theme/commit/7e9b1ee2dc1ecd551c4eeb1b1ef08f642f41556d)]
|
|
23
|
+
- eu login redirect to #download fixed [Unai - [`b2978df`](https://github.com/eea/volto-clms-theme/commit/b2978df013840bc0739c7d268d88e48ecd098e63)]
|
|
24
|
+
- snapshot updated [Unai - [`3684d57`](https://github.com/eea/volto-clms-theme/commit/3684d57b5f4e84fce425bdd6c2e1e62c6361a715)]
|
|
25
|
+
- fixed unauthorized page login click [Unai - [`88b0f2e`](https://github.com/eea/volto-clms-theme/commit/88b0f2e4a6031e56d2de0fc9c01e8f5f5fb1ddb8)]
|
|
7
26
|
### [1.1.76](https://github.com/eea/volto-clms-theme/compare/1.1.75...1.1.76) - 10 November 2023
|
|
8
27
|
|
|
9
28
|
#### :bug: Bug Fixes
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@ import { FormattedMessage } from 'react-intl';
|
|
|
3
3
|
import { connect, useDispatch, useSelector } from 'react-redux';
|
|
4
4
|
import { useLocation } from 'react-router-dom';
|
|
5
5
|
import { compose } from 'redux';
|
|
6
|
-
import { Modal, Segment, Grid, Icon
|
|
6
|
+
import { Modal, Segment, Grid, Icon } from 'semantic-ui-react';
|
|
7
7
|
import { toast } from 'react-toastify';
|
|
8
8
|
import { Toast } from '@plone/volto/components';
|
|
9
9
|
|
|
@@ -71,27 +71,26 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
71
71
|
return (
|
|
72
72
|
url && (
|
|
73
73
|
<Grid.Row className="characteristic-row">
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
</Label>
|
|
74
|
+
<a href={url} rel="noreferrer" target="_blank">
|
|
75
|
+
{title}
|
|
76
|
+
</a>
|
|
77
|
+
<Icon
|
|
78
|
+
color={'olive'}
|
|
79
|
+
name="copy"
|
|
80
|
+
size="large"
|
|
81
|
+
style={{ cursor: 'pointer' }}
|
|
82
|
+
onClick={() => {
|
|
83
|
+
navigator.clipboard.writeText(url);
|
|
84
|
+
toast.success(
|
|
85
|
+
<Toast
|
|
86
|
+
success
|
|
87
|
+
autoClose={5000}
|
|
88
|
+
title={'URL copied to clipboard'}
|
|
89
|
+
content={`The ${title} URL has been successfully copied to clipboard`}
|
|
90
|
+
/>,
|
|
91
|
+
);
|
|
92
|
+
}}
|
|
93
|
+
></Icon>
|
|
95
94
|
</Grid.Row>
|
|
96
95
|
)
|
|
97
96
|
);
|
|
@@ -358,7 +357,6 @@ const CLMSDatasetDetailView = ({ content, token }) => {
|
|
|
358
357
|
content?.metadata_rest_api_url) && (
|
|
359
358
|
<div className="url-container">
|
|
360
359
|
<div className="citation-title">Services</div>
|
|
361
|
-
|
|
362
360
|
<ClickableUrl title="WMS" url={content.metadata_wms_url} />
|
|
363
361
|
<ClickableUrl title="WMTS" url={content.metadata_wmts_url} />
|
|
364
362
|
<ClickableUrl
|
|
@@ -102,7 +102,8 @@ export const CartIconCounter = () => {
|
|
|
102
102
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
103
103
|
}, [cartState]);
|
|
104
104
|
return (
|
|
105
|
-
cartState.items &&
|
|
105
|
+
cartState.items &&
|
|
106
|
+
!window.location.pathname.endsWith('cart') && (
|
|
106
107
|
<>
|
|
107
108
|
<Popup
|
|
108
109
|
context={cart_icon_ref}
|
|
@@ -114,8 +114,12 @@ class Header extends Component {
|
|
|
114
114
|
{},
|
|
115
115
|
'',
|
|
116
116
|
query.size > 0
|
|
117
|
-
? `${window.location.pathname}?${query}
|
|
118
|
-
|
|
117
|
+
? `${window.location.pathname}?${query}${
|
|
118
|
+
window.location.hash && `${window.location.hash}`
|
|
119
|
+
}`
|
|
120
|
+
: `${window.location.pathname}${
|
|
121
|
+
window.location.hash && `${window.location.hash}`
|
|
122
|
+
}`,
|
|
119
123
|
);
|
|
120
124
|
this.props.loginRenew();
|
|
121
125
|
} else {
|
|
@@ -32,12 +32,12 @@ const Unauthorized = () => {
|
|
|
32
32
|
login: (
|
|
33
33
|
<CclLoginModal
|
|
34
34
|
triggerComponent={() => (
|
|
35
|
-
<
|
|
35
|
+
<span className="unauthorized-login-link">
|
|
36
36
|
<FormattedMessage
|
|
37
37
|
id="register-login"
|
|
38
38
|
defaultMessage="Register / Login"
|
|
39
39
|
/>
|
|
40
|
-
</
|
|
40
|
+
</span>
|
|
41
41
|
)}
|
|
42
42
|
/>
|
|
43
43
|
),
|
|
@@ -14,8 +14,8 @@ exports[`Unauthorized renders a not found component 1`] = `
|
|
|
14
14
|
className="description"
|
|
15
15
|
>
|
|
16
16
|
You are trying to access a protected resource, please
|
|
17
|
-
<
|
|
18
|
-
|
|
17
|
+
<span
|
|
18
|
+
className="unauthorized-login-link"
|
|
19
19
|
onBlur={[Function]}
|
|
20
20
|
onClick={[Function]}
|
|
21
21
|
onFocus={[Function]}
|
|
@@ -23,7 +23,7 @@ exports[`Unauthorized renders a not found component 1`] = `
|
|
|
23
23
|
onMouseLeave={[Function]}
|
|
24
24
|
>
|
|
25
25
|
Register / Login
|
|
26
|
-
</
|
|
26
|
+
</span>
|
|
27
27
|
first.
|
|
28
28
|
</p>
|
|
29
29
|
<p>
|
|
@@ -53,13 +53,17 @@
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.accordion .content > div::before {
|
|
56
|
+
position: absolute;
|
|
57
|
+
left: 1.5rem;
|
|
56
58
|
margin-right: 1rem;
|
|
57
59
|
color: #adb0b8;
|
|
58
60
|
content: 'A';
|
|
59
61
|
float: left;
|
|
60
62
|
font-size: 1.75rem;
|
|
61
63
|
font-weight: bold;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.accordion.ui.fluid.styled > .content.active ul {
|
|
67
|
+
padding: 0 !important;
|
|
64
68
|
}
|
|
65
69
|
}
|
|
@@ -314,3 +314,15 @@
|
|
|
314
314
|
margin-top: 3rem;
|
|
315
315
|
margin-bottom: 3rem;
|
|
316
316
|
}
|
|
317
|
+
|
|
318
|
+
.unauthorized-login-link {
|
|
319
|
+
cursor: pointer;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.unauthorized-login-link:hover {
|
|
323
|
+
border-bottom: solid 1px @clmsGreen;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.unauthorized-login-link {
|
|
327
|
+
color: @clmsGreen;
|
|
328
|
+
}
|