[TASK] Reduce inline JavaScript in ext:filelist
This change aims to reduce the amount of inline JavaScript by removing `onchange` or `onclick` events and dynamically created JavaScript code/settings. There are still a couple of aspects that need to be solved in a general way - e.g. assigning global language labels (`TYPO3.lang`) or settings (`TYPO3.settings`). * allows `Modal` confirmation to emit `ModalResponseEvent` * extracts inline JavaScript from controllers & templates * introduces `BroadcastChannel` in `nav_frame` (folder tree) * uses plain links (`<a href="..."`) where applicable * updates folder tree when navigating in browser history Resolves: #91016 Releases: master Change-Id: Ied6a626e09df07bd1a240b9b6b4250cd6fff4c8a Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64154 Tested-by:Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by:
TYPO3com <noreply@typo3.com> Tested-by:
Benni Mack <benni@typo3.org> Reviewed-by:
Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by:
Benni Mack <benni@typo3.org>
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Modal.ts 23 additions, 1 deletion...s/TypeScript/backend/Resources/Public/TypeScript/Modal.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/ModalInterface.ts 19 additions, 0 deletions...ipt/backend/Resources/Public/TypeScript/ModalInterface.ts
- Build/Sources/TypeScript/filelist/Resources/Public/TypeScript/CreateFolder.ts 73 additions, 0 deletions...ript/filelist/Resources/Public/TypeScript/CreateFolder.ts
- Build/Sources/TypeScript/filelist/Resources/Public/TypeScript/FileList.ts 70 additions, 10 deletions...peScript/filelist/Resources/Public/TypeScript/FileList.ts
- Build/Sources/TypeScript/filelist/Resources/Public/TypeScript/FileReplace.ts 34 additions, 0 deletions...cript/filelist/Resources/Public/TypeScript/FileReplace.ts
- typo3/sysext/backend/Classes/Controller/FileSystemNavigationFrameController.php 1 addition, 0 deletions...lasses/Controller/FileSystemNavigationFrameController.php
- typo3/sysext/backend/Resources/Public/JavaScript/LegacyTree.js 10 additions, 1 deletion.../sysext/backend/Resources/Public/JavaScript/LegacyTree.js
- typo3/sysext/backend/Resources/Public/JavaScript/Modal.js 1 addition, 1 deletiontypo3/sysext/backend/Resources/Public/JavaScript/Modal.js
- typo3/sysext/backend/Resources/Public/JavaScript/ModalInterface.js 13 additions, 0 deletions...ext/backend/Resources/Public/JavaScript/ModalInterface.js
- typo3/sysext/filelist/Classes/Controller/File/CreateFolderController.php 24 additions, 42 deletions...lelist/Classes/Controller/File/CreateFolderController.php
- typo3/sysext/filelist/Classes/Controller/File/EditFileController.php 18 additions, 24 deletions...t/filelist/Classes/Controller/File/EditFileController.php
- typo3/sysext/filelist/Classes/Controller/File/RenameFileController.php 0 additions, 6 deletions...filelist/Classes/Controller/File/RenameFileController.php
- typo3/sysext/filelist/Classes/Controller/File/ReplaceFileController.php 1 addition, 4 deletions...ilelist/Classes/Controller/File/ReplaceFileController.php
- typo3/sysext/filelist/Classes/Controller/FileListController.php 12 additions, 22 deletions...sysext/filelist/Classes/Controller/FileListController.php
- typo3/sysext/filelist/Classes/FileList.php 47 additions, 35 deletionstypo3/sysext/filelist/Classes/FileList.php
- typo3/sysext/filelist/Resources/Private/Layouts/Default.html 5 additions, 2 deletionstypo3/sysext/filelist/Resources/Private/Layouts/Default.html
- typo3/sysext/filelist/Resources/Private/Templates/File/CreateFolder.html 4 additions, 4 deletions...lelist/Resources/Private/Templates/File/CreateFolder.html
- typo3/sysext/filelist/Resources/Private/Templates/File/ReplaceFile.html 6 additions, 13 deletions...ilelist/Resources/Private/Templates/File/ReplaceFile.html
- typo3/sysext/filelist/Resources/Public/JavaScript/CreateFolder.js 13 additions, 0 deletions...sext/filelist/Resources/Public/JavaScript/CreateFolder.js
- typo3/sysext/filelist/Resources/Public/JavaScript/FileList.js 1 addition, 1 deletion...3/sysext/filelist/Resources/Public/JavaScript/FileList.js
Please register or sign in to comment