TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:31 +02:00
commit 3e43c11539
407 changed files with 51272 additions and 0 deletions
@@ -0,0 +1,13 @@
/*
* 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!
*/
import"bootstrap";import{AbstractInteractableModule as c}from"@typo3/install/module/abstract-interactable-module.js";import l from"@typo3/backend/modal.js";import m from"@typo3/backend/notification.js";import f from"@typo3/core/ajax/ajax-request.js";import{InfoBox as h}from"@typo3/install/renderable/info-box.js";import i from"@typo3/install/router.js";import p from"@typo3/core/event/regular-event.js";var o;(function(n){n.executeTrigger=".t3js-environmentCheck-execute",n.outputContainer=".t3js-environmentCheck-output"})(o||(o={}));class d extends c{initialize(e){super.initialize(e),this.loadModuleFrameAgnostic("@typo3/install/renderable/info-box.js").then(()=>{this.runTests()}),new p("click",s=>{s.preventDefault(),this.runTests()}).delegateTo(e,o.executeTrigger)}runTests(){this.setModalButtonsState(!1);const e=this.getModalBody(),s=e.querySelector(o.outputContainer);s!==null&&this.renderProgressBar(s),new f(i.getUrl("environmentCheckGetStatus")).get({cache:"no-cache"}).then(async r=>{const t=await r.resolve();if(e.innerHTML=t.html,l.setButtons(t.buttons),t.success===!0&&typeof t.status=="object")for(const u of Object.values(t.status))for(const a of u)e.querySelector(o.outputContainer).append(h.create(a.severity,a.title,a.message));else m.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")},r=>{i.handleAjaxError(r,e)}).finally(()=>{this.setModalButtonsState(!0)})}}var g=new d;export{g as default};
@@ -0,0 +1,13 @@
/*
* 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!
*/
import"bootstrap";import{AbstractInteractableModule as y}from"@typo3/install/module/abstract-interactable-module.js";import f from"@typo3/backend/modal.js";import p from"@typo3/backend/notification.js";import d from"@typo3/core/ajax/ajax-request.js";import{InfoBox as l}from"@typo3/install/renderable/info-box.js";import S from"@typo3/install/renderable/severity.js";import u from"@typo3/install/router.js";import g from"@typo3/core/event/regular-event.js";var o;(function(a){a.outputContainer=".t3js-folderStructure-output",a.errorContainer=".t3js-folderStructure-errors",a.errorList=".t3js-folderStructure-errors-list",a.errorFixTrigger=".t3js-folderStructure-errors-fix",a.okContainer=".t3js-folderStructure-ok",a.okList=".t3js-folderStructure-ok-list",a.permissionContainer=".t3js-folderStructure-permissions"})(o||(o={}));class c extends y{static removeLoadingMessage(e){e.querySelector("typo3-backend-progress-bar").remove()}initialize(e){super.initialize(e),this.loadModuleFrameAgnostic("@typo3/install/renderable/info-box.js").then(()=>{this.getStatus()}),new g("click",r=>{r.preventDefault(),this.fix()}).delegateTo(e,o.errorFixTrigger)}getStatus(){const e=this.getModalBody();new d(u.getUrl("folderStructureGetStatus")).get({cache:"no-cache"}).then(async r=>{const t=await r.resolve();e.innerHTML=t.html,f.setButtons(t.buttons),t.success===!0&&Array.isArray(t.errorStatus)&&(t.errorStatus.length>0?(e.querySelector(o.errorContainer).style.display="block",e.querySelector(o.errorList).innerHTML="",t.errorStatus.forEach(i=>{e.querySelector(o.errorList).appendChild(l.create(i.severity,i.title,i.message))})):e.querySelector(o.errorContainer).style.display="none"),t.success===!0&&Array.isArray(t.okStatus)&&(t.okStatus.length>0?(e.querySelector(o.okContainer).style.display="block",e.querySelector(o.okList).innerHTML="",t.okStatus.forEach(i=>{e.querySelector(o.okList).appendChild(l.create(i.severity,i.title,i.message))})):e.querySelector(o.okContainer).style.display="none");let s=t.folderStructureFilePermissionStatus;const n=e.querySelector(o.permissionContainer);n.replaceChildren(l.create(s.severity,s.title,s.message)),s=t.folderStructureDirectoryPermissionStatus,n.appendChild(l.create(s.severity,s.title,s.message))},r=>{u.handleAjaxError(r,e)})}fix(){this.setModalButtonsState(!1);const e=this.getModalBody(),r=this.findInModal(o.outputContainer);r.style.display="block",this.renderProgressBar(r),new d(u.getUrl("folderStructureFix")).get({cache:"no-cache"}).then(async t=>{const s=await t.resolve();c.removeLoadingMessage(r),s.success===!0&&Array.isArray(s.fixedStatus)?(s.fixedStatus.length>0?s.fixedStatus.forEach(n=>{r.append(l.create(n.severity,n.title,n.message))}):r.append(l.create(S.warning,"Nothing fixed")),this.getStatus()):(r.style.display="none",p.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log."))},t=>{r.style.display="none",u.handleAjaxError(t,e)}).finally(()=>{this.setModalButtonsState(!0)})}}var h=new c;export{h as default};
@@ -0,0 +1,16 @@
/*
* 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!
*/
import"bootstrap";import{AbstractInteractableModule as T}from"@typo3/install/module/abstract-interactable-module.js";import w from"@typo3/backend/modal.js";import y from"@typo3/backend/notification.js";import h from"@typo3/core/ajax/ajax-request.js";import{InfoBox as f}from"@typo3/install/renderable/info-box.js";import x from"@typo3/install/renderable/severity.js";import m from"@typo3/install/router.js";import A from"@typo3/core/event/regular-event.js";var o;(function(n){n.executeTrigger=".t3js-imageProcessing-execute",n.testContainer=".t3js-imageProcessing-twinContainer",n.twinImageTemplate="#t3js-imageProcessing-twinImage-template",n.commandContainer=".t3js-imageProcessing-command",n.commandText=".t3js-imageProcessing-command-text",n.twinImages=".t3js-imageProcessing-images"})(o||(o={}));class P extends T{initialize(t){super.initialize(t),this.loadModuleFrameAgnostic("@typo3/install/renderable/info-box.js").then(()=>{this.getData()}),new A("click",a=>{a.preventDefault(),this.runTests()}).delegateTo(t,o.executeTrigger)}getData(){const t=this.getModalBody();new h(m.getUrl("imageProcessingGetData")).get({cache:"no-cache"}).then(async a=>{const r=await a.resolve();r.success===!0?(t.innerHTML=r.html,w.setButtons(r.buttons),this.runTests()):y.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")},a=>{m.handleAjaxError(a,t)})}runTests(){const t=this.getModalBody();this.setModalButtonsState(!1);const a=this.findInModal(o.twinImageTemplate),r=[];t.querySelectorAll(o.testContainer).forEach(c=>{c.replaceChildren(f.create(x.loading,"Loading..."));const p=new h(m.getUrl(c.dataset.test)).get({cache:"no-cache"}).then(async l=>{const e=await l.resolve();if(e.success===!0){c.innerHTML="",Array.isArray(e.status)&&e.status.forEach(s=>{c.append(f.create(s.severity,s.title,s.message))});const i=a.content.cloneNode(!0);if(e.fileExists===!0&&(i.querySelector("img.reference")?.setAttribute("src",e.referenceFile),i.querySelector("img.result")?.setAttribute("src",e.outputFile),i.querySelectorAll(o.twinImages).forEach(s=>s.hidden=!1)),Array.isArray(e.command)&&e.command.length>0){const s=i.querySelector(o.commandContainer);s!==null&&(s.hidden=!1);const g=[];e.command.forEach(u=>{g.push(`<strong>Command:</strong>
`+u[1]),u.length===3&&g.push(`<strong>Result:</strong>
`+u[2])});const d=i.querySelector(o.commandText);d!==null&&(d.innerHTML=g.join(`
`))}c.append(i)}},l=>{m.handleAjaxError(l,t)});r.push(p)}),Promise.all(r).then(()=>{this.setModalButtonsState(!0)})}}var j=new P;export{j as default};
@@ -0,0 +1,13 @@
/*
* 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!
*/
import"bootstrap";import{AbstractInteractableModule as m}from"@typo3/install/module/abstract-interactable-module.js";import h from"@typo3/backend/modal.js";import i from"@typo3/backend/notification.js";import c from"@typo3/core/ajax/ajax-request.js";import{InfoBox as u}from"@typo3/install/renderable/info-box.js";import l from"@typo3/install/router.js";import d from"@typo3/core/event/regular-event.js";var a;(function(r){r.outputContainer=".t3js-mailTest-output",r.mailTestButton=".t3js-mailTest-execute"})(a||(a={}));class f extends m{initialize(s){super.initialize(s),this.loadModuleFrameAgnostic("@typo3/install/renderable/info-box.js").then(()=>{this.getData()}),new d("click",e=>{e.preventDefault(),this.send()}).delegateTo(s,a.mailTestButton),new d("submit",e=>{e.preventDefault(),this.send()}).delegateTo(s,"form")}getData(){const s=this.getModalBody();new c(l.getUrl("mailTestGetData")).get({cache:"no-cache"}).then(async e=>{const t=await e.resolve();if(t.success===!0){s.innerHTML=t.html;const n=this.findInModal(a.outputContainer);t.messages&&Array.isArray(t.messages)&&t.messages.forEach(o=>{n.append(u.create(o.severity,o.title,o.message))}),t.sendPossible&&h.setButtons(t.buttons)}else i.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")},e=>{l.handleAjaxError(e,s)})}send(){this.setModalButtonsState(!1);const s=this.getModuleContent().dataset.mailTestToken,e=this.findInModal(a.outputContainer);this.renderProgressBar(e),new c(l.getUrl()).post({install:{action:"mailTest",token:s,email:this.findInModal(".t3js-mailTest-email").value}}).then(async t=>{const n=await t.resolve();e.innerHTML="",Array.isArray(n.status)?n.status.forEach(o=>{e.innerHTML="",e.append(u.create(o.severity,o.title,o.message))}):i.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")},()=>{i.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")}).finally(()=>{this.setModalButtonsState(!0)})}}var p=new f;export{p as default};
@@ -0,0 +1,13 @@
/*
* 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!
*/
import r from"@typo3/backend/notification.js";import s from"@typo3/core/ajax/ajax-request.js";import a from"@typo3/install/router.js";import{AbstractInteractableModule as n}from"@typo3/install/module/abstract-interactable-module.js";class i extends n{initialize(e){super.initialize(e),this.getData()}getData(){const e=this.getModalBody();new s(a.getUrl("phpInfoGetData")).get({cache:"no-cache"}).then(async t=>{const o=await t.resolve();o.success===!0?e.innerHTML=o.html:r.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")},t=>{a.handleAjaxError(t,e)})}}var c=new i;export{c as default};
@@ -0,0 +1,13 @@
/*
* 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!
*/
import s from"@typo3/backend/notification.js";import r from"@typo3/core/ajax/ajax-request.js";import a from"@typo3/install/router.js";import{AbstractInteractableModule as n}from"@typo3/install/module/abstract-interactable-module.js";class i extends n{initialize(e){super.initialize(e),this.getData()}getData(){const e=this.getModalBody();new r(a.getUrl("systemInformationGetData")).get({cache:"no-cache"}).then(async t=>{const o=await t.resolve();o.success===!0?e.innerHTML=o.html:s.error("Something went wrong","The request was not processed successfully. Please check the browser's console and TYPO3's log.")},t=>{a.handleAjaxError(t,e)})}}var c=new i;export{c as default};