@eeacms/volto-clms-theme 1.0.91 → 1.0.92
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 +13 -0
- package/Jenkinsfile +2 -2
- package/package.json +1 -1
- package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingWorkOpportunities.jsx +8 -6
- package/src/components/CLMSDownloadsView/FileCard.jsx +21 -6
- package/src/components/CclCard/cards.less +9 -26
- package/src/components/CclLoginModal/CclLoginModal.jsx +2 -2
- package/theme/clms/css/forms.css +12 -3
- package/theme/clms/css/maps.css +5 -24
- package/theme/clms/css/maps.less +9 -26
- package/theme/clms/css/menu.css +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,21 @@ 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.0.92](https://github.com/eea/volto-clms-theme/compare/1.0.91...1.0.92)
|
|
8
|
+
|
|
9
|
+
- Ux improvements [`#254`](https://github.com/eea/volto-clms-theme/pull/254)
|
|
10
|
+
- Bugs n improvements [`#252`](https://github.com/eea/volto-clms-theme/pull/252)
|
|
11
|
+
- Zoom tooltip [`3c41e14`](https://github.com/eea/volto-clms-theme/commit/3c41e14e4b631193408adb741c440805ca5cc0df)
|
|
12
|
+
- ESLint fix [`1f3ead1`](https://github.com/eea/volto-clms-theme/commit/1f3ead111747613580ab5e637fc40eae46b39364)
|
|
13
|
+
- Download card icons [`5bc506d`](https://github.com/eea/volto-clms-theme/commit/5bc506d9251068962ff3e3641017f854b37666f3)
|
|
14
|
+
- Card work [`d169ff4`](https://github.com/eea/volto-clms-theme/commit/d169ff40e8d3c2fce56af6aa09677c0ba924407a)
|
|
15
|
+
- UX improvements [`72769b4`](https://github.com/eea/volto-clms-theme/commit/72769b4e0b2327b7c35cec435b2a3311a9ccee3f)
|
|
16
|
+
|
|
7
17
|
#### [1.0.91](https://github.com/eea/volto-clms-theme/compare/1.0.90...1.0.91)
|
|
8
18
|
|
|
19
|
+
> 4 April 2022
|
|
20
|
+
|
|
21
|
+
- add extra information for correct rendering to TechnicalLibraries at … [`#251`](https://github.com/eea/volto-clms-theme/pull/251)
|
|
9
22
|
- add extra information for correct rendering to TechnicalLibraries at DataSet view [`ac8578e`](https://github.com/eea/volto-clms-theme/commit/ac8578eeff8eeb3cff9944394937a52062d7caf1)
|
|
10
23
|
|
|
11
24
|
#### [1.0.90](https://github.com/eea/volto-clms-theme/compare/1.0.89...1.0.90)
|
package/Jenkinsfile
CHANGED
|
@@ -185,10 +185,10 @@ pipeline {
|
|
|
185
185
|
unstash "xunit-reports"
|
|
186
186
|
unstash "cypress-coverage"
|
|
187
187
|
def scannerHome = tool 'SonarQubeScanner';
|
|
188
|
-
def nodeJS = tool '
|
|
188
|
+
def nodeJS = tool 'NodeJS';
|
|
189
189
|
withSonarQubeEnv('Sonarqube') {
|
|
190
190
|
sh '''sed -i "s#/opt/frontend/my-volto-project/src/addons/${GIT_NAME}/##g" xunit-reports/coverage/lcov.info'''
|
|
191
|
-
sh "export PATH=$
|
|
191
|
+
sh "export PATH=${scannerHome}/bin:${nodeJS}/bin:$PATH; sonar-scanner -Dsonar.javascript.lcov.reportPaths=./xunit-reports/coverage/lcov.info,./cypress-coverage/coverage/lcov.info -Dsonar.sources=./src -Dsonar.projectKey=$GIT_NAME-$BRANCH_NAME -Dsonar.projectVersion=$BRANCH_NAME-$BUILD_NUMBER"
|
|
192
192
|
sh '''try=2; while [ \$try -gt 0 ]; do curl -s -XPOST -u "${SONAR_AUTH_TOKEN}:" "${SONAR_HOST_URL}api/project_tags/set?project=${GIT_NAME}-${BRANCH_NAME}&tags=${SONARQUBE_TAGS},${BRANCH_NAME}" > set_tags_result; if [ \$(grep -ic error set_tags_result ) -eq 0 ]; then try=0; else cat set_tags_result; echo "... Will retry"; sleep 60; try=\$(( \$try - 1 )); fi; done'''
|
|
193
193
|
}
|
|
194
194
|
}
|
package/package.json
CHANGED
package/src/components/Blocks/CustomTemplates/VoltoListingBlock/CclListingWorkOpportunities.jsx
CHANGED
|
@@ -30,9 +30,11 @@ const CclWorkOpportunity = (props) => {
|
|
|
30
30
|
<br />
|
|
31
31
|
</>
|
|
32
32
|
)}
|
|
33
|
-
<div
|
|
34
|
-
<
|
|
35
|
-
|
|
33
|
+
<div class="card-work-line">
|
|
34
|
+
<h2>{item.title}</h2>
|
|
35
|
+
</div>
|
|
36
|
+
<div className="card-work-line">
|
|
37
|
+
<span className="card-work-title">
|
|
36
38
|
{item['@type'] === 'WorkOpportunity'
|
|
37
39
|
? intl.formatMessage(messages.ReferenceNo)
|
|
38
40
|
: intl.formatMessage(messages.ProcurementNo)}
|
|
@@ -43,11 +45,11 @@ const CclWorkOpportunity = (props) => {
|
|
|
43
45
|
item.procurement_no
|
|
44
46
|
)}
|
|
45
47
|
</div>
|
|
46
|
-
<div className="card-work-
|
|
48
|
+
<div className="card-work-line">
|
|
47
49
|
<p>{item.description}</p>
|
|
48
50
|
</div>
|
|
49
|
-
<div className="work-
|
|
50
|
-
<span className="card-work-
|
|
51
|
+
<div className="card-work-line">
|
|
52
|
+
<span className="card-work-title">
|
|
51
53
|
{intl.formatMessage(messages.SubmissionDeadline)}
|
|
52
54
|
</span>
|
|
53
55
|
{new Date(item.submission_deadline).toLocaleString()}
|
|
@@ -11,8 +11,9 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
11
11
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
|
12
12
|
import { Icon } from '@plone/volto/components';
|
|
13
13
|
import React from 'react';
|
|
14
|
-
import
|
|
14
|
+
import pauseSVG from '@plone/volto/icons/pause.svg';
|
|
15
15
|
import errorSVG from '@plone/volto/icons/error.svg';
|
|
16
|
+
import warningSVG from '@plone/volto/icons/warning.svg';
|
|
16
17
|
import { faInfoCircle } from '@fortawesome/free-solid-svg-icons';
|
|
17
18
|
import packSVG from '@plone/volto/icons/pack.svg';
|
|
18
19
|
import removeSVG from '@plone/volto/icons/delete.svg';
|
|
@@ -74,7 +75,21 @@ const FileCard = (props) => {
|
|
|
74
75
|
{/* {10 - daysDiff > -1 && ( */}
|
|
75
76
|
<Grid.Row>
|
|
76
77
|
<Grid.Column verticalAlign="middle" textAlign="center" width={2}>
|
|
77
|
-
{
|
|
78
|
+
{item?.Status === 'Queued' && (
|
|
79
|
+
<Popup
|
|
80
|
+
content="Queued"
|
|
81
|
+
size="small"
|
|
82
|
+
trigger={
|
|
83
|
+
<Icon
|
|
84
|
+
name={pauseSVG}
|
|
85
|
+
size={50}
|
|
86
|
+
color="#a0b128"
|
|
87
|
+
title={'Queued'}
|
|
88
|
+
/>
|
|
89
|
+
}
|
|
90
|
+
/>
|
|
91
|
+
)}
|
|
92
|
+
{item?.Status === 'In_progress' && (
|
|
78
93
|
<Popup
|
|
79
94
|
content="Preparing download files"
|
|
80
95
|
size="small"
|
|
@@ -103,7 +118,7 @@ const FileCard = (props) => {
|
|
|
103
118
|
<Icon
|
|
104
119
|
name={blockSVG}
|
|
105
120
|
size={50}
|
|
106
|
-
color="#
|
|
121
|
+
color="#a0b128"
|
|
107
122
|
title={'Cancelled'}
|
|
108
123
|
/>
|
|
109
124
|
}
|
|
@@ -115,9 +130,9 @@ const FileCard = (props) => {
|
|
|
115
130
|
size="small"
|
|
116
131
|
trigger={
|
|
117
132
|
<Icon
|
|
118
|
-
name={
|
|
133
|
+
name={warningSVG}
|
|
119
134
|
size={50}
|
|
120
|
-
color="#
|
|
135
|
+
color="#faa73e"
|
|
121
136
|
title={'Finished with errors'}
|
|
122
137
|
/>
|
|
123
138
|
}
|
|
@@ -129,7 +144,7 @@ const FileCard = (props) => {
|
|
|
129
144
|
size="small"
|
|
130
145
|
trigger={
|
|
131
146
|
<Icon
|
|
132
|
-
name={
|
|
147
|
+
name={errorSVG}
|
|
133
148
|
size={50}
|
|
134
149
|
color="#e40166"
|
|
135
150
|
title={'Rejected download'}
|
|
@@ -336,6 +336,11 @@
|
|
|
336
336
|
font-size: 1rem;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
+
.card-event svg {
|
|
340
|
+
width: 1rem;
|
|
341
|
+
margin-right: 0.5rem;
|
|
342
|
+
}
|
|
343
|
+
|
|
339
344
|
/* Documents */
|
|
340
345
|
.card-doc {
|
|
341
346
|
padding: 1rem;
|
|
@@ -381,37 +386,15 @@
|
|
|
381
386
|
margin-bottom: 1rem;
|
|
382
387
|
}
|
|
383
388
|
|
|
384
|
-
.card-work-
|
|
389
|
+
.card-work-line:not(:last-of-type) {
|
|
385
390
|
margin-bottom: 1rem;
|
|
386
391
|
}
|
|
387
392
|
|
|
388
|
-
.card-work-
|
|
389
|
-
.card-work-deadline-title {
|
|
393
|
+
.card-work-title {
|
|
390
394
|
margin-right: 0.25rem;
|
|
391
395
|
font-weight: bold;
|
|
392
396
|
}
|
|
393
397
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
padding: 2rem;
|
|
397
|
-
background: #a0b1280f;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
.card-work:not(:last-of-type) {
|
|
401
|
-
margin-bottom: 1rem;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.card-work-number {
|
|
405
|
-
margin-bottom: 1rem;
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.card-work-number-title,
|
|
409
|
-
.card-work-deadline-title {
|
|
410
|
-
margin-right: 0.25rem;
|
|
411
|
-
font-weight: bold;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.card-event svg {
|
|
415
|
-
width: 1rem;
|
|
416
|
-
margin-right: 0.5rem;
|
|
398
|
+
.card-work-line h2 {
|
|
399
|
+
margin-top: 0 !important;
|
|
417
400
|
}
|
|
@@ -35,12 +35,12 @@ function CclLoginModal() {
|
|
|
35
35
|
return (
|
|
36
36
|
<CclModal
|
|
37
37
|
trigger={
|
|
38
|
-
<
|
|
38
|
+
<span className="header-login-link">
|
|
39
39
|
<FormattedMessage
|
|
40
40
|
id="loginRegister"
|
|
41
41
|
defaultMessage="Register/Login"
|
|
42
42
|
/>
|
|
43
|
-
</
|
|
43
|
+
</span>
|
|
44
44
|
}
|
|
45
45
|
size="tiny"
|
|
46
46
|
modalStatus={modalStatus}
|
package/theme/clms/css/forms.css
CHANGED
|
@@ -32,10 +32,19 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ccl-button[disabled] {
|
|
35
|
-
border-color: #
|
|
36
|
-
color: #
|
|
35
|
+
border-color: #a0b128;
|
|
36
|
+
color: #a0b128;
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
opacity: 0.3;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.ccl-button.ccl-button-green[disabled] {
|
|
43
|
+
border-color: #a0b128;
|
|
44
|
+
background-color: #a0b128;
|
|
45
|
+
color: white;
|
|
37
46
|
cursor: not-allowed;
|
|
38
|
-
opacity: 0.
|
|
47
|
+
opacity: 0.3;
|
|
39
48
|
pointer-events: none;
|
|
40
49
|
}
|
|
41
50
|
|
package/theme/clms/css/maps.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
height: 36px;
|
|
35
35
|
border: none !important;
|
|
36
36
|
background-color: #a0b128cc;
|
|
37
|
+
overflow: visible;
|
|
37
38
|
box-shadow: none !important;
|
|
38
39
|
color: white;
|
|
39
40
|
font-size: 18px;
|
|
@@ -55,16 +56,15 @@
|
|
|
55
56
|
cursor: auto;
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
.esri-widget--button.active-widget {
|
|
60
|
+
background: #212529;
|
|
61
|
+
}
|
|
62
|
+
|
|
58
63
|
.land .basemap-container {
|
|
59
64
|
display: flex;
|
|
60
65
|
box-shadow: none !important;
|
|
61
66
|
}
|
|
62
67
|
|
|
63
|
-
.land .esri-basemap-gallery {
|
|
64
|
-
display: none;
|
|
65
|
-
margin: 0 !important;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
68
|
.land .esri-basemap-gallery__item:first-child {
|
|
69
69
|
margin-top: 0;
|
|
70
70
|
}
|
|
@@ -96,10 +96,6 @@
|
|
|
96
96
|
flex-direction: column;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
.land .measurement-panel {
|
|
100
|
-
display: none;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
99
|
.land .measurement-buttons {
|
|
104
100
|
display: flex;
|
|
105
101
|
justify-content: space-evenly;
|
|
@@ -153,10 +149,6 @@
|
|
|
153
149
|
box-shadow: none !important;
|
|
154
150
|
}
|
|
155
151
|
|
|
156
|
-
.land .esri-print {
|
|
157
|
-
display: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
152
|
.land .esri-print__layout-tab {
|
|
161
153
|
font-size: 1rem;
|
|
162
154
|
}
|
|
@@ -179,13 +171,6 @@
|
|
|
179
171
|
box-shadow: none !important;
|
|
180
172
|
}
|
|
181
173
|
|
|
182
|
-
.land .area-panel {
|
|
183
|
-
display: none;
|
|
184
|
-
padding: 1rem;
|
|
185
|
-
background-color: white;
|
|
186
|
-
font-size: 1rem;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
174
|
.land .area-panel .ccl-form-group:not(:first-of-type) {
|
|
190
175
|
margin-top: 0.5rem;
|
|
191
176
|
}
|
|
@@ -522,10 +507,6 @@
|
|
|
522
507
|
margin-top: 0.5rem;
|
|
523
508
|
}
|
|
524
509
|
|
|
525
|
-
.land .legend-panel {
|
|
526
|
-
display: none;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
510
|
.land .legend-container {
|
|
530
511
|
display: flex;
|
|
531
512
|
box-shadow: none !important;
|
package/theme/clms/css/maps.less
CHANGED
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
height: 36px;
|
|
37
37
|
border: none !important;
|
|
38
38
|
background-color: #a0b128cc;
|
|
39
|
+
overflow: visible;
|
|
39
40
|
box-shadow: none !important;
|
|
40
41
|
color: white;
|
|
41
42
|
font-size: 18px;
|
|
@@ -57,17 +58,16 @@
|
|
|
57
58
|
cursor: auto;
|
|
58
59
|
}
|
|
59
60
|
|
|
61
|
+
.esri-widget--button.active-widget {
|
|
62
|
+
background: #212529;
|
|
63
|
+
}
|
|
64
|
+
|
|
60
65
|
/* Basemap */
|
|
61
66
|
.basemap-container {
|
|
62
67
|
display: flex;
|
|
63
68
|
box-shadow: none !important;
|
|
64
69
|
}
|
|
65
70
|
|
|
66
|
-
.esri-basemap-gallery {
|
|
67
|
-
display: none;
|
|
68
|
-
margin: 0 !important;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
71
|
.esri-basemap-gallery__item:first-child {
|
|
72
72
|
margin-top: 0;
|
|
73
73
|
}
|
|
@@ -107,10 +107,6 @@
|
|
|
107
107
|
flex-direction: column;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
.measurement-panel {
|
|
111
|
-
display: none;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
110
|
.measurement-buttons {
|
|
115
111
|
display: flex;
|
|
116
112
|
justify-content: space-evenly;
|
|
@@ -165,10 +161,6 @@
|
|
|
165
161
|
box-shadow: none !important;
|
|
166
162
|
}
|
|
167
163
|
|
|
168
|
-
.esri-print {
|
|
169
|
-
display: none;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
164
|
.esri-print__layout-tab {
|
|
173
165
|
font-size: 1rem;
|
|
174
166
|
}
|
|
@@ -192,13 +184,6 @@
|
|
|
192
184
|
box-shadow: none !important;
|
|
193
185
|
}
|
|
194
186
|
|
|
195
|
-
.area-panel {
|
|
196
|
-
display: none;
|
|
197
|
-
padding: 1rem;
|
|
198
|
-
background-color: white;
|
|
199
|
-
font-size: 1rem;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
187
|
.area-panel .ccl-form-group:not(:first-of-type) {
|
|
203
188
|
margin-top: 0.5rem;
|
|
204
189
|
}
|
|
@@ -286,10 +271,12 @@
|
|
|
286
271
|
height: 440px;
|
|
287
272
|
padding: 0;
|
|
288
273
|
background: #ffffff;
|
|
274
|
+
overflow-x: hidden;
|
|
289
275
|
overflow-y: auto;
|
|
290
276
|
}
|
|
291
277
|
|
|
292
278
|
.map-menu .panel {
|
|
279
|
+
position: relative;
|
|
293
280
|
display: none;
|
|
294
281
|
animation: fadein 0.8s;
|
|
295
282
|
}
|
|
@@ -404,7 +391,7 @@
|
|
|
404
391
|
.map-menu-dataset > div:first-of-type {
|
|
405
392
|
display: flex;
|
|
406
393
|
width: 100%;
|
|
407
|
-
justify-content:
|
|
394
|
+
justify-content: space-between;
|
|
408
395
|
}
|
|
409
396
|
|
|
410
397
|
.map-menu-layers-container {
|
|
@@ -419,7 +406,7 @@
|
|
|
419
406
|
}
|
|
420
407
|
|
|
421
408
|
.map-menu-icon {
|
|
422
|
-
margin-left:
|
|
409
|
+
margin-left: 1rem;
|
|
423
410
|
color: #a0b128;
|
|
424
411
|
cursor: pointer;
|
|
425
412
|
font-size: 1rem;
|
|
@@ -539,10 +526,6 @@
|
|
|
539
526
|
}
|
|
540
527
|
|
|
541
528
|
/* Legend*/
|
|
542
|
-
.legend-panel {
|
|
543
|
-
display: none;
|
|
544
|
-
}
|
|
545
|
-
|
|
546
529
|
.legend-container {
|
|
547
530
|
display: flex;
|
|
548
531
|
box-shadow: none !important;
|