mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-09 08:28:51 +01:00
Direct call of Google Material Icons (#1295)
This commit is contained in:
parent
8a30ea7321
commit
5312bbc8aa
@ -64,11 +64,11 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
|
||||
'bundle': ''
|
||||
};
|
||||
} else if (channelPath.endsWith(MaterialIcons.DEFAULT)) {
|
||||
lastVersion = targets.setLastVersion('/google-material-design-icons/');
|
||||
lastVersion = targets.setLastVersion('/materialicons/');
|
||||
return {
|
||||
'source': channelHost,
|
||||
'versionDelivered': lastVersion,
|
||||
'path': `resources/google-material-design-icons/${lastVersion}/MaterialIcons.woff2`,
|
||||
'path': `resources/google-material-design-icons/materialicons/${lastVersion}/MaterialIcons.woff2`,
|
||||
'bundle': ''
|
||||
};
|
||||
} else if (Regex.BOOTSTRAP_DATEPICKER_3.test(channelPath)) {
|
||||
|
@ -217,15 +217,11 @@ targets.setLastVersion = function (type, version) {
|
||||
if (type.startsWith('/gsap/1.')) return '1.20.5';
|
||||
if (type.startsWith('/gsap/2.')) return '2.1.3';
|
||||
if (type.startsWith('/gsap/3.')) return '3.11.4';
|
||||
|
||||
// just for testing ----------------------------------------------
|
||||
if (type.startsWith('/materialicons/')) return 'v139';
|
||||
if (type.startsWith('/materialiconsoutlined/')) return 'v108';
|
||||
if (type.startsWith('/materialiconsround/')) return 'v107';
|
||||
if (type.startsWith('/materialiconssharp/')) return 'v108';
|
||||
if (type.startsWith('/materialiconstwotone/')) return 'v111';
|
||||
// ---------------------------------------------------------------
|
||||
|
||||
if (type.startsWith('/highlight.js/7.')) return '9.18.5';
|
||||
if (type.startsWith('/highlight.js/8.')) return '9.18.5';
|
||||
if (type.startsWith('/highlight.js/9.')) return '9.18.5';
|
||||
|
@ -41,6 +41,10 @@
|
||||
<ul>
|
||||
<li>twitter-bootstrap v4.4.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/1284">#1284</a>)</li>
|
||||
</ul>
|
||||
<p>Mapping</p>
|
||||
<ul>
|
||||
<li>Direct call of Google Material Icons (<a href="https://codeberg.org/nobody/LocalCDN/issues/1295">#1295</a>)</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
Loading…
x
Reference in New Issue
Block a user