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
1ae53be25d
commit
764a5ac824
78 changed files with 13161 additions and 12936 deletions
75
dashboard-ui/cordova/android/newapp.js
vendored
Normal file
75
dashboard-ui/cordova/android/newapp.js
vendored
Normal file
|
@ -0,0 +1,75 @@
|
|||
(function () {
|
||||
|
||||
function showInfo(url) {
|
||||
|
||||
var html = '';
|
||||
html += '<div class="newAppOverlay" style="background-image:url(css/images/splash.jpg);top:0;left:0;right:0;bottom:0;position:fixed;background-position:center center;background-size:100% 100%;background-repeat:no-repeat;z-index:999999;">';
|
||||
html += '<div style="background:rgba(10,10,10,.8);width:100%;height:100%;color:#eee;">';
|
||||
|
||||
|
||||
html += '<div class="inAppPurchaseForm" style="margin: 0 auto;padding: 30px 1em 0;max-width:600px;">';
|
||||
|
||||
html += '<h1 style="color:#fff;">' + Globalize.translate('HeaderEmbyForAndroidHasMoved') + '</h1>';
|
||||
|
||||
html += '<p style="margin:2em 0;">';
|
||||
html += Globalize.translate('MessageEmbyForAndroidHasMoved');
|
||||
html += '</p>';
|
||||
|
||||
html += '<p>';
|
||||
html += '<a class="clearLink" href="' + (url || 'http://emby.media/download') + '" style="display:block;" target="_blank"><paper-button raised class="submit block"><iron-icon icon="check"></iron-icon><span>' + Globalize.translate('ButtonViewNewApp') + '</span></paper-button></a>';
|
||||
html += '</p>';
|
||||
|
||||
html += '<p>';
|
||||
html += '<paper-button onclick="jQuery(\'.newAppOverlay\').remove();" raised class="cancelDark block"><iron-icon icon="cancel"></iron-icon><span>' + Globalize.translate('ButtonCancel') + '</span></paper-button>';
|
||||
html += '</p>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
html += '</div>';
|
||||
html += '</div>';
|
||||
|
||||
$(document.body).append(html);
|
||||
}
|
||||
|
||||
function showNewAppIfReady() {
|
||||
|
||||
var platform = (window.device ? device.platform : '') || '';
|
||||
platform = platform.toLowerCase();
|
||||
var oldApp = platform.indexOf('amazon') == -1 ? 'com.mb.android.google' : 'com.mb.android.amazon';
|
||||
|
||||
HttpClient.send({
|
||||
type: "GET",
|
||||
url: "https://mb3admin.com/admin/service/appstore/newAppInfo?oldApp=" + oldApp,
|
||||
dataType: 'json'
|
||||
|
||||
}).done(function (result) {
|
||||
|
||||
// Overly defensive, but don't want any failures here
|
||||
result = result || {};
|
||||
|
||||
if (result.newAppActive) {
|
||||
showInfo(result.newAppUrl);
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
Logger.log('showNewAppIfReady failed');
|
||||
});
|
||||
}
|
||||
|
||||
function showInfoIfNeeded() {
|
||||
|
||||
var key = 'lastNewAppShow';
|
||||
var lastShow = parseInt(appStorage.getItem(key) || '0');
|
||||
|
||||
if ((new Date().getTime() - lastShow) > 86400000) {
|
||||
showNewAppIfReady();
|
||||
appStorage.setItem(key, new Date().getTime().toString());
|
||||
} else {
|
||||
//showNewAppIfReady();
|
||||
}
|
||||
}
|
||||
|
||||
setTimeout(showInfoIfNeeded, 1000);
|
||||
document.addEventListener("resume", showInfoIfNeeded, false);
|
||||
|
||||
})();
|
35
dashboard-ui/cordova/ios/backgroundfetch.js
vendored
35
dashboard-ui/cordova/ios/backgroundfetch.js
vendored
|
@ -1,5 +1,7 @@
|
|||
(function () {
|
||||
|
||||
var lastStart = 0;
|
||||
|
||||
function onDeviceReady() {
|
||||
|
||||
var fetcher = window.BackgroundFetch;
|
||||
|
@ -25,9 +27,8 @@
|
|||
fetcher.finish(); // <-- N.B. You MUST called #finish so that native-side can signal completion of the background-thread to the os.
|
||||
}
|
||||
|
||||
function onBackgroundFetch() {
|
||||
|
||||
Logger.log('BackgroundFetch initiated');
|
||||
function startSync(uploadPhotos) {
|
||||
lastStart = new Date().getTime();
|
||||
|
||||
require(['localsync'], function () {
|
||||
|
||||
|
@ -37,16 +38,42 @@
|
|||
}
|
||||
|
||||
var syncOptions = {
|
||||
uploadPhotos: false
|
||||
uploadPhotos: uploadPhotos
|
||||
};
|
||||
|
||||
LocalSync.sync(syncOptions).done(onSyncFinish).fail(onSyncFail);
|
||||
});
|
||||
}
|
||||
|
||||
function onBackgroundFetch() {
|
||||
|
||||
Logger.log('BackgroundFetch initiated');
|
||||
startSync(false);
|
||||
}
|
||||
|
||||
function onBackgroundFetchFailed() {
|
||||
Logger.log('- BackgroundFetch failed');
|
||||
}
|
||||
|
||||
var syncInterval = 1800000;
|
||||
|
||||
function restartInterval() {
|
||||
if (LocalSync.isSupported) {
|
||||
setInterval(function () {
|
||||
|
||||
LocalSync.startSync();
|
||||
|
||||
}, syncInterval);
|
||||
|
||||
if (lastStart > 0 && (now - lastStart) >= syncInterval) {
|
||||
LocalSync.startSync();
|
||||
}
|
||||
}
|
||||
//LocalSync.startSync();
|
||||
}
|
||||
|
||||
Dashboard.ready(restartInterval);
|
||||
document.addEventListener("resume", restartInterval, false);
|
||||
|
||||
onDeviceReady();
|
||||
})();
|
2
dashboard-ui/cordova/ios/tabbar.js
vendored
2
dashboard-ui/cordova/ios/tabbar.js
vendored
|
@ -86,7 +86,7 @@
|
|||
showTabs();
|
||||
|
||||
ignoreNextSelection = true;
|
||||
TabBar.selectItem('Featured');
|
||||
TabBar.selectItem('Library');
|
||||
}
|
||||
|
||||
function showTabs() {
|
||||
|
|
1
dashboard-ui/cordova/registrationservices.js
vendored
1
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -121,7 +121,6 @@
|
|||
|
||||
function getInAppPurchaseElement(info) {
|
||||
|
||||
require(['paperbuttonstyle']);
|
||||
cancelInAppPurchase();
|
||||
|
||||
var html = '';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue