Feat: Include patched extension via local packages

This commit is contained in:
Björn Fromme
2023-06-30 13:14:14 +02:00
parent a3ea0127c5
commit f75a23a508
321 changed files with 111975 additions and 63 deletions
@@ -0,0 +1,25 @@
<?php
/***
*
* This file is part of the "!f Commands" Extension for TYPO3 CMS.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* (c) 2018 !frappant <[email protected]>
*
***/
/**
* Commands to be executed by typo3, where the key of the array
* is the name of the command (to be called as the first argument after typo3).
* Required parameter is the "class" of the command which needs to be a subclass
* of Symfony/Console/Command.
*
* example: bin/typo3 backend:lock
*/
return [
'f:formanswers:mailNotification' => [
'class' => \Frappant\FrpFormAnswers\Command\MailAdminNotificationCommand::class,
],
];
@@ -0,0 +1,6 @@
<?php
return [
'typoscript' => [
\Frappant\FrpFormAnswers\ExpressionLanguage\CustomTypoScriptConditionProvider::class,
]
];
@@ -0,0 +1,101 @@
#
# Extension Builder settings for extension frp_form_answers
# generated 2017-05-16T12:42:00Z
#
# See http://www.yaml.org/spec/1.2/spec.html
#
---
########### Overwrite settings ###########
#
# These settings only apply, if the roundtrip feature of the extension builder
# is enabled in the extension manager
#
# Usage:
# nesting reflects the file structure
# a setting applies to a file or recursive to all files and subfolders
#
# merge:
# means for classes: All properties ,methods and method bodies
# of the existing class will be modified according to the new settings
# but not overwritten
#
# for locallang xlf files: Existing keys and labels are always
# preserved (renaming a property or DomainObject will result in new keys and new labels)
#
# for other files: You will find a Split token at the end of the file
# see: \EBT\ExtensionBuilder\Service\RoundTrip::SPLIT_TOKEN
#
# After this token you can write whatever you want and it will be appended
# everytime the code is generated
#
# keep:
# files are never overwritten
# These settings may break the functionality of the extension builder!
# Handle with care!
#
#
############ extension settings ##############
overwriteSettings:
Classes:
Controller: merge
Domain:
Model: merge
Repository: merge
Configuration:
#TCA merge not possible - use overrides directory
#TypoScript: keep
Resources:
Private:
#Language: merge
#Templates: keep
ext_icon.gif: keep
# ext_localconf.php: merge
# ext_tables.php: merge
# ext_tables.sql: merge
## use static date attribute in xliff files ##
#staticDateInXliffFiles: 2017-05-16T12:42:00Z
## skip docComment (license header) ##
#skipDocComment
## list of error codes for warnings that should be ignored ##
#ignoreWarnings:
#503
######### settings for classBuilder #############################
#
# here you may define default parent classes for your classes
# these settings only apply for new generated classes
# you may also just change the parent class in the generated class file.
# It will be kept on next code generation, if the overwrite settings
# are configured to merge it
#
#################################################################
classBuilder:
Controller:
parentClass: \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
Model:
AbstractEntity:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
AbstractValueObject:
parentClass: \TYPO3\CMS\Extbase\DomainObject\AbstractValueObject
Repository:
parentClass: \TYPO3\CMS\Extbase\Persistence\Repository
setDefaultValuesForClassProperties: true
@@ -0,0 +1,86 @@
<?php
return [
'ctrl' => [
'title' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry',
'label' => 'uid',
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'cruser_id' => 'cruser_id',
'delete' => 'deleted',
'enablecolumns' => [
],
'searchFields' => 'answers,field_hash,form,exported',
'iconfile' => 'EXT:frp_form_answers/Resources/Public/Icons/tx_frpformanswers_domain_model_formentry.svg'
],
'interface' => [
'showRecordFieldList' => 'submit_uid, answers, field_hash, form, exported',
],
'types' => [
'1' => ['showitem' => 'submit_uid, answers, field_hash, form, exported'],
],
'columns' => [
'answers' => [
'exclude' => true,
'label' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry.answers',
'config' => [
'type' => 'user',
'renderType' => 'formAnswersJsonElement',
]
],
'submit_uid' => [
'exclude' => true,
'label' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry.submit_uid',
'config' => [
'type' => 'input',
'size' => 30,
'readOnly' =>1,
'eval' => 'trim, int'
],
],
'field_hash' => [
'exclude' => true,
'label' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry.field_hash',
'config' => [
'type' => 'input',
'size' => 30,
'readOnly' =>1,
'eval' => 'trim'
],
],
'form' => [
'exclude' => true,
'label' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry.form',
'config' => [
'type' => 'input',
'size' => 30,
'readOnly' =>1,
'eval' => 'trim'
],
],
'exported' => [
'exclude' => true,
'label' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry.exported',
'config' => [
'type' => 'check',
'items' => [
'1' => [
'0' => 'EXT:core/Resources/Private/Language/locallang_core.xlf:labels.enabled'
]
],
'readOnly' =>1,
'default' => 0
]
],
'crdate' => [
'exclude' => true,
'label' => 'LLL:EXT:frp_form_answers/Resources/Private/Language/locallang_db.xlf:tx_frpformanswers_domain_model_formentry.crdate',
'config' => [
'type' => 'input',
'eval' => 'datetime',
'renderType' => 'InputDateTime',
'size' => 20,
'readOnly' => true,
],
],
],
];
@@ -0,0 +1,2 @@
mod.web_list.hideTables = tx_frpformanswers_domain_model_formentry
@@ -0,0 +1,15 @@
module.tx_frpformanswers_formanswers {
view {
# cat=module.tx_frpformanswers_formanswers/file; type=string; label=Path to template root (BE)
templateRootPath = EXT:frp_form_answers/Resources/Private/Backend/Templates/
# cat=module.tx_frpformanswers_formanswers/file; type=string; label=Path to template partials (BE)
partialRootPath = EXT:frp_form_answers/Resources/Private/Backend/Partials/
# cat=module.tx_frpformanswers_formanswers/file; type=string; label=Path to template layouts (BE)
layoutRootPath = EXT:frp_form_answers/Resources/Private/Backend/Layouts/
}
persistence {
# cat=module.tx_frpformanswers_formanswers//a; type=string; label=Default storage PID
storagePid =
}
}
@@ -0,0 +1,26 @@
# Module configuration
module.tx_frpformanswers {
persistence {
storagePid = {$module.tx_frpformanswers_formanswers.persistence.storagePid}
}
view {
templateRootPaths.0 = EXT:frp_form_answers/Resources/Private/Backend/Templates/
templateRootPaths.1 = {$module.tx_frpformanswers_formanswers.view.templateRootPath}
partialRootPaths.0 = EXT:frp_form_answers/Resources/Private/Backend/Partials/
partialRootPaths.1 = {$module.tx_frpformanswers_formanswers.view.partialRootPath}
layoutRootPaths.0 = EXT:frp_form_answers/Resources/Private/Backend/Layouts/
layoutRootPaths.1 = {$module.tx_frpformanswers_formanswers.view.layoutRootPath}
}
}
module.tx_form {
settings {
yamlConfigurations {
1495003209 = EXT:frp_form_answers/Configuration/Yaml/BaseSetup.yaml
1495003214 = EXT:frp_form_answers/Configuration/Yaml/FormEditorSetup.yaml
1495003219 = EXT:frp_form_answers/Configuration/Yaml/FormEngineSetup.yaml
}
}
}
@@ -0,0 +1,21 @@
plugin.tx_form {
settings {
yamlConfigurations {
1495003309 = EXT:frp_form_answers/Configuration/Yaml/BaseSetup.yaml
1495006219 = EXT:frp_form_answers/Configuration/Yaml/FormEngineSetup.yaml
}
finishers{
1495303309{
class = Frappant\FrpFormAnswers\Domain\Finishers\SaveFormToDatabaseFinisher
}
}
}
}
config.tx_extbase.persistence.classes {
Frappant\FrpFormAnswers\Domain\Model\FormEntry {
mapping {
columns.crdate.mapOnProperty = crdate
}
}
}
@@ -0,0 +1,15 @@
TYPO3:
CMS:
Form:
prototypes:
standard:
formElementsDefinition:
Form:
renderingOptions:
translation:
translationFile:
10: 'EXT:form/Resources/Private/Language/locallang.xlf'
20: 'EXT:frp_form_answers/Resources/Private/Language/locallang.xlf'
finishersDefinition:
SaveFormToDatabase:
implementationClassName: 'Frappant\FrpFormAnswers\Domain\Finishers\SaveFormToDatabaseFinisher'
@@ -0,0 +1,41 @@
TYPO3:
CMS:
Form:
########### FORM MANAGER CONFIGURATION ###########
formManager:
translationFile:
100: 'EXT:form/Resources/Private/Language/Database.xlf'
200: 'EXT:frp_form_answers/Resources/Private/Language/database.xlf'
########### FORMEDITOR CONFIGURATION ###########
prototypes:
standard:
formEditor:
translationFile:
100: 'EXT:form/Resources/Private/Language/Database.xlf'
200: 'EXT:frp_form_answers/Resources/Private/Language/database.xlf'
########### DEFAULT FORM ELEMENT DEFINITIONS ###########
formElementsDefinition:
Form:
formEditor:
iconIdentifier: 'content-elements-mailform'
editors:
900:
selectOptions:
1491637029:
value: 'SaveFormToDatabase'
iconIdentifier: 't3-form-icon-finisher'
label: 'formEditor.elements.Form.finisher.SaveToDatabase.editor.header.label'
propertyCollections:
finishers:
1491637029:
identifier: 'SaveFormToDatabase'
editors:
__inheritances:
10: 'TYPO3.CMS.Form.mixins.formElementMixins.BaseCollectionEditorsMixin'
100:
label: 'formEditor.elements.Form.finisher.SaveToDatabase.editor.header.label'
finishersDefinition:
SaveFormToDatabase:
formEditor:
iconIdentifier: 't3-form-icon-finisher'
@@ -0,0 +1,16 @@
TYPO3:
CMS:
Form:
prototypes:
standard:
formEngine:
translationFile:
10: 'EXT:form/Resources/Private/Language/Database.xlf'
20: 'EXT:frp_form_answers/Resources/Private/Language/Database.xlf'
### FINISHERS ###
finishersDefinition:
# Flexform
SaveFormToDatabase:
FormEngine:
label: 'tt_content.finishersDefinition.SaveToDatabase.label'