Skip to content

Commit

Permalink
TASK: Fusion code cleanup via neos/rector
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed May 14, 2024
1 parent 902476e commit 50a5089
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Resources/Private/Fusion/Components/Application.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ prototype(Yoast.YoastSeoForNeos:Component.Application) < prototype(Neos.Fusion:T
attributes {
class = 'yoast-seo__application'
id = 'yoast-app'
data-configuration = Neos.Fusion:RawArray {
data-configuration = Neos.Fusion:DataStructure {
title = ${q(documentNode).property('title')}
titleOverride = ${q(documentNode).property('titleOverride')}
description = ${q(documentNode).property('metaDescription')}
Expand All @@ -17,7 +17,7 @@ prototype(Yoast.YoastSeoForNeos:Component.Application) < prototype(Neos.Fusion:T
workerUrl = Neos.Fusion:ResourceUri {
path = 'resource://Yoast.YoastSeoForNeos/Public/Assets/webWorker.js'
}
previewUrl = ${'/neosyoastseo/page/renderPreviewPage?node=' + String.rawUrlEncode(documentNode.contextPath)}
previewUrl = ${'/neosyoastseo/page/renderPreviewPage?node=' + String.rawUrlEncode(Neos.Node.serializedNodeAddress(documentNode))}
baseUrl = Yoast.YoastSeoForNeos:BaseUri
siteUrl = Neos.Neos:NodeUri {
node = ${q(site).context({workspaceName: 'live'}).get(0)}
Expand All @@ -30,8 +30,8 @@ prototype(Yoast.YoastSeoForNeos:Component.Application) < prototype(Neos.Fusion:T
// Default url to check for the favicon if not set as link tag in the html head with `rel="shortcut icon"` or `rel="icon"`.
faviconSrc = ${this.siteUrl + '/favicon.ico'}

breadcrumbs = Neos.Fusion:RawCollection {
collection = ${Array.reverse(q(documentNode).parents('[instanceof Neos.Neos:Document]').get())}
breadcrumbs = Neos.Fusion:Map {
items = ${Array.reverse(q(documentNode).parents('[instanceof Neos.Neos:Document]').get())}
itemRenderer = ${q(item).property('uriPathSegment')}
}

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Fusion/Documents/YoastSeoView.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ prototype(Yoast.YoastSeoForNeos:Documents.YoastSeoView) < prototype(Neos.Neos:Pa

head {
stylesheets >
stylesheets = Neos.Fusion:Array {
stylesheets = Neos.Fusion:Join {
main = afx`
<link rel="stylesheet" type="text/css">
<Neos.Fusion:ResourceUri @path="attributes.href" path="resource://Yoast.YoastSeoForNeos/Public/Assets/main.css"/>
Expand All @@ -21,7 +21,7 @@ prototype(Yoast.YoastSeoForNeos:Documents.YoastSeoView) < prototype(Neos.Neos:Pa
node = ${node}
site = ${site}

renderer = Neos.Fusion:Array {
renderer = Neos.Fusion:Join {
appWrapper = afx`
<main class="yoast-seo__container" @key="appWrapper">
<Yoast.YoastSeoForNeos:Component.Header/>
Expand Down

0 comments on commit 50a5089

Please sign in to comment.