From 9822628e3b9b6839c1041d207e5c86516c093ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anke=20H=C3=A4slich?= Date: Sat, 14 Oct 2023 20:42:11 +0200 Subject: [PATCH 1/2] TASK: Use `Neos.Fusion:Loop` instead of deprecated `Neos.Fusion:Collection` `Neos.Fusion:Collection` will be removed with Neos 9 --- .../Fusion/Prototypes/DummyImageSource.fusion | 12 ++++++------ Resources/Private/Fusion/Prototypes/Picture.fusion | 10 +++++----- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Resources/Private/Fusion/Prototypes/DummyImageSource.fusion b/Resources/Private/Fusion/Prototypes/DummyImageSource.fusion index d8d8d4a..55dd34f 100644 --- a/Resources/Private/Fusion/Prototypes/DummyImageSource.fusion +++ b/Resources/Private/Fusion/Prototypes/DummyImageSource.fusion @@ -29,21 +29,21 @@ prototype(Sitegeist.Kaleidoscope:DummyImageSource) { // // // -// +// // -// +// // // -// +// // // -// +// // -// +// // -// +// // //
W {width}
H {height} // //
// ` diff --git a/Resources/Private/Fusion/Prototypes/Picture.fusion b/Resources/Private/Fusion/Prototypes/Picture.fusion index 7bd6b04..596f09a 100644 --- a/Resources/Private/Fusion/Prototypes/Picture.fusion +++ b/Resources/Private/Fusion/Prototypes/Picture.fusion @@ -103,7 +103,7 @@ prototype(Sitegeist.Kaleidoscope:Picture) < prototype(Neos.Fusion:Component) { renderer = afx` {props.content} - + - - + - + Date: Sat, 14 Oct 2023 20:56:57 +0200 Subject: [PATCH 2/2] TASK: Use `Neos.Fusion:DataStructure` instead of deprecated `Neos.Fusion:RawArray` `Neos.Fusion:RawArray` will be removed with Neos 9 --- Resources/Private/Fusion/Prototypes/Picture.fusion | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Resources/Private/Fusion/Prototypes/Picture.fusion b/Resources/Private/Fusion/Prototypes/Picture.fusion index 596f09a..e62892e 100644 --- a/Resources/Private/Fusion/Prototypes/Picture.fusion +++ b/Resources/Private/Fusion/Prototypes/Picture.fusion @@ -3,12 +3,12 @@ prototype(Sitegeist.Kaleidoscope:Picture) < prototype(Neos.Fusion:Component) { @styleguide { props { imageSource = Sitegeist.Kaleidoscope:DummyImageSource - sources = Neos.Fusion:RawArray { - 1 = Neos.Fusion:RawArray { + sources = Neos.Fusion:DataStructure { + 1 = Neos.Fusion:DataStructure { srcset = '1x, 1.5x, 2x' media = 'screen and (min-width: 1600px)' } - 2 = Neos.Fusion:RawArray { + 2 = Neos.Fusion:DataStructure { imageSource = Sitegeist.Kaleidoscope:DummyImageSource { text = "im am in webp format" format = 'webp' @@ -18,13 +18,13 @@ prototype(Sitegeist.Kaleidoscope:Picture) < prototype(Neos.Fusion:Component) { type = 'image/webp' media = 'screen and (max-width: 1599px)' } - 3 = Neos.Fusion:RawArray { + 3 = Neos.Fusion:DataStructure { imageSource = Sitegeist.Kaleidoscope:DummyImageSource { text = "im am here for printing" } media = 'print' } - 4 = Neos.Fusion:RawArray { + 4 = Neos.Fusion:DataStructure { srcset = '400w, 800w, 1600w' media = 'screen and (min-width: 2600px)' width = 800