From 495a6e0444126a2a9d4cf97cae08d7339b940258 Mon Sep 17 00:00:00 2001 From: o-ba Date: Sat, 1 May 2021 02:34:45 +0200 Subject: [PATCH] [TASK] Add support for TYPO3 v11 --- .../Private/Partials/ExtendedButton.html | 7 +- .../Templates/Widget/ListOfRecordsWidget.html | 2 +- Resources/Public/Icons/Extension.svg | 254 ++++++++++-------- composer.json | 4 +- ext_emconf.php | 5 +- 5 files changed, 145 insertions(+), 127 deletions(-) diff --git a/Resources/Private/Partials/ExtendedButton.html b/Resources/Private/Partials/ExtendedButton.html index a60351b..e9a2ae9 100644 --- a/Resources/Private/Partials/ExtendedButton.html +++ b/Resources/Private/Partials/ExtendedButton.html @@ -1,9 +1,6 @@ - +   {f:translate(id: button.title, default: button.title, extensionName: 'customDashboardWidgets')} - + diff --git a/Resources/Private/Templates/Widget/ListOfRecordsWidget.html b/Resources/Private/Templates/Widget/ListOfRecordsWidget.html index 7104016..c65e8cf 100644 --- a/Resources/Private/Templates/Widget/ListOfRecordsWidget.html +++ b/Resources/Private/Templates/Widget/ListOfRecordsWidget.html @@ -17,7 +17,7 @@ title="{f:translate(key: 'widgets.listOfRecords.edit.title', extensionName: 'customDashboardWidgets', arguments: {0: title, 1: record.uid})}" returnUrl="{be:moduleLink(route: 'dashboard')}"> - {title} + {f:if(condition: title, then: title, else: '[{f:translate(key: \'LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.no_title\')}]')} diff --git a/Resources/Public/Icons/Extension.svg b/Resources/Public/Icons/Extension.svg index 16cfb34..60a3c86 100644 --- a/Resources/Public/Icons/Extension.svg +++ b/Resources/Public/Icons/Extension.svg @@ -1,116 +1,138 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/composer.json b/composer.json index d24a419..1324dd4 100644 --- a/composer.json +++ b/composer.json @@ -12,8 +12,8 @@ ], "require": { "php": ">=7.2.0", - "typo3/cms-core": "^10.4", - "typo3/cms-dashboard": "^10.4" + "typo3/cms-core": "^10.4 || ^11.0", + "typo3/cms-dashboard": "^10.4 || ^11.0" }, "require-dev": { "roave/security-advisories": "dev-master" diff --git a/ext_emconf.php b/ext_emconf.php index dc9bf62..5324df8 100755 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -8,7 +8,7 @@ 'author_company' => '', 'state' => 'stable', 'clearCacheOnLoad' => true, - 'version' => '1.1.1', + 'version' => '1.2.0', 'autoload' => [ 'psr-4' => [ 'Bo\\CustomDashboardWidgets\\' => 'Classes' @@ -16,8 +16,7 @@ ], 'constraints' => [ 'depends' => [ - 'typo3' => '10.4.0-10.4.99', - 'php' => '7.2.0-7.4.99' + 'typo3' => '10.4.0-11.5.99', ], 'conflicts' => [], 'suggests' => []