diff --git a/NodeTypes/Abstract/PaperTiger.yaml b/NodeTypes/Abstract/PaperTiger.yaml new file mode 100644 index 0000000..a0befaf --- /dev/null +++ b/NodeTypes/Abstract/PaperTiger.yaml @@ -0,0 +1,5 @@ +# Add the extended nodetypes of the Sitegeist.PaperTiger +# to prevent errors if Sitegeist.PaperTiger is +# not in the requirements. +'Sitegeist.PaperTiger:Action': + abstract: true \ No newline at end of file diff --git a/NodeTypes/PaperTiger/DatabaseStorageAction.yaml b/NodeTypes/PaperTiger/DatabaseStorageAction.yaml new file mode 100644 index 0000000..88cde1b --- /dev/null +++ b/NodeTypes/PaperTiger/DatabaseStorageAction.yaml @@ -0,0 +1,23 @@ +Wegmeister.DatabaseStorage:PaperTiger.DatabaseStorageAction: + superTypes: + 'Sitegeist.PaperTiger:Action': true + ui: + label: 'i18n' + icon: 'icon-database' + properties: + identifier: + type: string + ui: + label: 'i18n' + showInCreationDialog: true + inspector: + group: 'form' + help: + message: 'i18n' + validation: + 'Neos.Neos/Validation/NotEmptyValidator': [] + 'Neos.Neos/Validation/StringLengthValidator': + maximum: 255 + 'Neos.Neos/Validation/RegularExpressionValidator': + regularExpression: '/^[a-z0-9\-]+$/i' + validationErrorMessage: 'Only letters, numbers and dashes are allowed.' \ No newline at end of file diff --git a/Resources/Private/Fusion/PaperTiger/ActionDefinition.fusion b/Resources/Private/Fusion/PaperTiger/ActionDefinition.fusion new file mode 100644 index 0000000..14b6971 --- /dev/null +++ b/Resources/Private/Fusion/PaperTiger/ActionDefinition.fusion @@ -0,0 +1,11 @@ +prototype(Wegmeister.DatabaseStorage:PaperTiger.DatabaseStorageAction.Definition) < prototype(Neos.Fusion:Component) { + identifier = ${q(node).property('identifier')} + + renderer = Sitegeist.PaperTiger:Action { + type = '\\Wegmeister\\DatabaseStorage\\FusionForm\\Runtime\\Action\\DatabaseStorageAction' + options { + identifier = ${props.identifier} + formValues = ${data} + } + } +} diff --git a/Resources/Private/Fusion/PaperTiger/ActionPreview.fusion b/Resources/Private/Fusion/PaperTiger/ActionPreview.fusion new file mode 100644 index 0000000..0830251 --- /dev/null +++ b/Resources/Private/Fusion/PaperTiger/ActionPreview.fusion @@ -0,0 +1,11 @@ +prototype(Wegmeister.DatabaseStorage:PaperTiger.DatabaseStorageAction.Preview) < prototype(Neos.Fusion:Component) { + identifier = ${q(node).property('identifier')} + title = ${Translation.translate('Wegmeister.DatabaseStorage:NodeTypes.PaperTiger.DatabaseStorageAction:properties.identifier')} + + renderer = afx` +