Merge branch 'MOODLE_37_MDL-65700' of https://github.com/golenkovm/moodle into MOODLE_37_STABLE

This commit is contained in:
Sara Arjona
2020-04-07 13:34:35 +02:00
6 changed files with 51 additions and 0 deletions
+1
View File
@@ -65,6 +65,7 @@ lib/validateurlsyntax.php
lib/amd/src/popper.js
lib/geopattern-php/
lib/php-jwt/
lib/mdn-polyfills/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
+1
View File
@@ -66,6 +66,7 @@ lib/validateurlsyntax.php
lib/amd/src/popper.js
lib/geopattern-php/
lib/php-jwt/
lib/mdn-polyfills/
media/player/videojs/amd/src/video-lazy.js
media/player/videojs/amd/src/Youtube-lazy.js
media/player/videojs/videojs/
File diff suppressed because one or more lines are too long
+15
View File
@@ -0,0 +1,15 @@
The steps are essentially:
1) Install mdn-polyfills and url-polyfill packages
npm install --no-save mdn-polyfills url-polyfill
2) Join them all together:
cd node_modules/mdn-polyfills
cat CustomEvent.* Element.* Function.* HTMLCanvasElement.* MouseEvent.* Node.prototype.* NodeList.* > ../../lib/mdn-polyfills/polyfill.js
cd ../url-polyfill/
cat url-polyfill.min.js >> ../../lib/mdn-polyfills/polyfill.js
3) Uninstall the packages again
npm uninstall --no-save mdn-polyfills url-polyfill
+3
View File
@@ -1576,6 +1576,9 @@ class page_requirements_manager {
// First the skip links.
$output = $renderer->render_skip_links($this->skiplinks);
// Include the MDN Polyfill.
$output .= html_writer::script('', $this->js_fix_url('/lib/mdn-polyfills/polyfill.js'));
// YUI3 JS needs to be loaded early in the body. It should be cached well by the browser.
$output .= $this->get_yui3lib_headcode();
+12
View File
@@ -330,4 +330,16 @@
<version>5.0.0</version>
<licenseversion>3-Clause</licenseversion>
</library>
<library>
<location>mdn-polyfills</location>
<name>mdn-polyfill</name>
<license>MIT</license>
<version>5.19.0</version>
</library>
<library>
<location>mdn-polyfills</location>
<name>url-polyfill</name>
<license>MIT</license>
<version>1.1.8</version>
</library>
</libraries>