mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fixed file extensions to prevent warnings of Mozillas validation tests
This commit is contained in:
@ -34,15 +34,15 @@ var files = {
|
|||||||
'resources/backbone.js/1.4.0/backbone-min.jsm': true,
|
'resources/backbone.js/1.4.0/backbone-min.jsm': true,
|
||||||
|
|
||||||
// Bootstrap.js
|
// Bootstrap.js
|
||||||
'resources/bootstrap.js/3.3.7/bootstrap.min.js': true,
|
'resources/bootstrap.js/3.3.7/bootstrap.min.jsm': true,
|
||||||
'resources/bootstrap.js/4.4.1/bootstrap.min.js': true,
|
'resources/bootstrap.js/4.4.1/bootstrap.min.jsm': true,
|
||||||
|
|
||||||
// Bootstrap.css
|
// Bootstrap.css
|
||||||
'resources/bootstrap.css/3.3.7/bootstrap.min.css': true,
|
'resources/bootstrap.css/3.3.7/bootstrap.min.cssm': true,
|
||||||
'resources/bootstrap.css/4.4.1/bootstrap.min.css': true,
|
'resources/bootstrap.css/4.4.1/bootstrap.min.cssm': true,
|
||||||
|
|
||||||
// bootstrap-slider
|
// bootstrap-slider
|
||||||
'resources/bootstrap-slider/10.6.2/bootstrap-slider.min.css': true,
|
'resources/bootstrap-slider/10.6.2/bootstrap-slider.min.cssm': true,
|
||||||
|
|
||||||
// Dojo
|
// Dojo
|
||||||
'resources/dojo/1.14.1/dojo/dojo.jsm': true,
|
'resources/dojo/1.14.1/dojo/dojo.jsm': true,
|
||||||
@ -56,18 +56,18 @@ var files = {
|
|||||||
'resources/ext-core/3.1.0/ext-core.jsm': true,
|
'resources/ext-core/3.1.0/ext-core.jsm': true,
|
||||||
|
|
||||||
// Finify bundle
|
// Finify bundle
|
||||||
'resources/findify-bundle/6.9.15/bundle.js': true,
|
'resources/findify-bundle/6.9.15/bundle.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/components.js': true,
|
'resources/findify-bundle/6.9.15/components.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/config.js': true,
|
'resources/findify-bundle/6.9.15/config.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/initializer.js': true,
|
'resources/findify-bundle/6.9.15/initializer.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/polyfill.js': true,
|
'resources/findify-bundle/6.9.15/polyfill.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/vendors~components~initializer.js': true,
|
'resources/findify-bundle/6.9.15/vendors~components~initializer.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/vendors~initializer.js': true,
|
'resources/findify-bundle/6.9.15/vendors~initializer.jsm': true,
|
||||||
'resources/findify-bundle/6.9.15/vendors~sentry.js': true,
|
'resources/findify-bundle/6.9.15/vendors~sentry.jsm': true,
|
||||||
|
|
||||||
// Font Awesome
|
// Font Awesome
|
||||||
'resources/fontawesome/4.7.0/css/font-awesome.min.css': true,
|
'resources/fontawesome/4.7.0/css/font-awesome.min.cssm': true,
|
||||||
'resources/fontawesome/5.7.2/css/all.css': true,
|
'resources/fontawesome/5.7.2/css/all.cssm': true,
|
||||||
|
|
||||||
// jQuery
|
// jQuery
|
||||||
'resources/jquery/1.8.3/jquery.min.jsm': true,
|
'resources/jquery/1.8.3/jquery.min.jsm': true,
|
||||||
|
@ -126,7 +126,7 @@ requestAnalyzer._findLocalTarget = function (resourceMappings, basePath, channel
|
|||||||
bundle = helpers.determineBundle(channelPath);
|
bundle = helpers.determineBundle(channelPath);
|
||||||
if(bundle !== '') {
|
if(bundle !== '') {
|
||||||
filename = channelPath.split('/').pop();
|
filename = channelPath.split('/').pop();
|
||||||
targetPath = targetPath + filename;
|
targetPath = targetPath + filename + 'm';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare and return a local target.
|
// Prepare and return a local target.
|
||||||
|
@ -47,17 +47,17 @@ var resources = {
|
|||||||
},
|
},
|
||||||
// Bootstrap.js
|
// Bootstrap.js
|
||||||
'bootstrapJS': {
|
'bootstrapJS': {
|
||||||
'path': 'resources/bootstrap.js/{version}/bootstrap.min.js',
|
'path': 'resources/bootstrap.js/{version}/bootstrap.min.jsm',
|
||||||
'type': 'application/javascript'
|
'type': 'application/javascript'
|
||||||
},
|
},
|
||||||
// Bootstrap.css
|
// Bootstrap.css
|
||||||
'bootstrapCSS': {
|
'bootstrapCSS': {
|
||||||
'path': 'resources/bootstrap.css/{version}/bootstrap.min.css',
|
'path': 'resources/bootstrap.css/{version}/bootstrap.min.cssm',
|
||||||
'type': 'text/css'
|
'type': 'text/css'
|
||||||
},
|
},
|
||||||
// bootstrap-slider (Slider for Bootstrap 3)
|
// bootstrap-slider (Slider for Bootstrap 3)
|
||||||
'bootstrapSlider': {
|
'bootstrapSlider': {
|
||||||
'path': 'resources/bootstrap-slider/{version}/bootstrap-slider.min.css',
|
'path': 'resources/bootstrap-slider/{version}/bootstrap-slider.min.cssm',
|
||||||
'type': 'text/css'
|
'type': 'text/css'
|
||||||
},
|
},
|
||||||
// Dojo
|
// Dojo
|
||||||
@ -82,12 +82,12 @@ var resources = {
|
|||||||
},
|
},
|
||||||
// Font Awesome
|
// Font Awesome
|
||||||
'fontawesome4': {
|
'fontawesome4': {
|
||||||
'path': 'resources/fontawesome/{version}/css/font-awesome.min.css',
|
'path': 'resources/fontawesome/{version}/css/font-awesome.min.cssm',
|
||||||
'type': 'text/css'
|
'type': 'text/css'
|
||||||
},
|
},
|
||||||
// Font Awesome
|
// Font Awesome
|
||||||
'fontawesome5': {
|
'fontawesome5': {
|
||||||
'path': 'resources/fontawesome/{version}/css/all.css',
|
'path': 'resources/fontawesome/{version}/css/all.cssm',
|
||||||
'type': 'text/css'
|
'type': 'text/css'
|
||||||
},
|
},
|
||||||
// jQuery
|
// jQuery
|
||||||
|
@ -210,9 +210,9 @@ helpers.determineResourceName = function (filename) {
|
|||||||
return 'Ember.js';
|
return 'Ember.js';
|
||||||
case 'ext-core.jsm':
|
case 'ext-core.jsm':
|
||||||
return 'Ext Core';
|
return 'Ext Core';
|
||||||
case 'font-awesome.min.css':
|
case 'font-awesome.min.cssm':
|
||||||
return 'Font Awesome';
|
return 'Font Awesome';
|
||||||
case 'all.css':
|
case 'all.cssm':
|
||||||
return 'Font Awesome';
|
return 'Font Awesome';
|
||||||
case 'jquery.min.jsm':
|
case 'jquery.min.jsm':
|
||||||
return 'jQuery';
|
return 'jQuery';
|
||||||
@ -240,11 +240,11 @@ helpers.determineResourceName = function (filename) {
|
|||||||
return 'Web Font Loader';
|
return 'Web Font Loader';
|
||||||
case 'vue.jsm':
|
case 'vue.jsm':
|
||||||
return 'Vue.js';
|
return 'Vue.js';
|
||||||
case 'bootstrap.min.css':
|
case 'bootstrap.min.cssm':
|
||||||
return 'Bootstrap CSS';
|
return 'Bootstrap CSS';
|
||||||
case 'bootstrap.min.js':
|
case 'bootstrap.min.jsm':
|
||||||
return 'Bootstrap JS';
|
return 'Bootstrap JS';
|
||||||
case 'bootstrap-slider.min.css':
|
case 'bootstrap-slider.min.cssm':
|
||||||
return 'bootstrap-slider';
|
return 'bootstrap-slider';
|
||||||
default:
|
default:
|
||||||
return 'Unknown';
|
return 'Unknown';
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
<li>Added detection of framework-bundles (e.g. Findify)</li>
|
<li>Added detection of framework-bundles (e.g. Findify)</li>
|
||||||
<li>Fixed Moment.js (File extension and detection of resource name)</li>
|
<li>Fixed Moment.js (File extension and detection of resource name)</li>
|
||||||
<li>Added Vue.js v1.0.28 and page.js v1.7.1</li>
|
<li>Added Vue.js v1.0.28 and page.js v1.7.1</li>
|
||||||
|
<li>Fixed file extensions to prevent warnigns of Mozillas validation tests</li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="topic-label">
|
<div class="topic-label">
|
||||||
Please update your uBlock/uMatrix rules
|
Please update your uBlock/uMatrix rules
|
||||||
|
Reference in New Issue
Block a user