mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update translations
This commit is contained in:
parent
377a80caab
commit
7a8ea53f69
5 changed files with 15 additions and 113 deletions
|
@ -59,9 +59,6 @@
|
||||||
border-width: 0 !important;
|
border-width: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerButtonRight:last-child {
|
|
||||||
}
|
|
||||||
|
|
||||||
.desktopHomeLink {
|
.desktopHomeLink {
|
||||||
color: #ddd !important;
|
color: #ddd !important;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
@ -232,6 +229,7 @@
|
||||||
background-image: url(images/items/folders/settings.png);
|
background-image: url(images/items/folders/settings.png);
|
||||||
background-position: 16px 8px;
|
background-position: 16px 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reportsViewMenu {
|
.reportsViewMenu {
|
||||||
background-image: url(images/items/folders/report.png);
|
background-image: url(images/items/folders/report.png);
|
||||||
}
|
}
|
||||||
|
@ -300,4 +298,4 @@
|
||||||
.headerSettingsButton {
|
.headerSettingsButton {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1,108 +1,5 @@
|
||||||
(function ($, document, apiClient) {
|
(function ($, document, apiClient) {
|
||||||
|
|
||||||
function fillSeriesSpotlight(elem, item, nextUp) {
|
|
||||||
|
|
||||||
var html = '<h1 class="spotlightTitle">' + item.Name + '</h1>';
|
|
||||||
|
|
||||||
var imgUrl = ApiClient.getImageUrl(item.Id, {
|
|
||||||
type: "Backdrop",
|
|
||||||
tag: item.BackdropImageTags[0]
|
|
||||||
});
|
|
||||||
|
|
||||||
html += '<div class="spotlight" style="background-image:url(\'' + imgUrl + '\');">';
|
|
||||||
|
|
||||||
imgUrl = ApiClient.getImageUrl(item.Id, {
|
|
||||||
type: "Primary",
|
|
||||||
tag: item.ImageTags.Primary,
|
|
||||||
EnableImageEnhancers: false
|
|
||||||
});
|
|
||||||
|
|
||||||
html += '<div class="spotlightContent">';
|
|
||||||
html += '<div class="spotlightPoster" style="background-image:url(\'' + imgUrl + '\');">';
|
|
||||||
|
|
||||||
html += '<div class="spotlightContentInner">';
|
|
||||||
html += '<p>' + LibraryBrowser.getMiscInfoHtml(item) + '</p>';
|
|
||||||
html += '<p>' + (item.Overview || '') + '</p>';
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
html += '</div>';
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
if (nextUp && nextUp.ImageTags && nextUp.ImageTags.Primary) {
|
|
||||||
|
|
||||||
html += '<div class="spotlightContent rightSpotlightContent">';
|
|
||||||
|
|
||||||
imgUrl = ApiClient.getImageUrl(nextUp.Id, {
|
|
||||||
type: "Primary",
|
|
||||||
tag: nextUp.ImageTags.Primary,
|
|
||||||
EnableImageEnhancers: false
|
|
||||||
});
|
|
||||||
|
|
||||||
html += '<div class="spotlightPoster" style="background-image:url(\'' + imgUrl + '\');">';
|
|
||||||
|
|
||||||
html += '<div class="spotlightContentInner">';
|
|
||||||
html += LibraryBrowser.getPosterViewDisplayName(nextUp);
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
html += '</div>';
|
|
||||||
html += '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
html += '<div class="spotlightPlaceHolder"></div>';
|
|
||||||
|
|
||||||
$(elem).html(html);
|
|
||||||
}
|
|
||||||
|
|
||||||
function reloadSpotlight(page, allPromise) {
|
|
||||||
|
|
||||||
var options = {
|
|
||||||
|
|
||||||
SortBy: "Random",
|
|
||||||
SortOrder: "Descending",
|
|
||||||
Limit: 1,
|
|
||||||
Recursive: true,
|
|
||||||
IncludeItemTypes: "Series",
|
|
||||||
ImageTypes: "Backdrop,Primary",
|
|
||||||
Fields: "Overview"
|
|
||||||
};
|
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
|
|
||||||
|
|
||||||
allPromise.done(function () {
|
|
||||||
|
|
||||||
var index = 0;
|
|
||||||
$('.spotlightContainer', page).each(function () {
|
|
||||||
|
|
||||||
var elem = this;
|
|
||||||
var item = result.Items[index];
|
|
||||||
index++;
|
|
||||||
|
|
||||||
if (item && item.Type == 'Series') {
|
|
||||||
|
|
||||||
options = {
|
|
||||||
|
|
||||||
Limit: 1,
|
|
||||||
UserId: Dashboard.getCurrentUserId(),
|
|
||||||
SeriesId: item.Id
|
|
||||||
};
|
|
||||||
|
|
||||||
ApiClient.getNextUpEpisodes(options).done(function (nextUpResult) {
|
|
||||||
|
|
||||||
fillSeriesSpotlight(elem, item, nextUpResult.Items[0]);
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$(this).hide();
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).on('pagebeforeshow', "#indexPage", function () {
|
$(document).on('pagebeforeshow', "#indexPage", function () {
|
||||||
|
|
||||||
var screenWidth = $(window).width();
|
var screenWidth = $(window).width();
|
||||||
|
@ -125,7 +22,7 @@
|
||||||
showTitle: true,
|
showTitle: true,
|
||||||
centerText: true
|
centerText: true
|
||||||
|
|
||||||
})).createPosterItemMenus();
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -290,6 +290,7 @@
|
||||||
$(document).scrollTop(0);
|
$(document).scrollTop(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
|
@ -140,7 +140,13 @@
|
||||||
var deferred = $.Deferred();
|
var deferred = $.Deferred();
|
||||||
|
|
||||||
deferred.resolveWith(null, [{
|
deferred.resolveWith(null, [{
|
||||||
Configuration: { IsAdministrator: true }
|
Configuration: {
|
||||||
|
IsAdministrator: true,
|
||||||
|
EnableLiveTvManagement: true,
|
||||||
|
EnableLiveTvAccess: true,
|
||||||
|
EnableRemoteControlOfOtherUsers: true,
|
||||||
|
EnableMediaPlayback: true
|
||||||
|
}
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
promise1 = deferred.promise();
|
promise1 = deferred.promise();
|
||||||
|
|
|
@ -52,9 +52,9 @@
|
||||||
|
|
||||||
var id = 'mediaFolder' + i;
|
var id = 'mediaFolder' + i;
|
||||||
|
|
||||||
var checkedAttribute = user.Configuration.BlockedMediaFolders.indexOf(folder.Name) == -1 ? ' checked="checked"' : '';
|
var checkedAttribute = user.Configuration.BlockedMediaFolders.indexOf(folder.Id) == -1 && user.Configuration.BlockedMediaFolders.indexOf(folder.Name) == -1 ? ' checked="checked"' : '';
|
||||||
|
|
||||||
html += '<input class="chkMediaFolder" data-foldername="' + folder.Name + '" type="checkbox" data-mini="true" id="' + id + '"' + checkedAttribute + ' />';
|
html += '<input class="chkMediaFolder" data-foldername="' + folder.Id + '" type="checkbox" data-mini="true" id="' + id + '"' + checkedAttribute + ' />';
|
||||||
html += '<label for="' + id + '">' + folder.Name + '</label>';
|
html += '<label for="' + id + '">' + folder.Name + '</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,9 +77,9 @@
|
||||||
|
|
||||||
var id = 'channels' + i;
|
var id = 'channels' + i;
|
||||||
|
|
||||||
var checkedAttribute = user.Configuration.BlockedChannels.indexOf(folder.Name) == -1 ? ' checked="checked"' : '';
|
var checkedAttribute = user.Configuration.BlockedChannels.indexOf(folder.Id) == -1 ? ' checked="checked"' : '';
|
||||||
|
|
||||||
html += '<input class="chkChannel" data-foldername="' + folder.Name + '" type="checkbox" data-mini="true" id="' + id + '"' + checkedAttribute + ' />';
|
html += '<input class="chkChannel" data-foldername="' + folder.Id + '" type="checkbox" data-mini="true" id="' + id + '"' + checkedAttribute + ' />';
|
||||||
html += '<label for="' + id + '">' + folder.Name + '</label>';
|
html += '<label for="' + id + '">' + folder.Name + '</label>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue