Skip to content

Commit 623eee9

Browse files
authored
Merge pull request #65 from eea/develop
Release
2 parents 57fc90c + 1f32a2e commit 623eee9

11 files changed

Lines changed: 43 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
### [6.0.0](https://github.com/eea/volto-columns-block/compare/5.2.0...6.0.0) - 7 February 2023
8+
9+
#### :hammer_and_wrench: Others
10+
11+
- Release 6.0.0 [Alin Voinea - [`947cd73`](https://github.com/eea/volto-columns-block/commit/947cd730ac967515e8a508924eab6efb3e485196)]
712
### [5.2.0](https://github.com/eea/volto-columns-block/compare/5.1.0...5.2.0) - 28 December 2022
813

914
#### :hammer_and_wrench: Others

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pipeline {
44
environment {
55
GIT_NAME = "volto-columns-block"
66
NAMESPACE = "@eeacms"
7-
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,biodiversity.europa.eu,www.eea.europa.eu-ims,sustainability.eionet.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu,water.europa.eu-freshwater,demo-www.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,circularity.eea.europa.eu,prod-www.eea.europa.eu,water.europa.eu-marine,demo-kitkat.dev2aws.eea.europa.eu,climate-adapt.eea.europa.eu,climate-advisory-board.devel4cph.eea.europa.eu"
7+
SONARQUBE_TAGS = "volto.eea.europa.eu,climate-energy.eea.europa.eu,forest.eea.europa.eu,biodiversity.europa.eu,www.eea.europa.eu-ims,sustainability.eionet.europa.eu,clms.land.copernicus.eu,industry.eea.europa.eu,water.europa.eu-freshwater,demo-www.eea.europa.eu,clmsdemo.devel6cph.eea.europa.eu,circularity.eea.europa.eu,prod-www.eea.europa.eu,water.europa.eu-marine,demo-kitkat.dev2aws.eea.europa.eu,climate-adapt.eea.europa.eu,climate-advisory-board.devel4cph.eea.europa.eu,climate-advisory-board.europa.eu"
88
DEPENDENCIES = ""
99
VOLTO = ""
1010
}

locales/de/LC_MESSAGES/volto.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ msgstr "Prozent"
109109
msgid "Reverse wrap"
110110
msgstr ""
111111

112+
#: ColumnsBlock/ColumnVariations
113+
# defaultMessage: Select layout
114+
msgid "Select layout"
115+
msgstr ""
116+
112117
#: Widgets/QuadSize
113118
# defaultMessage: Size
114119
msgid "Size"

locales/en/LC_MESSAGES/volto.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ msgstr ""
109109
msgid "Reverse wrap"
110110
msgstr ""
111111

112+
#: ColumnsBlock/ColumnVariations
113+
# defaultMessage: Select layout
114+
msgid "Select layout"
115+
msgstr ""
116+
112117
#: Widgets/QuadSize
113118
# defaultMessage: Size
114119
msgid "Size"

locales/pt_BR/LC_MESSAGES/volto.po

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ msgstr "Percentagem"
109109
msgid "Reverse wrap"
110110
msgstr "Quebra reversa"
111111

112+
#: ColumnsBlock/ColumnVariations
113+
# defaultMessage: Select layout
114+
msgid "Select layout"
115+
msgstr "Selecione o layout"
116+
112117
#: Widgets/QuadSize
113118
# defaultMessage: Size
114119
msgid "Size"

locales/volto.pot

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr ""
33
"Project-Id-Version: Plone\n"
4-
"POT-Creation-Date: 2022-12-16T16:09:46.028Z\n"
4+
"POT-Creation-Date: 2023-01-25T20:23:49.511Z\n"
55
"Last-Translator: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
66
"Language-Team: Plone i18n <plone-i18n@lists.sourceforge.net>\n"
77
"MIME-Version: 1.0\n"
@@ -111,6 +111,11 @@ msgstr ""
111111
msgid "Reverse wrap"
112112
msgstr ""
113113

114+
#: ColumnsBlock/ColumnVariations
115+
# defaultMessage: Select layout
116+
msgid "Select layout"
117+
msgstr ""
118+
114119
#: Widgets/QuadSize
115120
# defaultMessage: Size
116121
msgid "Size"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@eeacms/volto-columns-block",
3-
"version": "5.2.0",
3+
"version": "6.0.0",
44
"description": "volto-columns-block: Volto add-on",
55
"main": "src/index.js",
66
"author": "European Environment Agency: IDM2 A-Team",

src/ColumnsBlock/ColumnVariations.jsx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
import React from 'react';
2+
import { defineMessages, injectIntl } from 'react-intl';
23
import { Segment, Card } from 'semantic-ui-react';
34
import { Icon } from '@plone/volto/components';
45

5-
export default ({ data, onChange, children, variants }) => {
6+
const messages = defineMessages({
7+
selectLayout: {
8+
id: 'Select layout',
9+
defaultMessage: 'Select layout',
10+
},
11+
});
12+
13+
const ColumnVariations = ({ onChange, variants, intl }) => {
614
return (
715
<Segment>
8-
<h4>Select layout:</h4>
16+
<h4>{intl.formatMessage(messages.selectLayout)}:</h4>
917
<Card.Group centered itemsPerRow={7}>
1018
{variants.map(({ icon, defaultData, title }, index) => (
1119
<Card key={index} onClick={() => onChange(defaultData)}>
@@ -19,3 +27,5 @@ export default ({ data, onChange, children, variants }) => {
1927
</Segment>
2028
);
2129
};
30+
31+
export default injectIntl(ColumnVariations);

src/ColumnsBlock/ColumnVariations.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ test('renders column variations component', () => {
1111
const store = mockStore({
1212
intl: {
1313
locale: 'en',
14-
messages: {},
14+
formatMessage: () => 'Select layout',
1515
},
1616
});
1717

src/ColumnsBlock/ColumnsBlockEdit.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ class ColumnsBlockEdit extends React.Component {
337337
{!isInitialized ? (
338338
<ColumnVariations
339339
variants={variants.filter((variant) => variant.common)}
340-
data={data}
341340
onChange={(initialData) => {
342341
onChangeBlock(block, {
343342
...data,

0 commit comments

Comments
 (0)