mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
hide sync
This commit is contained in:
parent
aa576157fc
commit
94a2f820c4
9 changed files with 20 additions and 87 deletions
|
@ -533,73 +533,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** homePageSquareCard */
|
|
||||||
.homePageSquareCard .cardPadder {
|
|
||||||
padding-bottom: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 540px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 33.33%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 800px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 1000px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 20%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 1200px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 16.666666666666666666666666666667%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 1280px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 14.285714285714285714285714285714%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 1600px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 14.285714285714285714285714285714%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 1920px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 11.11111111111111111%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media all and (min-width: 2200px) {
|
|
||||||
|
|
||||||
.homePageSquareCard {
|
|
||||||
width: 10%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/** homePagePortraitCard */
|
/** homePagePortraitCard */
|
||||||
.homePagePortraitCard .cardPadder {
|
.homePagePortraitCard .cardPadder {
|
||||||
padding-bottom: 150%;
|
padding-bottom: 150%;
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
{ name: Globalize.translate('HeaderFavoriteShows'), types: "Series", id: "favoriteShows", shape: 'homePageBackdrop', preferThumb: true, showTitle: false },
|
{ name: Globalize.translate('HeaderFavoriteShows'), types: "Series", id: "favoriteShows", shape: 'homePageBackdrop', preferThumb: true, showTitle: false },
|
||||||
{ name: Globalize.translate('HeaderFavoriteEpisodes'), types: "Episode", id: "favoriteEpisode", shape: 'homePageBackdrop', preferThumb: false, showTitle: true, showParentTitle: true },
|
{ name: Globalize.translate('HeaderFavoriteEpisodes'), types: "Episode", id: "favoriteEpisode", shape: 'homePageBackdrop', preferThumb: false, showTitle: true, showParentTitle: true },
|
||||||
{ name: Globalize.translate('HeaderFavoriteGames'), types: "Game", id: "favoriteGames", shape: 'autohome', preferThumb: false, showTitle: true },
|
{ name: Globalize.translate('HeaderFavoriteGames'), types: "Game", id: "favoriteGames", shape: 'autohome', preferThumb: false, showTitle: true },
|
||||||
{ name: Globalize.translate('HeaderFavoriteAlbums'), types: "MusicAlbum", id: "favoriteAlbums", shape: 'homePageSquare', preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true }
|
{ name: Globalize.translate('HeaderFavoriteAlbums'), types: "MusicAlbum", id: "favoriteAlbums", shape: 'square', preferThumb: false, showTitle: true, overlayText: false, showParentTitle: true }
|
||||||
];
|
];
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -953,10 +953,10 @@
|
||||||
options.shape = options.shape == 'auto' ? 'backdrop' : 'homePageBackdrop';
|
options.shape = options.shape == 'auto' ? 'backdrop' : 'homePageBackdrop';
|
||||||
} else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .33) {
|
} else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1) < .33) {
|
||||||
options.coverImage = true;
|
options.coverImage = true;
|
||||||
options.shape = options.shape == 'auto' ? 'square' : 'homePageSquare';
|
options.shape = 'square';
|
||||||
} else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.3333334) < .01) {
|
} else if (primaryImageAspectRatio && Math.abs(primaryImageAspectRatio - 1.3333334) < .01) {
|
||||||
options.coverImage = true;
|
options.coverImage = true;
|
||||||
options.shape = options.shape == 'auto' ? 'square' : 'homePageSquare';
|
options.shape = 'square';
|
||||||
} else if (primaryImageAspectRatio && primaryImageAspectRatio > 1.9) {
|
} else if (primaryImageAspectRatio && primaryImageAspectRatio > 1.9) {
|
||||||
options.shape = 'banner';
|
options.shape = 'banner';
|
||||||
options.coverImage = true;
|
options.coverImage = true;
|
||||||
|
|
|
@ -82,7 +82,7 @@
|
||||||
html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder editorViewMenu iconViewMenu" data-itemid="editor" href="edititemmetadata.html"><span class="fa fa-edit"></span>' + Globalize.translate('ButtonMetadataManager') + '</a>';
|
html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder editorViewMenu iconViewMenu" data-itemid="editor" href="edititemmetadata.html"><span class="fa fa-edit"></span>' + Globalize.translate('ButtonMetadataManager') + '</a>';
|
||||||
html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder iconViewMenu" data-itemid="reports" href="reports.html"><span class="fa fa-bar-chart"></span>' + Globalize.translate('ButtonReports') + '</a>';
|
html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder iconViewMenu" data-itemid="reports" href="reports.html"><span class="fa fa-bar-chart"></span>' + Globalize.translate('ButtonReports') + '</a>';
|
||||||
html += '</div>';
|
html += '</div>';
|
||||||
html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder iconViewMenu syncViewMenu" data-itemid="mysync" href="mysync.html"><span class="fa fa-cloud"></span>' + Globalize.translate('ButtonSync') + '</a>';
|
//html += '<a class="viewMenuLink viewMenuTextLink lnkMediaFolder iconViewMenu syncViewMenu" data-itemid="mysync" href="mysync.html"><span class="fa fa-cloud"></span>' + Globalize.translate('ButtonSync') + '</a>';
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
var html = LibraryBrowser.getPosterViewHtml({
|
var html = LibraryBrowser.getPosterViewHtml({
|
||||||
|
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "homePageSquare",
|
shape: "square",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
overlayText: true,
|
overlayText: true,
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
var html = LibraryBrowser.getPosterViewHtml({
|
var html = LibraryBrowser.getPosterViewHtml({
|
||||||
|
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
shape: "homePageSquare",
|
shape: "square",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
overlayText: true,
|
overlayText: true,
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
var options = {
|
var options = {
|
||||||
IncludeItemTypes: "Audio",
|
IncludeItemTypes: "Audio",
|
||||||
Limit: screenWidth >= 1920 ? 24 : (screenWidth >= 1600 ? 21 : (screenWidth >= 1200 ? 21 : 12)),
|
Limit: 20,
|
||||||
Fields: "PrimaryImageAspectRatio,SyncInfo",
|
Fields: "PrimaryImageAspectRatio,SyncInfo",
|
||||||
ParentId: parentId,
|
ParentId: parentId,
|
||||||
ImageTypeLimit: 1,
|
ImageTypeLimit: 1,
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
items: items,
|
items: items,
|
||||||
showUnplayedIndicator: false,
|
showUnplayedIndicator: false,
|
||||||
showChildCountIndicator: true,
|
showChildCountIndicator: true,
|
||||||
shape: "homePageSquare",
|
shape: "square",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true
|
showParentTitle: true
|
||||||
})).createCardMenus();
|
})).createCardMenus();
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
SortBy: "DatePlayed",
|
SortBy: "DatePlayed",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Audio",
|
IncludeItemTypes: "Audio",
|
||||||
Limit: screenWidth >= 1920 ? 8 : (screenWidth >= 1600 ? 7 : (screenWidth >= 1200 ? 7 : 6)),
|
Limit: 10,
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,AudioInfo,SyncInfo",
|
Fields: "PrimaryImageAspectRatio,AudioInfo,SyncInfo",
|
||||||
Filters: "IsPlayed",
|
Filters: "IsPlayed",
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
$('#recentlyPlayedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
$('#recentlyPlayedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
showUnplayedIndicator: false,
|
showUnplayedIndicator: false,
|
||||||
shape: "homePageSquare",
|
shape: "square",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
defaultAction: 'play'
|
defaultAction: 'play'
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
SortBy: "PlayCount",
|
SortBy: "PlayCount",
|
||||||
SortOrder: "Descending",
|
SortOrder: "Descending",
|
||||||
IncludeItemTypes: "Audio",
|
IncludeItemTypes: "Audio",
|
||||||
Limit: screenWidth >= 1920 ? 16 : (screenWidth >= 1600 ? 14 : (screenWidth >= 1200 ? 14 : 12)),
|
Limit: 20,
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "PrimaryImageAspectRatio,AudioInfo,SyncInfo",
|
Fields: "PrimaryImageAspectRatio,AudioInfo,SyncInfo",
|
||||||
Filters: "IsPlayed",
|
Filters: "IsPlayed",
|
||||||
|
@ -90,7 +90,7 @@
|
||||||
$('#topPlayedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
$('#topPlayedSongs', page).html(LibraryBrowser.getPosterViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
showUnplayedIndicator: false,
|
showUnplayedIndicator: false,
|
||||||
shape: "homePageSquare",
|
shape: "square",
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
showParentTitle: true,
|
showParentTitle: true,
|
||||||
defaultAction: 'play'
|
defaultAction: 'play'
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
var cssClass = "card homePageSquareCard bottomPaddedCard";
|
var cssClass = "card squareCard bottomPaddedCard";
|
||||||
|
|
||||||
html += "<div data-id='" + server.Id + "' data-connectserverid='" + (server.ConnectServerId || '') + "' class='" + cssClass + "'>";
|
html += "<div data-id='" + server.Id + "' data-connectserverid='" + (server.ConnectServerId || '') + "' class='" + cssClass + "'>";
|
||||||
|
|
||||||
|
@ -260,7 +260,7 @@
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
var cssClass = "card homePageSquareCard alternateHover bottomPaddedCard";
|
var cssClass = "card squareCard alternateHover bottomPaddedCard";
|
||||||
|
|
||||||
html += "<div data-id='" + invite.Id + "' class='" + cssClass + "'>";
|
html += "<div data-id='" + invite.Id + "' class='" + cssClass + "'>";
|
||||||
|
|
||||||
|
|
|
@ -760,10 +760,10 @@ var Dashboard = {
|
||||||
name: Globalize.translate('TabPlayback'),
|
name: Globalize.translate('TabPlayback'),
|
||||||
href: "playbackconfiguration.html",
|
href: "playbackconfiguration.html",
|
||||||
selected: page.hasClass('playbackConfigurationPage')
|
selected: page.hasClass('playbackConfigurationPage')
|
||||||
}, {
|
//}, {
|
||||||
name: Globalize.translate('TabSync'),
|
// name: Globalize.translate('TabSync'),
|
||||||
href: "syncactivity.html",
|
// href: "syncactivity.html",
|
||||||
selected: page.hasClass('syncConfigurationPage')
|
// selected: page.hasClass('syncConfigurationPage')
|
||||||
}, {
|
}, {
|
||||||
divider: true,
|
divider: true,
|
||||||
name: Globalize.translate('TabAutoOrganize'),
|
name: Globalize.translate('TabAutoOrganize'),
|
||||||
|
|
|
@ -203,7 +203,7 @@
|
||||||
|
|
||||||
function isAvailable(item, user) {
|
function isAvailable(item, user) {
|
||||||
|
|
||||||
//return false;
|
return false;
|
||||||
return item.SupportsSync;
|
return item.SupportsSync;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,7 +226,7 @@
|
||||||
Dashboard.getCurrentUser().done(function (user) {
|
Dashboard.getCurrentUser().done(function (user) {
|
||||||
|
|
||||||
if (user.Policy.EnableSync) {
|
if (user.Policy.EnableSync) {
|
||||||
$('.categorySyncButton', page).show();
|
$('.categorySyncButton', page).hide();
|
||||||
} else {
|
} else {
|
||||||
$('.categorySyncButton', page).hide();
|
$('.categorySyncButton', page).hide();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue