diff --git a/.nvmrc b/.nvmrc index f599e28b..3c032078 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -10 +18 diff --git a/.scrutinizer.yml b/.scrutinizer.yml index 1047887b..107542ee 100644 --- a/.scrutinizer.yml +++ b/.scrutinizer.yml @@ -2,7 +2,7 @@ inherit: true build: environment: - php: 8.0 + php: 8.1 nodes: analysis: tests: diff --git a/.upgrade.yml b/.upgrade.yml deleted file mode 100644 index addf2a6a..00000000 --- a/.upgrade.yml +++ /dev/null @@ -1,4 +0,0 @@ -mappings: - FluentExtension: TractorCow\Fluent\Extension\FluentExtension - FluentFilteredExtension: TractorCow\Fluent\Extension\FluentFilteredExtension - FluentSiteTree: TractorCow\Fluent\Extension\FluentSiteTreeExtension diff --git a/_config.php b/_config.php deleted file mode 100644 index e1f5792a..00000000 --- a/_config.php +++ /dev/null @@ -1,5 +0,0 @@ -0?e.join("="):void 0;s=void 0===s?null:c(s),n(c(o),s,r)}),Object.keys(r).sort().reduce(function(t,e){var n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=i(n):t[e]=n,t},Object.create(null))):r},e.stringify=function(t,e){e=h({encode:!0,strict:!0,arrayFormat:"none"},e);var n=r(e);return t?Object.keys(t).sort().map(function(r){var o=t[r];if(void 0===o)return"";if(null===o)return s(r,e);if(Array.isArray(o)){var i=[];return o.slice().forEach(function(t){void 0!==t&&i.push(n(r,t,i.length))}),i.join("&")}return s(r,e)+"="+s(o,e)}).filter(function(t){return t.length>0}).join("&"):""}},function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,n){if(t&&c.isObject(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}function s(t){return c.isString(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)}function i(t,e){return o(t,!1,!0).resolve(e)}function a(t,e){return t?o(t,!1,!0).resolveObject(e):e}var h=n(5),c=n(10);e.parse=o,e.resolve=i,e.resolveObject=a,e.format=s,e.Url=r;var u=/^([a-z0-9.+-]+:)/i,l=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,p=["<",">",'"',"`"," ","\r","\n","\t"],m=["{","}","|","\\","^","`"].concat(p),d=["'"].concat(m),v=["%","/","?",";","#"].concat(d),y=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,b=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,j={javascript:!0,"javascript:":!0},w={javascript:!0,"javascript:":!0},O={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=n(8);r.prototype.parse=function(t,e,n){if(!c.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),o=-1!==r&&r127?S+="x":S+=P[N];if(!S.match(g)){var $=E.slice(0,I),T=E.slice(I+1),L=P.match(b);L&&($.push(L[1]),T.unshift(L[2])),T.length&&(a="/"+T.join(".")+a),this.hostname=$.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=h.toASCII(this.hostname));var z=this.port?":"+this.port:"",M=this.hostname||"";this.host=M+z,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!j[m])for(var I=0,F=d.length;I0)&&n.host.split("@");A&&(n.auth=A.shift(),n.host=n.hostname=A.shift())}return n.search=t.search,n.query=t.query,c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var I=x.slice(-1)[0],U=(n.host||t.host||x.length>1)&&("."===I||".."===I)||""===I,R=0,q=x.length;q>=0;q--)I=x[q],"."===I?x.splice(q,1):".."===I?(x.splice(q,1),R++):R&&(x.splice(q,1),R--);if(!b&&!j)for(;R--;R)x.unshift("..");!b||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),U&&"/"!==x.join("/").substr(-1)&&x.push("");var k=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(C){n.hostname=n.host=k?"":x.length?x.shift():"";var A=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");A&&(n.auth=A.shift(),n.host=n.hostname=A.shift())}return b=b||n.host&&x.length,b&&!k&&x.unshift(""),x.length?n.pathname=x.join("/"):(n.pathname=null,n.path=null),c.isNull(n.pathname)&&c.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=l.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),o=n.n(r),s=n(0),i=n.n(s);window.jQuery.entwine("ss",function(t){var e=function(){if(window&&window.ss&&window.ss.config&&window.ss.config.sections){var t=window.ss.config.sections.find(function(t){return"TractorCow\\Fluent\\Control\\LocaleAdmin"===t.name});if(t)return t.fluent||{}}return{}},n=function(t,n){var r=e();if(!r.param)return t;var s=o.a.parse(t),a=i.a.parse(s.search);return a[r.param]=n,s.search=i.a.stringify(a),o.a.format(s)};t("input[data-hides]").entwine({onmatch:function(){this._super();var e=this.data("hides"),n=t("[name='"+e+"']").closest(".field");this.is(":checked")?n.hide():n.show()},onunmatch:function(){this._super()},onchange:function(){var e=this.data("hides"),n=t("[name='"+e+"']").closest(".field");this.is(":checked")?n.slideUp():n.slideDown()}}),t(".cms > .cms-container > .cms-menu > .cms-panel-content").entwine({onmatch:function(){this._super();var n=e();if(void 0!==n.locales&&0!==n.locales.length){var r=t("
\n \n
");n.locales.forEach(function(e){var o=t("