Added: Bootstrap (fonts only)

This commit is contained in:
nobody 2020-11-20 08:57:44 +01:00
parent f6efcc0ff8
commit 495efcb23f
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
6 changed files with 15 additions and 1 deletions

View File

@ -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 = {

View File

@ -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
}

View File

@ -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',

View File

@ -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;
}

View File

@ -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 '';
}

View File

@ -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">