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

Removed seasonal theme support

As our sole season theme was for Halloween and relied on dubiously licensed art assets to work, I removed the entire system.

Fixes #71
This commit is contained in:
Sparky 2019-02-02 09:35:56 -05:00
parent 87645e7748
commit 1c523fc4f0
21 changed files with 10 additions and 577 deletions

View file

@ -228,23 +228,6 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
}
var themeResources = {};
function modifyThemeForSeasonal(id) {
if (!userSettings.enableSeasonalThemes()) {
return id;
}
var date = new Date();
var month = date.getMonth();
var day = date.getDate();
if (month === 9 && day >= 30) {
return 'halloween';
}
return id;
}
var lastSound = 0;
var currentSound;
@ -258,18 +241,6 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
}
backdrop.clear();
if (id === 'halloween') {
themeResources = {
themeSong: 'https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/monsterparadefade.mp3',
effect: 'https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/howl.wav',
backdrop: 'https://github.com/MediaBrowser/Emby.Resources/raw/master/themes/halloween/bg.jpg'
};
return;
}
themeResources = {
};
}
function onThemeLoaded() {
@ -294,14 +265,13 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
var requiresRegistration = true;
if (context !== 'serverdashboard') {
var newId = modifyThemeForSeasonal(id);
if (newId !== id) {
requiresRegistration = false;
}
id = newId;
}
// if (context !== 'serverdashboard') {
//
// if (newId !== id) {
// requiresRegistration = false;
// }
// id = newId;
// }
if (currentThemeId && currentThemeId === id) {
resolve();
@ -390,4 +360,4 @@ define(['apphost', 'userSettings', 'browser', 'events', 'pluginManager', 'backdr
}
return skinManager;
});
});