[TASK] Clean up SvgTree code
Now that jQuery has gone and TypeScript is in place for Tree components, the next step is to consolidate and sort out re-usability. This change prepares the way for allowing multiple trees in the navigation component area (for FileStorageTree). * ContextMenu allows int+number (which is correct) * ContextMenu has all information from the TreeNode (and not the SVG element) - less Markup! * KeyTypeEnums are used throughout SvgTree * Centralized place for error notifications, removing duplicate code * tree.settings.isDragAnDrop is removed in favor of tree.settings.allowDragMove (which already exists) * Unused properties in TreeNode are removed * Since we are now in "TS module land", PageTreeToolbar.ts is removed because the class is only used in the PageTreeElement, so it does not need to be exposed anymore. Resolves: #93481 Releases: master Change-Id: Ia9bff532132dba5aea85352d7e510f6a7f9459c6 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/67683 Tested-by:...
Showing
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/ContextMenu.ts 2 additions, 2 deletions...Script/backend/Resources/Public/TypeScript/ContextMenu.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Enum/KeyTypes.ts 1 addition, 0 deletions...ript/backend/Resources/Public/TypeScript/Enum/KeyTypes.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/PageTree/PageTree.ts 32 additions, 134 deletions.../backend/Resources/Public/TypeScript/PageTree/PageTree.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/PageTree/PageTreeDragDrop.ts 20 additions, 7 deletions.../Resources/Public/TypeScript/PageTree/PageTreeDragDrop.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/PageTree/PageTreeElement.ts 126 additions, 4 deletions...d/Resources/Public/TypeScript/PageTree/PageTreeElement.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/PageTree/PageTreeToolbar.ts 0 additions, 144 deletions...d/Resources/Public/TypeScript/PageTree/PageTreeToolbar.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/SvgTree.ts 50 additions, 20 deletions...TypeScript/backend/Resources/Public/TypeScript/SvgTree.ts
- Build/Sources/TypeScript/backend/Resources/Public/TypeScript/Tree/TreeNode.ts 7 additions, 6 deletions...ript/backend/Resources/Public/TypeScript/Tree/TreeNode.ts
- typo3/sysext/backend/Resources/Public/JavaScript/Enum/KeyTypes.js 1 addition, 1 deletion...sext/backend/Resources/Public/JavaScript/Enum/KeyTypes.js
- typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTree.js 1 addition, 1 deletion.../backend/Resources/Public/JavaScript/PageTree/PageTree.js
- typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js 1 addition, 1 deletion.../Resources/Public/JavaScript/PageTree/PageTreeDragDrop.js
- typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeElement.js 23 additions, 4 deletions...d/Resources/Public/JavaScript/PageTree/PageTreeElement.js
- typo3/sysext/backend/Resources/Public/JavaScript/PageTree/PageTreeToolbar.js 0 additions, 32 deletions...d/Resources/Public/JavaScript/PageTree/PageTreeToolbar.js
- typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js 1 addition, 1 deletiontypo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js
Please register or sign in to comment