[!!!][TASK] Refactor client-side IRRE
This patch refactors the IRRE handling on client side, the JavaScript land has been rewritten to have a better structure and do less repeating on-the-fly calculations. Each IRRE container is represented by a independent instance of InlineControlContainer. Most of the internally used `scriptCall` directives have been removed. Currently, `scriptCall` can't get removed completely, as further refactorings in different areas are required. All of the "external" communication via `inline.foobar()` has been replaced by a event-driven approach. This also affects ElementBrowser windows, those use a minimalistic API based on postMessage. Some code that was never evaluated in ElementBrowser is considered dead and has been removed regarding inserting multiple items. A new sorting library has been added in order to replace jqueryui piece by piece. Executed command: yarn add --dev sortablejs On PHP side, some code has been removed as well since the rewritten client code is event-based and doesn't depend on external calls anymore. Resolves: #88182 Releases: master Change-Id: I4176483d2882cef49fbaddb5e2e1914c1f76c908 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/59324 Tested-by:TYPO3com <noreply@typo3.com> Tested-by:
Georg Ringer <georg.ringer@gmail.com> Tested-by:
Frank Naegler <frank.naegler@typo3.org> Reviewed-by:
Georg Ringer <georg.ringer@gmail.com> Reviewed-by:
Frank Naegler <frank.naegler@typo3.org>
Showing
- Build/Gruntfile.js 2 additions, 1 deletionBuild/Gruntfile.js
- Build/Sources/Sass/typo3/_element_tceforms.scss 9 additions, 0 deletionsBuild/Sources/Sass/typo3/_element_tceforms.scss
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/DragUploader.ts 7 additions, 10 deletions...cript/backend/Resources/Public/TypeScript/DragUploader.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/Container/InlineControlContainer.ts 1230 additions, 0 deletions...TypeScript/FormEngine/Container/InlineControlContainer.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts 94 additions, 0 deletions...ic/TypeScript/FormEngine/InlineRelation/AjaxDispatcher.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/AjaxRequest.ts 67 additions, 0 deletions...ublic/TypeScript/FormEngine/InlineRelation/AjaxRequest.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/FormEngine/InlineRelation/InlineResponseInterface.ts 23 additions, 0 deletions...ript/FormEngine/InlineRelation/InlineResponseInterface.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/OnlineMedia.ts 7 additions, 1 deletion...Script/backend/Resources/Public/TypeScript/OnlineMedia.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Utility.ts 23 additions, 0 deletions...TypeScript/backend/Resources/Public/TypeScript/Utility.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Utility/MessageUtility.ts 41 additions, 0 deletions...end/Resources/Public/TypeScript/Utility/MessageUtility.ts
- Build/Sources/TypeScript/recordlist/Resources/Public/TypeScript/BrowseFiles.ts 2 additions, 18 deletions...ipt/recordlist/Resources/Public/TypeScript/BrowseFiles.ts
- Build/Sources/TypeScript/recordlist/Resources/Public/TypeScript/ElementBrowser.ts 55 additions, 103 deletions.../recordlist/Resources/Public/TypeScript/ElementBrowser.ts
- Build/package.json 1 addition, 0 deletionsBuild/package.json
- Build/types/TYPO3/index.d.ts 5 additions, 0 deletionsBuild/types/TYPO3/index.d.ts
- Build/yarn.lock 5 additions, 0 deletionsBuild/yarn.lock
- typo3/sysext/backend/Classes/Controller/AbstractFormEngineAjaxController.php 2 additions, 5 deletions...d/Classes/Controller/AbstractFormEngineAjaxController.php
- typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php 24 additions, 65 deletions...t/backend/Classes/Controller/FormInlineAjaxController.php
- typo3/sysext/backend/Classes/Controller/SiteInlineAjaxController.php 7 additions, 39 deletions...t/backend/Classes/Controller/SiteInlineAjaxController.php
- typo3/sysext/backend/Classes/Form/Container/InlineControlContainer.php 21 additions, 29 deletions...backend/Classes/Form/Container/InlineControlContainer.php
- typo3/sysext/backend/Classes/Form/Container/InlineRecordContainer.php 21 additions, 22 deletions.../backend/Classes/Form/Container/InlineRecordContainer.php
Please register or sign in to comment