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

update connect

This commit is contained in:
Luke Pulverenti 2015-06-04 16:27:46 -04:00
parent 2f83f86ee8
commit c7da2478bb
21 changed files with 72 additions and 28 deletions

View file

@ -691,14 +691,13 @@
}
if (clientLowered == "chromecast") {
return "<img src='css/images/chromecast/ic_media_route_on_holo_light.png' />";
return "<img src='css/images/clients/chromecast.png' />";
}
if (clientLowered == "chrome companion") {
return "<img src='css/images/clients/chrome_companion.png' />";
}
return null;
},

View file

@ -15,7 +15,7 @@
}
function enableScrollX() {
return AppInfo.isTouchPreferred && AppInfo.enableAppLayouts;
return $.browser.mobile && AppInfo.enableAppLayouts;
}
function getThumbShape() {

View file

@ -812,7 +812,8 @@
textlines.push(displayName);
var verticalTextLines = 2;
var enableSubLinks = !AppInfo.isTouchPreferred;
var enableSubLinks = !$.browser.mobile;
;
if (item.Type == 'Audio') {
textlines.push(item.ArtistItems.map(function (a) {
@ -1053,7 +1054,7 @@
var shapeWidth = screenWidth / imagesPerRow[currentShape];
if (!AppInfo.isTouchPreferred) {
if (!$.browser.mobile) {
shapeWidth = Math.round(shapeWidth / roundTo) * roundTo;
}

View file

@ -155,9 +155,12 @@
html += Globalize.translate('HeaderAdmin');
html += '</div>';
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="dashboard" href="dashboard.html"><span class="fa fa-server sidebarLinkIcon"></span>' + Globalize.translate('ButtonManageServer') + '</a>';
html += '<a class="sidebarLink lnkMediaFolder editorViewMenu" data-itemid="editor" href="edititemmetadata.html"><span class="fa fa-edit sidebarLinkIcon"></span>' + Globalize.translate('ButtonMetadataManager') + '</a>';
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="reports" href="reports.html"><span class="fa fa-bar-chart sidebarLinkIcon"></span>' + Globalize.translate('ButtonReports') + '</a>';
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="dashboard" href="dashboard.html"><span class="fa fa-server sidebarLinkIcon"></span>' + Globalize.translate('ButtonServer') + '</a>';
if (!$.browser.mobile && !AppInfo.isTouchPreferred) {
html += '<a class="sidebarLink lnkMediaFolder" data-itemid="reports" href="reports.html"><span class="fa fa-bar-chart sidebarLinkIcon"></span>' + Globalize.translate('ButtonReports') + '</a>';
}
html += '</div>';
html += '<div class="sidebarDivider"></div>';

View file

@ -11,7 +11,7 @@
}
function enableScrollX() {
return AppInfo.isTouchPreferred && AppInfo.enableAppLayouts;
return $.browser.mobile && AppInfo.enableAppLayouts;
}
function getPortraitShape() {

View file

@ -8,7 +8,7 @@
}
function enableScrollX() {
return AppInfo.isTouchPreferred && AppInfo.enableAppLayouts;
return $.browser.mobile && AppInfo.enableAppLayouts;
}
function getSquareShape() {

View file

@ -91,8 +91,7 @@
showTitle: true,
coverImage: true,
centerImage: true,
textLines: getAdditionalTextLines,
cardLayout: true
textLines: getAdditionalTextLines
});
$('.itemsContainer', elem).html(html).lazyChildren();
}

View file

@ -1536,17 +1536,22 @@ var AppInfo = {};
if (isMobile) {
AppInfo.hasLowImageBandwidth = true;
AppInfo.forcedImageFormat = 'jpg';
}
if (isCordova) {
AppInfo.enableBottomTabs = true;
AppInfo.cardMargin = 'mediumCardMargin';
} else {
AppInfo.enableDetailPageChapters = false;
AppInfo.enableDetailsMenuImages = false;
AppInfo.enableMovieHomeSuggestions = false;
AppInfo.cardMargin = 'largeCardMargin';
if (isMobile) {
AppInfo.enableDetailPageChapters = false;
AppInfo.enableDetailsMenuImages = false;
AppInfo.enableMovieHomeSuggestions = false;
AppInfo.cardMargin = 'largeCardMargin';
AppInfo.forcedImageFormat = 'jpg';
}
}
}
else {
@ -1832,7 +1837,7 @@ var AppInfo = {};
}
if ($.browser.safari) {
requirejs(['thirdparty/cordova/remotecontrols']);
requirejs(['thirdparty/cordova/remotecontrols', 'thirdparty/cordova/ios/orientation']);
}
} else {

View file

@ -106,7 +106,7 @@
}
function enableScrollX() {
return AppInfo.isTouchPreferred && AppInfo.enableAppLayouts;
return $.browser.mobile && AppInfo.enableAppLayouts;
}
function getThumbShape() {