-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDocument.fusion
66 lines (64 loc) · 3 KB
/
Document.fusion
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
prototype(Carbon.Notification:Document) < prototype(Neos.Fusion:Component) {
lang = null
title = null
neosBackendHead = Neos.Fusion:Join {
@if.inBackend = ${renderingMode.isEdit}
javascriptBackendInformation = Neos.Neos.Ui:RenderConfiguration {
path = 'documentNodeInformation'
context {
documentNode = ${documentNode}
site = ${site}
}
@process.json = ${Json.stringify(value)}
@process.wrapInJsObject = ${'<script>window[\'@Neos.Neos.Ui:DocumentInformation\']=' + value + '</script>'}
@cache {
mode = 'cached'
entryIdentifier {
jsBackendInfo = 'javascriptBackendInformation'
documentNode = ${Neos.Caching.entryIdentifierForNode(documentNode)}
inBackend = ${renderingMode.isEdit}
}
entryTags {
1 = ${Neos.Caching.nodeTag(documentNode)}
2 = ${Neos.Caching.descendantOfTag(documentNode)}
}
}
}
guestFrameApplication = Neos.Fusion:Template {
templatePath = 'resource://Neos.Neos.Ui/Private/Templates/Backend/Guest.html'
compiledResourcePackage = ${Neos.Ui.StaticResources.compiledResourcePackage()}
sectionName = 'guestFrameApplication'
}
}
neosUiNonRenderedNodeMetadata = Neos.Fusion:Value {
@if {
inBackend = ${renderingMode.isEdit}
canRender = Neos.Fusion:CanRender {
type = 'Neos.Neos.Ui:RenderNonRenderedNodeMetadata'
}
}
value = Neos.Neos.Ui:RenderNonRenderedNodeMetadata {
@class = 'Neos\\Neos\\Ui\\Fusion\\RenderNonRenderedNodeMetadataImplementation'
node = ${node}
}
}
renderer = Neos.Fusion:Http.Message {
httpResponseHead.headers.'Content-Type' = 'text/html'
doctype = '<!DOCTYPE html>'
content = afx`
<html lang={props.lang}>
<head>
<meta charset="UTF-8" />
<title>{props.title || q(documentNode).property('title')}</title>
{props.neosBackendHead}
</head>
<body style="font-family:'Noto Sans', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'">
<Carbon.Notification:Tag {...props} lang={null} />
<div id='neos-backend-container' @if.inBackend={renderingMode.isEdit}></div>
<Neos.Fusion:Template templatePath='resource://Neos.Neos.Ui/Private/Templates/Backend/GuestNotificationScript.html' @if.inBackend={renderingMode.isEdit} />
{props.neosUiNonRenderedNodeMetadata}
</body>
</html>
`
}
}