map pure-min.css to pure.min.css (#1629)

This commit is contained in:
nobody 2024-06-08 08:31:46 +02:00
parent 38a74b23f0
commit 074d333764
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
4 changed files with 10 additions and 2 deletions

View File

@ -35,6 +35,7 @@
"LogString": true, "LogString": true,
"BlockedRequestMethods": true, "BlockedRequestMethods": true,
"GoogleDomains": true, "GoogleDomains": true,
"ReqAnalyzer": true,
"fileGuard": true, "fileGuard": true,
"files": true, "files": true,

View File

@ -430,6 +430,11 @@ const MathJax3Files = {
'es5/tex-svg.js': true, 'es5/tex-svg.js': true,
}; };
const ReqAnalyzer = {
'BUNDLE_PURE_CSS': 'Pure CSS (Bundle)',
};
/** /**
* To block bad resources, e.g. fingerprint * To block bad resources, e.g. fingerprint
* *

View File

@ -261,6 +261,8 @@ requestAnalyzer._getPathOfBundle = function (initiator, channelHost, channelPath
filename = requestAnalyzer._handleUncompressedFiles(filename); filename = requestAnalyzer._handleUncompressedFiles(filename);
} else if (bundle === 'Font Awesome (Fonts) (Bundle)') { } else if (bundle === 'Font Awesome (Fonts) (Bundle)') {
filename = requestAnalyzer._handleFontawesomeFiles(targetPath, filename); filename = requestAnalyzer._handleFontawesomeFiles(targetPath, filename);
} else if (bundle === ReqAnalyzer.BUNDLE_PURE_CSS) {
filename = (filename === 'pure-min.css' ? 'pure.min.css' : filename);
} }
if (filename === false) { if (filename === false) {

View File

@ -25,9 +25,9 @@
<h2>New in LocalCDN:</h2> <h2>New in LocalCDN:</h2>
</div> </div>
<div class="release-notes-area"> <div class="release-notes-area">
<p></p> <p>Mapping</p>
<ul> <ul>
<li></li> <li>pure-min.css to pure.min.css (<a href="https://codeberg.org/nobody/LocalCDN/issues/1629">#1629</a>)</li>
</ul> </ul>
</div> </div>
<div id="generator-section"> <div id="generator-section">