design-comuni-plone-theme 8.2.1 → 8.3.0
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/.github/workflows/develop.yml +1 -1
- package/.github/workflows/main.yml +1 -1
- package/.github/workflows/prs.yml +1 -1
- package/CHANGELOG.md +22 -0
- package/Makefile +1 -1
- package/package.json +1 -1
- package/publiccode.yml +2 -2
- package/src/components/ItaliaTheme/Blocks/Listing/CardWithImageTemplate.jsx +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/InEvidenceTemplate.jsx +1 -1
- package/src/components/ItaliaTheme/Cards/CardPersona.jsx +4 -2
- package/src/components/ItaliaTheme/Cards/CardPersona.test.jsx +1 -0
- package/src/components/ItaliaTheme/View/Commons/OfficeCard.jsx +2 -2
- package/src/components/ItaliaTheme/View/DocumentoView/DocumentoAutori.jsx +0 -2
- package/src/components/ItaliaTheme/View/UOView/UOPeople.jsx +1 -2
- package/src/components/ItaliaTheme/View/UOView/UOStructure.jsx +0 -1
- package/src/customizations/volto/components/theme/NotFound/NotFound.jsx +77 -0
- package/src/theme/ItaliaTheme/_common.scss +4 -0
- package/src/theme/_cms-ui.scss +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [8.3.0](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v8.2.1...v8.3.0) (2023-08-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* coherent description in card persona everywhere ([#273](https://github.com/RedTurtle/design-comuni-plone-theme/issues/273)) ([137fdd5](https://github.com/RedTurtle/design-comuni-plone-theme/commit/137fdd5a17d36ccb67c736467761d645f446d116))
|
|
9
|
+
* rimosso link a form contatto, aggiunto link a motore di ricerca del sito ([#269](https://github.com/RedTurtle/design-comuni-plone-theme/issues/269)) ([6793855](https://github.com/RedTurtle/design-comuni-plone-theme/commit/67938552ba8829c383757d8415c24861ce729b88))
|
|
10
|
+
* upgrade to volto alpha.19 ([02e3096](https://github.com/RedTurtle/design-comuni-plone-theme/commit/02e3096c61331cb5137003c2782fa07aaed23c32))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* equal height for card persona in uo people ([#276](https://github.com/RedTurtle/design-comuni-plone-theme/issues/276)) ([3a5e8d1](https://github.com/RedTurtle/design-comuni-plone-theme/commit/3a5e8d1672b5700e3d1097f43588ecff86efaff1))
|
|
16
|
+
* height of accessibility icon for external links ([#268](https://github.com/RedTurtle/design-comuni-plone-theme/issues/268)) ([8714eb2](https://github.com/RedTurtle/design-comuni-plone-theme/commit/8714eb29ad7a05b6f40058dfdf315e046dff00ef))
|
|
17
|
+
* optional chaining for pdc data in OfficeCard ([#274](https://github.com/RedTurtle/design-comuni-plone-theme/issues/274)) ([88ec896](https://github.com/RedTurtle/design-comuni-plone-theme/commit/88ec896ae9cbbc357ccb8d7a69977562aef3ab1a))
|
|
18
|
+
* z-index moved to a generic block ([#265](https://github.com/RedTurtle/design-comuni-plone-theme/issues/265)) ([c0d729c](https://github.com/RedTurtle/design-comuni-plone-theme/commit/c0d729ceaf50021f5752bfbb961124c3e03e7133))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Documentation
|
|
22
|
+
|
|
23
|
+
* updated publiccode ([6329a9b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/6329a9b3f47cc43d4958155db52529ce25f16807))
|
|
24
|
+
|
|
3
25
|
## [8.2.1](https://github.com/redturtle/design-comuni-plone-theme/compare/v8.2.0...v8.2.1) (2023-07-27)
|
|
4
26
|
|
|
5
27
|
|
package/Makefile
CHANGED
|
@@ -27,7 +27,7 @@ CURRENT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
|
|
27
27
|
# ADDON ?= "design-comuni-plone-theme"
|
|
28
28
|
|
|
29
29
|
PLONE_VERSION=6
|
|
30
|
-
VOLTO_VERSION=17.0.0-alpha.
|
|
30
|
+
VOLTO_VERSION=17.0.0-alpha.19
|
|
31
31
|
|
|
32
32
|
ADDON_NAME='design-comuni-plone-theme'
|
|
33
33
|
ADDON_PATH='design-comuni-plone-theme'
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -227,9 +227,9 @@ maintenance:
|
|
|
227
227
|
name: io-Comune - Il sito AgID per Comuni ed Enti Pubblici
|
|
228
228
|
platforms:
|
|
229
229
|
- web
|
|
230
|
-
releaseDate: '2023-
|
|
230
|
+
releaseDate: '2023-08-04'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 8.
|
|
232
|
+
softwareVersion: 8.3.0
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -107,7 +107,7 @@ const CardWithImageTemplate = (props) => {
|
|
|
107
107
|
className="listing-item card-bg shadow-sm"
|
|
108
108
|
showImage={showImage}
|
|
109
109
|
natural_image_size={natural_image_size}
|
|
110
|
-
|
|
110
|
+
show_description={show_description}
|
|
111
111
|
icon={icon}
|
|
112
112
|
type={category}
|
|
113
113
|
isEditMode={isEditMode}
|
|
@@ -15,7 +15,7 @@ export const CardPersona = ({
|
|
|
15
15
|
titleClassName = '',
|
|
16
16
|
titleTagName = 'h3',
|
|
17
17
|
showImage,
|
|
18
|
-
|
|
18
|
+
show_description = true,
|
|
19
19
|
icon,
|
|
20
20
|
type,
|
|
21
21
|
isEditMode,
|
|
@@ -53,7 +53,9 @@ export const CardPersona = ({
|
|
|
53
53
|
{item.title || item.id}
|
|
54
54
|
</UniversalLink>
|
|
55
55
|
</CardTitle>
|
|
56
|
-
{
|
|
56
|
+
{show_description && (
|
|
57
|
+
<CardText>{item.incarichi || item.description}</CardText>
|
|
58
|
+
)}
|
|
57
59
|
</CardBody>
|
|
58
60
|
{showImage && (
|
|
59
61
|
<div className="card-image card-image-rounded">{image}</div>
|
|
@@ -78,8 +78,8 @@ const OfficeCard = ({
|
|
|
78
78
|
{sede.zip_code} {sede.city}
|
|
79
79
|
</p>
|
|
80
80
|
)}
|
|
81
|
-
{office_fo
|
|
82
|
-
el
|
|
81
|
+
{office_fo?.contact_info?.map((el) =>
|
|
82
|
+
el?.value_punto_contatto?.map((pdc, i) => {
|
|
83
83
|
if (pdc.pdc_type === 'telefono') {
|
|
84
84
|
return (
|
|
85
85
|
<div key={i}>
|
|
@@ -3,7 +3,6 @@ import { defineMessages, useIntl } from 'react-intl';
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
|
|
5
5
|
import { Row, Col } from 'design-react-kit';
|
|
6
|
-
import { UniversalLink } from '@plone/volto/components';
|
|
7
6
|
import { CardPersona } from 'design-comuni-plone-theme/components/ItaliaTheme';
|
|
8
7
|
import { RichTextSection } from 'design-comuni-plone-theme/components/ItaliaTheme/View';
|
|
9
8
|
|
|
@@ -40,7 +39,6 @@ const DocumentoAutori = ({ autori, title }) => {
|
|
|
40
39
|
className="shadow-sm"
|
|
41
40
|
titleTagName="h5"
|
|
42
41
|
showImage={true}
|
|
43
|
-
listingText={autore?.incarichi ?? ''}
|
|
44
42
|
/>
|
|
45
43
|
</Col>
|
|
46
44
|
))}
|
|
@@ -28,7 +28,7 @@ const UOPeople = ({ content }) => {
|
|
|
28
28
|
<p className="mt-4">
|
|
29
29
|
{intl.formatMessage(messages.persone_p_description)}:
|
|
30
30
|
</p>
|
|
31
|
-
<Row className="card-wrapper card-teaser-wrapper
|
|
31
|
+
<Row className="card-wrapper card-teaser-wrapper card-teaser-wrapper-equal ruolo-persone-struttura">
|
|
32
32
|
{content?.persone_struttura?.map((p, _i) => {
|
|
33
33
|
return (
|
|
34
34
|
<Col xs="12" lg="12" xl="6" md="12" key={p['@id']}>
|
|
@@ -37,7 +37,6 @@ const UOPeople = ({ content }) => {
|
|
|
37
37
|
className={'shadow-sm'}
|
|
38
38
|
showImage={true}
|
|
39
39
|
titleTagName={'h5'}
|
|
40
|
-
listingText={p?.incarichi}
|
|
41
40
|
/>
|
|
42
41
|
</Col>
|
|
43
42
|
);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/*
|
|
2
|
+
CUSTOMIZATIONS:
|
|
3
|
+
- Removed the "Site Administration" link, added a link to the search page
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { useEffect } from 'react';
|
|
7
|
+
import { BodyClass, toBackendLang } from '@plone/volto/helpers';
|
|
8
|
+
import { FormattedMessage } from 'react-intl';
|
|
9
|
+
import { Link } from 'react-router-dom';
|
|
10
|
+
import { Container } from 'semantic-ui-react';
|
|
11
|
+
import { withServerErrorCode } from '@plone/volto/helpers/Utils/Utils';
|
|
12
|
+
import { useDispatch, useSelector } from 'react-redux';
|
|
13
|
+
import { getNavigation } from '@plone/volto/actions';
|
|
14
|
+
import config from '@plone/volto/registry';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Not found function.
|
|
18
|
+
* @function NotFound
|
|
19
|
+
* @returns {string} Markup of the not found page.
|
|
20
|
+
*/
|
|
21
|
+
const NotFound = () => {
|
|
22
|
+
const dispatch = useDispatch();
|
|
23
|
+
const lang = useSelector((state) => state.intl.locale);
|
|
24
|
+
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
dispatch(
|
|
27
|
+
getNavigation(
|
|
28
|
+
config.settings.isMultilingual ? `/${toBackendLang(lang)}` : '/',
|
|
29
|
+
config.settings.navDepth,
|
|
30
|
+
),
|
|
31
|
+
);
|
|
32
|
+
}, [dispatch, lang]);
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<Container className="view-wrapper">
|
|
36
|
+
<BodyClass className="page-not-found" />
|
|
37
|
+
<h1>
|
|
38
|
+
<FormattedMessage
|
|
39
|
+
id="This page does not seem to exist…"
|
|
40
|
+
defaultMessage="This page does not seem to exist…"
|
|
41
|
+
/>
|
|
42
|
+
</h1>
|
|
43
|
+
<p className="description">
|
|
44
|
+
<FormattedMessage
|
|
45
|
+
id="We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."
|
|
46
|
+
defaultMessage="We apologize for the inconvenience, but the page you were trying to access is not at this address. You can use the links below to help you find what you are looking for."
|
|
47
|
+
/>
|
|
48
|
+
</p>
|
|
49
|
+
<p>
|
|
50
|
+
<Link to="/search">
|
|
51
|
+
<FormattedMessage id="Search Site" defaultMessage="Search Site" />
|
|
52
|
+
</Link>
|
|
53
|
+
</p>
|
|
54
|
+
{/* <p>
|
|
55
|
+
<FormattedMessage
|
|
56
|
+
id="If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}."
|
|
57
|
+
defaultMessage="If you are certain you have the correct web address but are encountering an error, please contact the {site_admin}."
|
|
58
|
+
values={{
|
|
59
|
+
site_admin: (
|
|
60
|
+
<Link to="/contact-form">
|
|
61
|
+
<FormattedMessage
|
|
62
|
+
id="Site Administration"
|
|
63
|
+
defaultMessage="Site Administration"
|
|
64
|
+
/>
|
|
65
|
+
</Link>
|
|
66
|
+
),
|
|
67
|
+
}}
|
|
68
|
+
/>
|
|
69
|
+
</p> */}
|
|
70
|
+
<p>
|
|
71
|
+
<FormattedMessage id="Thank you." defaultMessage="Thank you." />
|
|
72
|
+
</p>
|
|
73
|
+
</Container>
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export default withServerErrorCode(404)(NotFound);
|
package/src/theme/_cms-ui.scss
CHANGED
|
@@ -406,7 +406,12 @@ body.cms-ui {
|
|
|
406
406
|
.public-DraftStyleDefault-block {
|
|
407
407
|
margin-bottom: unset;
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
// z-index necessario su Volto 17 finché non passiamo ad usare slate
|
|
413
|
+
.block {
|
|
414
|
+
.DraftEditor-root {
|
|
410
415
|
.DraftEditor-editorContainer,
|
|
411
416
|
.public-DraftEditorPlaceholder-root {
|
|
412
417
|
z-index: 0;
|