update sync menus

This commit is contained in:
Luke Pulverenti 2016-08-12 11:54:37 -04:00
parent 43a0e6ccea
commit b2fa34662d
62 changed files with 275 additions and 144 deletions

View file

@ -14,12 +14,12 @@
},
"devDependencies": {},
"ignore": [],
"version": "1.4.167",
"_release": "1.4.167",
"version": "1.4.168",
"_release": "1.4.168",
"_resolution": {
"type": "version",
"tag": "1.4.167",
"commit": "03c12f1c7360d863dc0ec55491a292a3f64fb400"
"tag": "1.4.168",
"commit": "feb02354eb53d74eba763c538b70435da37cb9aa"
},
"_source": "https://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "^1.2.1",

View file

@ -132,10 +132,16 @@
justify-content: center;
position: relative;
background-clip: content-box !important;
border-radius: 2px;
color: #fff;
}
@media all and (min-width: 600px) {
.cardImageContainer {
border-radius: 2px;
}
}
.visualCardBox .cardImageContainer {
border-radius: 0;
}

View file

@ -1079,7 +1079,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo
outerCardFooter = getCardFooterText(item, options, showTitle, imgUrl, footerCssClass, progressHtml, true);
}
if (outerCardFooter && !options.cardLayout) {
if (outerCardFooter && !options.cardLayout && options.allowBottomPadding !== false) {
cardBoxClass += ' cardBox-bottompadded';
}

View file

@ -30,7 +30,12 @@
text-transform: uppercase;
}
.emby-button.raised, .emby-button.fab {
.emby-button.raised {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
text-transform: none;
}
.emby-button.fab {
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
}
@ -141,7 +146,6 @@
position: relative;
overflow: hidden;
font-weight: 500;
text-transform: uppercase;
border-radius: 50%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
justify-content: center;

View file

@ -206,12 +206,21 @@ define(['apphost', 'globalize', 'connectionManager', 'itemHelper', 'embyRouter',
if (isMobileApp && options.sync !== false) {
if (itemHelper.canSync(user, item)) {
commands.push({
name: globalize.translate('sharedcomponents#Sync'),
name: globalize.translate('sharedcomponents#SyncToOtherDevice'),
id: 'sync'
});
}
}
if (appHost.supports('sync') && options.syncLocal !== false) {
if (itemHelper.canSync(user, item)) {
commands.push({
name: globalize.translate('sharedcomponents#MakeAvailableOffline'),
id: 'synclocal'
});
}
}
if (options.openAlbum !== false && item.AlbumId) {
commands.push({
name: Globalize.translate('sharedcomponents#ViewAlbum'),
@ -425,6 +434,19 @@ define(['apphost', 'globalize', 'connectionManager', 'itemHelper', 'embyRouter',
getResolveFunction(resolve, id)();
break;
}
case 'synclocal':
{
require(['syncDialog'], function (syncDialog) {
syncDialog.showMenu({
items: [
{
Id: itemId
}]
});
});
getResolveFunction(resolve, id)();
break;
}
case 'removefromplaylist':
apiClient.ajax({

View file

@ -271,7 +271,9 @@
editImages: true,
editSubtitles: true,
sync: false,
share: false
share: false,
play: false,
queue: false
}).then(function (result) {

View file

@ -241,6 +241,13 @@
ironIcon: 'call-merge'
});
if (user.Policy.EnableSync && appHost.supports('sync')) {
menuItems.push({
name: globalize.translate('sharedcomponents#MakeAvailableOffline'),
id: 'synclocal'
});
}
menuItems.push({
name: globalize.translate('sharedcomponents#MarkPlayed'),
id: 'markplayed'
@ -257,12 +264,14 @@
ironIcon: 'refresh'
});
menuItems.push({
name: globalize.translate('sharedcomponents#Sync'),
id: 'sync',
ironIcon: 'sync'
});
dispatchNeedsRefresh();
if (user.Policy.EnableSync) {
menuItems.push({
name: globalize.translate('sharedcomponents#SyncToOtherDevice'),
id: 'sync',
ironIcon: 'sync'
});
}
require(['actionsheet'], function (actionsheet) {
actionsheet.show({
@ -284,6 +293,7 @@
});
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'playlist':
require(['playlistEditor'], function (playlistEditor) {
@ -293,12 +303,14 @@
});
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'delete':
deleteItems(items).then(function () {
embyRouter.goHome();
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'groupvideos':
combineVersions(apiClient, items);
@ -308,12 +320,14 @@
apiClient.markPlayed(apiClient.getCurrentUserId(), itemId);
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'markunplayed':
items.forEach(function (itemId) {
apiClient.markUnplayed(apiClient.getCurrentUserId(), itemId);
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'refresh':
require(['refreshDialog'], function (refreshDialog) {
@ -323,6 +337,7 @@
}).show();
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'sync':
require(['syncDialog'], function (syncDialog) {
@ -335,6 +350,20 @@
});
});
hideSelections();
dispatchNeedsRefresh();
break;
case 'synclocal':
require(['syncDialog'], function (syncDialog) {
syncDialog.showMenu({
items: items.map(function (i) {
return {
Id: i
};
})
});
});
hideSelections();
dispatchNeedsRefresh();
break;
default:
break;

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u0414\u043e\u0431\u0430\u0432\u0438",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Afegeix",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "P\u0159idat",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Del",
"Add": "Tilf\u00f8j",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Mit einem anderen Ger\u00e4t synchronisieren",
"MakeAvailableOffline": "Offline verf\u00fcgbar machen",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Teilen",
"Add": "Hinzuf\u00fcgen",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u03a0\u03c1\u03cc\u03c3\u03b8\u03b5\u03c3\u03b5",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -246,5 +246,7 @@
"HeaderIdentifyItemHelp": "Enter one or more search criteria. Remove criteria to increase search results.",
"PleaseEnterNameOrId": "Please enter a name or an external Id.",
"MessageItemSaved": "Item saved.",
"SearchResults": "Search Results"
"SearchResults": "Search Results",
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline"
}

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Especial - {0}",
"Share": "Compartir",
"Add": "Agregar",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Compartir",
"Add": "A\u00f1adir",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Sp\u00e9cial - {0}",
"Share": "Partager",
"Add": "Ajouter",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u05d4\u05d5\u05e1\u05e3",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Dodaj",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Hozz\u00e1ad",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Aggiungi",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "\u0410\u0440\u043d\u0430\u0439\u044b - {0}",
"Share": "\u041e\u0440\u0442\u0430\u049b\u0442\u0430\u0441\u0443",
"Add": "\u04ae\u0441\u0442\u0435\u0443",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\ucd94\uac00",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Spesial - {0}",
"Share": "Del",
"Add": "Legg til",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Speciaal - {0}",
"Share": "Delen",
"Add": "Toevoegen",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Dodaj",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Especial - {0}",
"Share": "Compartilhar",
"Add": "Adicionar",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Especial - {0}",
"Share": "Partilhar",
"Add": "Adicionar",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "\u0421\u043f\u0435\u0446\u044d\u043f\u0438\u0437\u043e\u0434 - {0}",
"Share": "\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",
"Add": "\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Specialavsnitt - {0}",
"Share": "Dela",
"Add": "L\u00e4gg till",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Ekle",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Add",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "Th\u00eam",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u6dfb\u52a0",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "Share",
"Add": "\u65b0\u589e",

View file

@ -1,4 +1,6 @@
{
"SyncToOtherDevice": "Sync to other device",
"MakeAvailableOffline": "Make available offline",
"ValueSpecialEpisodeName": "Special - {0}",
"Share": "\u5206\u4eab",
"Add": "\u6dfb\u52a0",