mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
remove unusable resources from emby repository
This commit is contained in:
parent
9677981344
commit
266ba6ea99
@ -1,129 +0,0 @@
|
|||||||
define([], function () {
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
function getStaticBackdrops() {
|
|
||||||
var list = [];
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg1-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg2-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg3-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg4-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg5-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg6-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg7-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg8-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg9-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg10-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg11-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg12-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg13-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg14-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
list.push([
|
|
||||||
{
|
|
||||||
url: 'https://raw.githubusercontent.com/MediaBrowser/Emby.Resources/master/images/wallpaper/bg15-1920.jpg',
|
|
||||||
width: 1920
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getRandomInt(min, max) {
|
|
||||||
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getRandomImageUrl() {
|
|
||||||
var images = getStaticBackdrops();
|
|
||||||
var index = getRandomInt(0, images.length - 1);
|
|
||||||
return images[index][0].url;
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
|
||||||
getStaticBackdrops: getStaticBackdrops,
|
|
||||||
getRandomImageUrl: getRandomImageUrl
|
|
||||||
};
|
|
||||||
});
|
|
@ -55,7 +55,7 @@ html {
|
|||||||
|
|
||||||
.backgroundContainer,
|
.backgroundContainer,
|
||||||
.dialog {
|
.dialog {
|
||||||
background: url(https://github.com/MediaBrowser/Emby.Resources/raw/master/images/wallpaper/atv1-1080.png) center center no-repeat #D5E9F2;
|
background: #D5E9F2;
|
||||||
-webkit-background-size: 100% 100%;
|
-webkit-background-size: 100% 100%;
|
||||||
background-size: 100% 100%
|
background-size: 100% 100%
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
define(["loading", "appRouter", "layoutManager", "appSettings", "apphost", "focusManager", "connectionManager", "backdrop", "globalize", "staticBackdrops", "actionsheet", "dom", "material-icons", "flexStyles", "emby-scroller", "emby-itemscontainer", "cardStyle", "emby-button"], function(loading, appRouter, layoutManager, appSettings, appHost, focusManager, connectionManager, backdrop, globalize, staticBackdrops, actionSheet, dom) {
|
define(["loading", "appRouter", "layoutManager", "appSettings", "apphost", "focusManager", "connectionManager", "globalize", "actionsheet", "dom", "material-icons", "flexStyles", "emby-scroller", "emby-itemscontainer", "cardStyle", "emby-button"], function(loading, appRouter, layoutManager, appSettings, appHost, focusManager, connectionManager, globalize, actionSheet, dom) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function renderSelectServerItems(view, servers) {
|
function renderSelectServerItems(view, servers) {
|
||||||
@ -117,11 +117,9 @@ define(["loading", "appRouter", "layoutManager", "appSettings", "apphost", "focu
|
|||||||
var servers;
|
var servers;
|
||||||
layoutManager.desktop;
|
layoutManager.desktop;
|
||||||
updatePageStyle(view, params);
|
updatePageStyle(view, params);
|
||||||
var backdropUrl = staticBackdrops.getRandomImageUrl();
|
|
||||||
view.addEventListener("viewshow", function(e) {
|
view.addEventListener("viewshow", function(e) {
|
||||||
var isRestored = e.detail.isRestored;
|
var isRestored = e.detail.isRestored;
|
||||||
appRouter.setTitle(null);
|
appRouter.setTitle(null);
|
||||||
backdrop.setBackdrop(backdropUrl);
|
|
||||||
if (!isRestored) loadServers();
|
if (!isRestored) loadServers();
|
||||||
}), view.querySelector(".servers").addEventListener("click", function(e) {
|
}), view.querySelector(".servers").addEventListener("click", function(e) {
|
||||||
var card = dom.parentWithClass(e.target, "card");
|
var card = dom.parentWithClass(e.target, "card");
|
||||||
|
Loading…
Reference in New Issue
Block a user