diff --git a/frontend/mrs.developer.json b/frontend/mrs.developer.json
index 6320943c..479b13fa 100644
--- a/frontend/mrs.developer.json
+++ b/frontend/mrs.developer.json
@@ -1,61 +1,5 @@
{
"volto-plonede": {
"local": "addons/volto-plonede/src"
- },
- "volto-slider-block": {
- "develop": false,
- "package": "@kitconcept/volto-slider-block",
- "url": "git@github.com:kitconcept/volto-slider-block.git",
- "https": "https://github.com/kitconcept/volto-slider-block.git",
- "path": "src",
- "branch": "master"
- },
- "volto-heading-block": {
- "develop": false,
- "package": "@kitconcept/volto-heading-block",
- "url": "git@github.com:kitconcept/volto-heading-block.git",
- "https": "https://github.com/kitconcept/volto-heading-block.git",
- "path": "src",
- "branch": "master"
- },
- "volto-blocks-grid": {
- "develop": false,
- "package": "@kitconcept/volto-blocks-grid",
- "url": "git@github.com:kitconcept/volto-blocks-grid.git",
- "https": "https://github.com/kitconcept/volto-blocks-grid.git",
- "path": "src",
- "branch": "main"
- },
- "volto-button-block": {
- "develop": false,
- "package": "@kitconcept/volto-button-block",
- "url": "git@github.com:kitconcept/volto-button-block.git",
- "https": "https://github.com/kitconcept/volto-button-block.git",
- "path": "src",
- "branch": "master"
- },
- "volto-separator-block": {
- "develop": false,
- "package": "@kitconcept/volto-separator-block",
- "url": "git@github.com:kitconcept/volto-separator-block.git",
- "https": "https://github.com/kitconcept/volto-separator-block.git",
- "path": "src",
- "branch": "main"
- },
- "volto-introduction-block": {
- "develop": false,
- "package": "@kitconcept/volto-introduction-block",
- "url": "git@github.com:kitconcept/volto-introduction-block.git",
- "https": "https://github.com/kitconcept/volto-introduction-block.git",
- "path": "src",
- "branch": "main"
- },
- "volto-dsgvo-banner": {
- "develop": false,
- "package": "@kitconcept/volto-dsgvo-banner",
- "url": "git@github.com:kitconcept/volto-dsgvo-banner.git",
- "https": "https://github.com/kitconcept/volto-dsgvo-banner.git",
- "path": "src",
- "branch": "master"
}
}
diff --git a/frontend/package.json b/frontend/package.json
index c7a7efab..c4aee40f 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -27,7 +27,6 @@
"addons": [
"@eeacms/volto-accordion-block",
"@eeacms/volto-matomo",
- "@kitconcept/volto-blocks-grid",
"@kitconcept/volto-button-block",
"@kitconcept/volto-dsgvo-banner",
"@kitconcept/volto-export",
@@ -36,6 +35,7 @@
"@kitconcept/volto-separator-block",
"@kitconcept/volto-slider-block",
"@plone-collective/volto-authomatic",
+ "@kitconcept/volto-light-theme",
"volto-form-block",
"volto-plonede"
],
@@ -142,7 +142,6 @@
"dependencies": {
"@eeacms/volto-accordion-block": "10.3.0",
"@eeacms/volto-matomo": "4.1.3",
- "@kitconcept/volto-blocks-grid": "8.0.3",
"@kitconcept/volto-button-block": "2.3.1",
"@kitconcept/volto-dsgvo-banner": "2.2.0",
"@kitconcept/volto-export": "1.1.0",
diff --git a/frontend/src/addons/volto-plonede/src/components/index.js b/frontend/src/addons/volto-plonede/src/components/index.js
deleted file mode 100644
index cf9a47fa..00000000
--- a/frontend/src/addons/volto-plonede/src/components/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ButtonBlockSchemaEnhancer } from './manage/Blocks/ButtonBlockEnhancer';
-import { DefaultStylingSchemaEnhancer } from './manage/Blocks/DefaultStylingEnhancer';
-import { HeadingBlockSchemaEnhancer } from './manage/Blocks/HeadingBlockEnhancer';
-import { HeroBlockSchemaEnhancer } from './manage/Blocks/HeroBlockEnhancer';
-import { ImageBlockSchemaEnhancer } from './manage/Blocks/ImageBlockEnhancer';
-import { ListingBlockSchemaEnhancer } from './manage/Blocks/ListingBlockEnhancer';
-import { SliderBlockSchemaEnhancer } from './manage/Blocks/SliderBlockEnhancer';
-import { TeaserBlockSchemaEnhancer } from './manage/Blocks/TeaserBlockEnhancer';
-import { VideoBlockSchemaEnhancer } from './manage/Blocks/VideoBlockEnhancer';
-import EventTemplate from './manage/Blocks/Listing/EventTemplate';
-
-export {
- ButtonBlockSchemaEnhancer,
- DefaultStylingSchemaEnhancer,
- HeadingBlockSchemaEnhancer,
- HeroBlockSchemaEnhancer,
- ImageBlockSchemaEnhancer,
- ListingBlockSchemaEnhancer,
- SliderBlockSchemaEnhancer,
- TeaserBlockSchemaEnhancer,
- VideoBlockSchemaEnhancer,
- EventTemplate,
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ButtonBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ButtonBlockEnhancer.js
deleted file mode 100644
index f91c59bc..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ButtonBlockEnhancer.js
+++ /dev/null
@@ -1,42 +0,0 @@
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- backgroundColor: {
- id: 'Background color',
- defaultMessage: 'Background color',
- },
- newTab: {
- id: 'Open in new tab',
- defaultMessage: 'Open in new tab',
- },
- outerAlign: {
- id: 'Alignment',
- defaultMessage: 'Alignment',
- },
-});
-export const ButtonBlockSchemaEnhancer = ({ schema, intl }) => {
- //Color
- const colors = [
- { name: 'white', label: 'White' },
- { name: 'blue', label: 'Blue' },
- ];
- schema.properties.backgroundColor = {
- widget: 'color_picker',
- title: intl.formatMessage(messages.backgroundColor),
- colors,
- default: 'blue',
- };
- schema.properties.outerAlign = {
- widget: 'align',
- title: intl.formatMessage(messages.outerAlign),
- actions: ['center', 'wide'],
- default: 'wide',
- };
-
- const arr = schema.fieldsets[0].fields;
- arr.splice(2, 0, 'outerAlign');
- arr.push('backgroundColor');
- schema.fieldsets[0].fields = arr;
-
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/DefaultStylingEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/DefaultStylingEnhancer.js
deleted file mode 100644
index d7e48522..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/DefaultStylingEnhancer.js
+++ /dev/null
@@ -1,37 +0,0 @@
-import { addStyling } from '@plone/volto/helpers/Extensions/withBlockSchemaEnhancer';
-import { defineMessages } from 'react-intl';
-import config from '@plone/volto/registry';
-
-const messages = defineMessages({
- backgroundColor: {
- id: 'Background color',
- defaultMessage: 'Background color',
- },
-});
-
-export const DefaultStylingSchemaEnhancer = ({ schema, formData, intl }) => {
- const DLR_BG_COLORS = [
- { name: 'transparent', label: 'Transparent' },
- { name: 'grey', label: 'Grey' },
- ];
-
- const colors =
- config.blocks?.blocksConfig?.[formData['@type']]?.colors || DLR_BG_COLORS;
-
- const defaultBGColor =
- config.blocks?.blocksConfig?.[formData['@type']]?.defaultBGColor;
-
- addStyling({ schema, intl });
-
- schema.properties.styles.schema.fieldsets[0].fields = [
- ...schema.properties.styles.schema.fieldsets[0].fields,
- 'backgroundColor',
- ];
- schema.properties.styles.schema.properties.backgroundColor = {
- widget: 'color_picker',
- title: intl.formatMessage(messages.backgroundColor),
- colors,
- default: defaultBGColor,
- };
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/HeadingBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/HeadingBlockEnhancer.js
deleted file mode 100644
index f0caa042..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/HeadingBlockEnhancer.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export const HeadingBlockSchemaEnhancer = ({ schema }) => {
- schema.properties.align = {
- title: 'Align',
- widget: 'align',
- actions: ['left', 'center', 'right'],
- default: 'left',
- };
- schema.fieldsets[0].fields = [...schema.fieldsets[0].fields, ...['align']];
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/HeroBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/HeroBlockEnhancer.js
deleted file mode 100644
index ce4f9f05..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/HeroBlockEnhancer.js
+++ /dev/null
@@ -1,75 +0,0 @@
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- //Button
- buttonColor: {
- id: 'Button color',
- defaultMessage: 'Button color',
- },
- buttonText: {
- id: 'Button text',
- defaultMessage: 'Button text',
- },
-
- //Backgroundcolor
- backgroundColor: {
- id: 'Background color',
- defaultMessage: 'Background color',
- },
- showButton: {
- id: 'Show button',
- defineMessage: 'Show button',
- },
- buttonSettings: {
- id: 'Button settings',
- defineMessage: 'Button settings',
- },
-});
-
-export const HeroBlockSchemaEnhancer = ({ schema, formData, intl }) => {
- //Alignment
- schema.properties.align = {
- title: 'Align',
- widget: 'align',
- actions: ['left', 'right'],
- default: 'left',
- };
-
- //Button
- schema.properties.showButton = {
- type: 'boolean',
- default: false,
- title: intl.formatMessage(messages.showButton),
- };
-
- const buttonColors = [
- { name: 'white', label: 'White' },
- { name: 'blue', label: 'Blue' },
- ];
- schema.properties.buttonColor = {
- widget: 'color_picker',
- title: intl.formatMessage(messages.buttonColor),
- colors: buttonColors,
- default: 'blue',
- };
- schema.properties.buttonText = {
- title: intl.formatMessage(messages.buttonText),
- };
-
- schema.fieldsets[0].fields = ['align'];
-
- schema.fieldsets = [
- ...schema.fieldsets,
- {
- id: 'button settings',
- title: intl.formatMessage(messages.buttonSettings),
- fields: [
- ...(formData.showButton
- ? ['showButton', 'linkHref', 'buttonText', 'buttonColor']
- : ['showButton']),
- ],
- },
- ];
-
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ImageBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ImageBlockEnhancer.js
deleted file mode 100644
index ca721a8c..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ImageBlockEnhancer.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- title: {
- id: 'Title',
- defaultMessage: 'Title',
- },
- credits: {
- id: 'Credits',
- defaultMessage: 'Credits',
- },
- linkTo: {
- id: 'Link to',
- defineMessage: 'Link to',
- },
- creditSettings: {
- id: 'Credit settings',
- defaultMessage: 'Credit settings',
- },
- openLinkInNewTab: {
- id: 'Open in new tab',
- defaultMessage: 'Open in new tab',
- },
-});
-
-export const ImageBlockSchemaEnhancer = ({ intl, formData, schema }) => {
- schema.properties.align.default = 'center';
- schema.properties.align.actions = ['left', 'right', 'center', 'wide', 'full'];
- schema.properties.size.default = 'l';
- schema.properties.size.disabled =
- formData.align === 'full' ||
- formData.align === 'wide' ||
- formData.align === 'center';
-
- schema.properties.credits = {
- title: intl.formatMessage(messages.credits),
- };
-
- schema.properties.title = {
- title: intl.formatMessage(messages.title),
- };
-
- schema.properties.linkTo = {
- title: intl.formatMessage(messages.linkTo),
- widget: 'object_browser',
- mode: 'link',
- selectedItemAttrs: ['Title', 'Description', 'hasPreviewImage'],
- allowExternals: true,
- };
-
- schema.fieldsets = [
- ...schema.fieldsets,
- {
- id: 'credit settings',
- title: intl.formatMessage(messages.creditSettings),
- fields: [...['title', 'credits', 'linkTo']],
- },
- ];
-
- //schema.fieldsets[0].fields = [...schema.fieldsets[0].fields, ...['']];
-
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/Listing/EventTemplate.jsx b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/Listing/EventTemplate.jsx
deleted file mode 100644
index ec0c7f6f..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/Listing/EventTemplate.jsx
+++ /dev/null
@@ -1,77 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { ConditionalLink, Component } from '@plone/volto/components';
-import { flattenToAppURL } from '@plone/volto/helpers';
-import { isInternalURL } from '@plone/volto/helpers/Url/Url';
-import FormattedDate from '@plone/volto/components/theme/FormattedDate/FormattedDate';
-
-const EventTemplate = ({ items, linkTitle, linkHref, isEditMode }) => {
- let link = null;
- let href = linkHref?.[0]?.['@id'] || '';
-
- if (isInternalURL(href)) {
- link = (
-
- {linkTitle || href}
-
- );
- } else if (href) {
- link = {linkTitle || href} ;
- }
- return (
- <>
-
- {items.map((item) => (
-
-
-
-
-
- {item?.start ? (
-
- ) : (
- No date
- )}{' '}
- —
- {item?.end ? (
-
- ) : (
- No date
- )}
-
- {item?.location ? (
-
, {item.location}
- ) : (
- <>>
- )}
-
-
-
- {item.title ? item.title : item.id}
-
-
-
{item.description}
-
-
- ))}
-
-
- {link && {link}
}
- >
- );
-};
-
-EventTemplate.propTypes = {
- items: PropTypes.arrayOf(PropTypes.any).isRequired,
- linkMore: PropTypes.any,
- isEditMode: PropTypes.bool,
-};
-
-export default EventTemplate;
-
-//item.start && item.end && item.location
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ListingBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ListingBlockEnhancer.js
deleted file mode 100644
index 54ab0dcb..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/ListingBlockEnhancer.js
+++ /dev/null
@@ -1,3 +0,0 @@
-export const ListingBlockSchemaEnhancer = ({ schema }) => {
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/SliderBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/SliderBlockEnhancer.js
deleted file mode 100644
index 9c4c7868..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/SliderBlockEnhancer.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- buttonColor: {
- id: 'Button color',
- defaultMessage: 'Button color',
- },
- buttonText: {
- id: 'Button text',
- defaultMessage: 'Button text',
- },
- showButton: {
- id: 'Show button',
- defaultMessage: 'Show button',
- },
- flagAlign: {
- id: 'Flag alginment',
- defaultMessage: 'Flag alignment',
- },
-});
-
-export const SliderBlockSchemaEnhancer = ({ schema, intl, formData }) => {
- schema.properties.slides.schema.properties.buttonText = {
- title: intl.formatMessage(messages.buttonText),
- };
- schema.properties.slides.schema.properties.flagAlign = {
- widget: 'inner_align',
- title: intl.formatMessage(messages.flagAlign),
- actions: ['left', 'right'],
- default: 'left',
- };
- schema.properties.slides.schema.fieldsets[0].fields = [
- ...schema.properties.slides.schema.fieldsets[0].fields,
- ...['buttonText', 'flagAlign'],
- ];
- //schema.fieldsets[0].fields = [...schema.fieldsets[0].fields, ...];
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/TeaserBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/TeaserBlockEnhancer.js
deleted file mode 100644
index 6c2057a5..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/TeaserBlockEnhancer.js
+++ /dev/null
@@ -1,10 +0,0 @@
-export const TeaserBlockSchemaEnhancer = ({ schema }) => {
- schema.properties.align = {
- title: 'Object-fit',
- widget: 'align',
- actions: ['center', 'full'],
- default: 'full',
- };
- schema.fieldsets[0].fields = [...schema.fieldsets[0].fields, ...['align']];
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/VideoBlockEnhancer.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/VideoBlockEnhancer.js
deleted file mode 100644
index a3bb5561..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/VideoBlockEnhancer.js
+++ /dev/null
@@ -1,55 +0,0 @@
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- title: {
- id: 'Title',
- defaultMessage: 'Title',
- },
- credits: {
- id: 'Credits',
- defaultMessage: 'Credits',
- },
- linkTo: {
- id: 'Link to',
- defineMessage: 'Link to',
- },
- creditSettings: {
- id: 'Credit settings',
- defaultMessage: 'Credit settings',
- },
- openLinkInNewTab: {
- id: 'Open in new tab',
- defaultMessage: 'Open in new tab',
- },
-});
-
-export const VideoBlockSchemaEnhancer = ({ intl, formData, schema }) => {
- schema.properties.credits = {
- title: intl.formatMessage(messages.credits),
- };
-
- schema.properties.title = {
- title: intl.formatMessage(messages.title),
- };
-
- schema.properties.linkTo = {
- title: intl.formatMessage(messages.linkTo),
- widget: 'object_browser',
- mode: 'link',
- selectedItemAttrs: ['Title', 'Description', 'hasPreviewImage'],
- allowExternals: true,
- };
-
- schema.fieldsets = [
- ...schema.fieldsets,
- {
- id: 'credit settings',
- title: intl.formatMessage(messages.creditSettings),
- fields: [...['title', 'credits', 'linkTo']],
- },
- ];
-
- //schema.fieldsets[0].fields = [...schema.fieldsets[0].fields, ...['']];
-
- return schema;
-};
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Data.jsx b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Data.jsx
deleted file mode 100644
index f448e1a7..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Data.jsx
+++ /dev/null
@@ -1,47 +0,0 @@
-import React from 'react';
-import { BlockDataForm } from '@plone/volto/components';
-
-import { Schema } from './schema';
-import { useIntl, defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- Quote: {
- id: 'Quote',
- defaultMessage: 'Quote',
- },
-});
-
-const QuoteBlockData = (props) => {
- const { data, block, onChangeBlock } = props;
-
- const intl = useIntl();
-
- React.useEffect(() => {
- onChangeBlock(block, {
- ...data,
- backgroundColor: data.backgroundColor || '#d5dde2',
- person: data.person,
- position: data.position,
- });
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
- return (
- {
- onChangeBlock(block, {
- ...data,
- [id]: value,
- });
- }}
- formData={data}
- fieldIndex={data.index}
- basic
- unwrapped
- block={block}
- />
- );
-};
-
-export default QuoteBlockData;
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Edit.jsx b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Edit.jsx
deleted file mode 100644
index a0b78103..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Edit.jsx
+++ /dev/null
@@ -1,21 +0,0 @@
-import React from 'react';
-
-import { SidebarPortal } from '@plone/volto/components';
-import View from './View';
-
-import QuoteSidebar from './Data';
-
-const QuoteBlockEdit = (props) => {
- const { data, block, onChangeBlock, selected } = props;
-
- return (
- <>
-
-
-
-
- >
- );
-};
-
-export default QuoteBlockEdit;
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Sidebar.jsx b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Sidebar.jsx
deleted file mode 100644
index 1e0af327..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/Sidebar.jsx
+++ /dev/null
@@ -1,7 +0,0 @@
-import Data from './Data';
-
-const QuoteSidebar = (props) => {
- return ;
-};
-
-export default QuoteSidebar;
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/View.jsx b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/View.jsx
deleted file mode 100644
index 7f500d2e..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/View.jsx
+++ /dev/null
@@ -1,70 +0,0 @@
-import React from 'react';
-import cx from 'classnames';
-import { flattenToAppURL } from '@plone/volto/helpers';
-import QuoteImage from './quote.png';
-import QuoteImageGrey from './quote-grey.png';
-// import quoteSVG from '@plone/volto/icons/quote.svg';
-// import { Icon } from '@plone/volto/components';
-
-const QuoteBlockView = (props) => {
- const { data } = props;
- return (
- <>
- {data && (
- 0,
- // The image is returned in an array (empty array = true)
- // so we are checking the length of the array to set the 'no-image'
- // class when the array is empty.
- 'align-left': data.align === 'left',
- })}
- >
-
- {data?.image?.[0] && (
-
-
-
- )}
-
-
- {data.align !== 'left' && (
-
- )}
- {data.align === 'left' ? '„' : null}
- {data.text}“
-
-
- {data.person}
- {data.position && ', '}
- {data.position}
-
-
-
-
- )}
- >
- );
-};
-
-export default QuoteBlockView;
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/quote-grey.png b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/quote-grey.png
deleted file mode 100644
index 40f4ad49..00000000
Binary files a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/quote-grey.png and /dev/null differ
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/quote.png b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/quote.png
deleted file mode 100644
index 94ee4e88..00000000
Binary files a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/quote.png and /dev/null differ
diff --git a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/schema.js b/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/schema.js
deleted file mode 100644
index fc32175c..00000000
--- a/frontend/src/addons/volto-plonede/src/components/manage/Blocks/volto-quote-block/schema.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import { defineMessages } from 'react-intl';
-
-const messages = defineMessages({
- quote: {
- id: 'Quote',
- defaultMessage: 'Quote',
- },
- image: {
- id: 'Image',
- defaultMessage: 'Image',
- },
- quoteText: {
- id: 'Quote-text',
- defaultMessage: 'Quote-text',
- },
- quotedPerson: {
- id: 'Quoted person',
- defaultMessage: 'Quoted person',
- },
- name: {
- id: 'Name',
- defaultMessage: 'Name',
- },
- position: {
- id: 'Position',
- defaultMessage: 'Position',
- },
- backgroundColor: {
- id: 'Background color',
- defaultMessage: 'Background color',
- },
- imageAlignment: {
- id: 'Image Alignment',
- defaultMessage: 'Image Alignment',
- },
-});
-export const Schema = (props) => {
- const { intl } = props;
- const colors = [
- { name: 'white', label: 'White' },
- { name: 'lightGrey', label: 'Light grey' },
- ];
- return {
- block: intl.formatMessage(messages.quote),
- fieldsets: [
- {
- id: 'default',
- title: 'Default',
- fields: ['image', 'text', 'backgroundColor', 'align'],
- },
- {
- id: 'person',
- title: intl.formatMessage(messages.quotedPerson),
- fields: ['person', 'position'],
- },
- ],
- properties: {
- image: {
- title: intl.formatMessage(messages.image),
- widget: 'object_browser',
- mode: 'image',
- selectedItemAttrs: [],
- },
- text: {
- title: intl.formatMessage(messages.quoteText),
- widget: 'textarea',
- },
- person: { title: intl.formatMessage(messages.name) },
- position: { title: intl.formatMessage(messages.position) },
- backgroundColor: {
- title: intl.formatMessage(messages.backgroundColor),
- widget: 'color_picker',
- colors,
- default: 'lightGrey',
- },
- align: {
- title: intl.formatMessage(messages.imageAlignment),
- widget: 'quoteAlign',
- },
- },
- required: [],
- };
-};
diff --git a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-blocks-grid/components/Teaser/DefaultBody.jsx b/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-blocks-grid/components/Teaser/DefaultBody.jsx
deleted file mode 100644
index 65516d8a..00000000
--- a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-blocks-grid/components/Teaser/DefaultBody.jsx
+++ /dev/null
@@ -1,88 +0,0 @@
-import React from 'react';
-import PropTypes from 'prop-types';
-import { Message } from 'semantic-ui-react';
-import { defineMessages, useIntl } from 'react-intl';
-import imageBlockSVG from '@plone/volto/components/manage/Blocks/Image/block-image.svg';
-import { flattenToAppURL } from '@plone/volto/helpers';
-import { getTeaserImageURL } from '@kitconcept/volto-blocks-grid/components/Teaser/utils';
-import { MaybeWrap } from '@plone/volto/components';
-import { UniversalLink } from '@plone/volto/components';
-import cx from 'classnames';
-import config from '@plone/volto/registry';
-
-const messages = defineMessages({
- PleaseChooseContent: {
- id: 'Please choose an existing content as source for this element',
- defaultMessage:
- 'Please choose an existing content as source for this element',
- },
-});
-
-const DefaultImage = (props) => ;
-
-const TeaserDefaultTemplate = (props) => {
- const { className, data, isEditMode } = props;
- const intl = useIntl();
- const href = data.href?.[0];
- const image = data.preview_image?.[0];
- const align = data?.styles?.align;
-
- const hasImageComponent = config.getComponent('Image').component;
- const Image = config.getComponent('Image').component || DefaultImage;
- const defaultImageSrc =
- href && flattenToAppURL(getTeaserImageURL({ href, image, align }));
-
- return (
-
- <>
- {!href && isEditMode && (
-
-
-
-
{intl.formatMessage(messages.PleaseChooseContent)}
-
-
- )}
- {href && (
-
-
- {(href.hasPreviewImage || href.image_field || image) && (
-
-
-
- )}
-
- {data?.head_title && (
-
{data.head_title}
- )}
-
-
{data?.title}
- {!data.hide_description &&
{data?.description}
}
-
-
-
- )}
- >
-
- );
-};
-
-TeaserDefaultTemplate.propTypes = {
- data: PropTypes.objectOf(PropTypes.any).isRequired,
- isEditMode: PropTypes.bool,
-};
-
-export default TeaserDefaultTemplate;
diff --git a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-button-block/components/View.jsx b/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-button-block/components/View.jsx
deleted file mode 100644
index 6e135de1..00000000
--- a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-button-block/components/View.jsx
+++ /dev/null
@@ -1,78 +0,0 @@
-import React from 'react';
-import { Button } from 'semantic-ui-react';
-import cx from 'classnames';
-import { ConditionalLink } from '@plone/volto/components';
-import { flattenToAppURL, isInternalURL } from '@plone/volto/helpers';
-import { defineMessages, useIntl } from 'react-intl';
-
-const messages = defineMessages({
- ButtonText: {
- id: 'Button text',
- defaultMessage: 'Button text',
- },
-});
-
-const View = (props) => {
- const { className, data, isEditMode } = props;
- const [hasLink, setHasLink] = React.useState(false);
- const intl = useIntl();
-
- React.useEffect(() => {
- if (data.href) {
- if (data.href && data.href.length > 0) {
- setHasLink(true);
- }
- if (data.href.length === 0) {
- setHasLink(false);
- }
- }
-
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, [data.href]);
-
- const link = hasLink ? (
- data.href.length > 0 && isInternalURL(data.href[0]['@id']) ? (
- 0 ? flattenToAppURL(data.href[0]['@id']) : ''}
- condition={!isEditMode}
- >
-
- {data.title || intl.formatMessage(messages.ButtonText)}
-
-
- ) : (
- data.href.length > 0 && (
-
-
- {data.title || intl.formatMessage(messages.ButtonText)}
-
-
- )
- )
- ) : (
-
- {data.title || intl.formatMessage(messages.ButtonText)}
-
- );
-
- return (
-
- );
-};
-
-export default View;
diff --git a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-dsgvo-banner/components/Banner/Banner.jsx b/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-dsgvo-banner/components/Banner/Banner.jsx
deleted file mode 100644
index bbcf08ed..00000000
--- a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-dsgvo-banner/components/Banner/Banner.jsx
+++ /dev/null
@@ -1,292 +0,0 @@
-/* eslint-disable import/no-unresolved */
-import React, { useState, useEffect } from 'react';
-import { includes, isObject } from 'lodash';
-import { Button, Modal, Checkbox, Form } from 'semantic-ui-react';
-import { useCookies } from 'react-cookie';
-import { Link } from 'react-router-dom';
-import { connect } from 'react-redux';
-import config from '@plone/volto/registry';
-import { useIntl, defineMessages, FormattedMessage } from 'react-intl';
-import Google from '@kitconcept/volto-dsgvo-banner/components/Banner/Google';
-import Matomo from '@kitconcept/volto-dsgvo-banner/components/Banner/Matomo';
-import { BodyClass } from '@plone/volto/helpers';
-
-import { hideDSGVOBanner } from '@kitconcept/volto-dsgvo-banner/actions';
-
-const messages = defineMessages({
- technically_required: {
- id: 'Technically required',
- defaultMessage: 'Technically required',
- },
- tracking: {
- id: 'Tracking',
- defaultMessage: 'Tracking',
- },
-});
-
-const Banner = (props) => {
- let privacy_url = config.settings.DSGVOBanner.privacy_url;
- const modules = config.settings.DSGVOBanner.modules;
- const [cookies, setCookie, removeCookie] = useCookies();
- const [configureCookies, setConfigureCookies] = useState(false);
- const showConfirmModal = !Number(cookies.confirm_cookies) || props.show;
- const intl = useIntl();
-
- if (isObject(privacy_url)) {
- privacy_url = privacy_url[intl.locale];
- }
- const [confirmTracking, setConfirmTracking] = useState(
- !!Number(cookies.confirm_tracking),
- );
- const [confirmYoutube, setConfirmYoutube] = useState(
- !!Number(cookies.confirm_youtube),
- );
- const [confirmFacebook, setConfirmFacebook] = useState(
- !!Number(cookies.confirm_facebook),
- );
- const [confirmGoogle, setConfirmGoogle] = useState(
- !!Number(cookies.confirm_google),
- );
-
- const expiryDate = new Date();
- expiryDate.setMonth(expiryDate.getMonth() + 1);
- const options = { path: '/', expires: expiryDate };
-
- const confirmSelection = () => {
- let expiryDate = new Date();
- expiryDate.setMonth(expiryDate.getMonth() + 1);
- if (confirmTracking) {
- setCookie('confirm_tracking', 1, options);
- window[`ga-disable-${config.settings.DSGVOBanner.trackingId}`] = false;
- } else {
- removeCookie('confirm_tracking', options);
- window[`ga-disable-${config.settings.DSGVOBanner.trackingId}`] = true;
- removeCookie('_ga', options);
- removeCookie('_gat', options);
- removeCookie('_gid', options);
- }
-
- if (confirmFacebook) {
- setCookie('confirm_facebook', 1, options);
- } else {
- removeCookie('confirm_facebook', options);
- }
-
- if (confirmYoutube) {
- setCookie('confirm_youtube', 1, options);
- } else {
- removeCookie('confirm_youtube', options);
- }
-
- if (confirmGoogle) {
- setCookie('confirm_google', 1, options);
- } else {
- removeCookie('confirm_google', options);
- }
-
- setCookie('confirm_cookies', 1, options);
- props.hideDSGVOBanner();
- };
-
- const confirmAll = () => {
- setCookie('confirm_tracking', 1, options);
- window[`ga-disable-${config.settings.DSGVOBanner.trackingId}`] = false;
-
- setCookie('confirm_facebook', 1, options);
- setCookie('confirm_youtube', 1, options);
- setCookie('confirm_google', 1, options);
- setCookie('confirm_cookies', 1, options);
-
- props.hideDSGVOBanner();
- };
-
- useEffect(() => {
- if (document && showConfirmModal) {
- document.getElementById('question-landing').focus();
- }
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
-
- return (
- <>
- {config.settings.DSGVOBanner.tracker.type === 'google' && }
- {config.settings.DSGVOBanner.tracker.type === 'matomo' && }
-
-
- {!configureCookies ? (
- <>
-
-
-
-
-
-
-
-
-
- ),
- adjust_privacy_settings: (
-
-
-
- ),
- }}
- />
-
-
- {' '}
-
-
-
-
-
- .
-
-
-
- confirmAll()}>
-
-
- {modules.length > 0 && (
- setConfigureCookies(true)}
- >
-
-
- )}
-
- >
- ) : (
- <>
-
-
-
-
-
-
-
- {includes(modules, 'tracking') && (
-
- setConfirmTracking(!confirmTracking)}
- checked={confirmTracking}
- />
-
- )}
- {includes(modules, 'youtube') && (
-
- setConfirmYoutube(!confirmYoutube)}
- checked={confirmYoutube}
- />
-
- )}
- {includes(modules, 'facebook') && (
-
- setConfirmFacebook(!confirmFacebook)}
- checked={confirmFacebook}
- />
-
- )}
- {includes(modules, 'google') && (
-
- setConfirmGoogle(!confirmGoogle)}
- checked={confirmGoogle}
- />
-
- )}
-
-
-
- setConfigureCookies(false)}
- >
- {'< '}
-
-
- confirmAll()}
- >
-
-
-
-
-
-
- >
- )}
-
- >
- );
-};
-
-export default connect(
- (state, props) => ({
- show: state.DSGVOBanner.show,
- }),
- {
- hideDSGVOBanner,
- },
-)(Banner);
diff --git a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-dsgvo-banner/components/IfConfirm/IfConfirm.jsx b/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-dsgvo-banner/components/IfConfirm/IfConfirm.jsx
deleted file mode 100644
index a56a6747..00000000
--- a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-dsgvo-banner/components/IfConfirm/IfConfirm.jsx
+++ /dev/null
@@ -1,56 +0,0 @@
-/* eslint-disable import/no-unresolved */
-import React from 'react';
-import { Button, Message } from 'semantic-ui-react';
-import { useCookies } from 'react-cookie';
-import { connect } from 'react-redux';
-import { FormattedMessage } from 'react-intl';
-import { showDSGVOBanner } from '@kitconcept/volto-dsgvo-banner/actions';
-
-const IfConfirm = ({ children, module, showDSGVOBanner }) => {
- const [cookies] = useCookies();
-
- // We bail out if module is undefined, while this is most likely
- // a bug in the caller, there is nothing we can do here,
- // but we want to avoid a traceback.
- // See https://gitlab.dlr.de/internet-cms/cms-plone/dlr-internet/-/issues/1384
-
- if (!module || !!Number(cookies[`confirm_${module}`])) {
- return <>{children}>;
- } else {
- return (
-
-
-
- {module},
- }}
- />{' '}
-
- {module},
- }}
- />
-
-
-
-
-
-
-
-
- );
- }
-};
-
-export default connect((state, props) => ({}), {
- showDSGVOBanner,
-})(IfConfirm);
diff --git a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-heading-block/components/Edit.jsx b/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-heading-block/components/Edit.jsx
deleted file mode 100644
index 29f5b539..00000000
--- a/frontend/src/addons/volto-plonede/src/customizations/@kitconcept/volto-heading-block/components/Edit.jsx
+++ /dev/null
@@ -1,123 +0,0 @@
-import React from 'react';
-import ContentEditable from 'react-contenteditable';
-import { withBlockExtensions } from '@plone/volto/helpers';
-import { SidebarPortal } from '@plone/volto/components';
-import HeadingSidebar from '@kitconcept/volto-heading-block/components/Sidebar';
-import config from '@plone/volto/registry';
-import cx from 'classnames';
-
-// Source: https://stackoverflow.com/questions/5796718/html-entity-decode
-var decodeHTMLEntities = (function () {
- if (__SERVER__) {
- return () => {
- throw new Error('DecodeHTMLEntities is not supported in SSR.');
- };
- }
- // closure to avoid creating the object each time
- var element = document.createElement('div');
-
- function decodeHTMLEntities(str) {
- if (str && typeof str === 'string') {
- // strip script/html tags
- str = str.replace(/
- {extractor.getStyleElements().map((elem) => (
-
- {React.cloneElement(elem, {
- rel: 'stylesheet',
- crossOrigin:
- process.env.NODE_ENV === 'production'
- ? undefined
- : 'true',
- })}
-
- ))}
- >
- ) : (
- extractor.getStyleElements()
- )
- ) : undefined}
-
-
-
-
-
-
- {/* Add the crossorigin while in development */}
- {this.props.extractScripts !== false
- ? extractor.getScriptElements().map((elem) =>
- React.cloneElement(elem, {
- crossOrigin:
- process.env.NODE_ENV === 'production' ? undefined : 'true',
- }),
- )
- : ''}
-
-