mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-18 04:40:58 +01:00
Missing entries in statistics added
This commit is contained in:
parent
297f65b250
commit
34b65914d0
@ -793,6 +793,7 @@ const ListOfFiles = {
|
|||||||
'plyr.svg': 'plyr (SVG)',
|
'plyr.svg': 'plyr (SVG)',
|
||||||
'popper.min.jsm': 'Popper',
|
'popper.min.jsm': 'Popper',
|
||||||
'prototype.min.jsm': 'Prototype',
|
'prototype.min.jsm': 'Prototype',
|
||||||
|
'prototype.jsm': 'Prototype',
|
||||||
'raven.min.jsm': 'Raven.js',
|
'raven.min.jsm': 'Raven.js',
|
||||||
'react-dom.production.min.jsm': 'ReactDOM',
|
'react-dom.production.min.jsm': 'ReactDOM',
|
||||||
'react.production.min.jsm': 'React',
|
'react.production.min.jsm': 'React',
|
||||||
|
@ -207,13 +207,19 @@ statistics._displayNameOfFramework = function (str, type) {
|
|||||||
filename = 'Google Charts';
|
filename = 'Google Charts';
|
||||||
} else if (str === 'resources/fontawesome/5.15.1/css/v4-shims.css') {
|
} else if (str === 'resources/fontawesome/5.15.1/css/v4-shims.css') {
|
||||||
filename = 'Font Awesome (Shim)';
|
filename = 'Font Awesome (Shim)';
|
||||||
|
} else if (str === 'resources/bootstrap/fonts/') {
|
||||||
|
filename = 'Bootstrap (Fonts)';
|
||||||
|
} else {
|
||||||
|
console.warn(`[LocalCDN] Missing path: ${str}`);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
version = str.match(Resource.VERSION_EXPRESSION);
|
version = str.match(Resource.VERSION_EXPRESSION);
|
||||||
if (version !== null && version.length > 0) {
|
if (version !== null && version.length > 0) {
|
||||||
version = version[0] === 'latest' ? version[0] : `v${version[0]}`;
|
version = version[0] === 'latest' ? version[0] : `v${version[0]}`;
|
||||||
} else {
|
} else {
|
||||||
version = '';
|
version = '';
|
||||||
|
console.log(`[LocalCDN] Missing version: ${str}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
lbName.appendChild(document.createTextNode(filename));
|
lbName.appendChild(document.createTextNode(filename));
|
||||||
@ -221,6 +227,7 @@ statistics._displayNameOfFramework = function (str, type) {
|
|||||||
lbVersion.classList.add('version');
|
lbVersion.classList.add('version');
|
||||||
line.appendChild(lbName);
|
line.appendChild(lbName);
|
||||||
line.appendChild(lbVersion);
|
line.appendChild(lbVersion);
|
||||||
|
|
||||||
return line;
|
return line;
|
||||||
}
|
}
|
||||||
// If type is CDN
|
// If type is CDN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user