Added: Video.js v5.20.5, v6.13.0, v7.10.1 (#155)

This commit is contained in:
nobody 2020-10-27 05:48:11 +01:00
parent e5d4e3e72f
commit bd0712a4ee
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
10 changed files with 67 additions and 0 deletions

View File

@ -72,6 +72,7 @@ mappings.cdn = {
'/ajax/': {
'jQuery/jquery-{version}.': resources.jQuery,
'jquery/jquery-{version}.': resources.jQuery,
'jquery.validate/{version}/jquery.validate.': resources.jqueryValidationPlugin,
'modernizr/modernizr-{version}.': resources.modernizr,
'bootstrap/{version}/bootstrap.min.': resources.bootstrapJS
}
@ -842,6 +843,8 @@ mappings.cdn = {
// vjs.zencdn.net
'vjs.zencdn.net': {
'/': {
'{version}/video-js.min.css': resources.videoJScss,
'{version}/video.min.js': resources.videoJS
}
},
};

View File

@ -801,6 +801,15 @@ var resources = {
'path': 'resources/videojs-seek-buttons/{version}/videojs-seek-buttons.min.css',
'type': 'text/css'
},
// video.js
'videoJS': {
'path': 'resources/video.js/{version}/video.min.jsm',
'type': 'application/javascript'
},
'videoJScss': {
'path': 'resources/video.js/{version}/video-js.min.css',
'type': 'text/css'
},
// Vue.js
'vueJs': {
'path': 'resources/vue/{version}/vue.min.jsm',

View File

@ -603,6 +603,10 @@ helpers.setLastVersion = function (type, version) {
return '17.1.0';
} else if (type.includes('/videojs-seek-buttons/')) {
return '1.6.0';
} else if (type.includes('/video.js/')) {
if (helpers.compareVersion('5.20.5', version)) return '5.20.5'; // <= 5.20.5
else if (helpers.compareVersion('6.13.0', version)) return '6.13.0'; // > 5.20.5 to <= 6.13.0
else return '7.10.1'; // > 7.10.1
} else if (type.includes('/vue/1.')) {
return '1.0.28';
} else if (type.includes('/vue/2.')) {
@ -643,6 +647,8 @@ helpers.compareVersion = function (v1, v2) {
};
const ListOfFiles = {
'video-js.min.css': 'Video.js (CSS)',
'video.min.jsm': 'Video.js (JS)',
'cookieconsent.min.css': 'Cookie Consent (CSS)',
'cookieconsent.min.jsm': 'Cookie Consent (JS)',
'markdown-it.min.jsm': 'markdown-it',

View File

@ -42,6 +42,7 @@
<li>Added: Cookie Consent v3.1.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/153">#153</a>)</li>
<li>Updated: Select2 v4.0.12 -> v4.0.13 (<a href="https://codeberg.org/nobody/LocalCDN/issues/155">#155</a>)</li>
<li>New CDN: 'vjs.zencdn.net' (<a href="https://codeberg.org/nobody/LocalCDN/issues/155">#155</a>)</li>
<li>Added: Video.js v5.20.5, v6.13.0, v7.10.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/155">#155</a>)</li>
</ul>
<div id="generator-section">
<div class="topic-label">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long