Added: Font Awesome v4.7.0 loaded by WebFontLoader (#73)
This commit is contained in:
parent
d0cffa56d3
commit
12cc466d34
|
@ -759,9 +759,12 @@ var mappings = {
|
|||
},
|
||||
// Font Awesome CDN
|
||||
'use.fontawesome.com': {
|
||||
'/releases/v': {
|
||||
'{version}/css/': resources.fontawesome5CSS,
|
||||
'{version}/js/': resources.fontawesome5JS
|
||||
'/': {
|
||||
'releases/v{version}/css/': resources.fontawesome5CSS,
|
||||
'releases/v{version}/js/': resources.fontawesome5JS,
|
||||
'a1f20be65b.js': resources.webfontloaderFontawesomeJS,
|
||||
'a1f20be65b.css': resources.webfontloaderFontawesomeCSS,
|
||||
'webfontloader/{version}/webfontload': resources.webfontloader
|
||||
}
|
||||
},
|
||||
// Cloudflare Rocket-Loader
|
||||
|
|
|
@ -670,6 +670,14 @@ var resources = {
|
|||
'path': 'resources/webfont/{version}/webfontloader.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
'webfontloaderFontawesomeJS': {
|
||||
'path': 'resources/webfont/a1f20be65b.jsm',
|
||||
'type': 'application/javascript'
|
||||
},
|
||||
'webfontloaderFontawesomeCSS': {
|
||||
'path': 'resources/webfont/a1f20be65b.css',
|
||||
'type': 'text/css'
|
||||
},
|
||||
// WebRTC adapter
|
||||
'webRTCadapter': {
|
||||
'path': 'resources/webrtc-adapter/{version}/adapter.min.jsm',
|
||||
|
|
|
@ -132,6 +132,22 @@ shorthands.specialFiles = function (channelHost, channelPath, searchString) {
|
|||
'path': 'resources/bootstrap-datepicker/1.9.0/bootstrap-datepicker.standalone.min.css',
|
||||
'bundle': ''
|
||||
};
|
||||
} else if (channelHost + channelPath === 'use.fontawesome.com/a1f20be65b.js') {
|
||||
return {
|
||||
'source': channelHost,
|
||||
'versionRequested': '4.6.3',
|
||||
'versionDelivered': '4.7.0',
|
||||
'path': 'resources/webfont/a1f20be65b.jsm',
|
||||
'bundle': ''
|
||||
};
|
||||
} else if (channelHost + channelPath === 'use.fontawesome.com/a1f20be65b.css') {
|
||||
return {
|
||||
'source': channelHost,
|
||||
'versionRequested': '4.6.3',
|
||||
'versionDelivered': '4.7.0',
|
||||
'path': 'resources/webfont/a1f20be65b.css',
|
||||
'bundle': ''
|
||||
};
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -543,6 +543,8 @@ helpers.compareVersion = function (v1, v2) {
|
|||
};
|
||||
|
||||
const ListOfFiles = {
|
||||
'a1f20be65b.css': 'Font Awesome (CSS)',
|
||||
'a1f20be65b.jsm': 'Font Awesome (JS)',
|
||||
'owl.transitions.min.css': 'OwlCarousel (CSS Transitions)',
|
||||
'owl.theme.min.css': 'OwlCarousel (CSS Theme)',
|
||||
'owl.carousel.min.css': 'OwlCarousel (CSS)',
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
<ul>
|
||||
<li>Fixed: Character encoding problem in popup (<a href="https://codeberg.org/nobody/LocalCDN/issues/71">#71</a>)</li>
|
||||
<li>Fixed: Block Google Fonts if enabled</li>
|
||||
<li>Added: Font Awesome v4.7.0 loaded by WebFontLoader (<a href="https://codeberg.org/nobody/LocalCDN/issues/73">#73</a>)</li>
|
||||
</ul>
|
||||
<div id="generator-section">
|
||||
<div class="topic-label">
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,25 @@
|
|||
/*!
|
||||
* Font Awesome v4.6.3 by @davegandy - http://fontawesome.io - @fontawesome
|
||||
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
|
||||
*
|
||||
* 2020-08-03
|
||||
* File modified by nobody/LocalCDN
|
||||
*
|
||||
*/
|
||||
@import url('../fontawesome/4.7.0/css/font-awesome-css.min.css');
|
||||
/* FONT PATH
|
||||
* -------------------------- */
|
||||
@font-face {
|
||||
font-family: 'FontAwesome';
|
||||
src: url('../fontawesome/4.7.0/fonts/fontawesome-webfont.eot');
|
||||
src: url('../fontawesome/4.7.0/fonts/fontawesome-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fontawesome/4.7.0/fonts/fontawesome-webfont.woff2') format('woff2'),
|
||||
url('../fontawesome/4.7.0/fonts/fontawesome-webfont.woff') format('woff'),
|
||||
url('../fontawesome/4.7.0/fonts/fontawesome-webfont.ttf') format('truetype'),
|
||||
url('../fontawesome/4.7.0/fonts/fontawesome-webfont.svg#fontawesomeregular') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
/*
|
||||
Embed code a1f20be65b
|
||||
*/
|
|
@ -0,0 +1,13 @@
|
|||
window.FontAwesomeConfig = {
|
||||
asyncEnabled: true,
|
||||
autoAccessibilityEnabled: true,
|
||||
reportingEnabled: true,
|
||||
|
||||
reportingDomains: "localhost, *.dev",
|
||||
|
||||
useUrl: "use.fontawesome.com",
|
||||
faCdnUrl: "https://cdn.fontawesome.com:443",
|
||||
code: "a1f20be65b",
|
||||
webFontLoaderVersion: "1.6.24"
|
||||
};
|
||||
window.FontAwesome||(window.FontAwesome={}),function(){function a(a){this.el=a;for(var b=a.className.replace(/^\s+|\s+$/g,"").split(/\s+/),c=0;c<b.length;c++)d.call(this,b[c])}function b(a,b,c){Object.defineProperty?Object.defineProperty(a,b,{get:c}):a.__defineGetter__(b,c)}if(!("undefined"==typeof window.Element||"classList"in document.documentElement)){var c=Array.prototype,d=c.push,e=c.splice,f=c.join;a.prototype={add:function(a){this.contains(a)||(d.call(this,a),this.el.className=this.toString())},contains:function(a){return-1!=this.el.className.indexOf(a)},item:function(a){return this[a]||null},remove:function(a){if(this.contains(a)){for(var b=0;b<this.length&&this[b]!=a;b++);e.call(this,b,1),this.el.className=this.toString()}},toString:function(){return f.call(this," ")},toggle:function(a){return this.contains(a)?this.remove(a):this.add(a),this.contains(a)}},window.DOMTokenList=a,b(Element.prototype,"classList",function(){return new a(this)})}}(),function(a,b,c){function d(){}function e(a){var c,d=[],e=b,f=e.documentElement.doScroll,g="DOMContentLoaded",h=(f?/^loaded|^c/:/^loaded|^i|^c/).test(e.readyState);h||e.addEventListener(g,c=function(){for(e.removeEventListener(g,c),h=1;c=d.shift();)c()}),h?setTimeout(a,0):d.push(a)}function f(a){var b=!1;return p.split(",").forEach(function(c){var d=new RegExp(c.trim().replace(".","\\.").replace("*","(.*)"));a.match(d)&&(b=!0)}),b}function g(){var a,c,d,e=b.querySelectorAll(".fa");Array.prototype.forEach.call(e,function(e){a=e.getAttribute("title"),e.setAttribute("aria-hidden","true"),c=e.nextElementSibling?!e.nextElementSibling.classList.contains("sr-only"):!0,a&&c&&(d=b.createElement("span"),d.innerHTML=a,d.classList.add("sr-only"),e.parentNode.insertBefore(d,e.nextSibling))})}function h(a){"undefined"!=typeof MutationObserver&&new MutationObserver(a).observe(b,{childList:!0,subtree:!0})}function i(){var a=b.createElement("link");a.href="https://"+q+"/"+s+".css",a.media="all",a.rel="stylesheet",b.getElementsByTagName("head")[0].appendChild(a)}function j(){var c,e=b.createElement("script"),f={},g=b.scripts[0];a.WebFontConfig||(a.WebFontConfig={}),f=a.WebFontConfig,f.custom||(f.custom={}),f.custom.families||(f.custom.families=[]),f.custom.urls||(f.custom.urls=[]),f.custom.testStrings||(f.custom.testStrings={}),f.custom.families.push("FontAwesome"),f.custom.urls.push("https://"+q+"/"+s+".css"),f.custom.testStrings.FontAwesome="",c=f.fontactive||d,f.fontactive=function(b,e){var f=(a.FontAwesomeHooks||{}).loaded||d;c(b,e),"FontAwesome"===b&&"n4"===e&&f()},e.src="https://"+q+"/webfontloader/"+t+"/webfontloader.js",g.parentNode.insertBefore(e,g)}function k(){var a=b.createElement("script"),c=b.scripts[0];a.src=r+"/js/stats.js",c.parentNode.appendChild(a)}function l(){return n&&(e(g),h(g)),o&&f(location.host)&&k(),m?j():i()}var m=a.FontAwesomeConfig.asyncEnabled,n=a.FontAwesomeConfig.autoAccessibilityEnabled,o=a.FontAwesomeConfig.reportingEnabled,p=a.FontAwesomeConfig.reportingDomains,q=a.FontAwesomeConfig.useUrl,r=a.FontAwesomeConfig.faCdnUrl,s=a.FontAwesomeConfig.code,t=a.FontAwesomeConfig.webFontLoaderVersion;a.FontAwesome.load=l}(this,document);try{window.FontAwesome.load()}catch(e){}
|
Loading…
Reference in New Issue