mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added new studio image provider
This commit is contained in:
parent
f9ec680145
commit
dfec6b307b
16 changed files with 95 additions and 128 deletions
|
@ -72,6 +72,7 @@
|
|||
//positive
|
||||
var html = '<div data-role="collapsible" data-collapsed="true" style="margin-top: 2em;" >';
|
||||
html += '<h3>Latest Outstanding Reviews</h3>';
|
||||
|
||||
var positive = response1[0];
|
||||
var hasReviews = false;
|
||||
if (positive && positive.length > 0) {
|
||||
|
|
|
@ -175,7 +175,7 @@
|
|||
ParentId: id,
|
||||
Fields: 'Settings'
|
||||
};
|
||||
|
||||
|
||||
if (itemtype != "Season" && itemtype != "Series") {
|
||||
query.SortBy = "SortName";
|
||||
}
|
||||
|
@ -818,7 +818,7 @@
|
|||
$('#providerSettingsContainer', page).hide();
|
||||
}
|
||||
populateInternetProviderSettings(page, item, item.LockedFields);
|
||||
|
||||
|
||||
$("#chkDisplaySpecialsInline", page).checked(item.DisplaySpecialsWithSeasons || false).checkboxradio('refresh');
|
||||
|
||||
$('#txtPath', page).val(item.Path || '');
|
||||
|
@ -1070,14 +1070,15 @@
|
|||
metadatafields.push({ name: "Tags" });
|
||||
metadatafields.push({ name: "Images" });
|
||||
metadatafields.push({ name: "Backdrops" });
|
||||
|
||||
|
||||
if (item.Type == "Game") {
|
||||
metadatafields.push({ name: "Screenshots" });
|
||||
}
|
||||
|
||||
|
||||
var html = '';
|
||||
|
||||
html += "<h3>Fields</h3>";
|
||||
html += "<h1>Fields</h1>";
|
||||
html += "<p>Slide a field to 'off' to lock it and prevent it's data from being changed.</p>";
|
||||
html += generateSliders(metadatafields, 'Fields');
|
||||
container.html(html).trigger('create');
|
||||
for (var fieldIndex = 0; fieldIndex < lockedFields.length; fieldIndex++) {
|
||||
|
|
|
@ -874,7 +874,16 @@
|
|||
style += "background-color:" + background + ";";
|
||||
}
|
||||
|
||||
html += '<div class="posterItemImage" style="' + style + '"></div>';
|
||||
html += '<div class="posterItemImage" style="' + style + '">';
|
||||
|
||||
if (item.LocationType == "Offline" || item.LocationType == "Virtual") {
|
||||
if (options.showLocationTypeIndicator !== false) {
|
||||
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||
}
|
||||
} else if (options.showUnplayedIndicator !== false) {
|
||||
html += LibraryBrowser.getUnplayedIndicatorHtml(item);
|
||||
}
|
||||
html += '</div>';
|
||||
|
||||
var name = LibraryBrowser.getPosterViewDisplayName(item);
|
||||
|
||||
|
@ -933,14 +942,6 @@
|
|||
html += "</div>";
|
||||
}
|
||||
|
||||
if (item.LocationType == "Offline" || item.LocationType == "Virtual") {
|
||||
if (options.showLocationTypeIndicator !== false) {
|
||||
html += LibraryBrowser.getOfflineIndicatorHtml(item);
|
||||
}
|
||||
} else if (options.showUnplayedIndicator !== false) {
|
||||
html += LibraryBrowser.getUnplayedIndicatorHtml(item);
|
||||
}
|
||||
|
||||
html += "</a>";
|
||||
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<div data-role="collapsible" class="recordingGroupCollapsible" data-recordinggroupid="' + group.Id + '" style="margin-top:1em">';
|
||||
html += '<div data-role="collapsible" class="recordingGroupCollapsible" data-recordinggroupid="' + group.Id + '" style="margin-top:1em" data-mini="true" data-content-theme="false">';
|
||||
|
||||
html += '<h3>' + group.Name + '</h3>';
|
||||
|
||||
|
@ -84,7 +84,7 @@
|
|||
|
||||
var html = '';
|
||||
|
||||
html += '<ul data-role="listview" data-split-icon="delete" data-inset="false">';
|
||||
html += '<ul data-role="listview" data-split-icon="delete" data-inset="true">';
|
||||
|
||||
for (var i = 0, length = recordings.length; i < length; i++) {
|
||||
|
||||
|
@ -176,7 +176,7 @@
|
|||
apiClient.getLiveTvRecordings({
|
||||
|
||||
userId: Dashboard.getCurrentUserId(),
|
||||
limit: 6
|
||||
limit: 8
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
html += LibraryBrowser.getPosterDetailViewHtml({
|
||||
items: result.Items,
|
||||
context: "movies"
|
||||
context: "movies",
|
||||
shape: "backdrop"
|
||||
});
|
||||
|
||||
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
|
||||
|
|
|
@ -70,19 +70,19 @@
|
|||
var category = plugin.category || "General";
|
||||
|
||||
if (category != currentCategory) {
|
||||
html += '<h2 style="margin: .5em 0 0;">' + category + '</h2>';
|
||||
html += '<h2 class="listHeader">' + category + '</h2>';
|
||||
currentCategory = category;
|
||||
}
|
||||
|
||||
var href = plugin.externalUrl ? plugin.externalUrl : "addplugin.html?name=" + encodeURIComponent(plugin.name) + "&guid=" + plugin.guid;
|
||||
var target = plugin.externalUrl ? ' target="_blank"' : '';
|
||||
|
||||
html += "<div class='storeItem'><a class='posterItem storePosterItem transparentPosterItem borderlessPosterItem' style='background: #D4D4D4!important' href='" + href + "' " + target + ">";
|
||||
html += "<a class='storeItem backdropPosterItem posterItem transparentPosterItem borderlessPosterItem' href='" + href + "' " + target + ">";
|
||||
|
||||
if (plugin.thumbImage) {
|
||||
html += '<div class="posterItemImage" style="background-image:url(\'' + plugin.thumbImage + '\');background-size:cover;"></div>';
|
||||
html += '<div class="posterItemImage" style="background-image:url(\'' + plugin.thumbImage + '\');background-size:cover;">';
|
||||
} else {
|
||||
html += '<div class="posterItemImage defaultPosterItemImage" style="background-image:url(\'css/images/items/list/collection.png\');"></div>';
|
||||
html += '<div class="posterItemImage defaultPosterItemImage" style="background-image:url(\'css/images/items/list/collection.png\');">';
|
||||
}
|
||||
|
||||
if (plugin.isPremium) {
|
||||
|
@ -92,24 +92,23 @@
|
|||
html += "<div class='premiumBanner'><img src='css/images/supporter/supporterflag.png' /></div>";
|
||||
}
|
||||
}
|
||||
html += "</div>";
|
||||
|
||||
html += "</a>";
|
||||
|
||||
html += "<div class='posterItemStoreText' style='font-weight: bold'>";
|
||||
html += "<div class='posterItemText' style='color:#000;font-weight:400;font-size:16px;'>";
|
||||
|
||||
var installedPlugin = plugin.isApp ? null : installedPlugins.filter(function (ip) {
|
||||
return ip.Name == plugin.name;
|
||||
})[0];
|
||||
|
||||
if (installedPlugin) {
|
||||
html += plugin.name + " (Installed)";
|
||||
html += plugin.name;
|
||||
} else {
|
||||
html += plugin.name;
|
||||
}
|
||||
|
||||
html += "</div>";
|
||||
|
||||
html += "<div class='posterItemStoreText' >";
|
||||
html += "<div class='posterItemText' style='color:#000;font-weight:400;'>";
|
||||
html += plugin.price > 0 ? "$" + plugin.price.toFixed(2) : "Free";
|
||||
html += Dashboard.getStoreRatingHtml(plugin.avgRating, plugin.id, plugin.name);
|
||||
|
||||
|
@ -118,7 +117,7 @@
|
|||
html += "</span>";
|
||||
|
||||
html += "</div>";
|
||||
html += "</div>";
|
||||
html += "</a>";
|
||||
|
||||
pluginhtml += html;
|
||||
|
||||
|
|
|
@ -1229,13 +1229,13 @@ var Dashboard = {
|
|||
|
||||
getStoreRatingHtml: function (rating, id, name, noLinks) {
|
||||
|
||||
var html = "<div style='margin-left: 5px; margin-right: 5px; display: inline-block'>";
|
||||
var html = "<div style='margin-left: 5px; margin-right: 5px; display: inline-block; vertical-align:middle;'>";
|
||||
if (!rating) rating = 0;
|
||||
|
||||
for (var i = 1; i <= 5; i++) {
|
||||
var title = noLinks ? rating + " stars" : "Rate " + i + (i > 1 ? " stars" : " star");
|
||||
|
||||
html += noLinks ? "" : "<a href='#' data-id=" + id + " data-name='" + name + "' data-rating=" + i + " onclick='Dashboard.ratePackage(this);' >";
|
||||
html += noLinks ? "" : "<span data-id=" + id + " data-name='" + name + "' data-rating=" + i + " onclick='Dashboard.ratePackage(this);return false;' >";
|
||||
if (rating <= i - 1) {
|
||||
html += "<div class='storeStarRating emptyStarRating' title='" + title + "'></div>";
|
||||
} else if (rating < i) {
|
||||
|
@ -1243,7 +1243,7 @@ var Dashboard = {
|
|||
} else {
|
||||
html += "<div class='storeStarRating' title='" + title + "'></div>";
|
||||
}
|
||||
html += noLinks ? "" : "</a>";
|
||||
html += noLinks ? "" : "</span>";
|
||||
}
|
||||
|
||||
html += "</div>";
|
||||
|
|
|
@ -31,7 +31,8 @@
|
|||
|
||||
html += LibraryBrowser.getPosterDetailViewHtml({
|
||||
items: result.Items,
|
||||
context: "tv"
|
||||
context: "tv",
|
||||
shape: "backdrop"
|
||||
});
|
||||
|
||||
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue