mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
updated translations
This commit is contained in:
parent
89e0515a15
commit
0a670a4635
@ -307,14 +307,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 400px) {
|
||||
@media all and (min-width: 500px) {
|
||||
|
||||
.smallBackdropCard {
|
||||
width: 33.3%;
|
||||
}
|
||||
}
|
||||
|
||||
@media all and (min-width: 500px) {
|
||||
|
||||
.squareCard {
|
||||
width: 33.3%;
|
||||
|
@ -1,8 +1,26 @@
|
||||
.tvGuideHeader.headroom--unpinned {
|
||||
.tvGuideHeader {
|
||||
white-space: nowrap;
|
||||
position: fixed;
|
||||
top: 98px;
|
||||
left: 0;
|
||||
z-index: 100;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.bottomSecondaryNav .tvGuideHeader {
|
||||
top: 48px;
|
||||
}
|
||||
|
||||
.tvGuideHeader.headroom--unpinned {
|
||||
-webkit-transform: translateY(-98px);
|
||||
transform: translateY(-98px);
|
||||
}
|
||||
|
||||
.bottomSecondaryNav .tvGuideHeader.headroom--unpinned {
|
||||
-webkit-transform: translateY(-48px);
|
||||
transform: translateY(-48px);
|
||||
}
|
||||
|
||||
.tvProgramSectionHeader {
|
||||
margin: 0;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@
|
||||
<div data-role="content" style="padding-top: 5px;padding-left:0!important;padding-right:0!important;">
|
||||
|
||||
<div class="tvGuide">
|
||||
<div style="white-space: nowrap;position:fixed;top:98px;left:0;z-index:100; max-width: 100%;" class="tvGuideHeader">
|
||||
<div class="tvGuideHeader">
|
||||
<div class="channelTimeslotHeader">
|
||||
<div class="timeslotHeaderInner">
|
||||
<a href="#popupConfig" data-rel="popup" class="accentButton" style="display:block;padding-left:5px;"><i class="fa fa-calendar"></i><span class="currentDate"></span></a>
|
||||
|
@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="items" class="itemsContainer paddedItemsContainer"></div>
|
||||
<div id="items" class="itemsContainer paddedItemsContainer" style="text-align:center;"></div>
|
||||
</div>
|
||||
|
||||
<div data-role="panel" class="viewPanel" data-theme="a" data-position="right" data-display="overlay" data-position-fixed="true">
|
||||
|
@ -28,7 +28,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="items" class="itemsContainer paddedItemsContainer"></div>
|
||||
<div id="items" class="itemsContainer paddedItemsContainer" style="text-align:center;"></div>
|
||||
</div>
|
||||
<div data-role="panel" class="viewPanel" data-theme="a" data-position="right" data-display="overlay" data-position-fixed="true">
|
||||
<form>
|
||||
|
@ -41,7 +41,7 @@
|
||||
|
||||
Dashboard.serverAddress(apiClient.serverAddress());
|
||||
Dashboard.setCurrentUser(apiClient.getCurrentUserId(), apiClient.accessToken());
|
||||
window.location = 'index.html';
|
||||
window.location.href = 'index.html';
|
||||
}
|
||||
break;
|
||||
case MediaBrowser.ConnectionState.ServerSignIn:
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
callback: function () {
|
||||
|
||||
window.location = 'login.html';
|
||||
window.location.href = 'login.html';
|
||||
}
|
||||
});
|
||||
return;
|
||||
|
@ -89,7 +89,7 @@
|
||||
html += '<a data-itemid="' + item.Id + '" class="' + cssClass + '" href="' + href + '">';
|
||||
html += '<div class="cardBox" style="background-color:' + backgroundColor + ';margin:4px;border-radius:4px;">';
|
||||
|
||||
html += "<div class='cardText' style='padding:7px 10px;color:#fff;'>";
|
||||
html += "<div class='cardText' style='padding:8px 10px;color:#fff;font-size:14px;'>";
|
||||
html += '<i class="fa ' + icon + '"></i>';
|
||||
html += '<span style="margin-left:.7em;">' + item.Name + '</span>';
|
||||
html += "</div>";
|
||||
|
@ -110,9 +110,9 @@
|
||||
Dashboard.setCurrentUser(user.Id, result.AccessToken);
|
||||
|
||||
if (user.Policy.IsAdministrator && !serverId) {
|
||||
window.location = "dashboard.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
window.location.href = "dashboard.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
} else {
|
||||
window.location = "index.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
window.location.href = "index.html?u=" + user.Id + '&t=' + result.AccessToken;
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
|
@ -48,15 +48,6 @@
|
||||
updateFilterControls(page);
|
||||
var trigger = false;
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
if (view == 'Thumb') {
|
||||
view = 'ThumbCard';
|
||||
}
|
||||
else if (view == 'Poster') {
|
||||
view = 'PosterCard';
|
||||
}
|
||||
}
|
||||
|
||||
if (view == "Thumb") {
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
items: result.Items,
|
||||
|
@ -16,13 +16,13 @@
|
||||
|
||||
Dashboard.serverAddress(apiClient.serverAddress());
|
||||
Dashboard.setCurrentUser(apiClient.getCurrentUserId(), apiClient.accessToken());
|
||||
window.location = 'index.html';
|
||||
window.location.href = 'index.html';
|
||||
}
|
||||
break;
|
||||
case MediaBrowser.ConnectionState.ServerSignIn:
|
||||
{
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
window.location = 'login.html?serverid=' + result.Servers[0].Id;
|
||||
window.location.href = 'login.html?serverid=' + result.Servers[0].Id;
|
||||
} else {
|
||||
showServerConnectionFailure();
|
||||
}
|
||||
|
@ -211,10 +211,10 @@ var Dashboard = {
|
||||
'connectlogin.html';
|
||||
|
||||
if (logoutWithServer === false) {
|
||||
window.location = loginPage;
|
||||
window.location.href = loginPage;
|
||||
} else {
|
||||
ConnectionManager.logout().done(function () {
|
||||
window.location = loginPage;
|
||||
window.location.href = loginPage;
|
||||
});
|
||||
|
||||
}
|
||||
@ -668,7 +668,7 @@ var Dashboard = {
|
||||
}
|
||||
|
||||
if (isConnectMode) {
|
||||
html += '<p><a data-mini="true" data-role="button" href="selectserver.html" data-icon="cloud" data-ajax="false">' + Globalize.translate('ButtonSelectServer') + '</button></a>';
|
||||
html += '<p><a data-mini="true" data-role="button" href="selectserver.html" data-icon="cloud">' + Globalize.translate('ButtonSelectServer') + '</button></a>';
|
||||
}
|
||||
|
||||
html += '<p><button data-mini="true" type="button" onclick="Dashboard.logout();" data-icon="lock">' + Globalize.translate('ButtonSignOut') + '</button></p>';
|
||||
@ -1507,7 +1507,6 @@ var AppInfo = {};
|
||||
AppInfo.enableHeaderImages = true;
|
||||
AppInfo.enableMovieHomeSuggestions = true;
|
||||
|
||||
|
||||
AppInfo.enableAppStorePolicy = isCordova;
|
||||
|
||||
if ($.browser.safari) {
|
||||
@ -1524,6 +1523,7 @@ var AppInfo = {};
|
||||
AppInfo.enableDetailsMenuImages = false;
|
||||
AppInfo.enableHeaderImages = false;
|
||||
AppInfo.enableMovieHomeSuggestions = false;
|
||||
AppInfo.enableLargeCardMargin = true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
@ -1643,7 +1643,7 @@ var AppInfo = {};
|
||||
initFastClick();
|
||||
}
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
if (AppInfo.enableLargeCardMargin) {
|
||||
$(document.body).addClass('largeCardMargin');
|
||||
}
|
||||
|
||||
@ -1679,6 +1679,10 @@ var AppInfo = {};
|
||||
$(document.body).addClass('movieTrailersTabDisabled');
|
||||
}
|
||||
|
||||
if (AppInfo.enableBottomTabs) {
|
||||
$(document.body).addClass('bottomSecondaryNav');
|
||||
}
|
||||
|
||||
if (Dashboard.isRunningInCordova()) {
|
||||
$(document).addClass('nativeApp');
|
||||
}
|
||||
|
@ -43,15 +43,6 @@
|
||||
|
||||
updateFilterControls(page);
|
||||
|
||||
if (AppInfo.hasLowImageBandwidth) {
|
||||
if (view == 'Thumb') {
|
||||
view = 'ThumbCard';
|
||||
}
|
||||
else if (view == 'Poster') {
|
||||
view = 'PosterCard';
|
||||
}
|
||||
}
|
||||
|
||||
if (view == "Thumb") {
|
||||
|
||||
html = LibraryBrowser.getPosterViewHtml({
|
||||
|
@ -141,6 +141,10 @@
|
||||
|
||||
}).get();
|
||||
|
||||
// Legacy
|
||||
user.Policy.BlockedChannels = null;
|
||||
user.Policy.BlockedMediaFolders = null;
|
||||
|
||||
ApiClient.updateUserPolicy(user.Id, user.Policy).done(function () {
|
||||
onSaveComplete(page);
|
||||
});
|
||||
|
@ -14,6 +14,15 @@
|
||||
return String.fromCharCode.apply(null, new Uint16Array(buf));
|
||||
}
|
||||
|
||||
function getResultCode(result) {
|
||||
|
||||
if (result != null && result.resultCode != null) {
|
||||
return result.resultCode;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
function findServersInternal(timeoutMs) {
|
||||
|
||||
var deferred = DeferredBuilder.Deferred();
|
||||
@ -36,6 +45,8 @@
|
||||
|
||||
function startTimer() {
|
||||
|
||||
console.log('starting udp receive timer with timeout ms: ' + timeoutMs);
|
||||
|
||||
timeout = setTimeout(function () {
|
||||
|
||||
isTimedOut = true;
|
||||
@ -83,9 +94,9 @@
|
||||
|
||||
console.log('chrome.sockets.udp.bind');
|
||||
|
||||
chrome.sockets.udp.bind(createInfo.socketId, '0.0.0.0', port, function (result) {
|
||||
chrome.sockets.udp.bind(createInfo.socketId, '0.0.0.0', 0, function (result) {
|
||||
|
||||
if (result != 0) {
|
||||
if (getResultCode(result) != 0) {
|
||||
console.log('bind fail: ' + result);
|
||||
deferred.resolveWith(null, [servers]);
|
||||
chrome.sockets.udp.close(createInfo.socketId);
|
||||
@ -97,7 +108,7 @@
|
||||
console.log('chrome.sockets.udp.send');
|
||||
chrome.sockets.udp.send(createInfo.socketId, data, '255.255.255.255', port, function (result) {
|
||||
|
||||
if (result != 0) {
|
||||
if (getResultCode(result) != 0) {
|
||||
console.log('send fail: ' + result);
|
||||
deferred.resolveWith(null, [servers]);
|
||||
chrome.sockets.udp.close(createInfo.socketId);
|
||||
|
Loading…
Reference in New Issue
Block a user