1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

minify resources

This commit is contained in:
Luke Pulverenti 2017-01-27 22:16:59 -05:00
parent 8a6884abef
commit 661eeac16e
201 changed files with 203 additions and 52376 deletions

View file

@ -1,41 +1 @@
.ui-body-b h1, .ui-body-b h2 {
color: #FF9100;
}
.viewMenuBar, .halloweenInfoButton {
color: #FF9100 !important;
}
.barsMenuButton {
color: #FF9100 !important;
}
.libraryViewNav .ui-btn-active {
border-bottom-color: #FF9100 !important;
color: #FF9100 !important;
}
.button-submit, .button-accent {
background: #FF9100 !important;
}
.channelTimeslotHeader, .timeslotHeader {
background: #FF9100 !important;
}
.channelTimeslotHeader {
border-right-color: #FF9100 !important;
}
.emby-tab-button-active, .ui-body-b .emby-tab-button-active {
color: #FF9100 !important;
border-color: #FF9100 !important;
}
.darkDrawer .sidebarLink.selectedSidebarLink, .darkDrawer .selectedMediaFolder {
color: #FF9100 !important;
}
.visualCardBox-cardFooter {
color: #FF9100;
}
.ui-body-b h1,.ui-body-b h2{color:#FF9100}.barsMenuButton,.darkDrawer .selectedMediaFolder,.darkDrawer .sidebarLink.selectedSidebarLink,.halloweenInfoButton,.libraryViewNav .ui-btn-active,.viewMenuBar{color:#FF9100!important}.libraryViewNav .ui-btn-active{border-bottom-color:#FF9100!important}.button-accent,.button-submit,.channelTimeslotHeader,.timeslotHeader{background:#FF9100!important}.channelTimeslotHeader{border-right-color:#FF9100!important}.emby-tab-button-active,.ui-body-b .emby-tab-button-active{color:#FF9100!important;border-color:#FF9100!important}.visualCardBox-cardFooter{color:#FF9100}

View file

@ -1,125 +1 @@
define(['appSettings', 'backdrop', 'browser', 'globalize', 'require', 'paper-icon-button-light'], function (appSettings, backdrop, browser, globalize, require) {
'use strict';
var lastSound = 0;
var iconCreated;
var destroyed;
var currentSound;
var cancelKey = 'cancelHalloween2015';
var cancelValue = '6';
function onPageShow() {
var page = this;
if (!destroyed) {
if (appSettings.get(cancelKey) == cancelValue) {
destroyed = true;
return;
}
if (!browser.mobile) {
require(['css!./style.css']);
if (!page.classList.contains('itemDetailPage')) {
backdrop.setBackdrop('themes/halloween/bg.jpg');
}
if (lastSound == 0) {
playSound('http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/monsterparadefade.mp3', .1);
} else if ((new Date().getTime() - lastSound) > 30000) {
playSound('http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/howl.wav');
}
addIcon();
}
}
}
function addIcon() {
if (iconCreated) {
return;
}
iconCreated = true;
var viewMenuSecondary = document.querySelector('.viewMenuSecondary');
if (viewMenuSecondary) {
var html = '<button is="paper-icon-button-light" class="halloweenInfoButton"><i class="md-icon">info</i></button>';
viewMenuSecondary.insertAdjacentHTML('afterbegin', html);
viewMenuSecondary.querySelector('.halloweenInfoButton').addEventListener('click', onIconClick);
}
}
function onIconClick() {
require(['dialog'], function (dialog) {
dialog({
title: "Happy Halloween",
text: "Happy Halloween from the Emby Team. We hope your Halloween is spooktacular! Would you like to allow the Halloween theme to continue?",
buttons: [
{
id: 'yes',
name: globalize.translate('ButtonYes'),
type: 'submit'
},
{
id: 'no',
name: globalize.translate('ButtonNo'),
type: 'cancel'
}
]
}).then(function (result) {
if (result == 'no') {
destroyTheme();
}
});
});
}
function destroyTheme() {
destroyed = true;
var halloweenInfoButton = document.querySelector('.halloweenInfoButton');
if (halloweenInfoButton) {
halloweenInfoButton.parentNode.removeChild(halloweenInfoButton);
}
if (currentSound) {
currentSound.stop();
}
backdrop.clear();
appSettings.set(cancelKey, cancelValue);
window.location.reload(true);
}
pageClassOn('pageshow', "libraryPage", onPageShow);
function playSound(path, volume) {
require(['howler'], function (howler) {
var sound = new Howl({
urls: [path],
volume: volume || .3
});
sound.play();
currentSound = sound;
lastSound = new Date().getTime();
});
}
});
define(["appSettings","backdrop","browser","globalize","require","paper-icon-button-light"],function(appSettings,backdrop,browser,globalize,require){"use strict";function onPageShow(){var page=this;if(!destroyed){if(appSettings.get(cancelKey)==cancelValue)return void(destroyed=!0);browser.mobile||(require(["css!./style.css"]),page.classList.contains("itemDetailPage")||backdrop.setBackdrop("themes/halloween/bg.jpg"),0==lastSound?playSound("http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/monsterparadefade.mp3",.1):(new Date).getTime()-lastSound>3e4&&playSound("http://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/howl.wav"),addIcon())}}function addIcon(){if(!iconCreated){iconCreated=!0;var viewMenuSecondary=document.querySelector(".viewMenuSecondary");if(viewMenuSecondary){var html='<button is="paper-icon-button-light" class="halloweenInfoButton"><i class="md-icon">info</i></button>';viewMenuSecondary.insertAdjacentHTML("afterbegin",html),viewMenuSecondary.querySelector(".halloweenInfoButton").addEventListener("click",onIconClick)}}}function onIconClick(){require(["dialog"],function(dialog){dialog({title:"Happy Halloween",text:"Happy Halloween from the Emby Team. We hope your Halloween is spooktacular! Would you like to allow the Halloween theme to continue?",buttons:[{id:"yes",name:globalize.translate("ButtonYes"),type:"submit"},{id:"no",name:globalize.translate("ButtonNo"),type:"cancel"}]}).then(function(result){"no"==result&&destroyTheme()})})}function destroyTheme(){destroyed=!0;var halloweenInfoButton=document.querySelector(".halloweenInfoButton");halloweenInfoButton&&halloweenInfoButton.parentNode.removeChild(halloweenInfoButton),currentSound&&currentSound.stop(),backdrop.clear(),appSettings.set(cancelKey,cancelValue),window.location.reload(!0)}function playSound(path,volume){require(["howler"],function(howler){var sound=new Howl({urls:[path],volume:volume||.3});sound.play(),currentSound=sound,lastSound=(new Date).getTime()})}var iconCreated,destroyed,currentSound,lastSound=0,cancelKey="cancelHalloween2015",cancelValue="6";pageClassOn("pageshow","libraryPage",onPageShow)});

View file

@ -1,65 +1 @@
.background-theme-b .backgroundContainer.withBackdrop {
background: rgba(6, 6, 6, .86) !important;
}
.ui-body-b h1, .ui-body-b h2 {
color: #E53A35;
}
.holidayInfoButton {
color: #E53A35 !important;
}
.libraryViewNav .ui-btn-active {
border-bottom-color: #AC3326 !important;
color: #AC3326 !important;
}
.channelTimeslotHeader, .timeslotHeader {
background: #cc3333 !important;
}
.channelTimeslotHeader {
border-right-color: #cc3333 !important;
}
.playedIndicator {
background-color: #cc3333 !important;
}
.darkDrawer .sidebarLink:hover {
background: #AC3326;
}
.darkDrawer .sidebarLink.selectedSidebarLink, .darkDrawer .selectedMediaFolder {
background: #AC3326 !important;
}
#snowflakeContainer {
position: absolute;
left: 0px;
top: 0px;
pointer-events: none;
}
.snowflake {
padding-left: 15px;
font-family: Cambria, Georgia, serif;
font-size: 14px;
line-height: 24px;
position: fixed;
color: #FFFFFF;
user-select: none;
z-index: 1000;
}
.snowflake:hover {
cursor: default;
}
.christmas .mainDrawer {
background-image: url(https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/themes/holiday/drawer.jpg);
background-size: cover;
background-position: 60% center;
background-repeat: no-repeat;
}
.background-theme-b .backgroundContainer.withBackdrop{background:rgba(6,6,6,.86)!important}.ui-body-b h1,.ui-body-b h2{color:#E53A35}.holidayInfoButton{color:#E53A35!important}.libraryViewNav .ui-btn-active{border-bottom-color:#AC3326!important;color:#AC3326!important}.channelTimeslotHeader,.timeslotHeader{background:#c33!important}.channelTimeslotHeader{border-right-color:#c33!important}.playedIndicator{background-color:#c33!important}.darkDrawer .sidebarLink:hover{background:#AC3326}.darkDrawer .selectedMediaFolder,.darkDrawer .sidebarLink.selectedSidebarLink{background:#AC3326!important}#snowflakeContainer{position:absolute;left:0;top:0;pointer-events:none}.snowflake{padding-left:15px;font-family:Cambria,Georgia,serif;font-size:14px;line-height:24px;position:fixed;color:#FFF;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:1000}.snowflake:hover{cursor:default}.christmas .mainDrawer{background-image:url(https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/themes/holiday/drawer.jpg);-webkit-background-size:cover;background-size:cover;background-position:60% center;background-repeat:no-repeat}

File diff suppressed because one or more lines are too long