[TASK] Revamp Template Object Browser
Second main usage of the new TypoScript parser is the ext:tstemplate Object Browser. In contrast to the Template Analyzer patch that brought a fully revamped view with new features, this Object Browser patch is mostly just a modernization of the view, so this patch is not marked as feature. The Object Browser now renders both setup and constant tree at the same time. Other than that, most existing features are kept and streamlined along the way. As example, searching for a constant name now reveals constant usages in setup, plus similar small gems. The only missing features are currently the comments rendering, plus rendering of parser errors. Comments are a bigger issue that will be implemented with a revamped Constant Editor, Object Browser will then add comment rendering as side effect. Parts of the parser errors (detecting invalid lines) will be added to Template Analyzer with a dedicated patch soon, further details will be added to Object Browser when suitable. Change-Id: I08b2d7a1c1f60d2ab2184fb005dc1132b261f1aa Resolves: #98013 Related: #97816 Releases: main Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75259 Tested-by:Nikita Hovratov <nikita.h@live.de> Tested-by:
Stefan Bürk <stefan@buerk.tech> Tested-by:
core-ci <typo3@b13.com> Tested-by:
Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by:
Nikita Hovratov <nikita.h@live.de> Reviewed-by:
Stefan Bürk <stefan@buerk.tech> Reviewed-by:
Oliver Hader <oliver.hader@typo3.org> Reviewed-by:
Christian Kuhn <lolli@schwarzbu.ch>
Showing
- Build/Sources/TypeScript/tstemplate/typo-script-object-browser.ts 1 addition, 5 deletions...urces/TypeScript/tstemplate/typo-script-object-browser.ts
- typo3/sysext/core/Classes/TypoScript/AST/CurrentObjectPath/CurrentObjectPath.php 26 additions, 0 deletions...es/TypoScript/AST/CurrentObjectPath/CurrentObjectPath.php
- typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php 0 additions, 93 deletions...ysext/core/Classes/TypoScript/ExtendedTemplateService.php
- typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php 2 additions, 0 deletions...Classes/TypoScript/Parser/ConstantConfigurationParser.php
- typo3/sysext/core/Classes/TypoScript/TemplateService.php 0 additions, 1 deletiontypo3/sysext/core/Classes/TypoScript/TemplateService.php
- typo3/sysext/core/Tests/Acceptance/Application/Template/TemplateCest.php 11 additions, 11 deletions...re/Tests/Acceptance/Application/Template/TemplateCest.php
- typo3/sysext/core/Tests/Unit/TypoScript/AST/CurrentObjectPath/CurrentObjectPathTest.php 149 additions, 0 deletions...ypoScript/AST/CurrentObjectPath/CurrentObjectPathTest.php
- typo3/sysext/tstemplate/Classes/Controller/ObjectBrowserController.php 453 additions, 259 deletions...tstemplate/Classes/Controller/ObjectBrowserController.php
- typo3/sysext/tstemplate/Classes/TypoScript/AST/Visitor/AstExpandStateVisitor.php 86 additions, 0 deletions.../Classes/TypoScript/AST/Visitor/AstExpandStateVisitor.php
- typo3/sysext/tstemplate/Classes/TypoScript/AST/Visitor/AstSearchVisitor.php 107 additions, 0 deletions...plate/Classes/TypoScript/AST/Visitor/AstSearchVisitor.php
- typo3/sysext/tstemplate/Classes/ViewHelpers/AstCurrentObjectPathAppendViewHelper.php 53 additions, 0 deletions...sses/ViewHelpers/AstCurrentObjectPathAppendViewHelper.php
- typo3/sysext/tstemplate/Classes/ViewHelpers/AstCurrentObjectPathAsJsonViewHelper.php 50 additions, 0 deletions...sses/ViewHelpers/AstCurrentObjectPathAsJsonViewHelper.php
- typo3/sysext/tstemplate/Classes/ViewHelpers/AstCurrentObjectPathRemoveLastViewHelper.php 48 additions, 0 deletions.../ViewHelpers/AstCurrentObjectPathRemoveLastViewHelper.php
- typo3/sysext/tstemplate/Classes/ViewHelpers/TrimViewHelper.php 37 additions, 0 deletions.../sysext/tstemplate/Classes/ViewHelpers/TrimViewHelper.php
- typo3/sysext/tstemplate/Configuration/Backend/Modules.php 8 additions, 6 deletionstypo3/sysext/tstemplate/Configuration/Backend/Modules.php
- typo3/sysext/tstemplate/Resources/Private/Language/locallang_objbrowser.xlf 41 additions, 89 deletions...plate/Resources/Private/Language/locallang_objbrowser.xlf
- typo3/sysext/tstemplate/Resources/Private/Partials/AnalyzerConditions.html 1 addition, 1 deletion...mplate/Resources/Private/Partials/AnalyzerConditions.html
- typo3/sysext/tstemplate/Resources/Private/Partials/AnalyzerOptions.html 6 additions, 6 deletions...stemplate/Resources/Private/Partials/AnalyzerOptions.html
- typo3/sysext/tstemplate/Resources/Private/Partials/AnalyzerTree.html 4 additions, 4 deletions...t/tstemplate/Resources/Private/Partials/AnalyzerTree.html
- typo3/sysext/tstemplate/Resources/Private/Partials/ObjectBrowserConditions.html 72 additions, 0 deletions...e/Resources/Private/Partials/ObjectBrowserConditions.html
Please register or sign in to comment