design-comuni-plone-theme 11.12.4 → 11.12.6
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/npm.yml +15 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +24 -0
- package/RELEASE.md +12 -0
- package/package.json +1 -1
- package/publiccode.yml +1 -1
- package/src/components/ItaliaTheme/Blocks/Listing/Commons/ListingImage.jsx +8 -7
- package/src/theme/ItaliaTheme/Blocks/_cardWithImage.scss +2 -2
- package/src/theme/ItaliaTheme/Blocks/_ctaBlock.scss +1 -1
- package/src/theme/ItaliaTheme/Blocks/_inEvidenceTemplate.scss +1 -1
- package/src/theme/ItaliaTheme/Blocks/_photogallerytemplate.scss +2 -2
- package/src/theme/ItaliaTheme/Blocks/_sliderTemplate.scss +4 -4
- package/.github/workflows/themes.yml +0 -23
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
name: Release latest version on npm
|
|
2
|
+
|
|
2
3
|
on:
|
|
3
4
|
release:
|
|
4
5
|
types: [released]
|
|
5
6
|
|
|
6
7
|
jobs:
|
|
7
8
|
release_to_npm:
|
|
9
|
+
name: Release to npm
|
|
8
10
|
runs-on: ubuntu-latest
|
|
9
11
|
permissions:
|
|
10
12
|
contents: read
|
|
@@ -25,3 +27,16 @@ jobs:
|
|
|
25
27
|
run: npm publish --provenance --access public
|
|
26
28
|
env:
|
|
27
29
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
30
|
+
|
|
31
|
+
- name: Get the version
|
|
32
|
+
id: get_version
|
|
33
|
+
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
|
|
34
|
+
|
|
35
|
+
- name: Trigger job
|
|
36
|
+
run: |
|
|
37
|
+
curl --fail --request POST \
|
|
38
|
+
--form token=${{ secrets.TOKEN }} \
|
|
39
|
+
--form ref=master \
|
|
40
|
+
--form "variables[ADDON_NAME]=design-comuni-plone-theme" \
|
|
41
|
+
--form "variables[ADDON_TAG]=${{ steps.get_version.outputs.VERSION }}" \
|
|
42
|
+
"https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline"
|
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [11.12.6](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.5...v11.12.6) (2024-05-30)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* applied img-wrapper styles to all html elements with class ([#688](https://github.com/RedTurtle/design-comuni-plone-theme/issues/688)) ([b66d5af](https://github.com/RedTurtle/design-comuni-plone-theme/commit/b66d5af94a754eaebc55336ad1c136611a9b01fe))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Documentation
|
|
12
|
+
|
|
13
|
+
* updated publiccode and release log ([6d86f99](https://github.com/RedTurtle/design-comuni-plone-theme/commit/6d86f99887b6622aa4f238a020d546fa8004eeb5))
|
|
14
|
+
|
|
15
|
+
## [11.12.5](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.4...v11.12.5) (2024-05-30)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* card with image when elements have no image ([ff99a3b](https://github.com/RedTurtle/design-comuni-plone-theme/commit/ff99a3b0081d734e63a853e6d44830cf9624a3f3))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Maintenance
|
|
24
|
+
|
|
25
|
+
* update release jobs ([1318aad](https://github.com/RedTurtle/design-comuni-plone-theme/commit/1318aad487cb310b7d445a305fb311243ee2fac5))
|
|
26
|
+
|
|
3
27
|
## [11.12.4](https://github.com/RedTurtle/design-comuni-plone-theme/compare/v11.12.3...v11.12.4) (2024-05-30)
|
|
4
28
|
|
|
5
29
|
|
package/RELEASE.md
CHANGED
|
@@ -41,6 +41,18 @@
|
|
|
41
41
|
- ...
|
|
42
42
|
-->
|
|
43
43
|
|
|
44
|
+
## Versione 11.12.6 (30/05/2024)
|
|
45
|
+
|
|
46
|
+
### Fix
|
|
47
|
+
|
|
48
|
+
- Il layout delle card con immagini rimane corretto anche selezionando l'opzione "Non alterare le dimensioni naturali dell'immagine".
|
|
49
|
+
|
|
50
|
+
## Versione 11.12.5 (30/05/2024)
|
|
51
|
+
|
|
52
|
+
### Fix
|
|
53
|
+
|
|
54
|
+
- Sistemato il layout "Card con immagine" dei blocchi elenco quando gli elementi non hanno immagine.
|
|
55
|
+
|
|
44
56
|
## Versione 11.12.4 (30/05/2024)
|
|
45
57
|
|
|
46
58
|
### Fix
|
package/package.json
CHANGED
package/publiccode.yml
CHANGED
|
@@ -229,7 +229,7 @@ platforms:
|
|
|
229
229
|
- web
|
|
230
230
|
releaseDate: '2024-05-30'
|
|
231
231
|
softwareType: standalone/web
|
|
232
|
-
softwareVersion: 11.12.
|
|
232
|
+
softwareVersion: 11.12.6
|
|
233
233
|
url: 'https://github.com/italia/design-comuni-plone-theme'
|
|
234
234
|
usedBy:
|
|
235
235
|
- ASP Comuni Modenesi Area Nord
|
|
@@ -31,17 +31,18 @@ const ListingImage = ({
|
|
|
31
31
|
// photogallery needs to check for null image
|
|
32
32
|
// https://stackoverflow.com/questions/33136399/is-there-a-way-to-tell-if-reactelement-renders-null
|
|
33
33
|
|
|
34
|
-
const image =
|
|
34
|
+
const image = Image(commonImageProps);
|
|
35
|
+
const defaultImage = <img src={DefaultImageSVG} alt="" />;
|
|
36
|
+
|
|
37
|
+
if (image === null && !showDefault) return null;
|
|
38
|
+
|
|
39
|
+
return !noWrapLink ? (
|
|
35
40
|
<UniversalLink item={item} className="img-wrapper">
|
|
36
|
-
{
|
|
41
|
+
{image ?? defaultImage}
|
|
37
42
|
</UniversalLink>
|
|
38
43
|
) : (
|
|
39
|
-
|
|
44
|
+
image ?? defaultImage
|
|
40
45
|
);
|
|
41
|
-
if (image === null)
|
|
42
|
-
return showDefault ? <img src={DefaultImageSVG} alt="" /> : null;
|
|
43
|
-
|
|
44
|
-
return image;
|
|
45
46
|
};
|
|
46
47
|
|
|
47
48
|
export const getListingImageBackground = (item = {}, size = 'listing') => {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
height: auto;
|
|
40
40
|
padding: 0;
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
.img-wrapper {
|
|
43
43
|
position: static;
|
|
44
44
|
margin: 0;
|
|
45
45
|
}
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
height: auto;
|
|
156
156
|
padding: 0;
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
.img-wrapper {
|
|
159
159
|
position: static;
|
|
160
160
|
margin: 0;
|
|
161
161
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.single-slide {
|
|
9
|
-
|
|
9
|
+
.img-wrapper {
|
|
10
10
|
height: auto;
|
|
11
11
|
max-height: 500px;
|
|
12
12
|
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
.img-wrapper {
|
|
20
20
|
display: flex;
|
|
21
21
|
flex-direction: column;
|
|
22
22
|
justify-content: center;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
position: relative;
|
|
56
56
|
margin: 0 auto;
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
.img-wrapper {
|
|
59
59
|
position: relative;
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
width: 100%;
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
|
|
130
130
|
.slide-wrapper {
|
|
131
131
|
.img-placeholder,
|
|
132
|
-
|
|
132
|
+
.img-wrapper {
|
|
133
133
|
height: 300px;
|
|
134
134
|
|
|
135
135
|
img {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
height: auto;
|
|
215
215
|
padding: 0;
|
|
216
216
|
|
|
217
|
-
|
|
217
|
+
.img-wrapper {
|
|
218
218
|
position: static;
|
|
219
219
|
margin: 0;
|
|
220
220
|
}
|
|
@@ -266,7 +266,7 @@
|
|
|
266
266
|
.slick-slide {
|
|
267
267
|
.slide-wrapper {
|
|
268
268
|
.img-placeholder,
|
|
269
|
-
|
|
269
|
+
.img-wrapper {
|
|
270
270
|
height: 150px;
|
|
271
271
|
|
|
272
272
|
img {
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Update related themes
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [released]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
update:
|
|
9
|
-
name: Update themes
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- name: Get the version
|
|
13
|
-
id: get_version
|
|
14
|
-
run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> "$GITHUB_OUTPUT"
|
|
15
|
-
|
|
16
|
-
- name: Trigger job
|
|
17
|
-
run: |
|
|
18
|
-
curl --fail --request POST \
|
|
19
|
-
--form token=${{ secrets.TOKEN }} \
|
|
20
|
-
--form ref=master \
|
|
21
|
-
--form "variables[ADDON_NAME]=design-comuni-plone-theme" \
|
|
22
|
-
--form "variables[ADDON_TAG]=${{ steps.get_version.outputs.VERSION }}" \
|
|
23
|
-
"https://gitlab.com/api/v4/projects/${{ secrets.PROJECT_ID }}/trigger/pipeline"
|