diff --git a/core/mappings.js b/core/mappings.js index bc8674e3..0bcf2953 100644 --- a/core/mappings.js +++ b/core/mappings.js @@ -327,6 +327,7 @@ mappings.cdn = { 'jquery.devbridge-autocomplete/{version}/jquery.autocomplete.min.js': resources.jQueryAjaxAutoComplete, 'jquery.blockUI/{version}/jquery.blockUI.min.js': resources.jQueryBlockUI, 'jquery-csv/{version}/jquery.csv.min.js': resources.jQueryCSV, + 'jquery.cycle2/{version}/': resources.jqueryCycle2, 'jquery-easing/{version}/jquery.easing.': resources.jQueryEasing, 'jquery.lazyload/{version}/jquery.lazyload.min.js': resources.jQueryLazyLoad, 'jquery.lazy/{version}/': resources.jQueryLazyBundle, diff --git a/core/resources.js b/core/resources.js index 13ad50db..56b0c0e7 100644 --- a/core/resources.js +++ b/core/resources.js @@ -539,6 +539,10 @@ var resources = { 'jqueryAjaxUnobtrusive': { 'path': 'resources/jquery-ajax-unobtrusive/{version}/jquery.unobtrusive-ajax.min.jsm' }, + // Cycle2 (Bundle) + 'jqueryCycle2': { + 'path': 'resources/jquery.cycle2/{version}/' + }, // jquery.cookie [Deprecated] 'jqueryCookie': { 'path': 'resources/jquery-cookie/{version}/jquery.cookie.min.jsm' diff --git a/core/shorthands.js b/core/shorthands.js index 0db115c8..00986020 100644 --- a/core/shorthands.js +++ b/core/shorthands.js @@ -168,17 +168,6 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) { 'path': `resources/twitter-bootstrap/fonts/${helpers.extractFilenameFromPath(channelPath)}`, 'bundle': 'Bootstrap (Fonts)' }; - } else if ((/cdnjs\.cloudflare\.com\/ajax\/libs\/jquery\.cycle2\/[\d.]+\//).test(CompleteURL)) { - if (channelPath.endsWith('js')) { - channelPath += 'm'; - } - return { - 'source': channelHost, - 'versionRequested': '2.1.6', - 'versionDelivered': '2.1.6', - 'path': `resources/jquery.cycle2/2.1.6/${helpers.extractFilenameFromPath(channelPath)}`, - 'bundle': 'Cycle2 (Bundle)' - }; } else if (CompleteURL === 'cdn.jsdelivr.net/npm/videojs-seek-buttons/dist/videojs-seek-buttons.min.js') { lastVersion = targets.setLastVersion('/videojs-seek-buttons/'); return {