diff --git a/dashboard-ui/bower_components/emby-webcomponents/.bower.json b/dashboard-ui/bower_components/emby-webcomponents/.bower.json index 9e59fdf939..1bb7fd4e25 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/.bower.json +++ b/dashboard-ui/bower_components/emby-webcomponents/.bower.json @@ -14,12 +14,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.4.154", - "_release": "1.4.154", + "version": "1.4.156", + "_release": "1.4.156", "_resolution": { "type": "version", - "tag": "1.4.154", - "commit": "fc470b13dc1fc1a5d859d3b3da905adba007459a" + "tag": "1.4.156", + "commit": "b9f97570c0090a85efe1017b589c1f3261de5966" }, "_source": "https://github.com/MediaBrowser/emby-webcomponents.git", "_target": "^1.2.1", diff --git a/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js b/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js index bc6e009374..74c39b2ca3 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js +++ b/dashboard-ui/bower_components/emby-webcomponents/backdrop/backdrop.js @@ -2,7 +2,7 @@ function enableAnimation(elem) { - if (browser.mobile) { + if (browser.slow) { return false; } diff --git a/dashboard-ui/bower_components/emby-webcomponents/browser.js b/dashboard-ui/bower_components/emby-webcomponents/browser.js index 90e8c88f0d..a34d41433f 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/browser.js +++ b/dashboard-ui/bower_components/emby-webcomponents/browser.js @@ -28,6 +28,31 @@ return false; } + function isMobile(userAgent) { + + var terms = [ + 'mobi', + 'ipad', + 'iphone', + 'ipod', + 'silk', + 'gt-p1000', + 'nexus 7', + 'kindle fire', + 'opera mini' + ]; + + var lower = userAgent.toLowerCase(); + + for (var i = 0, length = terms.length; i < length; i++) { + if (lower.indexOf(terms[i]) != -1) { + return true; + } + } + + return false; + } + function isStyleSupported(prop, value) { // If no value is supplied, use "inherit" value = arguments.length === 2 ? value : 'inherit'; @@ -128,7 +153,7 @@ browser.tv = true; } - if (userAgent.toLowerCase().indexOf("mobi") != -1) { + if (isMobile(userAgent)) { browser.mobile = true; } @@ -144,7 +169,13 @@ browser.noFlex = true; } - //browser.noFlex = (browser.tv && !browser.chrome && !browser.operaTv) || browser.ps4; + if (browser.mobile || browser.tv) { + browser.slow = true; + } + + if (('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) { + browser.touch = true; + } return browser; }); \ No newline at end of file diff --git a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js index 23218808ce..d78201eb3a 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js +++ b/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/cardbuilder.js @@ -1,5 +1,5 @@ -define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo', 'focusManager', 'indicators', 'globalize', 'browser', 'layoutManager', 'apphost', 'emby-button', 'css!./card', 'paper-icon-button-light', 'clearButtonStyle'], - function (datetime, imageLoader, connectionManager, itemHelper, mediaInfo, focusManager, indicators, globalize, browser, layoutManager, appHost) { +define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo', 'focusManager', 'indicators', 'globalize', 'layoutManager', 'apphost', 'emby-button', 'css!./card', 'paper-icon-button-light', 'clearButtonStyle'], + function (datetime, imageLoader, connectionManager, itemHelper, mediaInfo, focusManager, indicators, globalize, layoutManager, appHost) { // Regular Expressions for parsing tags and attributes var SURROGATE_PAIR_REGEXP = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, @@ -102,15 +102,33 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo } } + function isResizable(windowWidth) { + + var screen = window.screen; + if (screen) { + var screenWidth = screen.availWidth; + + if ((screenWidth - windowWidth) > 20) { + return true; + } + } + + return false; + } + function getImageWidth(shape) { var screenWidth = window.innerWidth; - if (!browser.mobile && !browser.tv) { + if (isResizable(screenWidth)) { var roundScreenTo = 100; screenWidth = Math.ceil(screenWidth / roundScreenTo) * roundScreenTo; } + if (window.screen) { + screenWidth = Math.min(screenWidth, screen.availWidth || screenWidth); + } + var imagesPerRow = getPostersPerRow(shape, screenWidth); var shapeWidth = screenWidth / imagesPerRow; @@ -1094,7 +1112,7 @@ define(['datetime', 'imageLoader', 'connectionManager', 'itemHelper', 'mediaInfo if (forceName && !options.cardLayout) { showTitle = imgUrl; - + if (overlayText == null) { overlayText = true; } diff --git a/dashboard-ui/bower_components/emby-webcomponents/dialoghelper/dialoghelper.js b/dashboard-ui/bower_components/emby-webcomponents/dialoghelper/dialoghelper.js index 972403c6fd..a1e785bf95 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/dialoghelper/dialoghelper.js +++ b/dashboard-ui/bower_components/emby-webcomponents/dialoghelper/dialoghelper.js @@ -347,7 +347,7 @@ return true; } - return browser.mobile; + return true; } function centerDialog(dlg) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js b/dashboard-ui/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js index 69a35d21b7..aca2bc8082 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js +++ b/dashboard-ui/bower_components/emby-webcomponents/emby-itemscontainer/emby-itemscontainer.js @@ -179,7 +179,7 @@ this.addEventListener('click', onClick); - if (browser.mobile) { + if (browser.touch) { this.addEventListener('contextmenu', disableEvent); } else { this.addEventListener('contextmenu', onContextMenu); diff --git a/dashboard-ui/bower_components/emby-webcomponents/guide/guide.js b/dashboard-ui/bower_components/emby-webcomponents/guide/guide.js index 4697cc2f0f..a315a40310 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/guide/guide.js +++ b/dashboard-ui/bower_components/emby-webcomponents/guide/guide.js @@ -119,7 +119,7 @@ return registrationServices.validateFeature('livetv').then(function () { - var limit = browser.mobile ? 100 : 400; + var limit = browser.slow ? 100 : 400; context.querySelector('.guideRequiresUnlock').classList.add('hide'); diff --git a/dashboard-ui/bower_components/emby-webcomponents/images/imagehelper.js b/dashboard-ui/bower_components/emby-webcomponents/images/imagehelper.js index d9146df7c4..1d0bff2ac7 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/images/imagehelper.js +++ b/dashboard-ui/bower_components/emby-webcomponents/images/imagehelper.js @@ -56,7 +56,7 @@ define(['visibleinviewport', 'imageFetcher', 'layoutManager', 'events', 'browser var wheelEvent = (document.implementation.hasFeature('Event.wheel', '3.0') ? 'wheel' : 'mousewheel'); var self = {}; - var enableFade = browser.animate && !browser.mobile && !browser.operaTv; + var enableFade = browser.animate && !browser.slow; function fillImage(elem, source, enableEffects) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/multiselect/multiselect.js b/dashboard-ui/bower_components/emby-webcomponents/multiselect/multiselect.js index 80ef2badb9..8798753d82 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/multiselect/multiselect.js +++ b/dashboard-ui/bower_components/emby-webcomponents/multiselect/multiselect.js @@ -140,26 +140,6 @@ } } - function shake(elem, iterations) { - var keyframes = [ - { transform: 'translate3d(0, 0, 0)', offset: 0 }, - { transform: 'translate3d(-10px, 0, 0)', offset: 0.1 }, - { transform: 'translate3d(10px, 0, 0)', offset: 0.2 }, - { transform: 'translate3d(-10px, 0, 0)', offset: 0.3 }, - { transform: 'translate3d(10px, 0, 0)', offset: 0.4 }, - { transform: 'translate3d(-10px, 0, 0)', offset: 0.5 }, - { transform: 'translate3d(10px, 0, 0)', offset: 0.6 }, - { transform: 'translate3d(-10px, 0, 0)', offset: 0.7 }, - { transform: 'translate3d(10px, 0, 0)', offset: 0.8 }, - { transform: 'translate3d(-10px, 0, 0)', offset: 0.9 }, - { transform: 'translate3d(0, 0, 0)', offset: 1 }]; - var timing = { duration: 900, iterations: iterations }; - - if (elem.animate) { - elem.animate(keyframes, timing); - } - } - function showSelectionCommands() { var selectionCommandsPanel = currentSelectionCommandsPanel; @@ -189,10 +169,6 @@ var btnSelectionPanelOptions = selectionCommandsPanel.querySelector('.btnSelectionPanelOptions'); btnSelectionPanelOptions.addEventListener('click', showMenuForSelectedItems); - - if (!browser.mobile) { - shake(btnSelectionPanelOptions, 1); - } } } @@ -488,7 +464,7 @@ function initTapHold(element) { // mobile safari doesn't allow contextmenu override - if (browser.mobile && !browser.safari) { + if (browser.touch && !browser.safari) { container.addEventListener('contextmenu', onTapHold); } else { require(['hammer'], function (Hammer) { diff --git a/dashboard-ui/bower_components/emby-webcomponents/scroller/smoothscroller.js b/dashboard-ui/bower_components/emby-webcomponents/scroller/smoothscroller.js index 35ea7aed31..94fd6d85fd 100644 --- a/dashboard-ui/bower_components/emby-webcomponents/scroller/smoothscroller.js +++ b/dashboard-ui/bower_components/emby-webcomponents/scroller/smoothscroller.js @@ -170,11 +170,7 @@ define(['browser', 'layoutManager', 'scrollStyles'], function (browser, layoutMa // transform is the only way to guarantee animation options.enableNativeScroll = false; } - else if (layoutManager.mobile) { - - options.enableNativeScroll = true; - } - else if (browser.edge && !browser.xboxOne) { + else if (browser.edge && (!browser.xboxOne && !browser.touch)) { // no scrolling supported options.enableNativeScroll = false; } diff --git a/dashboard-ui/bower_components/iron-behaviors/.bower.json b/dashboard-ui/bower_components/iron-behaviors/.bower.json index c7dc4d6af0..dac19e56be 100644 --- a/dashboard-ui/bower_components/iron-behaviors/.bower.json +++ b/dashboard-ui/bower_components/iron-behaviors/.bower.json @@ -29,14 +29,14 @@ "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, "ignore": [], - "homepage": "https://github.com/polymerelements/iron-behaviors", + "homepage": "https://github.com/PolymerElements/iron-behaviors", "_release": "1.0.17", "_resolution": { "type": "version", "tag": "v1.0.17", "commit": "ef8e89b5f0aa4e8a6b51ca6491ea453bf395f94f" }, - "_source": "git://github.com/polymerelements/iron-behaviors.git", + "_source": "git://github.com/PolymerElements/iron-behaviors.git", "_target": "^1.0.0", - "_originalSource": "polymerelements/iron-behaviors" + "_originalSource": "PolymerElements/iron-behaviors" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/iron-icon/.bower.json b/dashboard-ui/bower_components/iron-icon/.bower.json index f3338bba57..eeaddfa5df 100644 --- a/dashboard-ui/bower_components/iron-icon/.bower.json +++ b/dashboard-ui/bower_components/iron-icon/.bower.json @@ -32,14 +32,14 @@ "web-component-tester": "^4.0.0", "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" }, - "homepage": "https://github.com/PolymerElements/iron-icon", + "homepage": "https://github.com/polymerelements/iron-icon", "_release": "1.0.9", "_resolution": { "type": "version", "tag": "v1.0.9", "commit": "f6fb241901377e30e2c9c6cd47e3e8e8beb6574d" }, - "_source": "git://github.com/PolymerElements/iron-icon.git", + "_source": "git://github.com/polymerelements/iron-icon.git", "_target": "^1.0.0", - "_originalSource": "PolymerElements/iron-icon" + "_originalSource": "polymerelements/iron-icon" } \ No newline at end of file diff --git a/dashboard-ui/bower_components/paper-item/.bower.json b/dashboard-ui/bower_components/paper-item/.bower.json deleted file mode 100644 index 91f23cd974..0000000000 --- a/dashboard-ui/bower_components/paper-item/.bower.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "paper-item", - "version": "1.2.1", - "description": "A material-design styled list item", - "authors": [ - "The Polymer Authors" - ], - "keywords": [ - "web-components", - "polymer", - "item" - ], - "main": [ - "paper-item.html", - "paper-icon-item.html", - "paper-item-body.html" - ], - "private": true, - "repository": { - "type": "git", - "url": "git://github.com/PolymerElements/paper-item" - }, - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/paper-item", - "ignore": [], - "dependencies": { - "polymer": "Polymer/polymer#^1.1.0", - "paper-styles": "PolymerElements/paper-styles#^1.0.0", - "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", - "iron-behaviors": "polymerelements/iron-behaviors#^1.0.0" - }, - "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", - "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", - "iron-icon": "PolymerElements/iron-icon#^1.0.0", - "iron-icons": "PolymerElements/iron-icons#^1.0.0", - "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", - "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "web-component-tester": "^4.0.0", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", - "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0" - }, - "_release": "1.2.1", - "_resolution": { - "type": "version", - "tag": "v1.2.1", - "commit": "1eab91333b318ae19e315866575b2dddd38e6abc" - }, - "_source": "git://github.com/PolymerElements/paper-item.git", - "_target": "^1.0.0", - "_originalSource": "PolymerElements/paper-item" -} \ No newline at end of file diff --git a/dashboard-ui/bower_components/paper-item/.github/ISSUE_TEMPLATE.md b/dashboard-ui/bower_components/paper-item/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index c38fb3e543..0000000000 --- a/dashboard-ui/bower_components/paper-item/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,33 +0,0 @@ - -### Description - - -### Expected outcome - - - -### Actual outcome - - - -### Live Demo - - -### Steps to reproduce - - - -### Browsers Affected - -- [ ] Chrome -- [ ] Firefox -- [ ] Safari 9 -- [ ] Safari 8 -- [ ] Safari 7 -- [ ] Edge -- [ ] IE 11 -- [ ] IE 10 diff --git a/dashboard-ui/bower_components/paper-item/.gitignore b/dashboard-ui/bower_components/paper-item/.gitignore deleted file mode 100644 index fbe05fc93b..0000000000 --- a/dashboard-ui/bower_components/paper-item/.gitignore +++ /dev/null @@ -1 +0,0 @@ -bower_components/ diff --git a/dashboard-ui/bower_components/paper-item/.travis.yml b/dashboard-ui/bower_components/paper-item/.travis.yml deleted file mode 100644 index c4d7b1805f..0000000000 --- a/dashboard-ui/bower_components/paper-item/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -language: node_js -sudo: required -before_script: - - npm install -g bower polylint web-component-tester - - bower install - - polylint -env: - global: - - secure: NCk3KK+wbaXMzp8XAY6FeL+TSdI0AlPI3/tl0OpsUIaU2EiCjQuzf/UpyzCW5XZMEVFF4q/eDjrPkqJodHfpngj36mpkfmfqj9DrgDmYsV9BDvsTd8KmLsA6H8D6p7Qer+r1JMMB8PvX44vdhQ6GhZD1HFNYK1Ekpt0TkYwWKNw= - - secure: TGgUEQe6FJS+GuYk94d//8YQmDLUu0ekMvPSIs8TQ2QkdBK4SL+2bSXZt44BbDEOwc9P4NCPSUx/RMiCAqsc5OGRJImzb/zqPNIDTeKG6q72HPBBBD3Sk0CrEpTQbOK/Flaa/B7RYR0U1kuljSmRS7lPG19nnY8gOHnIAgwIyk0= -node_js: stable -addons: - firefox: latest - apt: - sources: - - google-chrome - packages: - - google-chrome-stable - sauce_connect: true -script: - - xvfb-run wct - - "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi" -dist: trusty diff --git a/dashboard-ui/bower_components/paper-item/CONTRIBUTING.md b/dashboard-ui/bower_components/paper-item/CONTRIBUTING.md deleted file mode 100644 index f147978a3e..0000000000 --- a/dashboard-ui/bower_components/paper-item/CONTRIBUTING.md +++ /dev/null @@ -1,77 +0,0 @@ - - -# Polymer Elements -## Guide for Contributors - -Polymer Elements are built in the open, and the Polymer authors eagerly encourage any and all forms of community contribution. When contributing, please follow these guidelines: - -### Filing Issues - -**If you are filing an issue to request a feature**, please provide a clear description of the feature. It can be helpful to describe answers to the following questions: - - 1. **Who will use the feature?** _“As someone filling out a form…”_ - 2. **When will they use the feature?** _“When I enter an invalid value…”_ - 3. **What is the user’s goal?** _“I want to be visually notified that the value needs to be corrected…”_ - -**If you are filing an issue to report a bug**, please provide: - - 1. **A clear description of the bug and related expectations.** Consider using the following example template for reporting a bug: - - ```markdown - The `paper-foo` element causes the page to turn pink when clicked. - - ## Expected outcome - - The page stays the same color. - - ## Actual outcome - - The page turns pink. - - ## Steps to reproduce - - 1. Put a `paper-foo` element in the page. - 2. Open the page in a web browser. - 3. Click the `paper-foo` element. - ``` - - 2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output). - - 3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers. - -### Submitting Pull Requests - -**Before creating a pull request**, please ensure that an issue exists for the corresponding change in the pull request that you intend to make. **If an issue does not exist, please create one per the guidelines above**. The goal is to discuss the design and necessity of the proposed change with Polymer authors and community before diving into a pull request. - -When submitting pull requests, please provide: - - 1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax: - - ```markdown - (For a single issue) - Fixes #20 - - (For multiple issues) - Fixes #32, fixes #40 - ``` - - 2. **A succinct description of the design** used to fix any related issues. For example: - - ```markdown - This fixes #20 by removing styles that leaked which would cause the page to turn pink whenever `paper-foo` is clicked. - ``` - - 3. **At least one test for each bug fixed or feature added** as part of the pull request. Pull requests that fix bugs or add features without accompanying tests will not be considered. - -If a proposed change contains multiple commits, please [squash commits](https://www.google.com/url?q=http://blog.steveklabnik.com/posts/2012-11-08-how-to-squash-commits-in-a-github-pull-request) to as few as is necessary to succinctly express the change. A Polymer author can help you squash commits, so don’t be afraid to ask us if you need help with that! diff --git a/dashboard-ui/bower_components/paper-item/all-imports.html b/dashboard-ui/bower_components/paper-item/all-imports.html deleted file mode 100644 index 4b1583fe41..0000000000 --- a/dashboard-ui/bower_components/paper-item/all-imports.html +++ /dev/null @@ -1,13 +0,0 @@ - - - - - diff --git a/dashboard-ui/bower_components/paper-item/bower.json b/dashboard-ui/bower_components/paper-item/bower.json deleted file mode 100644 index 9028ed7fd5..0000000000 --- a/dashboard-ui/bower_components/paper-item/bower.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "name": "paper-item", - "version": "1.2.1", - "description": "A material-design styled list item", - "authors": [ - "The Polymer Authors" - ], - "keywords": [ - "web-components", - "polymer", - "item" - ], - "main": [ - "paper-item.html", - "paper-icon-item.html", - "paper-item-body.html" - ], - "private": true, - "repository": { - "type": "git", - "url": "git://github.com/PolymerElements/paper-item" - }, - "license": "http://polymer.github.io/LICENSE.txt", - "homepage": "https://github.com/PolymerElements/paper-item", - "ignore": [], - "dependencies": { - "polymer": "Polymer/polymer#^1.1.0", - "paper-styles": "PolymerElements/paper-styles#^1.0.0", - "iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0", - "iron-behaviors": "polymerelements/iron-behaviors#^1.0.0" - }, - "devDependencies": { - "iron-component-page": "PolymerElements/iron-component-page#^1.0.0", - "iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0", - "iron-icon": "PolymerElements/iron-icon#^1.0.0", - "iron-icons": "PolymerElements/iron-icons#^1.0.0", - "paper-icon-button": "PolymerElements/paper-icon-button#^1.0.0", - "test-fixture": "PolymerElements/test-fixture#^1.0.0", - "web-component-tester": "^4.0.0", - "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0", - "iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0" - } -} diff --git a/dashboard-ui/bower_components/paper-item/demo/index.html b/dashboard-ui/bower_components/paper-item/demo/index.html deleted file mode 100644 index bc95e7f9c0..0000000000 --- a/dashboard-ui/bower_components/paper-item/demo/index.html +++ /dev/null @@ -1,191 +0,0 @@ - - - - - - - - - - paper-item demo - - - - - - - - - - - - - - - - - -
-

