From e30eab32daf9a6b9eab55ac3b2908232813e9e5f Mon Sep 17 00:00:00 2001 From: Benjamin Franzke <bfr@qbus.de> Date: Tue, 21 Dec 2021 09:35:39 +0100 Subject: [PATCH] [TASK] Remove stray javascript build outputs RecordExportButton.js has been introduced in #94622 by accident (probably a left-over from a previous patchset re-added due to grunt watch). The TypeScript source for Enum/Viewport/TopbarIdentifiers.js has been removed with #78760, it is unused since then and therefore removed. Releases: main, 11.5 Resolves: #96411 Resolves: #96412 Related: #94545 Related: #78760 Related: #96323 Change-Id: I226d51fc87ab8012e917e7d219688fca21eda364 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/72755 Tested-by: core-ci <typo3@b13.com> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Benjamin Franzke <bfr@qbus.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Benjamin Franzke <bfr@qbus.de> --- .../JavaScript/Enum/Viewport/TopbarIdentifiers.js | 13 ------------- .../Public/JavaScript/RecordExportButton.js | 13 ------------- 2 files changed, 26 deletions(-) delete mode 100644 typo3/sysext/backend/Resources/Public/JavaScript/Enum/Viewport/TopbarIdentifiers.js delete mode 100644 typo3/sysext/recordlist/Resources/Public/JavaScript/RecordExportButton.js diff --git a/typo3/sysext/backend/Resources/Public/JavaScript/Enum/Viewport/TopbarIdentifiers.js b/typo3/sysext/backend/Resources/Public/JavaScript/Enum/Viewport/TopbarIdentifiers.js deleted file mode 100644 index b5cf0505908a..000000000000 --- a/typo3/sysext/backend/Resources/Public/JavaScript/Enum/Viewport/TopbarIdentifiers.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ -define(["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.TopbarIdentifiersEnum=void 0,function(e){e.buttonNavigationComponent=".t3js-topbar-button-navigationcomponent"}(n.TopbarIdentifiersEnum||(n.TopbarIdentifiersEnum={}))})); \ No newline at end of file diff --git a/typo3/sysext/recordlist/Resources/Public/JavaScript/RecordExportButton.js b/typo3/sysext/recordlist/Resources/Public/JavaScript/RecordExportButton.js deleted file mode 100644 index 53ce6438163d..000000000000 --- a/typo3/sysext/recordlist/Resources/Public/JavaScript/RecordExportButton.js +++ /dev/null @@ -1,13 +0,0 @@ -/* - * This file is part of the TYPO3 CMS project. - * - * It is free software; you can redistribute it and/or modify it under - * the terms of the GNU General Public License, either version 2 - * of the License, or any later version. - * - * For the full copyright and license information, please read the - * LICENSE.txt file that was distributed with this source code. - * - * The TYPO3 project - inspiring people to share! - */ -var __decorate=this&&this.__decorate||function(t,e,r,o){var n,s=arguments.length,l=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,o);else for(var i=t.length-1;i>=0;i--)(n=t[i])&&(l=(s<3?n(l):s>3?n(e,r,l):n(e,r))||l);return s>3&&l&&Object.defineProperty(e,r,l),l};define(["require","exports","lit","lit/decorators","TYPO3/CMS/Backend/Enum/Severity","TYPO3/CMS/Backend/Severity","TYPO3/CMS/Backend/Modal","TYPO3/CMS/Core/lit-helper"],(function(t,e,r,o,n,s,l,i){"use strict";var a;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.formatSelector=".t3js-record-export-format-selector",t.formatOptions=".t3js-record-export-format-option"}(a||(a={}));let c=class extends r.LitElement{constructor(){super(),this.addEventListener("click",t=>{t.preventDefault(),this.showExportConfigurationModal()})}render(){return r.html`<slot></slot>`}showExportConfigurationModal(){this.url&&l.advanced({content:this.url,title:this.title||"Export record",severity:n.SeverityEnum.notice,size:l.sizes.small,type:l.types.ajax,buttons:[{text:this.close||i.lll("button.close")||"Close",active:!0,btnClass:"btn-default",name:"cancel",trigger:()=>l.dismiss()},{text:this.ok||i.lll("button.ok")||"Export",btnClass:"btn-"+s.getCssClass(n.SeverityEnum.info),name:"export",trigger:()=>{const t=l.currentModal[0].querySelector("form");t&&t.submit(),l.dismiss()}}],ajaxCallback:()=>{const t=l.currentModal[0].querySelector(a.formatSelector),e=l.currentModal[0].querySelectorAll(a.formatOptions);null!==t&&e.length&&t.addEventListener("change",t=>{const r=t.target.value;e.forEach(t=>{t.dataset.formatname!==r?t.classList.add("hide"):t.classList.remove("hide")})})}})}};__decorate([o.property({type:String})],c.prototype,"url",void 0),__decorate([o.property({type:String})],c.prototype,"title",void 0),__decorate([o.property({type:String})],c.prototype,"ok",void 0),__decorate([o.property({type:String})],c.prototype,"close",void 0),c=__decorate([o.customElement("typo3-recordlist-record-export-button")],c)})); \ No newline at end of file -- GitLab