1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Added: ElementUI v2.13.2 (#147)

This commit is contained in:
nobody
2020-10-23 17:25:26 +02:00
parent 1c198f4d0d
commit 43b7bb3668
58 changed files with 78 additions and 1 deletions

View File

@ -201,7 +201,7 @@ helpers.determineCdnName = function (domainName) {
case 'upcdn.b0.upaiyun.com':
return 'UpYun Library';
case 'cdn.bootcss.com':
return 'BootCDN';
return 'BootCDN #1';
case 'sdn.geekzu.org':
return 'Geekzu Public Service [Mirror]';
case 'ajax.proxy.ustclug.org':
@ -226,6 +226,8 @@ helpers.determineCdnName = function (domainName) {
return 'Google Fonts';
case 'gitcdn.github.io':
return 'GitHub';
case 'cdn.bootcdn.net':
return 'BootCDN #2';
default:
return 'Unknown';
}
@ -249,6 +251,8 @@ helpers.determineBundle = function (path = '') {
return 'Waypoints';
} else if (path.includes('/highlight.js/')) {
return 'highlight.js';
} else if (path.includes('/element-ui/')) {
return 'ElementUI';
} else {
return '';
}
@ -282,6 +286,16 @@ helpers.formatVersion = function (version) {
}
};
helpers.formatFilename = function (targetPath) {
if (targetPath.startsWith('resources/element-ui/')) {
targetPath = targetPath.toLowerCase();
if (!targetPath.endsWith('.min.jsm')) {
targetPath = targetPath.replace('.jsm', '.min.jsm');
}
}
return targetPath;
};
helpers.setLastVersion = function (type, version) {
/**
* If-Else-If is the fastest way.
@ -386,6 +400,8 @@ helpers.setLastVersion = function (type, version) {
return '2.25.6';
} else if (type.includes('/dojo/1.')) {
return '1.14.1';
} else if (type.includes('/element-ui/2.')) {
return '2.13.2';
} else if (type.includes('/ember.js/1.')) {
return '1.13.13';
} else if (type.includes('/ember.js/2.')) {