mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-10 00:40:51 +01:00
Added: Bootstrap (fonts only)
This commit is contained in:
parent
f6efcc0ff8
commit
495efcb23f
@ -201,7 +201,8 @@ const Regex = {
|
||||
'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_FONTS_ONLY': /\/fontawesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//
|
||||
'FONT_AWESOME_FONTS_ONLY': /\/fontawesome\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//,
|
||||
'BOOTSTRAP_FONTS_ONLY': /\/bootstrap\/(?:\d{1,2}\.){1,3}\d{1,2}\/fonts\//
|
||||
};
|
||||
|
||||
const Links = {
|
||||
|
@ -825,6 +825,7 @@ mappings.cdn = {
|
||||
'bootstrap/{version}/js/bootstrap.min.': resources.bootstrapJS,
|
||||
'bootstrap/{version}/css/bootstrap.min.': resources.bootstrapCSS,
|
||||
'twitter-bootstrap/{version}/css/bootstrap': resources.bootstrapCSS,
|
||||
'bootstrap/{version}/fonts/': resources.bootstrapFontsOnly,
|
||||
'font-awesome/{version}/css/font-awesome': resources.fontawesome,
|
||||
'font-awesome/{version}/fonts/': resources.fontawesomeFontsOnly
|
||||
}
|
||||
|
@ -215,6 +215,9 @@ var resources = {
|
||||
'path': 'resources/bootstrap/{version}/bootstrap.min.css',
|
||||
'type': 'text/css'
|
||||
},
|
||||
'bootstrapFontsOnly': {
|
||||
'path': 'resources/bootstrap/fonts/'
|
||||
},
|
||||
// Bootstrap Daterangepicker
|
||||
'bootstrapDaterangepicker': {
|
||||
'path': 'resources/bootstrap-daterangepicker/{version}/daterangepicker.min.jsm',
|
||||
|
@ -164,6 +164,12 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
|
||||
'path': 'resources/google-charts/loader.jsm',
|
||||
'bundle': ''
|
||||
};
|
||||
} else if (Regex.BOOTSTRAP_FONTS_ONLY.test(channelPath)) {
|
||||
return {
|
||||
'source': channelHost,
|
||||
'path': 'resources/bootstrap/fonts/' + helpers.extractFilenameFromPath(channelPath),
|
||||
'bundle': 'Bootstrap (Fonts)'
|
||||
};
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
@ -44,6 +44,8 @@ targets.determineBundle = function (path) {
|
||||
return 'GSAP';
|
||||
} else if (Regex.FONT_AWESOME_FONTS_ONLY.test(path)) {
|
||||
return 'Font Awesome (Fonts)';
|
||||
} else if (Regex.BOOTSTRAP_FONTS_ONLY.test(path)) {
|
||||
return 'Bootstrap (Fonts)';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
@ -34,6 +34,7 @@
|
||||
<li>Updated: vue-i18n v8.22.1 -> v8.22.2 (<a href="https://codeberg.org/nobody/LocalCDN/commit/a392f6b724">a392f6b724</a>)</li>
|
||||
<li>Updated: highlight.js v10.3.2 -> v10.4.0 (<a href="https://codeberg.org/nobody/LocalCDN/commit/5a10b0258f">5a10b0258f</a>)</li>
|
||||
<li>Updated: Bootstrap v3.3.7 -> v3.4.1</li>
|
||||
<li>Added: Bootstrap (fonts only)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
Loading…
x
Reference in New Issue
Block a user