mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
updated translations
This commit is contained in:
parent
4f2ce200aa
commit
7e060883f6
47 changed files with 134 additions and 449 deletions
|
@ -14,12 +14,12 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
"devDependencies": {},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"version": "1.4.172",
|
"version": "1.4.173",
|
||||||
"_release": "1.4.172",
|
"_release": "1.4.173",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "1.4.172",
|
"tag": "1.4.173",
|
||||||
"commit": "044948fa660671caa6d1ce4951ccf0d4c6e211e2"
|
"commit": "8766e295ec13de73c5ef5a61c7357fc30d8c9fa1"
|
||||||
},
|
},
|
||||||
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
|
||||||
"_target": "^1.2.1",
|
"_target": "^1.2.1",
|
||||||
|
|
|
@ -702,7 +702,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCardFooterText(item, options, showTitle, imgUrl, footerClass, progressHtml, isOuterFooter) {
|
function getCardFooterText(item, options, showTitle, forceName, imgUrl, footerClass, progressHtml, isOuterFooter) {
|
||||||
|
|
||||||
var html = '';
|
var html = '';
|
||||||
|
|
||||||
|
@ -869,6 +869,10 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (showTitle && forceName && lines.length == 1) {
|
||||||
|
lines = [];
|
||||||
|
}
|
||||||
|
|
||||||
html += getCardTextLines(lines, cssClass, !options.overlayText, isOuterFooter);
|
html += getCardTextLines(lines, cssClass, !options.overlayText, isOuterFooter);
|
||||||
|
|
||||||
if (progressHtml) {
|
if (progressHtml) {
|
||||||
|
@ -1012,7 +1016,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
var imgInfo = getCardImageUrl(item, apiClient, options);
|
var imgInfo = getCardImageUrl(item, apiClient, options);
|
||||||
var imgUrl = imgInfo.imgUrl;
|
var imgUrl = imgInfo.imgUrl;
|
||||||
|
|
||||||
var forceName = imgInfo.forceName;
|
var forceName = imgInfo.forceName || !imgUrl;
|
||||||
|
|
||||||
var showTitle = options.showTitle == 'auto' ? true : (options.showTitle || item.Type == 'PhotoAlbum' || item.Type == 'Folder');
|
var showTitle = options.showTitle == 'auto' ? true : (options.showTitle || item.Type == 'PhotoAlbum' || item.Type == 'Folder');
|
||||||
var overlayText = options.overlayText;
|
var overlayText = options.overlayText;
|
||||||
|
@ -1057,7 +1061,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
if (overlayText) {
|
if (overlayText) {
|
||||||
|
|
||||||
footerCssClass = progressHtml ? 'innerCardFooter fullInnerCardFooter' : 'innerCardFooter';
|
footerCssClass = progressHtml ? 'innerCardFooter fullInnerCardFooter' : 'innerCardFooter';
|
||||||
innerCardFooter += getCardFooterText(item, options, showTitle, imgUrl, footerCssClass, progressHtml, false);
|
innerCardFooter += getCardFooterText(item, options, showTitle, forceName, imgUrl, footerCssClass, progressHtml, false);
|
||||||
footerOverlayed = true;
|
footerOverlayed = true;
|
||||||
}
|
}
|
||||||
else if (progressHtml) {
|
else if (progressHtml) {
|
||||||
|
@ -1076,7 +1080,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
|
||||||
var outerCardFooter = '';
|
var outerCardFooter = '';
|
||||||
if (!overlayText && !footerOverlayed) {
|
if (!overlayText && !footerOverlayed) {
|
||||||
footerCssClass = options.cardLayout ? 'cardFooter' : 'cardFooter transparent';
|
footerCssClass = options.cardLayout ? 'cardFooter' : 'cardFooter transparent';
|
||||||
outerCardFooter = getCardFooterText(item, options, showTitle, imgUrl, footerCssClass, progressHtml, true);
|
outerCardFooter = getCardFooterText(item, options, showTitle, forceName, imgUrl, footerCssClass, progressHtml, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (outerCardFooter && !options.cardLayout && options.allowBottomPadding !== false) {
|
if (outerCardFooter && !options.cardLayout && options.allowBottomPadding !== false) {
|
||||||
|
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Offline verf\u00fcgbar machen",
|
"MakeAvailableOffline": "Offline verf\u00fcgbar machen",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} startet neu.",
|
"ServerNameIsRestarting": "Emby Server - {0} startet neu.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} f\u00e4hrt herunter.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} f\u00e4hrt herunter.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Bitte starte Emby Server - {0} neu."
|
"PleaseRestartServerName": "Bitte starte Emby Server - {0} neu."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Rendre disponible hors connexion",
|
"MakeAvailableOffline": "Rendre disponible hors connexion",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} est red\u00e9marr\u00e9.",
|
"ServerNameIsRestarting": "Emby Server - {0} est red\u00e9marr\u00e9.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} est arr\u00eater.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} est arr\u00eater.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "S'il vous pla\u00eet red\u00e9marrer Emby server - {0}."
|
"PleaseRestartServerName": "S'il vous pla\u00eet red\u00e9marrer Emby server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "\u0414\u0435\u0440\u0431\u0435\u0441 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0435\u0442\u0443",
|
"MakeAvailableOffline": "\u0414\u0435\u0440\u0431\u0435\u0441 \u049b\u043e\u043b\u0436\u0435\u0442\u0456\u043c\u0434\u0456 \u0435\u0442\u0443",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0443\u0434\u0430.",
|
"ServerNameIsRestarting": "Emby Server - {0} \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u043b\u0443\u0434\u0430.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} \u0436\u04b1\u043c\u044b\u0441\u0442\u044b \u0430\u044f\u049b\u0442\u0430\u0443\u0434\u0430.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} \u0436\u04b1\u043c\u044b\u0441\u0442\u044b \u0430\u044f\u049b\u0442\u0430\u0443\u0434\u0430.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Emby Server \u04af\u0448\u0456\u043d \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u04a3\u044b\u0437 - {0}."
|
"PleaseRestartServerName": "Emby Server \u04af\u0448\u0456\u043d \u049b\u0430\u0439\u0442\u0430 \u0456\u0441\u043a\u0435 \u049b\u043e\u0441\u044b\u04a3\u044b\u0437 - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Disponibilizar offline",
|
"MakeAvailableOffline": "Disponibilizar offline",
|
||||||
"ServerNameIsRestarting": "Servidor Emby - {0} est\u00e1 reiniciando.",
|
"ServerNameIsRestarting": "Servidor Emby - {0} est\u00e1 reiniciando.",
|
||||||
"ServerNameIsShuttingDown": "Servidor Emby - {0} est\u00e1 desligando.",
|
"ServerNameIsShuttingDown": "Servidor Emby - {0} est\u00e1 desligando.",
|
||||||
|
"HeaderDeleteItems": "Apagar Itens",
|
||||||
|
"ConfirmDeleteItems": "Apagar estes itens ir\u00e1 remov\u00ea-los do sistema de arquivos e da biblioteca de m\u00eddia. Tem certeza que deseja continuar?",
|
||||||
"PleaseRestartServerName": "Por favor reinicie o Servidor Emby - {0}."
|
"PleaseRestartServerName": "Por favor reinicie o Servidor Emby - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e",
|
"MakeAvailableOffline": "\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u043c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f.",
|
"ServerNameIsRestarting": "Emby Server - {0} \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Emby Server - {0}."
|
"PleaseRestartServerName": "\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -252,5 +252,7 @@
|
||||||
"MakeAvailableOffline": "Make available offline",
|
"MakeAvailableOffline": "Make available offline",
|
||||||
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
"ServerNameIsRestarting": "Emby Server - {0} is restarting.",
|
||||||
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
"ServerNameIsShuttingDown": "Emby Server - {0} is shutting down.",
|
||||||
|
"HeaderDeleteItems": "Delete Items",
|
||||||
|
"ConfirmDeleteItems": "Deleting these items will delete them from both the file system and your media library. Are you sure you wish to continue?",
|
||||||
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
"PleaseRestartServerName": "Please restart Emby Server - {0}."
|
||||||
}
|
}
|
|
@ -32,14 +32,14 @@
|
||||||
"web-component-tester": "^4.0.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||||
"_release": "1.0.10",
|
"_release": "1.0.10",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.10",
|
"tag": "v1.0.10",
|
||||||
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
|
"commit": "f4e146da4982ff96bb25db85290c09e8de4ec734"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-icon"
|
"_originalSource": "PolymerElements/iron-icon"
|
||||||
}
|
}
|
|
@ -32,14 +32,14 @@
|
||||||
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
"iron-component-page": "polymerElements/iron-component-page#^1.1.6"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://github.com/Polymer/polymer",
|
"homepage": "https://github.com/polymer/polymer",
|
||||||
"_release": "1.6.1",
|
"_release": "1.6.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.6.1",
|
"tag": "v1.6.1",
|
||||||
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
"commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/Polymer/polymer.git",
|
"_source": "git://github.com/polymer/polymer.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.1.0",
|
||||||
"_originalSource": "Polymer/polymer"
|
"_originalSource": "polymer/polymer"
|
||||||
}
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync'], function (loading, appHost, globalize, syncJobList, events) {
|
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events) {
|
||||||
|
|
||||||
function initSupporterInfo(view, params) {
|
function initSupporterInfo(view, params) {
|
||||||
|
|
||||||
|
|
|
@ -2327,7 +2327,7 @@ var AppInfo = {};
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/mysync.html',
|
path: '/mysync.html',
|
||||||
dependencies: ['scripts/syncactivity', 'scripts/taskbutton', 'emby-button'],
|
dependencies: [],
|
||||||
autoFocus: false,
|
autoFocus: false,
|
||||||
transition: 'fade',
|
transition: 'fade',
|
||||||
controller: 'scripts/mysync'
|
controller: 'scripts/mysync'
|
||||||
|
@ -2493,7 +2493,8 @@ var AppInfo = {};
|
||||||
defineRoute({
|
defineRoute({
|
||||||
path: '/syncactivity.html',
|
path: '/syncactivity.html',
|
||||||
dependencies: [],
|
dependencies: [],
|
||||||
autoFocus: false
|
autoFocus: false,
|
||||||
|
controller: 'scripts/syncactivity'
|
||||||
});
|
});
|
||||||
|
|
||||||
defineRoute({
|
defineRoute({
|
||||||
|
|
|
@ -1,394 +1,4 @@
|
||||||
define(['jQuery', 'paper-icon-button-light', 'cardStyle'], function ($) {
|
define(['loading', 'apphost', 'globalize', 'syncJobList', 'events', 'localsync', 'emby-button', 'paper-icon-button-light'], function (loading, appHost, globalize, syncJobList, events) {
|
||||||
|
|
||||||
function cancelJob(page, id) {
|
|
||||||
|
|
||||||
var msg = Globalize.translate('CancelSyncJobConfirmation');
|
|
||||||
|
|
||||||
require(['confirm'], function (confirm) {
|
|
||||||
|
|
||||||
confirm(msg, Globalize.translate('HeaderCancelSyncJob')).then(function () {
|
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
ApiClient.ajax({
|
|
||||||
|
|
||||||
url: ApiClient.getUrl('Sync/Jobs/' + id),
|
|
||||||
type: 'DELETE'
|
|
||||||
|
|
||||||
}).then(function () {
|
|
||||||
|
|
||||||
reloadData(page);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSyncStatusBanner(job) {
|
|
||||||
|
|
||||||
var opacity = '.85';
|
|
||||||
var background = 'rgba(204,51,51,' + opacity + ')';
|
|
||||||
var text = Globalize.translate('SyncJobStatus' + job.Status);
|
|
||||||
|
|
||||||
if (job.Status == 'Completed') {
|
|
||||||
background = 'rgba(82, 181, 75, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'CompletedWithError') {
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (job.Status == 'Queued') {
|
|
||||||
background = 'rgba(51, 136, 204, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'ReadyToTransfer') {
|
|
||||||
background = 'rgba(51, 136, 204, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'Transferring') {
|
|
||||||
background = 'rgba(72, 0, 255, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
else if (job.Status == 'Converting') {
|
|
||||||
background = 'rgba(255, 106, 0, ' + opacity + ')';
|
|
||||||
}
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
html += '<div class="syncStatusBanner" data-status="' + job.Status + '" style="background-color:' + background + ';position:absolute;top:0;right:0;padding:.5em .5em; text-align:left;color: #fff; font-weight: 500; text-transform:uppercase; border-bottom-left-radius: 3px;">';
|
|
||||||
html += text;
|
|
||||||
html += '</div>';
|
|
||||||
|
|
||||||
return html;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getSyncJobHtml(page, job, cardBoxCssClass, syncJobPage) {
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
|
|
||||||
html += "<div class='card squareCard scalableCard' data-id='" + job.Id + "' data-status='" + job.Status + "'>";
|
|
||||||
|
|
||||||
html += '<div class="' + cardBoxCssClass + '">';
|
|
||||||
html += '<div class="cardScalable">';
|
|
||||||
|
|
||||||
html += '<div class="cardPadder cardPadder-square"></div>';
|
|
||||||
|
|
||||||
syncJobPage += '?id=' + job.Id;
|
|
||||||
|
|
||||||
html += '<a class="cardContent" href="' + syncJobPage + '">';
|
|
||||||
|
|
||||||
var imgUrl;
|
|
||||||
var style = '';
|
|
||||||
|
|
||||||
if (job.PrimaryImageItemId) {
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(job.PrimaryImageItemId, {
|
|
||||||
type: "Primary",
|
|
||||||
width: 400,
|
|
||||||
tag: job.PrimaryImageTag
|
|
||||||
});
|
|
||||||
style = "background-position:center center;";
|
|
||||||
} else {
|
|
||||||
style = "background-color:#38c;background-position:center center;";
|
|
||||||
imgUrl = "css/images/items/detail/video.png";
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<div class="cardImage coveredCardImage lazy" data-src="' + imgUrl + '" style="' + style + '">';
|
|
||||||
|
|
||||||
var progress = job.Progress || 0;
|
|
||||||
|
|
||||||
var footerClass = 'cardFooter fullCardFooter lightCardFooter';
|
|
||||||
|
|
||||||
if (progress == 0 || progress >= 100) {
|
|
||||||
footerClass += ' hide';
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<div class="' + footerClass + '">';
|
|
||||||
html += "<div class='cardText cardProgress'>";
|
|
||||||
html += '<progress class="itemProgressBar" min="0" max="100" value="' + progress + '"></progress>';
|
|
||||||
html += "</div>";
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
html += getSyncStatusBanner(job);
|
|
||||||
|
|
||||||
// cardContent
|
|
||||||
html += "</a>";
|
|
||||||
|
|
||||||
// cardScalable
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
html += '<div class="cardFooter outerCardFooter">';
|
|
||||||
|
|
||||||
var textLines = [];
|
|
||||||
|
|
||||||
if (job.ParentName) {
|
|
||||||
textLines.push(job.ParentName);
|
|
||||||
}
|
|
||||||
|
|
||||||
textLines.push(job.Name);
|
|
||||||
|
|
||||||
if (job.ItemCount == 1) {
|
|
||||||
textLines.push(Globalize.translate('ValueItemCount', job.ItemCount));
|
|
||||||
} else {
|
|
||||||
textLines.push(Globalize.translate('ValueItemCountPlural', job.ItemCount));
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!job.ParentName) {
|
|
||||||
textLines.push(' ');
|
|
||||||
}
|
|
||||||
|
|
||||||
html += '<div class="cardText" style="text-align:right; float:right;padding:0;">';
|
|
||||||
html += '<button type="button" is="paper-icon-button-light" class="btnJobMenu autoSize"><i class="md-icon">' + AppInfo.moreIcon.replace('-', '_') + '</i></button>';
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
for (var i = 0, length = textLines.length; i < length; i++) {
|
|
||||||
html += "<div class='cardText' style='margin-right:30px;'>";
|
|
||||||
html += textLines[i];
|
|
||||||
html += "</div>";
|
|
||||||
}
|
|
||||||
|
|
||||||
// cardFooter
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
// cardBox
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
// card
|
|
||||||
html += "</div>";
|
|
||||||
|
|
||||||
return html;
|
|
||||||
}
|
|
||||||
|
|
||||||
var lastDataLoad = 0;
|
|
||||||
|
|
||||||
function loadData(page, jobs) {
|
|
||||||
|
|
||||||
if ((new Date().getTime() - lastDataLoad) < 60000) {
|
|
||||||
refreshData(page, jobs);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
lastDataLoad = new Date().getTime();
|
|
||||||
|
|
||||||
var html = '';
|
|
||||||
var lastTargetName = '';
|
|
||||||
|
|
||||||
var cardBoxCssClass = 'cardBox visualCardBox';
|
|
||||||
|
|
||||||
var syncJobPage = 'syncjob.html';
|
|
||||||
var showTargetName = true;
|
|
||||||
|
|
||||||
if ($(page).hasClass('mySyncPage')) {
|
|
||||||
syncJobPage = 'mysyncjob.html';
|
|
||||||
|
|
||||||
showTargetName = !hasLocalSync();
|
|
||||||
}
|
|
||||||
|
|
||||||
var hasOpenSection = false;
|
|
||||||
|
|
||||||
for (var i = 0, length = jobs.length; i < length; i++) {
|
|
||||||
|
|
||||||
var job = jobs[i];
|
|
||||||
if (showTargetName) {
|
|
||||||
var targetName = job.TargetName || 'Unknown';
|
|
||||||
|
|
||||||
if (targetName != lastTargetName) {
|
|
||||||
|
|
||||||
if (lastTargetName) {
|
|
||||||
html += '</div>';
|
|
||||||
html += '<br/>';
|
|
||||||
html += '<br/>';
|
|
||||||
html += '<br/>';
|
|
||||||
hasOpenSection = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
lastTargetName = targetName;
|
|
||||||
|
|
||||||
html += '<div class="detailSectionHeader">';
|
|
||||||
|
|
||||||
html += '<div>' + targetName + '</div>';
|
|
||||||
|
|
||||||
html += '</div>';
|
|
||||||
html += '<div class="itemsContainer vertical-wrap">';
|
|
||||||
hasOpenSection = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
html += getSyncJobHtml(page, job, cardBoxCssClass, syncJobPage);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (hasOpenSection) {
|
|
||||||
html += '</div>';
|
|
||||||
}
|
|
||||||
|
|
||||||
var elem = $('.syncActivity', page).html(html).lazyChildren();
|
|
||||||
|
|
||||||
$('.btnJobMenu', elem).on('click', function () {
|
|
||||||
showJobMenu(page, this);
|
|
||||||
});
|
|
||||||
|
|
||||||
if (!jobs.length) {
|
|
||||||
|
|
||||||
elem.html('<div style="padding:1em .25em;">' + Globalize.translate('MessageNoSyncJobsFound') + '</div>');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$.fn.lazyChildren = function () {
|
|
||||||
|
|
||||||
for (var i = 0, length = this.length; i < length; i++) {
|
|
||||||
ImageLoader.lazyChildren(this[i]);
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
};
|
|
||||||
|
|
||||||
function refreshData(page, jobs) {
|
|
||||||
|
|
||||||
for (var i = 0, length = jobs.length; i < length; i++) {
|
|
||||||
|
|
||||||
var job = jobs[i];
|
|
||||||
refreshJob(page, job);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function refreshJob(page, job) {
|
|
||||||
|
|
||||||
var card = page.querySelector('.card[data-id=\'' + job.Id + '\']');
|
|
||||||
|
|
||||||
if (!card) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var banner = card.querySelector('.syncStatusBanner');
|
|
||||||
|
|
||||||
if (banner.getAttribute('data-status') == job.Status) {
|
|
||||||
var elem = document.createElement('div');
|
|
||||||
elem.innerHTML = getSyncStatusBanner(job);
|
|
||||||
elem = elem.querySelector('.syncStatusBanner');
|
|
||||||
elem.parentNode.removeChild(elem);
|
|
||||||
|
|
||||||
banner.parentNode.replaceChild(elem, banner);
|
|
||||||
}
|
|
||||||
|
|
||||||
var progress = job.Progress || 0;
|
|
||||||
var cardFooter = card.querySelector('.cardFooter');
|
|
||||||
|
|
||||||
if (progress == 0 || progress >= 100) {
|
|
||||||
cardFooter.classList.add('hide');
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
cardFooter.classList.remove('hide');
|
|
||||||
cardFooter.querySelector('.itemProgressBar').value = progress;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function showJobMenu(page, elem) {
|
|
||||||
|
|
||||||
var card = $(elem).parents('.card');
|
|
||||||
var jobId = card.attr('data-id');
|
|
||||||
var status = card.attr('data-status');
|
|
||||||
|
|
||||||
var menuItems = [];
|
|
||||||
|
|
||||||
if (status == 'Cancelled') {
|
|
||||||
menuItems.push({
|
|
||||||
name: Globalize.translate('ButtonDelete'),
|
|
||||||
id: 'delete'
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
menuItems.push({
|
|
||||||
name: Globalize.translate('ButtonCancelSyncJob'),
|
|
||||||
id: 'cancel'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
require(['actionsheet'], function (actionsheet) {
|
|
||||||
|
|
||||||
actionsheet.show({
|
|
||||||
items: menuItems,
|
|
||||||
positionTo: elem,
|
|
||||||
callback: function (id) {
|
|
||||||
|
|
||||||
switch (id) {
|
|
||||||
|
|
||||||
case 'delete':
|
|
||||||
cancelJob(page, jobId);
|
|
||||||
break;
|
|
||||||
case 'cancel':
|
|
||||||
cancelJob(page, jobId);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function hasLocalSync() {
|
|
||||||
return Dashboard.capabilities().SupportsSync;
|
|
||||||
}
|
|
||||||
|
|
||||||
function reloadData(page) {
|
|
||||||
|
|
||||||
lastDataLoad = 0;
|
|
||||||
Dashboard.showLoadingMsg();
|
|
||||||
|
|
||||||
var options = {};
|
|
||||||
|
|
||||||
Dashboard.getCurrentUser().then(function (user) {
|
|
||||||
|
|
||||||
if ($(page).hasClass('mySyncPage')) {
|
|
||||||
options.UserId = Dashboard.getCurrentUserId();
|
|
||||||
|
|
||||||
if (hasLocalSync()) {
|
|
||||||
options.TargetId = ApiClient.deviceId();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
ApiClient.getJSON(ApiClient.getUrl('Sync/Jobs', options)).then(function (response) {
|
|
||||||
|
|
||||||
loadData(page, response.Items);
|
|
||||||
Dashboard.hideLoadingMsg();
|
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function onWebSocketMessage(e, msg) {
|
|
||||||
|
|
||||||
var page = $($.mobile.activePage)[0];
|
|
||||||
|
|
||||||
if (msg.MessageType == "SyncJobs") {
|
|
||||||
|
|
||||||
var data = msg.Data;
|
|
||||||
|
|
||||||
if (hasLocalSync()) {
|
|
||||||
var targetId = ApiClient.deviceId();
|
|
||||||
data = data.filter(function (j) {
|
|
||||||
return j.TargetId == targetId;
|
|
||||||
});
|
|
||||||
}
|
|
||||||
loadData(page, data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function startListening(page) {
|
|
||||||
|
|
||||||
var startParams = "0,1500";
|
|
||||||
|
|
||||||
if ($(page).hasClass('mySyncPage')) {
|
|
||||||
startParams += "," + Dashboard.getCurrentUserId();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ApiClient.isWebSocketOpen()) {
|
|
||||||
ApiClient.sendWebSocketMessage("SyncJobsStart", startParams);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function stopListening() {
|
|
||||||
|
|
||||||
if (ApiClient.isWebSocketOpen()) {
|
|
||||||
ApiClient.sendWebSocketMessage("SyncJobsStop", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
function getTabs() {
|
function getTabs() {
|
||||||
return [
|
return [
|
||||||
|
@ -410,57 +20,49 @@
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).on('pageinit', "#syncActivityPage", function () {
|
function initSupporterInfo(view, params) {
|
||||||
|
|
||||||
var page = this;
|
view.querySelector('.supporterPromotion .mainText').innerHTML = globalize.translate('HeaderSyncRequiresSupporterMembership');
|
||||||
|
|
||||||
$('.btnSyncSupporter', page).on('click', function () {
|
var apiClient = ApiClient;
|
||||||
|
apiClient.getPluginSecurityInfo().then(function (regInfo) {
|
||||||
|
|
||||||
requirejs(["registrationservices"], function (registrationServices) {
|
if (regInfo.IsMBSupporter) {
|
||||||
registrationServices.validateFeature('sync');
|
view.querySelector('.supporterPromotionContainer').classList.add('hide');
|
||||||
});
|
|
||||||
});
|
|
||||||
$('.supporterPromotion .mainText', page).html(Globalize.translate('HeaderSyncRequiresSupporterMembership'));
|
|
||||||
|
|
||||||
}).on('pageshow', "#syncActivityPage", function () {
|
|
||||||
|
|
||||||
if (this.id == 'syncActivityPage') {
|
|
||||||
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
|
||||||
}
|
|
||||||
var page = this;
|
|
||||||
|
|
||||||
Dashboard.getPluginSecurityInfo().then(function (pluginSecurityInfo) {
|
|
||||||
|
|
||||||
if (pluginSecurityInfo.IsMBSupporter) {
|
|
||||||
$('.supporterPromotionContainer', page).hide();
|
|
||||||
} else {
|
} else {
|
||||||
$('.supporterPromotionContainer', page).show();
|
view.querySelector('.supporterPromotionContainer').classList.remove('hide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}, function () {
|
||||||
|
|
||||||
|
view.querySelector('.supporterPromotionContainer').classList.remove('hide');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return function (view, params) {
|
||||||
|
|
||||||
|
initSupporterInfo(view, params);
|
||||||
|
var mySyncJobList = new syncJobList({
|
||||||
|
isLocalSync: params.mode === 'offline',
|
||||||
|
serverId: ApiClient.serverId(),
|
||||||
|
userId: params.mode === 'offline' ? null : ApiClient.getCurrentUserId(),
|
||||||
|
element: view.querySelector('.syncActivity')
|
||||||
});
|
});
|
||||||
|
|
||||||
reloadData(page);
|
events.on(mySyncJobList, 'jobedit', function (e, jobId, serverId) {
|
||||||
|
|
||||||
// on here
|
Dashboard.navigate('syncjob.html?id=' + jobId);
|
||||||
$('.btnSync', page).taskButton({
|
|
||||||
mode: 'on',
|
|
||||||
progressElem: page.querySelector('.syncProgress'),
|
|
||||||
taskKey: 'SyncPrepare'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
startListening(page);
|
view.addEventListener('viewshow', function () {
|
||||||
Events.on(ApiClient, "websocketmessage", onWebSocketMessage);
|
|
||||||
|
|
||||||
}).on('pagebeforehide', "#syncActivityPage", function () {
|
LibraryMenu.setTabs('syncadmin', 0, getTabs);
|
||||||
|
|
||||||
var page = this;
|
|
||||||
|
|
||||||
// off here
|
|
||||||
$('.btnSync', page).taskButton({
|
|
||||||
mode: 'off'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
stopListening();
|
view.addEventListener('viewdestroy', function () {
|
||||||
Events.off(ApiClient, "websocketmessage", onWebSocketMessage);
|
|
||||||
|
mySyncJobList.destroy();
|
||||||
});
|
});
|
||||||
|
};
|
||||||
|
|
||||||
});
|
});
|
|
@ -1,4 +1,4 @@
|
||||||
<div id="syncActivityPage" data-role="page" class="page type-interior syncConfigurationPage syncActivityPage withTabs fullWidthContent" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync" data-require="scripts/syncactivity,scripts/taskbutton,emby-button">
|
<div id="syncActivityPage" data-role="page" class="page type-interior syncConfigurationPage syncActivityPage withTabs fullWidthContent" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Sync">
|
||||||
|
|
||||||
<div data-role="content">
|
<div data-role="content">
|
||||||
<div class="content-primary">
|
<div class="content-primary">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue