mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
3
dashboard-ui/bower_components/prism/plugins/ie8/prism-ie8.css
vendored
Normal file
3
dashboard-ui/bower_components/prism/plugins/ie8/prism-ie8.css
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
.token a {
|
||||
color: inherit;
|
||||
}
|
42
dashboard-ui/bower_components/prism/plugins/ie8/prism-ie8.js
vendored
Normal file
42
dashboard-ui/bower_components/prism/plugins/ie8/prism-ie8.js
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
(function(){
|
||||
|
||||
if (!window.Prism) {
|
||||
return;
|
||||
}
|
||||
|
||||
var dummy = document.createElement('header');
|
||||
|
||||
if (!String.prototype.trim) {
|
||||
String.prototype.trim = function () {
|
||||
return this.replace(/^\s+/g, '').replace(/\s+$/g, '');
|
||||
};
|
||||
}
|
||||
|
||||
// textContent polyfill
|
||||
if (!('textContent' in dummy) && ('innerText' in dummy) && Object.defineProperty) {
|
||||
Object.defineProperty(Element.prototype, 'textContent', {
|
||||
get: function() {
|
||||
return this.innerText;
|
||||
},
|
||||
set: function(text) {
|
||||
this.innerText = text;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// IE8 doesn't have DOMContentLoaded
|
||||
if (!document.addEventListener && 'textContent' in dummy) {
|
||||
setTimeout(Prism.highlightAll, 10);
|
||||
}
|
||||
|
||||
// Test if innerHTML line break bug is present
|
||||
dummy.innerHTML = '\r\n';
|
||||
|
||||
if (dummy.textContent.indexOf('\n') === -1) {
|
||||
// IE8 innerHTML bug: Discards line breaks
|
||||
Prism.hooks.add('after-highlight', function(env) {
|
||||
env.element.innerHTML = env.highlightedCode.replace(/\r?\n/g, '<br>');
|
||||
});
|
||||
}
|
||||
|
||||
})();
|
1
dashboard-ui/bower_components/prism/plugins/ie8/prism-ie8.min.js
vendored
Normal file
1
dashboard-ui/bower_components/prism/plugins/ie8/prism-ie8.min.js
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
!function(){if(window.Prism){var e=document.createElement("header");String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+/g,"").replace(/\s+$/g,"")}),!("textContent"in e)&&"innerText"in e&&Object.defineProperty&&Object.defineProperty(Element.prototype,"textContent",{get:function(){return this.innerText},set:function(e){this.innerText=e}}),!document.addEventListener&&"textContent"in e&&setTimeout(Prism.highlightAll,10),e.innerHTML="\r\n",-1===e.textContent.indexOf("\n")&&Prism.hooks.add("after-highlight",function(e){e.element.innerHTML=e.highlightedCode.replace(/\r?\n/g,"<br>")})}}();
|
Loading…
Add table
Add a link
Reference in a new issue