mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-22 22:57:43 +01:00
Added: Font Awesome (Fonts only) (#170)
This commit is contained in:
parent
d2c60c9278
commit
e603077f1b
@ -202,7 +202,8 @@ const Regex = {
|
||||
'BOOTSTRAP_DATEPICKER_3': /\/bootstrap-datepicker3.*\.css/,
|
||||
'BOOTSTRAP_DATEPICKER': /\/bootstrap-datepicker.*\.css/,
|
||||
'FONT_AWESOME': /use\.fontawesome\.com\/fa-loader\.css/,
|
||||
'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.(js|css)/
|
||||
'FONT_AWESOME_WITH_CODE': /use\.fontawesome\.com\/[a-z0-9]{10}\.(js|css)/,
|
||||
'FONT_AWESOME_ONLY_FONTS': /\/font-awesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//
|
||||
};
|
||||
|
||||
const Links = {
|
||||
|
@ -165,6 +165,14 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
|
||||
'path': 'resources/google-charts/loader.jsm',
|
||||
'bundle': ''
|
||||
};
|
||||
} else if (Regex.FONT_AWESOME_ONLY_FONTS.test(channelPath)) {
|
||||
lastVersion = targets.setLastVersion('/fontawesome/4.');
|
||||
return {
|
||||
'source': channelHost,
|
||||
'versionDelivered': lastVersion,
|
||||
'path': 'resources/fontawesome/' + lastVersion + '/' + helpers.extractFilenameFromPath(channelPath),
|
||||
'bundle': 'Font Awesome (Fonts)'
|
||||
};
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -39,6 +39,7 @@
|
||||
<li>Added: Bootstrap Bundle JS to maxcdn.bootstrapcdn.com (<a href="https://codeberg.org/nobody/LocalCDN/issues/157">#157</a>)</li>
|
||||
<li>Added: Pagination.js v2.1.5 (<a href="https://codeberg.org/nobody/LocalCDN/issues/157">#157</a>)</li>
|
||||
<li>Added: magnific-popup.js (<a href="https://codeberg.org/nobody/LocalCDN/issues/169">#169</a>)</li>
|
||||
<li>Added: Font Awesome (Fonts only) (<a href="https://codeberg.org/nobody/LocalCDN/issues/170">#170</a>)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
Loading…
x
Reference in New Issue
Block a user