- Traits
- Short array syntax
$thisin closures
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - | |
| identifier: Some.Package:SomeFinisher | |
| options: | |
| someOption: '{request.arguments.email}' # Access to form values |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace Vendor\Package\Tests\Unit\Namespace; | |
| use TYPO3\Flow\Tests\UnitTestCase; | |
| class MyUnitTest extends UnitTestCase { | |
| /** | |
| * @test | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const graph = { | |
| page: Page({ | |
| headline: Headline({ | |
| text: context => 'Hello World!' | |
| }), | |
| body: Collection({ | |
| collection: context => context.get('posts'), | |
| itemName: context => 'post', | |
| itemRenderer: BlogPost({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| a11yHelp | |
| about | |
| accessNextSpace | |
| accessPreviousSpace | |
| anchor | |
| bidiltr | |
| bidirtl | |
| blockquote | |
| blur | |
| blurBack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # | |
| # NodeTypes | |
| # | |
| '*': | |
| reference: 'nodeTypeName' | |
| type: shape | |
| options: | |
| shape: | |
| 'abstract': { type: bool } | |
| 'final': { type: bool } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const graph = { | |
| page: Page({ | |
| headline: Headline({ | |
| text: context => 'Hello World!' | |
| }), | |
| body: Collection({ | |
| collection: context => context.get('posts'), | |
| itemName: context => 'post', | |
| itemRenderer: BlogPost({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const RENDER_COMMAND = '@blubb/RENDER'; | |
| const createOverride = factory => { | |
| const override = lower => { | |
| if (lower === RENDER_COMMAND) { | |
| return factory(); | |
| } | |
| return createOverride(upper => factory(Object.assign(lower, upper))); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| setRenderers({ | |
| 'MyAwesome.Package:GridItem': GridItem, | |
| 'MyAweSome.Package:GridItem MyAwesome.Package:Image': Image | |
| }); | |
| @context() | |
| class GridItem extends Component { | |
| static propTypes = { | |
| renderingContext: PropType.instanceOf(RenderingContext) | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default Neos => { | |
| const {React, Components, api} = Neos; | |
| const {Component} = React; | |
| const {Button, Input, PageTree} = Components; | |
| // | |
| // How to connect this to the store? Should we expose @connect? | |
| // | |
| return class MyCustomComponent extends Component { | |
| render() { |
OlderNewer