Skip to content
Snippets Groups Projects
Commit 0697c814 authored by catch's avatar catch
Browse files

Issue #3334920 by Spokje, smustgrave: Remove references to modernizer

parent db132d85
No related branches found
No related tags found
31 merge requests!11131[10.4.x-only-DO-NOT-MERGE]: Issue ##2842525 Ajax attached to Views exposed filter form does not trigger callbacks,!9470[10.3.x-only-DO-NOT-MERGE]: #3331771 Fix file_get_contents(): Passing null to parameter,!8540Issue #3457061: Bootstrap Modal dialog Not closing after 10.3.0 Update,!8528Issue #3456871 by Tim Bozeman: Support NULL services,!8373Issue #3427374 by danflanagan8, Vighneshh: taxonomy_tid ViewsArgumentDefault...,!7526Expose roles in response,!7352Draft: Resolve #3203489 "Set filename as",!3878Removed unused condition head title for views,!3818Issue #2140179: $entity->original gets stale between updates,!3742Issue #3328429: Create item list field formatter for displaying ordered and unordered lists,!3731Claro: role=button on status report items,!3668Resolve #3347842 "Deprecate the trusted",!3651Issue #3347736: Create new SDC component for Olivero (header-search),!3531Issue #3336994: StringFormatter always displays links to entity even if the user in context does not have access,!3355Issue #3209129: Scrolling problems when adding a block via layout builder,!3154Fixes #2987987 - CSRF token validation broken on routes with optional parameters.,!3133core/modules/system/css/components/hidden.module.css,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!2812Issue #3312049: [Followup] Fix Drupal.Commenting.FunctionComment.MissingReturnType returns for NULL,!2794Issue #3100732: Allow specifying `meta` data on JSON:API objects,!2378Issue #2875033: Optimize joins and table selection in SQL entity query implementation,!2334Issue #3228209: Add hasRole() method to AccountInterface,!2062Issue #3246454: Add weekly granularity to views date sort,!1105Issue #3025039: New non translatable field on translatable content throws error,!1073issue #3191727: Focus states on mobile second level navigation items fixed,!10223132456: Fix issue where views instances are emptied before an ajax request is complete,!877Issue #2708101: Default value for link text is not saved,!617Issue #3043725: Provide a Entity Handler for user cancelation,!579Issue #2230909: Simple decimals fail to pass validation,!560Move callback classRemove outside of the loop,!555Issue #3202493
Pipeline #112006 passed
Pipeline: drupal

