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

Resources revised

This commit is contained in:
nobody
2020-09-04 20:26:31 +02:00
parent 410575ca96
commit 8d45f24fa8
30 changed files with 35 additions and 38 deletions

View File

@ -26,13 +26,7 @@ var resources = {
// AlgoliaSearch // AlgoliaSearch
'algoliaSearch': { 'algoliaSearch': {
'path': 'resources/algoliasearch/3.35.1/algoliasearch.min.jsm', 'path': 'resources/algoliasearch/{version}/algoliasearch.min.jsm',
'type': 'application/javascript'
},
// TEMPORARY SOLUTION
// algoliasearch@3(algoliasearchLite.min.js),algoliasearch.helper@2
'algoliasearchSearchlightHelper': {
'path': 'resources/algoliasearch3.33.0_algoliasearchLite_algoliasearchHelper.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// AnguComplete // AnguComplete
@ -89,6 +83,7 @@ var resources = {
'path': 'resources/angularjs/{version}/angular-touch.min.jsm', 'path': 'resources/angularjs/{version}/angular-touch.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// angularMaterialDesign
'angularMaterialDesignJS': { 'angularMaterialDesignJS': {
'path': 'resources/angular-material/{version}/angular-material.min.jsm', 'path': 'resources/angular-material/{version}/angular-material.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
@ -171,11 +166,11 @@ var resources = {
}, },
// baguetteBox.js // baguetteBox.js
'baguetteBoxJS': { 'baguetteBoxJS': {
'path': 'resources/baguettebox.js/1.11.1/baguetteBox.min.jsm', 'path': 'resources/baguettebox.js/{version}/baguetteBox.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
'baguetteBoxCSS': { 'baguetteBoxCSS': {
'path': 'resources/baguettebox.js/1.11.1/baguetteBox.min.css', 'path': 'resources/baguettebox.js/{version}/baguetteBox.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
// BootboxJS // BootboxJS
@ -183,14 +178,13 @@ var resources = {
'path': 'resources/bootbox.js/{version}/bootbox.min.jsm', 'path': 'resources/bootbox.js/{version}/bootbox.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// Bootstrap.js // Bootstrap
'bootstrapJS': { 'bootstrapJS': {
'path': 'resources/bootstrap.js/{version}/bootstrap.min.jsm', 'path': 'resources/bootstrap/{version}/bootstrap.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// Bootstrap.css
'bootstrapCSS': { 'bootstrapCSS': {
'path': 'resources/bootstrap.css/{version}/bootstrap.min.css', 'path': 'resources/bootstrap/{version}/bootstrap.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
// Bootstrap Daterangepicker // Bootstrap Daterangepicker
@ -223,19 +217,19 @@ var resources = {
}, },
// Bootstrap Toggle // Bootstrap Toggle
'bootstrapToggleJS': { 'bootstrapToggleJS': {
'path': 'resources/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.jsm', 'path': 'resources/bootstrap-toggle/{version}/js/bootstrap-toggle.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
'bootstrap2ToggleJS': { 'bootstrap2ToggleJS': {
'path': 'resources/bootstrap-toggle/2.2.2/js/bootstrap2-toggle.min.jsm', 'path': 'resources/bootstrap-toggle/{version}/js/bootstrap2-toggle.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
'bootstrapToggleCSS': { 'bootstrapToggleCSS': {
'path': 'resources/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css', 'path': 'resources/bootstrap-toggle/{version}/css/bootstrap-toggle.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
'bootstrap2ToggleCSS': { 'bootstrap2ToggleCSS': {
'path': 'resources/bootstrap-toggle/2.2.2/css/bootstrap2-toggle.min.css', 'path': 'resources/bootstrap-toggle/{version}/css/bootstrap2-toggle.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
// Bootstrap 3 Typeahead // Bootstrap 3 Typeahead
@ -315,7 +309,6 @@ var resources = {
'path': 'resources/fontawesome/{version}/css/font-awesome.min.css', 'path': 'resources/fontawesome/{version}/css/font-awesome.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
// Font Awesome
'fontawesome5CSS': { 'fontawesome5CSS': {
'path': 'resources/fontawesome/{version}/css/all.min.css', 'path': 'resources/fontawesome/{version}/css/all.min.css',
'type': 'text/css' 'type': 'text/css'
@ -346,7 +339,7 @@ var resources = {
}, },
// jQuery Ajax AutoComplete // jQuery Ajax AutoComplete
'jQueryAjaxAutoComplete': { 'jQueryAjaxAutoComplete': {
'path': 'resources/jquery.devbridge-autocomplete/1.4.10/jquery.autocomplete.min.jsm', 'path': 'resources/jquery.devbridge-autocomplete/{version}/jquery.autocomplete.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// jQuery // jQuery
@ -361,7 +354,7 @@ var resources = {
}, },
// jQuery-csv // jQuery-csv
'jQueryCSV': { 'jQueryCSV': {
'path': 'resources/jquery-csv/1.0.9/jquery.csv.min.jsm', 'path': 'resources/jquery-csv/{version}/jquery.csv.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// jQuery Lazy Load // jQuery Lazy Load
@ -408,16 +401,15 @@ var resources = {
'path': 'resources/jqueryui/{version}/jquery-ui.min.jsm', 'path': 'resources/jqueryui/{version}/jquery-ui.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
'jQueryUiThemes': {
'path': 'resources/jqueryui/{version}/themes/base/minified/jquery-ui.min.css',
'type': 'text/css'
},
// jScrollPane // jScrollPane
'jScrollPane': { 'jScrollPane': {
'path': 'resources/jScrollPane/{version}/jquery.jscrollpane.min.jsm', 'path': 'resources/jScrollPane/{version}/jquery.jscrollpane.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// jQuery UI Themes
'jQueryUiThemes': {
'path': 'resources/jqueryui/{version}/themes/base/minified/jquery-ui.min.css',
'type': 'text/css'
},
// jQuery URLive // jQuery URLive
'jqueryURLive': { 'jqueryURLive': {
'path': 'resources/urlive/{version}/jquery.urlive.min.jsm', 'path': 'resources/urlive/{version}/jquery.urlive.min.jsm',
@ -536,6 +528,7 @@ var resources = {
'path': 'resources/p2p-media-loader-core/{version}/p2p-media-loader-core.min.jsm', 'path': 'resources/p2p-media-loader-core/{version}/p2p-media-loader-core.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// P2P Media Loader Hls.js
'p2pMediaLoaderHlsJS': { 'p2pMediaLoaderHlsJS': {
'path': 'resources/p2p-media-loader-hlsjs/{version}/p2p-media-loader-hlsjs.min.jsm', 'path': 'resources/p2p-media-loader-hlsjs/{version}/p2p-media-loader-hlsjs.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
@ -562,7 +555,7 @@ var resources = {
}, },
// Raven.js // Raven.js
'ravenJS': { 'ravenJS': {
'path': 'resources/raven/{version}/raven.min.jsm', 'path': 'resources/raven.js/{version}/raven.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
'ravenPluginAngularJS': { 'ravenPluginAngularJS': {
@ -571,12 +564,12 @@ var resources = {
}, },
// React // React
'react': { 'react': {
'path': 'resources/react/16.13.1/umd/react.production.min.jsm', 'path': 'resources/react/{version}/umd/react.production.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// ReactDOM // ReactDOM
'reactDOM': { 'reactDOM': {
'path': 'resources/react-dom/16.13.1/umd/react-dom.production.min.jsm', 'path': 'resources/react-dom/{version}/umd/react-dom.production.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// rickshaw // rickshaw
@ -669,22 +662,20 @@ var resources = {
'path': 'resources/tether/{version}/js/tether.min.jsm', 'path': 'resources/tether/{version}/js/tether.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// Twitter Bootstrap JS // Twitter Bootstrap
'twitterBootstrapJS': { 'twitterBootstrapJS': {
'path': 'resources/twitter-bootstrap/{version}/js/bootstrap.min.jsm', 'path': 'resources/twitter-bootstrap/{version}/js/bootstrap.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// Twitter Bootstrap CSS
'twitterBootstrapCSS': { 'twitterBootstrapCSS': {
'path': 'resources/twitter-bootstrap/{version}/css/bootstrap.min.css', 'path': 'resources/twitter-bootstrap/{version}/css/bootstrap.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
// toastr.js // toastr
'toastrCSS': { 'toastrCSS': {
'path': 'resources/toastr.js/{version}/toastr.min.css', 'path': 'resources/toastr.js/{version}/toastr.min.css',
'type': 'text/css' 'type': 'text/css'
}, },
// toastr.js
'toastrJS': { 'toastrJS': {
'path': 'resources/toastr.js/{version}/toastr.min.jsm', 'path': 'resources/toastr.js/{version}/toastr.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
@ -755,5 +746,15 @@ var resources = {
'wow': { 'wow': {
'path': 'resources/wow/{version}/wow.min.jsm', 'path': 'resources/wow/{version}/wow.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
},
// algoliasearch@3(algoliasearchLite.min.js),algoliasearch.helper@2
'algoliasearchSearchlightHelper': {
'path': 'resources/algoliasearch3.33.0_algoliasearchLite_algoliasearchHelper.jsm',
'type': 'application/javascript'
},
// jsdelivr-combine-jquery-hogan-algoliasearch-autocomplete.jsm (in shorthands.js)
'jsdelivrCombineJqueryHoganAlgoliasearchAutocomplete': {
'path': 'resources/jsdelivr-combine-jquery-hogan-algoliasearch-autocomplete.jsm',
'type': 'application/javascript'
} }
}; };

View File

@ -340,13 +340,9 @@ helpers.setLastVersion = function (type, version) {
return '1.11.1'; return '1.11.1';
} else if (type.includes('/bootbox.js/4.')) { } else if (type.includes('/bootbox.js/4.')) {
return '4.4.0'; return '4.4.0';
} else if (type.includes('/bootstrap.js/3.')) { } else if (type.includes('/bootstrap/3.')) {
return '3.3.7'; return '3.3.7';
} else if (type.includes('/bootstrap.js/4.')) { } else if (type.includes('/bootstrap/4.')) {
return '4.5.0';
} else if (type.includes('/bootstrap.css/3.')) {
return '3.3.7';
} else if (type.includes('/bootstrap.css/4.')) {
return '4.5.0'; return '4.5.0';
} else if (type.includes('/bootstrap-daterangepicker/2.')) { } else if (type.includes('/bootstrap-daterangepicker/2.')) {
return '2.1.27'; return '2.1.27';

View File

Before

Width:  |  Height:  |  Size: 106 KiB

After

Width:  |  Height:  |  Size: 106 KiB