File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed
Neos.Neos/Resources/Private
Fusion/Backend/Configuration.Ui/Common
Styles/Modules/Administration Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 1+ prototype(Neos.Neos:Component.Tree) < prototype(Neos.Fusion:Component) {
2+ configuration = ${[]}
3+
4+ renderer = afx`
5+ <ul>
6+ <Neos.Fusion:Loop items={props.configuration}>
7+ <li class={'neos-tree-node' + (Type.isArray(item)? ' neos-tree-folder' : '')}>
8+ <span class="node-tree-title">{itemKey}
9+ <Neos.Fusion:Fragment @if.isString={!Type.isArray(item)}>{": "}</Neos.Fusion:Fragment>
10+ <span @if.isArray={Type.isArray(item)}>{" "}({Array.length(item)})</span>
11+ </span>
12+ <Neos.Neos:Component.Tree
13+ @if.isArray={Type.isArray(item)}
14+ configuration={item}/>
15+ <span @if.isString={!Type.isArray(item)} class={'value -is-' + Type.getType(item)}>
16+ {Type.isBoolean(item) ? (item ? 'true' : 'false') : item}
17+ </span>
18+ </li>
19+ </Neos.Fusion:Loop>
20+ </ul>
21+ `
22+ }
Original file line number Diff line number Diff line change 3838 }
3939
4040 .value {
41- & [ title = " boolean" ] ,
42- & [ title = " NULL" ] {
41+ & .-is- boolean ,
42+ & .-is- NULL {
4343 color : $orange ;
4444 }
4545
46- & [ title = " integer" ] ,
47- & [ title = " double" ] {
46+ & .-is- integer ,
47+ & .-is- double {
4848 color : $warning ;
4949 }
5050
51- & [ title = " string" ] {
51+ & .-is- string {
5252 color : $blue ;
5353 }
5454 }
You can’t perform that action at this time.
0 commit comments