diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index 87bf172158..602289e4b3 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -16,12 +16,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.3.37", - "_release": "1.3.37", + "version": "1.3.39", + "_release": "1.3.39", "_resolution": { "type": "version", - "tag": "1.3.37", - "commit": "43c74d495f1fbdae6d86ac6608e934d396069806" + "tag": "1.3.39", + "commit": "51bc3e7758132f864fa17488be6f233a55537087" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.0", diff --git a/dashboard-ui/bower_components/emby-webcomponents/formdialog.css b/dashboard-ui/bower_components/emby-webcomponents/formdialog.css index e78a4c73dd..9d4555836e 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/formdialog.css +++ b/dashboard-ui/bower_components/emby-webcomponents/formdialog.css @@ -35,6 +35,10 @@ max-width: 700px; } +.formDialog .dialogContentTitle { + margin-top: 1em; +} + @media all and (min-width: 1000px) { .layout-tv .formDialog .centeredContent { @@ -42,6 +46,13 @@ } } +@media all and (max-height: 1400px) { + + .itemOverview { + display: none; + } +} + .layout-tv .formDialog .dialogHeader { padding-top: 1.5em; padding-bottom: 1.5em; diff --git a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.css b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.css index 036c0f1d8c..4d0f8861e1 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.css +++ b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.css @@ -1,5 +1,5 @@ -.recordingDialog .btnSubmit { - background-color: #cc3333; +.recordingDialog .btnSubmit iron-icon { + color: #cc3333; } .layout-tv .btnHeaderSave { diff --git a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html index c2d1680643..89ae448bae 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html +++ b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingcreator.template.html @@ -7,7 +7,7 @@
-

+

@@ -68,10 +68,7 @@

${HeaderEnjoyDayTrial}

${HeaderBecomeProjectSupporter}
- ${Record} + ${Record} -
-
-
\ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html index 0ef855f607..d3f29d68d7 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html +++ b/dashboard-ui/bower_components/emby-webcomponents/recordingcreator/recordingeditor.template.html @@ -13,7 +13,7 @@
-

+

@@ -24,7 +24,6 @@

-
@@ -33,11 +32,7 @@

-
- ${Save} -
-
-
+ ${Save}
\ No newline at end of file diff --git a/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json b/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json index f920799d20..9604c48b0b 100644 --- a/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json +++ b/dashboard-ui/bower_components/iron-a11y-keys-behavior/.bower.json @@ -30,14 +30,14 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "ignore": [], - "homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior", + "homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior", "_release": "1.1.2", "_resolution": { "type": "version", "tag": "v1.1.2", "commit": "0c2330c229a6fd3d200e2b84147ec6f94f17c22d" }, - "_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git", + "_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git", "_target": "^1.0.0", - "_originalSource": "polymerelements/iron-a11y-keys-behavior" + "_originalSource": "PolymerElements/iron-a11y-keys-behavior" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/polymer/.bower.json b/dashboard-ui/bower_components/polymer/.bower.json index 3e8a4009a3..539707958b 100644 --- a/dashboard-ui/bower_components/polymer/.bower.json +++ b/dashboard-ui/bower_components/polymer/.bower.json @@ -34,6 +34,6 @@ "commit": "11c987b2eb3c73b388a79fc8aaea8ca01624f514" }, "_source": "git://github.com/Polymer/polymer.git", - "_target": "^1.0.0", + "_target": "^1.2.0", "_originalSource": "Polymer/polymer" } \ No newline at end of file diff --git a/dashboard-ui/scripts/channels.js b/dashboard-ui/scripts/channels.js index 124616ee80..8ecf9cf1b9 100644 --- a/dashboard-ui/scripts/channels.js +++ b/dashboard-ui/scripts/channels.js @@ -76,7 +76,7 @@ var mdlTabs = page.querySelector('.libraryViewNav'); - libraryBrowser.configurePaperLibraryTabs(page, mdlTabs, page.querySelectorAll('.pageTabContent'), true); + libraryBrowser.configurePaperLibraryTabs(page, mdlTabs, page.querySelectorAll('.pageTabContent'), [0, 1]); mdlTabs.addEventListener('tabchange', function (e) { loadTab(page, parseInt(e.detail.selectedTabIndex)); diff --git a/dashboard-ui/scripts/homenextup.js b/dashboard-ui/scripts/homenextup.js index ae7a38e4e6..6a6efcd7ff 100644 --- a/dashboard-ui/scripts/homenextup.js +++ b/dashboard-ui/scripts/homenextup.js @@ -9,13 +9,9 @@ function loadNextUp(page) { - var limit = AppInfo.hasLowImageBandwidth ? - 16 : - 24; - var query = { - Limit: limit, + Limit: 24, Fields: "PrimaryImageAspectRatio,SeriesInfo,DateCreated,SyncInfo", UserId: Dashboard.getCurrentUserId(), ImageTypeLimit: 1, diff --git a/dashboard-ui/scripts/homeupcoming.js b/dashboard-ui/scripts/homeupcoming.js index 54a7beed86..3be899f292 100644 --- a/dashboard-ui/scripts/homeupcoming.js +++ b/dashboard-ui/scripts/homeupcoming.js @@ -3,13 +3,9 @@ function loadUpcoming(page) { Dashboard.showLoadingMsg(); - var limit = AppInfo.hasLowImageBandwidth && !enableScrollX() ? - 24 : - 40; - var query = { - Limit: limit, + Limit: 40, Fields: "AirTime,UserData,SeriesStudio,SyncInfo", UserId: Dashboard.getCurrentUserId(), ImageTypeLimit: 1, diff --git a/dashboard-ui/scripts/indexpage.js b/dashboard-ui/scripts/indexpage.js index 1342d0c41b..6650571a89 100644 --- a/dashboard-ui/scripts/indexpage.js +++ b/dashboard-ui/scripts/indexpage.js @@ -249,7 +249,7 @@ var mdlTabs = view.querySelector('.libraryViewNav'); - libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), true); + libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), [0,1,2,3]); var tabControllers = []; var renderedTabs = []; diff --git a/dashboard-ui/scripts/librarybrowser.js b/dashboard-ui/scripts/librarybrowser.js index 31a0453282..0e01a04fc1 100644 --- a/dashboard-ui/scripts/librarybrowser.js +++ b/dashboard-ui/scripts/librarybrowser.js @@ -13,6 +13,21 @@ return elem; } + function fadeInRight(elem) { + + var pct = browserInfo.mobile ? '2%' : '1%'; + + var keyframes = [ + { opacity: '0', transform: 'translate3d(' + pct + ', 0, 0)', offset: 0 }, + { opacity: '1', transform: 'none', offset: 1 }]; + + elem.animate(keyframes, { + duration: 300, + iterations: 1, + easing: 'ease-out' + }); + } + var libraryBrowser = (function (window, document, screen) { // Regular Expressions for parsing tags and attributes @@ -225,7 +240,7 @@ }); }, - configurePaperLibraryTabs: function (ownerpage, tabs, panels, animate) { + configurePaperLibraryTabs: function (ownerpage, tabs, panels, animateTabs) { if (!browserInfo.safari) { LibraryBrowser.configureSwipeTabs(ownerpage, tabs); @@ -241,21 +256,6 @@ tabs.classList.add('hiddenScrollX'); - function fadeInRight(elem) { - - var pct = browserInfo.mobile ? '1.5%' : '0.5%'; - - var keyframes = [ - { opacity: '0', transform: 'translate3d(' + pct + ', 0, 0)', offset: 0 }, - { opacity: '1', transform: 'none', offset: 1 }]; - - elem.animate(keyframes, { - duration: 300, - iterations: 1, - easing: 'ease-out' - }); - } - tabs.addEventListener('click', function (e) { var current = tabs.querySelector('.is-active'); @@ -267,24 +267,28 @@ current.classList.remove('is-active'); panels[parseInt(current.getAttribute('data-index'))].classList.remove('is-active'); } + link.classList.add('is-active'); var index = parseInt(link.getAttribute('data-index')); - tabs.dispatchEvent(new CustomEvent("tabchange", { - detail: { - selectedTabIndex: index - } - })); + var newPanel = panels[index]; - panels[index].classList.add('is-active'); - - if (browserInfo.animate && animate) { - fadeInRight(panels[index]); + if (animateTabs && animateTabs.indexOf(index) != -1 && /*browserInfo.animate &&*/ newPanel.animate) { + fadeInRight(newPanel); } // If toCenter is called syncronously within the click event, it sometimes ends up canceling it - //setTimeout(function() { - // scrollHelper.toCenter(tabs, link, true); - //}, 10); + setTimeout(function () { + + tabs.dispatchEvent(new CustomEvent("tabchange", { + detail: { + selectedTabIndex: index + } + })); + + newPanel.classList.add('is-active'); + + //scrollHelper.toCenter(tabs, link, true); + }, 100); } }); @@ -1722,7 +1726,7 @@ if (AppInfo.hasLowImageBandwidth) { if (!AppInfo.isNativeApp) { - screenWidth *= .7; + screenWidth *= .75; } } else { screenWidth *= 1.2; diff --git a/dashboard-ui/scripts/livetvsuggested.js b/dashboard-ui/scripts/livetvsuggested.js index 029afaf1bf..1850900114 100644 --- a/dashboard-ui/scripts/livetvsuggested.js +++ b/dashboard-ui/scripts/livetvsuggested.js @@ -204,7 +204,7 @@ baseUrl += '?topParentId=' + topParentId; } - libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), true); + libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), [0, 2, 3, 4]); mdlTabs.addEventListener('tabchange', function (e) { loadTab(view, parseInt(e.detail.selectedTabIndex)); diff --git a/dashboard-ui/scripts/moviesrecommended.js b/dashboard-ui/scripts/moviesrecommended.js index 086f143fed..203212b03b 100644 --- a/dashboard-ui/scripts/moviesrecommended.js +++ b/dashboard-ui/scripts/moviesrecommended.js @@ -303,7 +303,7 @@ baseUrl += '?topParentId=' + topParentId; } - libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent')); + libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), [0, 4, 5]); var tabControllers = []; var renderedTabs = []; diff --git a/dashboard-ui/scripts/musicrecommended.js b/dashboard-ui/scripts/musicrecommended.js index 5d5731bfb9..4c6b34d085 100644 --- a/dashboard-ui/scripts/musicrecommended.js +++ b/dashboard-ui/scripts/musicrecommended.js @@ -331,7 +331,7 @@ baseUrl += '?topParentId=' + topParentId; } - libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent')); + libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), [0, 4, 5, 6]); mdlTabs.addEventListener('tabchange', function (e) { loadTab(view, parseInt(e.detail.selectedTabIndex)); diff --git a/dashboard-ui/scripts/sections.js b/dashboard-ui/scripts/sections.js index cb5018ff46..66bed4a61c 100644 --- a/dashboard-ui/scripts/sections.js +++ b/dashboard-ui/scripts/sections.js @@ -246,13 +246,9 @@ function loadRecentlyAdded(elem, user) { - var limit = AppInfo.hasLowImageBandwidth ? - 16 : - 20; - var options = { - Limit: limit, + Limit: 20, Fields: "PrimaryImageAspectRatio,SyncInfo", ImageTypeLimit: 1, EnableImageTypes: "Primary,Backdrop,Thumb" diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index a0eebdad3f..a260d45cd2 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -1166,7 +1166,7 @@ var Dashboard = { // The native app can handle a little bit more than safari if (AppInfo.isNativeApp) { - quality -= 5; + quality -= 10; } else { diff --git a/dashboard-ui/scripts/tvlatest.js b/dashboard-ui/scripts/tvlatest.js index 0d5c0357f9..3d958ca089 100644 --- a/dashboard-ui/scripts/tvlatest.js +++ b/dashboard-ui/scripts/tvlatest.js @@ -13,16 +13,10 @@ var parentId = params.topParentId; - var limit = 30; - - if (AppInfo.hasLowImageBandwidth) { - limit = 16; - } - var options = { IncludeItemTypes: "Episode", - Limit: limit, + Limit: 30, Fields: "PrimaryImageAspectRatio,SyncInfo", ParentId: parentId, ImageTypeLimit: 1, diff --git a/dashboard-ui/scripts/tvrecommended.js b/dashboard-ui/scripts/tvrecommended.js index 50faf2b823..9aefac9646 100644 --- a/dashboard-ui/scripts/tvrecommended.js +++ b/dashboard-ui/scripts/tvrecommended.js @@ -24,13 +24,9 @@ function loadNextUp() { - var limit = AppInfo.hasLowImageBandwidth ? - 16 : - 24; - var query = { - Limit: limit, + Limit: 24, Fields: "PrimaryImageAspectRatio,SeriesInfo,DateCreated,SyncInfo", UserId: Dashboard.getCurrentUserId(), ImageTypeLimit: 1, @@ -258,7 +254,7 @@ view.querySelector('#resumableItems').classList.remove('hiddenScrollX'); } libraryBrowser.createCardMenus(view.querySelector('#resumableItems')); - libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent')); + libraryBrowser.configurePaperLibraryTabs(view, mdlTabs, view.querySelectorAll('.pageTabContent'), [0, 1, 2, 4, 5, 6]); mdlTabs.addEventListener('tabchange', function (e) { loadTab(view, parseInt(e.detail.selectedTabIndex)); diff --git a/dashboard-ui/scripts/tvupcoming.js b/dashboard-ui/scripts/tvupcoming.js index 27142bf92d..95c21592d1 100644 --- a/dashboard-ui/scripts/tvupcoming.js +++ b/dashboard-ui/scripts/tvupcoming.js @@ -4,13 +4,9 @@ Dashboard.showLoadingMsg(); - var limit = AppInfo.hasLowImageBandwidth && !enableScrollX() ? - 24 : - 40; - var query = { - Limit: limit, + Limit: 40, Fields: "AirTime,UserData,SeriesStudio,SyncInfo", UserId: Dashboard.getCurrentUserId(), ImageTypeLimit: 1,