#112008

    ...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
    "_": true, "_": true,
    "Cookies": true, "Cookies": true,
    "Backbone": true, "Backbone": true,
    "Modernizr": true,
    "loadjs": true, "loadjs": true,
    "Shepherd": true, "Shepherd": true,
    "Sortable": true, "Sortable": true,
    ......
    ...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
    "jQuery": true, "jQuery": true,
    "_": true, "_": true,
    "matchMedia": true, "matchMedia": true,
    "Backbone": true, "Backbone": true
    "Modernizr": true
    }, },
    "rules": { "rules": {
    "array-bracket-spacing": ["error", "never"], "array-bracket-spacing": ["error", "never"],
    ......
    ...@@ -36,8 +36,6 @@ JavaScript ...@@ -36,8 +36,6 @@ JavaScript
    LoadJS - Copyright (c) 2015 Andres Morey LoadJS - Copyright (c) 2015 Andres Morey
    Modernizr - Copyright (c) 2021 The Modernizr Team
    Shepherd - Copyright (c) 2021 Shepherd - Copyright (c) 2021
    Sortable - Copyright (c) 2019 All contributors to Sortable Sortable - Copyright (c) 2019 All contributors to Sortable
    ......
    For some reason the link in the core file https://modernizr.com/download/?-details-inputtypes-addtest-mq-prefixed-prefixes-setclasses-teststyles
    always produces a 3.6.0 version when using the `Build` option.
    Browse to the same URL and use the `Command Line Config` option to `Download` the config JSON file `modernizr-config.json`.
    Following the instructions here https://modernizr.com/docs
    ```
    sudo npm install -g npm
    npm install -g modernizr
    modernizr -c modernizr-config.json // This is the file downloaded from http://modernizr.com/download
    ```
    This produces a `modernizr.js` file that should be renamed to `modernizr.min.js` and copied to `core/assets/vendor/modernizr/modernizr.min.js`.
    Please also remember to update the version number of Modernizer in `core/core.libraries.yml`.
    /*! modernizr 3.11.7 (Custom Build) | MIT *
    * https://modernizr.com/download/?-details-inputtypes-addtest-mq-prefixed-prefixes-setclasses-teststyles !*/
    !function(e,t,n,r){function i(e,t){return typeof e===t}function o(e){var t=b.className,n=Modernizr._config.classPrefix||"";if(S&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(e.length>0&&(t+=" "+n+e.join(" "+n)),S?b.className.baseVal=t:b.className=t)}function s(e,t){if("object"==typeof e)for(var n in e)T(e,n)&&s(n,e[n]);else{e=e.toLowerCase();var r=e.split("."),i=Modernizr[r[0]];if(2===r.length&&(i=i[r[1]]),void 0!==i)return Modernizr;t="function"==typeof t?t():t,1===r.length?Modernizr[r[0]]=t:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=t),o([(t&&!1!==t?"":"no-")+r.join("-")]),Modernizr._trigger(e,t)}return Modernizr}function a(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):S?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElement.apply(n,arguments)}function l(){var e=n.body;return e||(e=a(S?"svg":"body"),e.fake=!0),e}function u(e,t,r,i){var o,s,u,f,c="modernizr",d=a("div"),p=l();if(parseInt(r,10))for(;r--;)u=a("div"),u.id=i?i[r]:c+(r+1),d.appendChild(u);return o=a("style"),o.type="text/css",o.id="s"+c,(p.fake?p:d).appendChild(o),p.appendChild(d),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(n.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=b.style.overflow,b.style.overflow="hidden",b.appendChild(p)),s=t(d,e),p.fake&&p.parentNode?(p.parentNode.removeChild(p),b.style.overflow=f,b.offsetHeight):d.parentNode.removeChild(d),!!s}function f(e,n,r){var i;if("getComputedStyle"in t){i=getComputedStyle.call(t,e,n);var o=t.console;if(null!==i)r&&(i=i.getPropertyValue(r));else if(o){var s=o.error?"error":"log";o[s].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else i=!n&&e.currentStyle&&e.currentStyle[r];return i}function c(e,t){return!!~(""+e).indexOf(t)}function d(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,n){var i=e.length;if("CSS"in t&&"supports"in t.CSS){for(;i--;)if(t.CSS.supports(d(e[i]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var o=[];i--;)o.push("("+d(e[i])+":"+n+")");return o=o.join(" or "),u("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"===f(e,null,"position")})}return r}function m(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function h(e,t,n,o){function s(){u&&(delete N.style,delete N.modElem)}if(o=!i(o,"undefined")&&o,!i(n,"undefined")){var l=p(e,n);if(!i(l,"undefined"))return l}for(var u,f,d,h,v,y=["modernizr","tspan","samp"];!N.style&&y.length;)u=!0,N.modElem=a(y.shift()),N.style=N.modElem.style;for(d=e.length,f=0;f<d;f++)if(h=e[f],v=N.style[h],c(h,"-")&&(h=m(h)),N.style[h]!==r){if(o||i(n,"undefined"))return s(),"pfx"!==t||h;try{N.style[h]=n}catch(e){}if(N.style[h]!==v)return s(),"pfx"!==t||h}return s(),!1}function v(e,t){return function(){return e.apply(t,arguments)}}function y(e,t,n){var r;for(var o in e)if(e[o]in t)return!1===n?e[o]:(r=t[e[o]],i(r,"function")?v(r,n||t):r);return!1}function g(e,t,n,r,o){var s=e.charAt(0).toUpperCase()+e.slice(1),a=(e+" "+P.join(s+" ")+s).split(" ");return i(t,"string")||i(t,"undefined")?h(a,t,r,o):(a=(e+" "+j.join(s+" ")+s).split(" "),y(a,t,n))}var C=[],_={_version:"3.11.7",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){C.push({name:e,fn:t,options:n})},addAsyncTest:function(e){C.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=_,Modernizr=new Modernizr;var w=[],b=n.documentElement,S="svg"===b.nodeName.toLowerCase(),x=_._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];_._prefixes=x;var T;!function(){var e={}.hasOwnProperty;T=i(e,"undefined")||i(e.call,"undefined")?function(e,t){return t in e&&i(e.constructor.prototype[t],"undefined")}:function(t,n){return e.call(t,n)}}(),_._l={},_.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),Modernizr.hasOwnProperty(e)&&setTimeout(function(){Modernizr._trigger(e,Modernizr[e])},0)},_._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e<n.length;e++)(0,n[e])(t)},0),delete this._l[e]}},Modernizr._q.push(function(){_.addTest=s});var k=function(){var e=t.matchMedia||t.msMatchMedia;return e?function(t){var n=e(t);return n&&n.matches||!1}:function(e){var t=!1;return u("@media "+e+" { #modernizr { position: absolute; } }",function(e){t="absolute"===f(e,null,"position")}),t}}();_.mq=k;var z="Moz O ms Webkit",P=_._config.usePrefixes?z.split(" "):[];_._cssomPrefixes=P;var E={elem:a("modernizr")};Modernizr._q.push(function(){delete E.elem});var N={style:E.elem.style};Modernizr._q.unshift(function(){delete N.style});var j=_._config.usePrefixes?z.toLowerCase().split(" "):[];_._domPrefixes=j,_.testAllProps=g;var L=function(e){var n,i=x.length,o=t.CSSRule;if(void 0===o)return r;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in o)return"@"+e;for(var s=0;s<i;s++){var a=x[s];if(a.toUpperCase()+"_"+n in o)return"@-"+a.toLowerCase()+"-"+e}return!1};_.atRule=L;var A=(_.prefixed=function(e,t,n){return 0===e.indexOf("@")?L(e):(-1!==e.indexOf("-")&&(e=m(e)),t?g(e,t,n):g(e,"pfx"))},_.testStyles=u),O=a("input");!function(){for(var e,t,i,o=["search","tel","url","email","datetime","date","month","week","time","datetime-local","number","range","color"],s=0;s<o.length;s++)O.setAttribute("type",e=o[s]),i="text"!==O.type&&"style"in O,i&&(O.value="1)",O.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&O.style.WebkitAppearance!==r?(b.appendChild(O),t=n.defaultView,i=t.getComputedStyle&&"textfield"!==t.getComputedStyle(O,null).WebkitAppearance&&0!==O.offsetHeight,b.removeChild(O)):/^(search|tel)$/.test(e)||(i=/^(url|email)$/.test(e)?O.checkValidity&&!1===O.checkValidity():"1)"!==O.value)),Modernizr.addTest("inputtypes."+e,!!i)}(),Modernizr.addTest("details",function(){var e,t=a("details");return"open"in t&&(A("#modernizr details{display:block}",function(n){n.appendChild(t),t.innerHTML="<summary>a</summary>b",e=t.offsetHeight,t.open=!0,e=e!==t.offsetHeight}),e)}),function(){var e,t,n,r,o,s,a;for(var l in C)if(C.hasOwnProperty(l)){if(e=[],t=C[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(r=i(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)s=e[o],a=s.split("."),1===a.length?Modernizr[a[0]]=r:(Modernizr[a[0]]&&(!Modernizr[a[0]]||Modernizr[a[0]]instanceof Boolean)||(Modernizr[a[0]]=new Boolean(Modernizr[a[0]])),Modernizr[a[0]][a[1]]=r),w.push((r?"":"no-")+a.join("-"))}}(),o(w),delete _.addTest,delete _.addAsyncTest;for(var q=0;q<Modernizr._q.length;q++)Modernizr._q[q]();e.Modernizr=Modernizr}(window,window,document);
    \ No newline at end of file
    ...@@ -712,8 +712,6 @@ drupal.touchevents-test: ...@@ -712,8 +712,6 @@ drupal.touchevents-test:
    header: true header: true
    version: VERSION version: VERSION
    js: js:
    # Set weight to -21 so it loads alongside Modernizr, the library previously
    # responsible for this detection.
    misc/touchevents-test.js: { weight: -21 } misc/touchevents-test.js: { weight: -21 }
    drupal.vertical-tabs: drupal.vertical-tabs:
    ...@@ -774,19 +772,6 @@ drupal.jquery.position: ...@@ -774,19 +772,6 @@ drupal.jquery.position:
    dependencies: dependencies:
    - core/jquery - core/jquery
    modernizr:
    # Block the page from being loaded until Modernizr is initialized.
    header: true
    remote: https://github.com/Modernizr/Modernizr
    license:
    name: MIT
    url: https://modernizr.com/license/
    gpl-compatible: true
    version: "3.11.7"
    js:
    assets/vendor/modernizr/modernizr.min.js: { preprocess: 0, weight: -21, minified: true }
    deprecated: The %library_id% asset library is deprecated in Drupal 10.1.0 and will be removed in Drupal 11.0.0. See https://www.drupal.org/node/3333253
    normalize: normalize:
    remote: https://github.com/necolas/normalize.css remote: https://github.com/necolas/normalize.css
    version: "8.0.1" version: "8.0.1"
    ......
    ...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
    * Copy files for JS vendor dependencies from node_modules to the assets/vendor * Copy files for JS vendor dependencies from node_modules to the assets/vendor
    * folder. * folder.
    * *
    * This script handles all dependencies except CKEditor and Modernizr, which * This script handles all dependencies except CKEditor, which require a custom
    * require a custom build step. * build step.
    */ */
    const path = require('path'); const path = require('path');
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment