From b80ea3f874f7f90b29a31cfd94be1715e021ffc7 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Tue, 29 Aug 2023 19:25:11 +0200 Subject: [PATCH] TASK: Delete accidentally committed testcode --- .../Fusion/Prototypes/ImageBase64.fusion | 157 ------------------ 1 file changed, 157 deletions(-) delete mode 100644 Resources/Private/Fusion/Prototypes/ImageBase64.fusion diff --git a/Resources/Private/Fusion/Prototypes/ImageBase64.fusion b/Resources/Private/Fusion/Prototypes/ImageBase64.fusion deleted file mode 100644 index e74c563..0000000 --- a/Resources/Private/Fusion/Prototypes/ImageBase64.fusion +++ /dev/null @@ -1,157 +0,0 @@ -prototype(Sitegeist.Kaleidoscope:ImageBase64) < prototype(Neos.Fusion:Component) { - - @styleguide { - - title = "ImageBase64" - - props { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource - width= 1000 - height = 500 - } - - propSets { - altAndTitleFromSource { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource { - alt = 'Alternate assigned to source' - title = 'Title assigned to source' - } - } - - imageSourceWithWidth { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource { - @process.adjust = ${value.withWidth(400)} - } - } - - imageSourceWithHeight { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource { - @process.adjust = ${value.withHeight(400)} - } - } - - imageSourceWithDimensions { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource { - @process.adjust = ${value.withDimensions(400, 400)} - } - } - - imageSourceWithTitleAndAlt { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource { - @process.adjust = ${value.withAlt("Alternate assigned by eel").withTitle("Title assigned by eel")} - } - } - - imageSourceWithFormat { - imageSource = Sitegeist.Kaleidoscope:DummyImageSource { - @process.adjust = ${value.withFormat("png")} - } - } - - overrideAltAndTitleFromProp { - alt = 'Alternate assigned as prop' - title = 'Title assigned as prop' - } - - withResourceImageSource { - imageSource = Sitegeist.Kaleidoscope:ResourceImageSource { - path = "resource://Sitegeist.Kaleidoscope/Public/Images/imageError.png" - alt = 'Alternate assigned to source' - title = 'Title assigned to source' - } - } - - withUriImageSource { - imageSource = Sitegeist.Kaleidoscope:UriImageSource { - uri = "https://dummyimage.com/600x400/000/fff" - alt = 'Alternate assigned to source' - title = 'Title assigned to source' - } - } - - withAttributes { - attributes = Neos.Fusion:DataStructure { - data-foo="bar" - style="border: 5px solid pink;" - } - } - - multires_array { - srcset = ${['1x', '1.5x', '2x']} - } - - multires_string { - srcset = '1x, 1.5x, 2x' - } - - multisize_array { - srcset = ${['320w', '400w', '600w', '800w', '1000w', '1200w', '1600']} - } - - multisize_string { - srcset = '320w, 400ww, 600w, 800w, 1000w, 1200w, 1600' - } - - sizes_array { - srcset = ${['320w', '400w', '600w', '800w', '1000w', '1200w', '1600']} - sizes = ${['(max-width: 320px) 280px', '(max-width: 480px) 440px', '800px']} - } - - sizes_string { - srcset = '320w, 400ww, 600w, 800w, 1000w, 1200w, 1600' - sizes = '(max-width: 320px) 280px, (max-width: 480px) 440px, 800px' - } - } - } - - @propTypes { - imageSource = ${PropTypes.instanceOf('\\Sitegeist\\Kaleidoscope\\Domain\\ImageSourceInterface')} - } - - imageSource = null - srcset = null - sizes = null - alt = null - title = null - // class is deprecated in favor of attributes.class - class = null - loading = 'lazy' - width = null - height = null - format = null - attributes = Neos.Fusion:DataStructure - renderDimensionAttributes = true - - renderer = Neos.Fusion:Component { - @if.hasImageSource = ${props.imageSource && Type.instance(props.imageSource, '\\Sitegeist\\Kaleidoscope\\Domain\\ImageSourceInterface')} - - # apply format, width and height to the imageSource - imageSource = ${props.imageSource} - imageSource.@process.applyWidth = ${props.width ? value.withWidth(props.width) : value} - imageSource.@process.applyHeight = ${props.height ? value.withHeight(props.height) : value} - imageSource.@process.applyFormat = ${props.format ? value.withFormat(props.format) : value} - - srcset = ${props.srcset} - sizes = ${props.sizes} - loading = ${props.loading} - alt = ${props.alt} - title = ${props.title} - class = ${props.class} - attributes = ${props.attributes} - renderDimensionAttributes = ${props.renderDimensionAttributes} - - renderer = afx` - {props.alt - ` - } -}