Paper-items are simple list elements, ideally used in a paper-listbox or - an element with role="listbox"

- - - - -

They can be styled using custom properties

- - - - -

To add a leading element, use a paper-icon-item with an item-icon attribute. This - leading image can be an iron-icon, or any other regular element.

- - - - -

For two-line items, use a paper-icon-body inside a paper-item or paper-icon-item

- - - - -

Complex layouts are usually a combination of all these elements

- - - - -

Paper-items can be used as links

- - - -
- - diff --git a/dashboard-ui/bower_components/paper-item/index.html b/dashboard-ui/bower_components/paper-item/index.html deleted file mode 100644 index b409ed121c..0000000000 --- a/dashboard-ui/bower_components/paper-item/index.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - paper-item - - - - - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/paper-icon-item.html b/dashboard-ui/bower_components/paper-item/paper-icon-item.html deleted file mode 100644 index e8f6d0795e..0000000000 --- a/dashboard-ui/bower_components/paper-item/paper-icon-item.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/paper-item-behavior.html b/dashboard-ui/bower_components/paper-item/paper-item-behavior.html deleted file mode 100644 index f97b262b73..0000000000 --- a/dashboard-ui/bower_components/paper-item/paper-item-behavior.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/paper-item-body.html b/dashboard-ui/bower_components/paper-item/paper-item-body.html deleted file mode 100644 index 5c46cd891c..0000000000 --- a/dashboard-ui/bower_components/paper-item/paper-item-body.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/paper-item-shared-styles.html b/dashboard-ui/bower_components/paper-item/paper-item-shared-styles.html deleted file mode 100644 index 868d415350..0000000000 --- a/dashboard-ui/bower_components/paper-item/paper-item-shared-styles.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/paper-item.html b/dashboard-ui/bower_components/paper-item/paper-item.html deleted file mode 100644 index 60b4692d7c..0000000000 --- a/dashboard-ui/bower_components/paper-item/paper-item.html +++ /dev/null @@ -1,111 +0,0 @@ - - - - - - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/test/index.html b/dashboard-ui/bower_components/paper-item/test/index.html deleted file mode 100644 index 7029d736c4..0000000000 --- a/dashboard-ui/bower_components/paper-item/test/index.html +++ /dev/null @@ -1,31 +0,0 @@ - - - paper-item tests - - - - - - - - - - - - - - - diff --git a/dashboard-ui/bower_components/paper-item/test/paper-item.html b/dashboard-ui/bower_components/paper-item/test/paper-item.html deleted file mode 100644 index a728d6c101..0000000000 --- a/dashboard-ui/bower_components/paper-item/test/paper-item.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - paper-item tests - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/dashboard-ui/bower_components/polymer/.bower.json b/dashboard-ui/bower_components/polymer/.bower.json index a96f0f050e..25eb84c037 100644 --- a/dashboard-ui/bower_components/polymer/.bower.json +++ b/dashboard-ui/bower_components/polymer/.bower.json @@ -32,14 +32,14 @@ "iron-component-page": "polymerElements/iron-component-page#^1.1.6" }, "private": true, - "homepage": "https://github.com/Polymer/polymer", + "homepage": "https://github.com/polymer/polymer", "_release": "1.6.1", "_resolution": { "type": "version", "tag": "v1.6.1", "commit": "1f197d9d7874b1e5808b2a5c26f34446a7d912fc" }, - "_source": "git://github.com/Polymer/polymer.git", + "_source": "git://github.com/polymer/polymer.git", "_target": "^1.1.0", - "_originalSource": "Polymer/polymer" + "_originalSource": "polymer/polymer" } \ No newline at end of file diff --git a/dashboard-ui/components/directorybrowser/directorybrowser.js b/dashboard-ui/components/directorybrowser/directorybrowser.js index 9d86a27fe0..7299983e69 100644 --- a/dashboard-ui/components/directorybrowser/directorybrowser.js +++ b/dashboard-ui/components/directorybrowser/directorybrowser.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'paper-item', 'emby-input', 'emby-button', 'paper-item-body', 'paper-icon-button-light', 'css!./directorybrowser'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'listViewStyle', 'emby-input', 'emby-button', 'paper-icon-button-light', 'css!./directorybrowser'], function (dialogHelper, $) { var systemInfo; function getSystemInfo() { @@ -91,12 +91,14 @@ function getItem(cssClass, type, path, name) { var html = ''; - html += ''; - html += ''; + html += '
'; + html += '
'; + html += '
'; html += name; - html += ''; - html += ''; - html += ''; + html += '
'; + html += '
'; + html += 'arrow_forward'; + html += '
'; return html; } @@ -137,7 +139,7 @@ html += '
'; html += ''; html += '
'; - html += ''; + html += ''; html += ''; html += '
'; diff --git a/dashboard-ui/components/imagedownloader/imagedownloader.js b/dashboard-ui/components/imagedownloader/imagedownloader.js index 1020754731..f1ee46c265 100644 --- a/dashboard-ui/components/imagedownloader/imagedownloader.js +++ b/dashboard-ui/components/imagedownloader/imagedownloader.js @@ -7,7 +7,7 @@ var hasChanges = false; // These images can be large and we're seeing memory problems in safari - var browsableImagePageSize = browserInfo.safari ? 6 : (browserInfo.mobile ? 10 : 40); + var browsableImagePageSize = browserInfo.slow ? 6 : 30; var browsableImageStartIndex = 0; var browsableImageType = 'Primary'; diff --git a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js index 53c4b57165..49a5106e4d 100644 --- a/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js +++ b/dashboard-ui/components/medialibraryeditor/medialibraryeditor.js @@ -1,4 +1,4 @@ -define(['dialogHelper', 'jQuery', 'emby-button', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function (dialogHelper, $) { +define(['dialogHelper', 'jQuery', 'emby-button', 'listViewStyle', 'paper-icon-button-light'], function (dialogHelper, $) { var currentDeferred; var hasChanges; @@ -57,17 +57,19 @@ var html = ''; - html += ''; + html += '
'; - html += ''; + html += 'folder'; - html += ''; + html += '
'; + html += '

'; html += path; - html += ''; + html += '

'; + html += '
'; - html += ''; + html += ''; - html += ''; + html += '
'; return html; } diff --git a/dashboard-ui/components/remotecontrol.js b/dashboard-ui/components/remotecontrol.js index 53161b580c..d666b31617 100644 --- a/dashboard-ui/components/remotecontrol.js +++ b/dashboard-ui/components/remotecontrol.js @@ -194,7 +194,7 @@ // This should be outside of the IF // But for now, if you change songs but keep the same artist, the backdrop will flicker because in-between songs it clears out the image - if (!browser.mobile) { + if (!browser.slow) { // Exclude from mobile because it just doesn't perform well require(['backdrop'], function (backdrop) { backdrop.setBackdrop(backdropUrl); diff --git a/dashboard-ui/components/tvproviders/schedulesdirect.js b/dashboard-ui/components/tvproviders/schedulesdirect.js index 7d628de9ea..fc03dd8ab2 100644 --- a/dashboard-ui/components/tvproviders/schedulesdirect.js +++ b/dashboard-ui/components/tvproviders/schedulesdirect.js @@ -1,4 +1,4 @@ -define(['jQuery','paper-checkbox', 'paper-input', 'paper-item-body', 'paper-icon-item'], function ($) { +define(['jQuery','paper-checkbox', 'listViewStyle'], function ($) { return function (page, providerId, options) { @@ -257,24 +257,24 @@ var device = devices[i]; - html += ''; + html += '
'; var enabledTuners = providerInfo.EnableAllTuners || []; var isChecked = providerInfo.EnableAllTuners || enabledTuners.indexOf(device.Id) != -1; var checkedAttribute = isChecked ? ' checked' : ''; html += ''; - html += ''; - html += '
'; + html += '
'; + html += '
'; html += device.FriendlyName || getTunerName(device.Type); html += '
'; - html += '
'; + html += '
'; html += device.Url; html += '
'; - html += ''; + html += '
'; - html += ''; + html += '
'; } page.querySelector('.tunerList').innerHTML = html; diff --git a/dashboard-ui/components/tvproviders/xmltv.js b/dashboard-ui/components/tvproviders/xmltv.js index b856423f6b..91ce894986 100644 --- a/dashboard-ui/components/tvproviders/xmltv.js +++ b/dashboard-ui/components/tvproviders/xmltv.js @@ -1,4 +1,4 @@ -define(['jQuery', 'registrationservices', 'paper-checkbox', 'emby-input', 'paper-item-body', 'paper-icon-item', 'paper-icon-button-light'], function ($, registrationServices) { +define(['jQuery', 'registrationservices', 'paper-checkbox', 'emby-input', 'listViewStyle', 'paper-icon-button-light'], function ($, registrationServices) { return function (page, providerId, options) { @@ -135,24 +135,24 @@ var device = devices[i]; - html += ''; + html += '
'; var enabledTuners = providerInfo.EnableAllTuners || []; var isChecked = providerInfo.EnableAllTuners || enabledTuners.indexOf(device.Id) != -1; var checkedAttribute = isChecked ? ' checked' : ''; html += ''; - html += ''; - html += '
'; + html += '
'; + html += '
'; html += device.FriendlyName || getTunerName(device.Type); html += '
'; - html += '
'; + html += '
'; html += device.Url; html += '
'; - html += ''; + html += '
'; - html += ''; + html += '
'; } page.querySelector('.tunerList').innerHTML = html; diff --git a/dashboard-ui/scripts/mediaplayer-video.js b/dashboard-ui/scripts/mediaplayer-video.js index 0ebc47fe08..65bab7042c 100644 --- a/dashboard-ui/scripts/mediaplayer-video.js +++ b/dashboard-ui/scripts/mediaplayer-video.js @@ -997,9 +997,9 @@ self.playVideo = function (item, mediaSource, startPosition, callback) { - if (browserInfo.msie && !browserInfo.mobile) { + if (browserInfo.msie) { - if (navigator.userAgent.indexOf('Windows NT 6.1;') != -1 || !mediaSource.RunTimeTicks) { + if (!window.MediaSource || !mediaSource.RunTimeTicks) { alert('Playback of this content is not supported in Internet Explorer. For a better experience, please try a modern browser such as Google Chrome, Firefox, Opera, or Microsoft Edge.'); } } @@ -1077,7 +1077,7 @@ elem.classList.remove('hide'); - if (!browserInfo.animate || browserInfo.mobile) { + if (!browserInfo.animate || browserInfo.slow) { return; } diff --git a/dashboard-ui/scripts/nowplayingbar.js b/dashboard-ui/scripts/nowplayingbar.js index 9a5486dd2b..c87ce734b8 100644 --- a/dashboard-ui/scripts/nowplayingbar.js +++ b/dashboard-ui/scripts/nowplayingbar.js @@ -86,7 +86,7 @@ elem.classList.add('hide'); }; - if (!browser.animate || browser.mobile) { + if (!browser.animate || browser.slow) { onfinish(); return; } @@ -108,7 +108,7 @@ elem.classList.remove('hide'); - if (!browser.animate || browser.mobile) { + if (!browser.animate || browser.slow) { return; } @@ -130,7 +130,7 @@ elem.classList.remove('hide'); - if (!browser.animate || browser.mobile) { + if (!browser.animate || browser.slow) { return; } @@ -320,7 +320,7 @@ document.body.insertAdjacentHTML('beforeend', getNowPlayingBarHtml()); nowPlayingBarElement = document.querySelector('.nowPlayingBar'); - if (browser.safari && browser.mobile) { + if (browser.safari && browser.slow) { // Not handled well here. The wrong elements receive events, bar doesn't update quickly enough, etc. nowPlayingBarElement.classList.add('noMediaProgress'); } diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 8985e225bd..4318d6c41d 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -834,7 +834,7 @@ var Dashboard = { quality -= 10; } - if (browserInfo.mobile || browserInfo.tv) { + if (browserInfo.slow) { quality -= 40; } @@ -1092,14 +1092,13 @@ var AppInfo = {}; AppInfo.enableHomeFavorites = true; AppInfo.enableHomeTabs = true; AppInfo.enableNowPlayingPageBottomTabs = true; - AppInfo.enableAutoSave = browserInfo.mobile; + AppInfo.enableAutoSave = browserInfo.touch; AppInfo.enableHashBang = Dashboard.isRunningInCordova(); AppInfo.enableAppStorePolicy = isCordova; var isIOS = browserInfo.ipad || browserInfo.iphone; var isAndroid = browserInfo.android; - var isMobile = browserInfo.mobile; if (isIOS) { @@ -1135,7 +1134,7 @@ var AppInfo = {}; // This currently isn't working on android, unfortunately AppInfo.supportsFileInput = !(AppInfo.isNativeApp && isAndroid); - AppInfo.hasPhysicalVolumeButtons = isCordova || isMobile; + AppInfo.hasPhysicalVolumeButtons = isCordova || browserInfo.mobile; AppInfo.enableBackButton = isIOS && (window.navigator.standalone || AppInfo.isNativeApp); @@ -1511,12 +1510,9 @@ var AppInfo = {}; define("paper-icon-button", ["html!" + bowerPath + "/paper-icon-button/paper-icon-button.html"]); define("paper-textarea", ['webcomponentsjs', "html!" + bowerPath + "/paper-input/paper-textarea.html"]); - define("paper-item", ["html!" + bowerPath + "/paper-item/paper-item.html"]); define("paper-checkbox", ["html!" + bowerPath + "/paper-checkbox/paper-checkbox.html"]); define("paper-progress", ["html!" + bowerPath + "/paper-progress/paper-progress.html"]); define("paper-input", ['webcomponentsjs', "html!" + bowerPath + "/paper-input/paper-input.html"]); - define("paper-icon-item", ['webcomponentsjs', "html!" + bowerPath + "/paper-item/paper-icon-item.html"]); - define("paper-item-body", ["html!" + bowerPath + "/paper-item/paper-item-body.html"]); define("paper-collapse-item", ["html!" + bowerPath + "/paper-collapse-item/paper-collapse-item.html"]); diff --git a/dashboard-ui/scripts/sync.js b/dashboard-ui/scripts/sync.js index 81a209e1e6..98ef916c10 100644 --- a/dashboard-ui/scripts/sync.js +++ b/dashboard-ui/scripts/sync.js @@ -156,7 +156,7 @@ if (dialogOptions.Options.indexOf('UnwatchedOnly') != -1) { html += '
'; - html += '
'; + html += '
'; html += '