TYPO3 v15 dev-main snapshot ()
This commit is contained in:
commit
3e43c11539
407 files changed
+51272
No files matched your search
@@ -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 f from"@typo3/install/renderable/severity.js";import{property as p,customElement as d}from"lit/decorators.js";import{LitElement as u,nothing as v,html as m}from"lit";var c=function(l,e,o,n){var i=arguments.length,t=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,e,o,n);else for(var a=l.length-1;a>=0;a--)(s=l[a])&&(t=(i<3?s(t):i>3?s(e,o,t):s(e,o))||t);return i>3&&t&&Object.defineProperty(e,o,t),t};let r=class extends u{static create(e,o,n=""){const s=(window.location!==window.parent.location?window.parent.document:document).createElement("typo3-install-flashmessage");return s.severity=e,s.subject=o,n&&(s.content=n),s}createRenderRoot(){return this}render(){let e=v;return this.content&&(e=m`<p class=alert-message>${this.content}</p>`),m`<div class="t3js-message alert alert-${f.getCssClass(this.severity)}"><div class=alert-title>${this.subject}</div>${e}</div>`}};c([p({type:Number})],r.prototype,"severity",void 0),c([p({type:String})],r.prototype,"subject",void 0),c([p({type:String})],r.prototype,"content",void 0),r=c([d("typo3-install-flashmessage")],r);export{r as FlashMessage};
|
||||
@@ -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 d from"@typo3/install/renderable/severity.js";import{property as f,customElement as u}from"lit/decorators.js";import{LitElement as m,nothing as v,html as p}from"lit";var s=function(l,t,n,i){var c=arguments.length,e=c<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,n):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(l,t,n,i);else for(var a=l.length-1;a>=0;a--)(o=l[a])&&(e=(c<3?o(e):c>3?o(t,n,e):o(t,n))||e);return c>3&&e&&Object.defineProperty(t,n,e),e};let r=class extends m{static create(t,n,i=""){const o=(window.location!==window.parent.location?window.parent.document:document).createElement("typo3-install-infobox");return o.severity=t,o.subject=n,i&&(o.content=i),o}createRenderRoot(){return this}render(){let t=v;return this.content&&(t=p`<div class=callout-body>${this.content}</div>`),p`<div class="t3js-infobox callout callout-sm callout-${d.getCssClass(this.severity)}"><div class=callout-content><div class=callout-title>${this.subject}</div>${t}</div></div>`}};s([f({type:Number})],r.prototype,"severity",void 0),s([f({type:String})],r.prototype,"subject",void 0),s([f({type:String})],r.prototype,"content",void 0),r=s([u("typo3-install-infobox")],r);export{r as InfoBox};
|
||||
@@ -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{property as p,state as f,customElement as b}from"lit/decorators.js";import{LitElement as g,html as a,nothing as u}from"lit";import{classMap as v}from"lit/directives/class-map.js";var d=function(c,t,n,o){var i=arguments.length,e=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")e=Reflect.decorate(c,t,n,o);else for(var r=c.length-1;r>=0;r--)(s=c[r])&&(e=(i<3?s(e):i>3?s(t,n,e):s(t,n))||e);return i>3&&e&&Object.defineProperty(t,n,e),e};let l=class extends g{constructor(){super(...arguments),this.configurationIsWritable=!1,this.data=null,this.addLanguagesActive=!1}createRenderRoot(){return this}render(){return a`<div><h2>Active languages</h2><div class=table-fit><table class="table table-striped"><thead><tr><th><div class=btn-group>${this.globalActions()}</div></th><th>Locale</th><th>Dependencies</th><th>Last update</th></tr></thead><tbody>${this.renderLanguages()}</tbody></table></div></div>`}globalActions(){const t={btn:!0,"btn-default":!0,"update-all":!0,disabled:!this.hasActiveLanguages()};return a`${this.configurationIsWritable?a`<button class="btn btn-default t3js-languagePacks-addLanguage-toggle" @click=${()=>this.addLanguagesActive=!this.addLanguagesActive}><typo3-backend-icon identifier=${this.addLanguagesActive?"actions-minus":"actions-plus"} size=small></typo3-backend-icon>Add language</button>`:u} <button class=${v(t)} ?disabled=${!this.hasActiveLanguages()} @click=${()=>this.dispatchEvent(new CustomEvent("download-packs"))}><typo3-backend-icon identifier=actions-download size=small></typo3-backend-icon>Update all</button>`}renderLanguageActions(t){const n=[],{iso:o}=t,i={detail:{iso:o}};return t.active?(this.configurationIsWritable&&n.push(a`<button class="btn btn-default" title=Deactivate @click=${()=>this.dispatchEvent(new CustomEvent("deactivate-language",i))}><typo3-backend-icon identifier=actions-minus size=small></typo3-backend-icon></button>`),n.push(a`<button class="btn btn-default" title="Download language packs" @click=${()=>this.dispatchEvent(new CustomEvent("download-packs",i))}><typo3-backend-icon identifier=actions-download size=small></typo3-backend-icon></button>`)):this.configurationIsWritable&&n.push(a`<button class="btn btn-default" title=Activate @click=${()=>this.dispatchEvent(new CustomEvent("activate-language",i))}><typo3-backend-icon identifier=actions-plus size=small></typo3-backend-icon></button>`),n}renderLanguages(){return this.data.languages.filter(t=>this.addLanguagesActive?!t.active:t.active).map(t=>a`<tr class=${v({"t3-languagePacks-inactive":!t.active})}><td><div class=btn-group>${this.renderLanguageActions(t)}</div><span class=ms-2>${t.name}</span></td><td>${t.iso}</td><td>${t.dependencies.join(", ")}</td><td>${t.lastUpdate===null?"":t.lastUpdate}</td></tr>`)}hasActiveLanguages(){return Array.isArray(this.data.activeLanguages)&&this.data.activeLanguages.length}};d([p({type:Boolean})],l.prototype,"configurationIsWritable",void 0),d([p({type:Object})],l.prototype,"data",void 0),d([f()],l.prototype,"addLanguagesActive",void 0),l=d([b("typo3-install-language-matrix")],l);let h=class extends g{constructor(){super(...arguments),this.data=null}createRenderRoot(){return this}render(){return this.data.extensions.length===0?a`<typo3-install-infobox severity=0 subject="Language packs have been found for every installed extension." content="To download the latest changes, use the refresh button in the list above."></typo3-install-infobox>`:a`<div><h2>Translation status</h2><div class=table-fit><table class="table table-striped"><thead><tr><th>Extension</th><th>Key</th>${this.headerActions()}</tr></thead><tbody>${this.renderExtensions()}</tbody></table></div></div>`}headerActions(){return this.data.activeLanguages.map(t=>a`<th><button class="btn btn-default" title="Download and update all language packs" @click=${()=>this.dispatchEvent(new CustomEvent("download-packs",{detail:{iso:t}}))}><typo3-backend-icon identifier=actions-download size=small></typo3-backend-icon>${t}</button></th>`)}renderExtensions(){return this.data.extensions.map(t=>a`<tr><td>${t.icon?a`<img src=${t.icon} alt=${t.title} style=max-height:16px;max-width:16px>`:u} ${t.title}</td><td>${t.key}</td>${this.renderExtensionActions(t)}</tr>`)}renderExtensionActions(t){const n=[];return this.data.activeLanguages.forEach(o=>{let i=u;t.packs.forEach(e=>{if(e.iso!==o)return;let s;e.exists!==!0?e.lastUpdate!==null?s="No language pack available for "+e.iso+" when tried at "+e.lastUpdate+". Click to re-try.":s="Language pack not downloaded. Click to download":e.lastUpdate===null?s="Downloaded. Click to renew":s="Language pack downloaded at "+e.lastUpdate+". Click to renew";const r={detail:{iso:e.iso,extension:t.key}};i=a`<td><button class="btn btn-default" title=${s} @click=${()=>this.dispatchEvent(new CustomEvent("download-packs",r))}><typo3-backend-icon identifier=actions-download size=small></typo3-backend-icon>${o}</button></td>`}),i===u&Line truncated
|
||||
@@ -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{LitElement as d,html as a}from"lit";import{property as p,customElement as c}from"lit/decorators.js";var n=function(r,e,o,s){var i=arguments.length,t=i<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,o):s,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(r,e,o,s);else for(var u=r.length-1;u>=0;u--)(f=r[u])&&(t=(i<3?f(t):i>3?f(e,o,t):f(e,o))||t);return i>3&&t&&Object.defineProperty(e,o,t),t};let l=class extends d{constructor(){super(...arguments),this.offsetId=null,this.values=null}createRenderRoot(){return this}render(){return a`<div class=form-multigroup-wrap><div class=form-multigroup-item><div class=input-group><div class=input-group-text>x</div><input id=${this.offsetId}_offset_x class="form-control t3js-emconf-offsetfield" data-target=#${this.offsetId} value=${this.values[0]?.trim()}></div></div><div class=form-multigroup-item><div class=input-group><div class=input-group-text>y</div><input id=${this.offsetId}_offset_y class="form-control t3js-emconf-offsetfield" data-target=#${this.offsetId} value=${this.values[1]?.trim()}></div></div></div>`}};n([p({type:String})],l.prototype,"offsetId",void 0),n([p({type:Array})],l.prototype,"values",void 0),l=n([c("typo3-install-offset-group")],l);
|
||||
@@ -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!
|
||||
*/
|
||||
class i{constructor(){this.loading=-3,this.notice=-2,this.info=-1,this.ok=0,this.warning=1,this.error=2}getCssClass(e){let s;switch(e){case this.loading:case this.notice:s="notice";break;case this.ok:s="success";break;case this.warning:s="warning";break;case this.error:s="danger";break;case this.info:default:s="info"}return s}}var t=new i;export{t 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{LitElement as d,html as m}from"lit";import{property as u,customElement as c}from"lit/decorators.js";var n=function(i,r,e,o){var p=arguments.length,t=p<3?r:o===null?o=Object.getOwnPropertyDescriptor(r,e):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(i,r,e,o);else for(var s=i.length-1;s>=0;s--)(l=i[s])&&(t=(p<3?l(t):p>3?l(r,e,t):l(r,e))||t);return p>3&&t&&Object.defineProperty(r,e,t),t};let a=class extends d{constructor(){super(...arguments),this.wrapId=null,this.values=null}createRenderRoot(){return this}render(){return m`<div class=form-multigroup-wrap><div class=form-multigroup-item><div class=input-group><input id=${this.wrapId}_wrap_start class="form-control t3js-emconf-wrapfield" data-target=#${this.wrapId} value=${this.values[0]?.trim()}></div></div><div class=form-multigroup-item><div class=input-group><input id=${this.wrapId}_wrap_end class="form-control t3js-emconf-wrapfield" data-target=#${this.wrapId} value=${this.values[1]?.trim()}></div></div></div>`}};n([u({type:String})],a.prototype,"wrapId",void 0),n([u({type:Array})],a.prototype,"values",void 0),a=n([c("typo3-install-wrap-group")],a);
|
||||
Reference in new issue
Block a user