mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
encode with qsv
This commit is contained in:
parent
67524136ed
commit
64dfb8ef38
42 changed files with 945 additions and 370 deletions
|
@ -30,6 +30,6 @@
|
||||||
"commit": "14d2ca3df97da64c820829a8310f9198fbafbcfa"
|
"commit": "14d2ca3df97da64c820829a8310f9198fbafbcfa"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/desandro/eventie.git",
|
"_source": "git://github.com/desandro/eventie.git",
|
||||||
"_target": "~1.0.3",
|
"_target": "^1",
|
||||||
"_originalSource": "eventie"
|
"_originalSource": "eventie"
|
||||||
}
|
}
|
|
@ -31,6 +31,6 @@
|
||||||
"commit": "34fc5e4a0f252964ed2790138b8d7d30d04b55c1"
|
"commit": "34fc5e4a0f252964ed2790138b8d7d30d04b55c1"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/desandro/get-style-property.git",
|
"_source": "git://github.com/desandro/get-style-property.git",
|
||||||
"_target": "1.x",
|
"_target": "~1.0.4",
|
||||||
"_originalSource": "get-style-property"
|
"_originalSource": "get-style-property"
|
||||||
}
|
}
|
|
@ -29,14 +29,14 @@
|
||||||
"web-component-tester": "*",
|
"web-component-tester": "*",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/iron-a11y-keys-behavior",
|
"homepage": "https://github.com/polymerelements/iron-a11y-keys-behavior",
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.8",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.8",
|
||||||
"commit": "df29a9edcff3b4693707f1e3eebce5a1dc46e946"
|
"commit": "df29a9edcff3b4693707f1e3eebce5a1dc46e946"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-a11y-keys-behavior.git",
|
"_source": "git://github.com/polymerelements/iron-a11y-keys-behavior.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-a11y-keys-behavior"
|
"_originalSource": "polymerelements/iron-a11y-keys-behavior"
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-autogrow-textarea",
|
"name": "iron-autogrow-textarea",
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"description": "A textarea element that automatically grows with input",
|
"description": "A textarea element that automatically grows with input",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -11,9 +11,7 @@
|
||||||
"input",
|
"input",
|
||||||
"textarea"
|
"textarea"
|
||||||
],
|
],
|
||||||
"main": [
|
"main": "iron-autogrow-textarea.html",
|
||||||
"iron-autogrow-textarea.html"
|
|
||||||
],
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -37,11 +35,11 @@
|
||||||
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
|
"paper-styles": "PolymerElements/paper-styles#^1.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.9",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.9",
|
||||||
"commit": "ea7fb14d8038ccbedc6e85b9c4842b68c659a503"
|
"commit": "88ba625aed09fcb111f23ad9d2762c984d0828a2"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git",
|
"_source": "git://github.com/PolymerElements/iron-autogrow-textarea.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
|
|
28
dashboard-ui/bower_components/iron-autogrow-textarea/.travis.yml
vendored
Normal file
28
dashboard-ui/bower_components/iron-autogrow-textarea/.travis.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
language: node_js
|
||||||
|
sudo: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- node_js: stable
|
||||||
|
script: xvfb-run wct
|
||||||
|
addons:
|
||||||
|
firefox: latest
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- google-chrome
|
||||||
|
packages:
|
||||||
|
- google-chrome-stable
|
||||||
|
- node_js: node
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||||
|
wct -s 'default'
|
||||||
|
fi
|
||||||
|
before_script:
|
||||||
|
- npm install web-component-tester
|
||||||
|
- npm install bower
|
||||||
|
- export PATH=$PWD/node_modules/.bin:$PATH
|
||||||
|
- bower install
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- secure: lIogwlz5kFUKYy1OWASXxQgZE4YTyjUY0QcEgnqbv6wQ0GX8wRMgbI3zhbAv+xXU5ieYXg6Bd47ZFZZ1kVEWzQynAdd2od14Eu1vfN60/yc/llz62VTYuFsPt8r+Tgw41Iz8plwejK4a+V26Da5tXW+soJQOJKvE/MOiPzKi2m0=
|
||||||
|
- secure: cj3uSCQwLY6pyP3oTdGFjJoTRjv3G1lSe73fMd6i15XnMMxM4DVarfDtK+a0dPPxDY8BBhfr4sFClZuWX71bAHQuqUA84oigbeWt2xfl8d3HUuvr9aEnQxAGe2eQE7atpYJPC9M447sw48QKiUVgQo33DeJ1BGj6SBqkw0BJXO8=
|
72
dashboard-ui/bower_components/iron-autogrow-textarea/CONTRIBUTING.md
vendored
Normal file
72
dashboard-ui/bower_components/iron-autogrow-textarea/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is autogenerated based on
|
||||||
|
https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
|
If you edit that file, it will get updated everywhere else.
|
||||||
|
If you edit this file, your changes will get overridden :)
|
||||||
|
-->
|
||||||
|
# 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: [http://jsbin.com/cagaye](http://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 using the following syntax:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
(For a single issue)
|
||||||
|
Fixes #20
|
||||||
|
|
||||||
|
(For multiple issues)
|
||||||
|
Fixes #32, #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!
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-autogrow-textarea",
|
"name": "iron-autogrow-textarea",
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"description": "A textarea element that automatically grows with input",
|
"description": "A textarea element that automatically grows with input",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -11,9 +11,7 @@
|
||||||
"input",
|
"input",
|
||||||
"textarea"
|
"textarea"
|
||||||
],
|
],
|
||||||
"main": [
|
"main": "iron-autogrow-textarea.html",
|
||||||
"iron-autogrow-textarea.html"
|
|
||||||
],
|
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
|
@ -27,14 +27,14 @@
|
||||||
"web-component-tester": "*",
|
"web-component-tester": "*",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/PolymerElements/iron-behaviors",
|
"homepage": "https://github.com/polymerelements/iron-behaviors",
|
||||||
"_release": "1.0.10",
|
"_release": "1.0.10",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.10",
|
"tag": "v1.0.10",
|
||||||
"commit": "da937a6c5841fc9dba57f3087083445c9ad709a8"
|
"commit": "da937a6c5841fc9dba57f3087083445c9ad709a8"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
|
"_source": "git://github.com/polymerelements/iron-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/iron-behaviors"
|
"_originalSource": "polymerelements/iron-behaviors"
|
||||||
}
|
}
|
|
@ -44,7 +44,7 @@
|
||||||
"tag": "v1.0.9",
|
"tag": "v1.0.9",
|
||||||
"commit": "d9c0398cbaf3881bef3533b5b2b6127fc4d0960c"
|
"commit": "d9c0398cbaf3881bef3533b5b2b6127fc4d0960c"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/paper-behaviors.git",
|
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/paper-behaviors"
|
"_originalSource": "PolymerElements/paper-behaviors"
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-checkbox",
|
"name": "paper-checkbox",
|
||||||
"version": "1.0.13",
|
"version": "1.0.14",
|
||||||
"description": "A material design checkbox",
|
"description": "A material design checkbox",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -35,11 +35,12 @@
|
||||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||||
},
|
},
|
||||||
"_release": "1.0.13",
|
"main": "paper-checkbox.html",
|
||||||
|
"_release": "1.0.14",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.13",
|
"tag": "v1.0.14",
|
||||||
"commit": "33f38432fb26fe5638ecce44fbe10a794f4bdff4"
|
"commit": "be311b93234bbb15b527220ace17a30706657948"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-checkbox.git",
|
"_source": "git://github.com/PolymerElements/paper-checkbox.git",
|
||||||
"_target": "~1.0.5",
|
"_target": "~1.0.5",
|
||||||
|
|
28
dashboard-ui/bower_components/paper-checkbox/.travis.yml
vendored
Normal file
28
dashboard-ui/bower_components/paper-checkbox/.travis.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
language: node_js
|
||||||
|
sudo: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- node_js: stable
|
||||||
|
script: xvfb-run wct
|
||||||
|
addons:
|
||||||
|
firefox: latest
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- google-chrome
|
||||||
|
packages:
|
||||||
|
- google-chrome-stable
|
||||||
|
- node_js: node
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||||
|
wct -s 'default'
|
||||||
|
fi
|
||||||
|
before_script:
|
||||||
|
- npm install web-component-tester
|
||||||
|
- npm install bower
|
||||||
|
- export PATH=$PWD/node_modules/.bin:$PATH
|
||||||
|
- bower install
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- secure: PkxMaBcKe8HD1Jv8O6qiyQ4Nux6DfaVyN/ss9opajX9Oqa2ECJRI/OCsjDSrgXKhuAc2dw0L/KwSb/j4hg3/9BzHlJYQmeR9b9+MsO377TseNw5aKlywgVRu2bj8ODv2naQ4pB4B/Us/n9K7J0vlHIwM8UAJJwGjYm2oYTQxCAw=
|
||||||
|
- secure: WQNRMEQEm6k5e+rzN08Lg0IBC83AZLz1QLP89z59JHLrAOeBu7CBh/LFG0OkhUnTC+dG2JdfIZbdQVCEciDyONjSIKzmM4ze9/LrGzFpROE8bU0ylYSLqX+3CK/6i7VMR3pJo79e1KOeprppHiJSRLVBJfhG+5uNgwAXws/sLQ4=
|
72
dashboard-ui/bower_components/paper-checkbox/CONTRIBUTING.md
vendored
Normal file
72
dashboard-ui/bower_components/paper-checkbox/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is autogenerated based on
|
||||||
|
https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
|
If you edit that file, it will get updated everywhere else.
|
||||||
|
If you edit this file, your changes will get overridden :)
|
||||||
|
-->
|
||||||
|
# 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: [http://jsbin.com/cagaye](http://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 using the following syntax:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
(For a single issue)
|
||||||
|
Fixes #20
|
||||||
|
|
||||||
|
(For multiple issues)
|
||||||
|
Fixes #32, #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!
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-checkbox",
|
"name": "paper-checkbox",
|
||||||
"version": "1.0.13",
|
"version": "1.0.14",
|
||||||
"description": "A material design checkbox",
|
"description": "A material design checkbox",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -34,5 +34,6 @@
|
||||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||||
}
|
},
|
||||||
|
"main": "paper-checkbox.html"
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ Custom property | Description | Default
|
||||||
:host {
|
:host {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(:focus) {
|
:host(:focus) {
|
||||||
|
@ -69,9 +70,6 @@ Custom property | Description | Default
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
cursor: pointer;
|
|
||||||
-webkit-transform: translateZ(0);
|
|
||||||
transform: translateZ(0);
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background-color: var(--paper-checkbox-unchecked-background-color, transparent);
|
background-color: var(--paper-checkbox-unchecked-background-color, transparent);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-radio-button",
|
"name": "paper-radio-button",
|
||||||
"version": "1.0.10",
|
"version": "1.0.11",
|
||||||
"description": "A material design radio button",
|
"description": "A material design radio button",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -33,11 +33,12 @@
|
||||||
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
|
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"_release": "1.0.10",
|
"main": "paper-radio-button.html",
|
||||||
|
"_release": "1.0.11",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.10",
|
"tag": "v1.0.11",
|
||||||
"commit": "85b9670b23e9fac6f2d728b433d2c1d3f691a656"
|
"commit": "5ba3cec1efcbdb0df3e5df28930473ea02539845"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-radio-button.git",
|
"_source": "git://github.com/PolymerElements/paper-radio-button.git",
|
||||||
"_target": "~1.0.5",
|
"_target": "~1.0.5",
|
||||||
|
|
28
dashboard-ui/bower_components/paper-radio-button/.travis.yml
vendored
Normal file
28
dashboard-ui/bower_components/paper-radio-button/.travis.yml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
language: node_js
|
||||||
|
sudo: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- node_js: stable
|
||||||
|
script: xvfb-run wct
|
||||||
|
addons:
|
||||||
|
firefox: latest
|
||||||
|
apt:
|
||||||
|
sources:
|
||||||
|
- google-chrome
|
||||||
|
packages:
|
||||||
|
- google-chrome-stable
|
||||||
|
- node_js: node
|
||||||
|
script:
|
||||||
|
- |
|
||||||
|
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
|
||||||
|
wct -s 'default'
|
||||||
|
fi
|
||||||
|
before_script:
|
||||||
|
- npm install web-component-tester
|
||||||
|
- npm install bower
|
||||||
|
- export PATH=$PWD/node_modules/.bin:$PATH
|
||||||
|
- bower install
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
- secure: P6B/39IMzhm/jBmxD+0CDZEPYNMMaizAgpn4MXUUlAmmdMJNwovzvm/kYtVyoPfGiJ08NJh5tNRLQbkG12OH71lQ7ReTiru0hEy93ssmIh0U6ZUAAxTZVQ9SxB5gjrQU8/0fVJ9tNd0kBklHH4FoK+ZtJurhKLJaXhXsupXpcuI=
|
||||||
|
- secure: rxY6LCY199Lt1aRGK8Hpq3wjx8xcpb91x21fJStKROlpJTlfp+c0yevK1oYkklzChJWEFewFNTYlHbm9pc7TCyXK2WCR0v1GgSeJAUpP4TONkdpueeOvsVC/CGB9mIXEtfUEh2CCdWDj+D7JGLdUvbgmu8C3gfqfP+AyXbQt5Jc=
|
72
dashboard-ui/bower_components/paper-radio-button/CONTRIBUTING.md
vendored
Normal file
72
dashboard-ui/bower_components/paper-radio-button/CONTRIBUTING.md
vendored
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This file is autogenerated based on
|
||||||
|
https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
|
If you edit that file, it will get updated everywhere else.
|
||||||
|
If you edit this file, your changes will get overridden :)
|
||||||
|
-->
|
||||||
|
# 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: [http://jsbin.com/cagaye](http://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 using the following syntax:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
(For a single issue)
|
||||||
|
Fixes #20
|
||||||
|
|
||||||
|
(For multiple issues)
|
||||||
|
Fixes #32, #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!
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-radio-button",
|
"name": "paper-radio-button",
|
||||||
"version": "1.0.10",
|
"version": "1.0.11",
|
||||||
"description": "A material design radio button",
|
"description": "A material design radio button",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -32,5 +32,6 @@
|
||||||
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
|
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
|
||||||
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
|
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
}
|
},
|
||||||
|
"main": "paper-radio-button.html"
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,6 +54,7 @@ Custom property | Description | Default
|
||||||
:host {
|
:host {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(:focus) {
|
:host(:focus) {
|
||||||
|
@ -65,7 +66,6 @@ Custom property | Description | Default
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
cursor: pointer;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "webcomponentsjs",
|
"name": "webcomponentsjs",
|
||||||
"main": "webcomponents.js",
|
"main": "webcomponents.js",
|
||||||
"version": "0.7.15",
|
"version": "0.7.16",
|
||||||
"homepage": "http://webcomponents.org",
|
"homepage": "http://webcomponents.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -15,11 +15,14 @@
|
||||||
],
|
],
|
||||||
"license": "BSD",
|
"license": "BSD",
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"_release": "0.7.15",
|
"devDependencies": {
|
||||||
|
"web-component-tester": "~3.3.10"
|
||||||
|
},
|
||||||
|
"_release": "0.7.16",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v0.7.15",
|
"tag": "v0.7.16",
|
||||||
"commit": "d90a442cdf31ae10a7b5b62e667cc749a2a6da61"
|
"commit": "26216d9a5579b7b31b98f1b1b2ced009bf9ed2b3"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
"_source": "git://github.com/Polymer/webcomponentsjs.git",
|
||||||
"_target": "^0.7.2",
|
"_target": "^0.7.2",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* Code distributed by Google as part of the polymer project is also
|
||||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.15
|
// @version 0.7.16
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
@ -349,6 +349,77 @@ if (typeof WeakMap === "undefined") {
|
||||||
}
|
}
|
||||||
})(self);
|
})(self);
|
||||||
|
|
||||||
|
(function(scope) {
|
||||||
|
"use strict";
|
||||||
|
if (!window.performance) {
|
||||||
|
var start = Date.now();
|
||||||
|
window.performance = {
|
||||||
|
now: function() {
|
||||||
|
return Date.now() - start;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (!window.requestAnimationFrame) {
|
||||||
|
window.requestAnimationFrame = function() {
|
||||||
|
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
||||||
|
return nativeRaf ? function(callback) {
|
||||||
|
return nativeRaf(function() {
|
||||||
|
callback(performance.now());
|
||||||
|
});
|
||||||
|
} : function(callback) {
|
||||||
|
return window.setTimeout(callback, 1e3 / 60);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
if (!window.cancelAnimationFrame) {
|
||||||
|
window.cancelAnimationFrame = function() {
|
||||||
|
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
||||||
|
clearTimeout(id);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
var workingDefaultPrevented = function() {
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent("foo", true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
if (!workingDefaultPrevented) {
|
||||||
|
var origPreventDefault = Event.prototype.preventDefault;
|
||||||
|
Event.prototype.preventDefault = function() {
|
||||||
|
if (!this.cancelable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
origPreventDefault.call(this);
|
||||||
|
Object.defineProperty(this, "defaultPrevented", {
|
||||||
|
get: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var isIE = /Trident/.test(navigator.userAgent);
|
||||||
|
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
||||||
|
window.CustomEvent = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("CustomEvent");
|
||||||
|
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.CustomEvent.prototype = window.Event.prototype;
|
||||||
|
}
|
||||||
|
if (!window.Event || isIE && typeof window.Event !== "function") {
|
||||||
|
var origEvent = window.Event;
|
||||||
|
window.Event = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.Event.prototype = origEvent.prototype;
|
||||||
|
}
|
||||||
|
})(window.WebComponents);
|
||||||
|
|
||||||
window.CustomElements = window.CustomElements || {
|
window.CustomElements = window.CustomElements || {
|
||||||
flags: {}
|
flags: {}
|
||||||
};
|
};
|
||||||
|
@ -953,22 +1024,6 @@ window.CustomElements.addModule(function(scope) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
|
||||||
window.CustomEvent = function(inType, params) {
|
|
||||||
params = params || {};
|
|
||||||
var e = document.createEvent("CustomEvent");
|
|
||||||
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
|
||||||
e.preventDefault = function() {
|
|
||||||
Object.defineProperty(this, "defaultPrevented", {
|
|
||||||
get: function() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
window.CustomEvent.prototype = window.Event.prototype;
|
|
||||||
}
|
|
||||||
if (document.readyState === "complete" || scope.flags.eager) {
|
if (document.readyState === "complete" || scope.flags.eager) {
|
||||||
bootstrap();
|
bootstrap();
|
||||||
} else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
|
} else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* Code distributed by Google as part of the polymer project is also
|
||||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.15
|
// @version 0.7.16
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
@ -349,6 +349,77 @@ if (typeof WeakMap === "undefined") {
|
||||||
}
|
}
|
||||||
})(self);
|
})(self);
|
||||||
|
|
||||||
|
(function(scope) {
|
||||||
|
"use strict";
|
||||||
|
if (!window.performance) {
|
||||||
|
var start = Date.now();
|
||||||
|
window.performance = {
|
||||||
|
now: function() {
|
||||||
|
return Date.now() - start;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (!window.requestAnimationFrame) {
|
||||||
|
window.requestAnimationFrame = function() {
|
||||||
|
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
||||||
|
return nativeRaf ? function(callback) {
|
||||||
|
return nativeRaf(function() {
|
||||||
|
callback(performance.now());
|
||||||
|
});
|
||||||
|
} : function(callback) {
|
||||||
|
return window.setTimeout(callback, 1e3 / 60);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
if (!window.cancelAnimationFrame) {
|
||||||
|
window.cancelAnimationFrame = function() {
|
||||||
|
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
||||||
|
clearTimeout(id);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
var workingDefaultPrevented = function() {
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent("foo", true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
if (!workingDefaultPrevented) {
|
||||||
|
var origPreventDefault = Event.prototype.preventDefault;
|
||||||
|
Event.prototype.preventDefault = function() {
|
||||||
|
if (!this.cancelable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
origPreventDefault.call(this);
|
||||||
|
Object.defineProperty(this, "defaultPrevented", {
|
||||||
|
get: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var isIE = /Trident/.test(navigator.userAgent);
|
||||||
|
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
||||||
|
window.CustomEvent = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("CustomEvent");
|
||||||
|
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.CustomEvent.prototype = window.Event.prototype;
|
||||||
|
}
|
||||||
|
if (!window.Event || isIE && typeof window.Event !== "function") {
|
||||||
|
var origEvent = window.Event;
|
||||||
|
window.Event = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.Event.prototype = origEvent.prototype;
|
||||||
|
}
|
||||||
|
})(window.WebComponents);
|
||||||
|
|
||||||
window.HTMLImports = window.HTMLImports || {
|
window.HTMLImports = window.HTMLImports || {
|
||||||
flags: {}
|
flags: {}
|
||||||
};
|
};
|
||||||
|
@ -550,10 +621,14 @@ window.HTMLImports.addModule(function(scope) {
|
||||||
request.open("GET", url, xhr.async);
|
request.open("GET", url, xhr.async);
|
||||||
request.addEventListener("readystatechange", function(e) {
|
request.addEventListener("readystatechange", function(e) {
|
||||||
if (request.readyState === 4) {
|
if (request.readyState === 4) {
|
||||||
var locationHeader = request.getResponseHeader("Location");
|
|
||||||
var redirectedUrl = null;
|
var redirectedUrl = null;
|
||||||
|
try {
|
||||||
|
var locationHeader = request.getResponseHeader("Location");
|
||||||
if (locationHeader) {
|
if (locationHeader) {
|
||||||
var redirectedUrl = locationHeader.substr(0, 1) === "/" ? location.origin + locationHeader : locationHeader;
|
redirectedUrl = locationHeader.substr(0, 1) === "/" ? location.origin + locationHeader : locationHeader;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e.message);
|
||||||
}
|
}
|
||||||
next.call(nextContext, !xhr.ok(request) && request, request.response || request.responseText, redirectedUrl);
|
next.call(nextContext, !xhr.ok(request) && request, request.response || request.responseText, redirectedUrl);
|
||||||
}
|
}
|
||||||
|
@ -1067,22 +1142,6 @@ window.HTMLImports.addModule(function(scope) {
|
||||||
if (scope.useNative) {
|
if (scope.useNative) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
|
||||||
window.CustomEvent = function(inType, params) {
|
|
||||||
params = params || {};
|
|
||||||
var e = document.createEvent("CustomEvent");
|
|
||||||
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
|
||||||
e.preventDefault = function() {
|
|
||||||
Object.defineProperty(this, "defaultPrevented", {
|
|
||||||
get: function() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
window.CustomEvent.prototype = window.Event.prototype;
|
|
||||||
}
|
|
||||||
initializeModules();
|
initializeModules();
|
||||||
var rootDocument = scope.rootDocument;
|
var rootDocument = scope.rootDocument;
|
||||||
function bootstrap() {
|
function bootstrap() {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* Code distributed by Google as part of the polymer project is also
|
||||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.15
|
// @version 0.7.16
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* Code distributed by Google as part of the polymer project is also
|
||||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.15
|
// @version 0.7.16
|
||||||
if (typeof WeakMap === "undefined") {
|
if (typeof WeakMap === "undefined") {
|
||||||
(function() {
|
(function() {
|
||||||
var defineProperty = Object.defineProperty;
|
var defineProperty = Object.defineProperty;
|
||||||
|
@ -1118,6 +1118,23 @@ window.ShadowDOMPolyfill = {};
|
||||||
stopImmediatePropagationTable.set(this, true);
|
stopImmediatePropagationTable.set(this, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
var supportsDefaultPrevented = function() {
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent("test", true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
if (!supportsDefaultPrevented) {
|
||||||
|
Event.prototype.preventDefault = function() {
|
||||||
|
if (!this.cancelable) return;
|
||||||
|
unsafeUnwrap(this).preventDefault();
|
||||||
|
Object.defineProperty(this, "defaultPrevented", {
|
||||||
|
get: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
registerWrapper(OriginalEvent, Event, document.createEvent("Event"));
|
registerWrapper(OriginalEvent, Event, document.createEvent("Event"));
|
||||||
function unwrapOptions(options) {
|
function unwrapOptions(options) {
|
||||||
if (!options || !options.relatedTarget) return options;
|
if (!options || !options.relatedTarget) return options;
|
||||||
|
@ -3378,6 +3395,9 @@ window.ShadowDOMPolyfill = {};
|
||||||
},
|
},
|
||||||
elementFromPoint: function(x, y) {
|
elementFromPoint: function(x, y) {
|
||||||
return elementFromPoint(this, this.ownerDocument, x, y);
|
return elementFromPoint(this, this.ownerDocument, x, y);
|
||||||
|
},
|
||||||
|
getSelection: function() {
|
||||||
|
return document.getSelection();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
scope.wrappers.ShadowRoot = ShadowRoot;
|
scope.wrappers.ShadowRoot = ShadowRoot;
|
||||||
|
@ -3969,7 +3989,7 @@ window.ShadowDOMPolyfill = {};
|
||||||
unsafeUnwrap(this).removeRange(unwrap(range));
|
unsafeUnwrap(this).removeRange(unwrap(range));
|
||||||
},
|
},
|
||||||
selectAllChildren: function(node) {
|
selectAllChildren: function(node) {
|
||||||
unsafeUnwrap(this).selectAllChildren(unwrapIfNeeded(node));
|
unsafeUnwrap(this).selectAllChildren(node instanceof ShadowRoot ? unsafeUnwrap(node.host) : unwrapIfNeeded(node));
|
||||||
},
|
},
|
||||||
toString: function() {
|
toString: function() {
|
||||||
return unsafeUnwrap(this).toString();
|
return unsafeUnwrap(this).toString();
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "webcomponentsjs",
|
"name": "webcomponentsjs",
|
||||||
"main": "webcomponents.js",
|
"main": "webcomponents.js",
|
||||||
"version": "0.7.15",
|
"version": "0.7.16",
|
||||||
"homepage": "http://webcomponents.org",
|
"homepage": "http://webcomponents.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
"The Polymer Authors"
|
"The Polymer Authors"
|
||||||
|
@ -14,5 +14,8 @@
|
||||||
"webcomponents"
|
"webcomponents"
|
||||||
],
|
],
|
||||||
"license": "BSD",
|
"license": "BSD",
|
||||||
"ignore": []
|
"ignore": [],
|
||||||
|
"devDependencies": {
|
||||||
|
"web-component-tester": "~3.3.10"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "webcomponents.js",
|
"name": "webcomponents.js",
|
||||||
"version": "0.7.15",
|
"version": "0.7.16",
|
||||||
"description": "webcomponents.js",
|
"description": "webcomponents.js",
|
||||||
"main": "webcomponents.js",
|
"main": "webcomponents.js",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
@ -11,10 +11,7 @@
|
||||||
"url": "https://github.com/webcomponents/webcomponentsjs.git"
|
"url": "https://github.com/webcomponents/webcomponentsjs.git"
|
||||||
},
|
},
|
||||||
"author": "The Polymer Authors",
|
"author": "The Polymer Authors",
|
||||||
"license": {
|
"license": "BSD-3-Clause",
|
||||||
"type": "BSD-3-Clause",
|
|
||||||
"url": "http://polymer.github.io/LICENSE.txt"
|
|
||||||
},
|
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/webcomponents/webcomponentsjs/issues"
|
"url": "https://github.com/webcomponents/webcomponentsjs/issues"
|
||||||
},
|
},
|
||||||
|
@ -26,6 +23,6 @@
|
||||||
"gulp-header": "^1.1.1",
|
"gulp-header": "^1.1.1",
|
||||||
"gulp-uglify": "^1.0.1",
|
"gulp-uglify": "^1.0.1",
|
||||||
"run-sequence": "^1.0.1",
|
"run-sequence": "^1.0.1",
|
||||||
"web-component-tester": "*"
|
"web-component-tester": "^3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* Code distributed by Google as part of the polymer project is also
|
||||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.15
|
// @version 0.7.16
|
||||||
(function() {
|
(function() {
|
||||||
window.WebComponents = window.WebComponents || {
|
window.WebComponents = window.WebComponents || {
|
||||||
flags: {}
|
flags: {}
|
||||||
|
@ -912,6 +912,159 @@ if (typeof WeakMap === "undefined") {
|
||||||
}
|
}
|
||||||
})(self);
|
})(self);
|
||||||
|
|
||||||
|
if (typeof HTMLTemplateElement === "undefined") {
|
||||||
|
(function() {
|
||||||
|
var TEMPLATE_TAG = "template";
|
||||||
|
var contentDoc = document.implementation.createHTMLDocument("template");
|
||||||
|
var canDecorate = true;
|
||||||
|
HTMLTemplateElement = function() {};
|
||||||
|
HTMLTemplateElement.prototype = Object.create(HTMLElement.prototype);
|
||||||
|
HTMLTemplateElement.decorate = function(template) {
|
||||||
|
if (!template.content) {
|
||||||
|
template.content = contentDoc.createDocumentFragment();
|
||||||
|
}
|
||||||
|
var child;
|
||||||
|
while (child = template.firstChild) {
|
||||||
|
template.content.appendChild(child);
|
||||||
|
}
|
||||||
|
if (canDecorate) {
|
||||||
|
try {
|
||||||
|
Object.defineProperty(template, "innerHTML", {
|
||||||
|
get: function() {
|
||||||
|
var o = "";
|
||||||
|
for (var e = this.content.firstChild; e; e = e.nextSibling) {
|
||||||
|
o += e.outerHTML || escapeData(e.data);
|
||||||
|
}
|
||||||
|
return o;
|
||||||
|
},
|
||||||
|
set: function(text) {
|
||||||
|
contentDoc.body.innerHTML = text;
|
||||||
|
HTMLTemplateElement.bootstrap(contentDoc);
|
||||||
|
while (this.content.firstChild) {
|
||||||
|
this.content.removeChild(this.content.firstChild);
|
||||||
|
}
|
||||||
|
while (contentDoc.body.firstChild) {
|
||||||
|
this.content.appendChild(contentDoc.body.firstChild);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
configurable: true
|
||||||
|
});
|
||||||
|
} catch (err) {
|
||||||
|
canDecorate = false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
HTMLTemplateElement.bootstrap = function(doc) {
|
||||||
|
var templates = doc.querySelectorAll(TEMPLATE_TAG);
|
||||||
|
for (var i = 0, l = templates.length, t; i < l && (t = templates[i]); i++) {
|
||||||
|
HTMLTemplateElement.decorate(t);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
document.addEventListener("DOMContentLoaded", function() {
|
||||||
|
HTMLTemplateElement.bootstrap(document);
|
||||||
|
});
|
||||||
|
var createElement = document.createElement;
|
||||||
|
document.createElement = function() {
|
||||||
|
"use strict";
|
||||||
|
var el = createElement.apply(document, arguments);
|
||||||
|
if (el.localName == "template") {
|
||||||
|
HTMLTemplateElement.decorate(el);
|
||||||
|
}
|
||||||
|
return el;
|
||||||
|
};
|
||||||
|
var escapeDataRegExp = /[&\u00A0<>]/g;
|
||||||
|
function escapeReplace(c) {
|
||||||
|
switch (c) {
|
||||||
|
case "&":
|
||||||
|
return "&";
|
||||||
|
|
||||||
|
case "<":
|
||||||
|
return "<";
|
||||||
|
|
||||||
|
case ">":
|
||||||
|
return ">";
|
||||||
|
|
||||||
|
case " ":
|
||||||
|
return " ";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
function escapeData(s) {
|
||||||
|
return s.replace(escapeDataRegExp, escapeReplace);
|
||||||
|
}
|
||||||
|
})();
|
||||||
|
}
|
||||||
|
|
||||||
|
(function(scope) {
|
||||||
|
"use strict";
|
||||||
|
if (!window.performance) {
|
||||||
|
var start = Date.now();
|
||||||
|
window.performance = {
|
||||||
|
now: function() {
|
||||||
|
return Date.now() - start;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (!window.requestAnimationFrame) {
|
||||||
|
window.requestAnimationFrame = function() {
|
||||||
|
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
||||||
|
return nativeRaf ? function(callback) {
|
||||||
|
return nativeRaf(function() {
|
||||||
|
callback(performance.now());
|
||||||
|
});
|
||||||
|
} : function(callback) {
|
||||||
|
return window.setTimeout(callback, 1e3 / 60);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
if (!window.cancelAnimationFrame) {
|
||||||
|
window.cancelAnimationFrame = function() {
|
||||||
|
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
||||||
|
clearTimeout(id);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
var workingDefaultPrevented = function() {
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent("foo", true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
if (!workingDefaultPrevented) {
|
||||||
|
var origPreventDefault = Event.prototype.preventDefault;
|
||||||
|
Event.prototype.preventDefault = function() {
|
||||||
|
if (!this.cancelable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
origPreventDefault.call(this);
|
||||||
|
Object.defineProperty(this, "defaultPrevented", {
|
||||||
|
get: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var isIE = /Trident/.test(navigator.userAgent);
|
||||||
|
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
||||||
|
window.CustomEvent = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("CustomEvent");
|
||||||
|
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.CustomEvent.prototype = window.Event.prototype;
|
||||||
|
}
|
||||||
|
if (!window.Event || isIE && typeof window.Event !== "function") {
|
||||||
|
var origEvent = window.Event;
|
||||||
|
window.Event = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.Event.prototype = origEvent.prototype;
|
||||||
|
}
|
||||||
|
})(window.WebComponents);
|
||||||
|
|
||||||
window.HTMLImports = window.HTMLImports || {
|
window.HTMLImports = window.HTMLImports || {
|
||||||
flags: {}
|
flags: {}
|
||||||
};
|
};
|
||||||
|
@ -1113,10 +1266,14 @@ window.HTMLImports.addModule(function(scope) {
|
||||||
request.open("GET", url, xhr.async);
|
request.open("GET", url, xhr.async);
|
||||||
request.addEventListener("readystatechange", function(e) {
|
request.addEventListener("readystatechange", function(e) {
|
||||||
if (request.readyState === 4) {
|
if (request.readyState === 4) {
|
||||||
var locationHeader = request.getResponseHeader("Location");
|
|
||||||
var redirectedUrl = null;
|
var redirectedUrl = null;
|
||||||
|
try {
|
||||||
|
var locationHeader = request.getResponseHeader("Location");
|
||||||
if (locationHeader) {
|
if (locationHeader) {
|
||||||
var redirectedUrl = locationHeader.substr(0, 1) === "/" ? location.origin + locationHeader : locationHeader;
|
redirectedUrl = locationHeader.substr(0, 1) === "/" ? location.origin + locationHeader : locationHeader;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e.message);
|
||||||
}
|
}
|
||||||
next.call(nextContext, !xhr.ok(request) && request, request.response || request.responseText, redirectedUrl);
|
next.call(nextContext, !xhr.ok(request) && request, request.response || request.responseText, redirectedUrl);
|
||||||
}
|
}
|
||||||
|
@ -1630,22 +1787,6 @@ window.HTMLImports.addModule(function(scope) {
|
||||||
if (scope.useNative) {
|
if (scope.useNative) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
|
||||||
window.CustomEvent = function(inType, params) {
|
|
||||||
params = params || {};
|
|
||||||
var e = document.createEvent("CustomEvent");
|
|
||||||
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
|
||||||
e.preventDefault = function() {
|
|
||||||
Object.defineProperty(this, "defaultPrevented", {
|
|
||||||
get: function() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
window.CustomEvent.prototype = window.Event.prototype;
|
|
||||||
}
|
|
||||||
initializeModules();
|
initializeModules();
|
||||||
var rootDocument = scope.rootDocument;
|
var rootDocument = scope.rootDocument;
|
||||||
function bootstrap() {
|
function bootstrap() {
|
||||||
|
@ -2262,22 +2403,6 @@ window.CustomElements.addModule(function(scope) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
|
||||||
window.CustomEvent = function(inType, params) {
|
|
||||||
params = params || {};
|
|
||||||
var e = document.createEvent("CustomEvent");
|
|
||||||
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
|
||||||
e.preventDefault = function() {
|
|
||||||
Object.defineProperty(this, "defaultPrevented", {
|
|
||||||
get: function() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
window.CustomEvent.prototype = window.Event.prototype;
|
|
||||||
}
|
|
||||||
if (document.readyState === "complete" || scope.flags.eager) {
|
if (document.readyState === "complete" || scope.flags.eager) {
|
||||||
bootstrap();
|
bootstrap();
|
||||||
} else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
|
} else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
|
||||||
|
@ -2288,119 +2413,6 @@ window.CustomElements.addModule(function(scope) {
|
||||||
}
|
}
|
||||||
})(window.CustomElements);
|
})(window.CustomElements);
|
||||||
|
|
||||||
if (typeof HTMLTemplateElement === "undefined") {
|
|
||||||
(function() {
|
|
||||||
var TEMPLATE_TAG = "template";
|
|
||||||
var contentDoc = document.implementation.createHTMLDocument("template");
|
|
||||||
var canDecorate = true;
|
|
||||||
HTMLTemplateElement = function() {};
|
|
||||||
HTMLTemplateElement.prototype = Object.create(HTMLElement.prototype);
|
|
||||||
HTMLTemplateElement.decorate = function(template) {
|
|
||||||
if (!template.content) {
|
|
||||||
template.content = contentDoc.createDocumentFragment();
|
|
||||||
}
|
|
||||||
var child;
|
|
||||||
while (child = template.firstChild) {
|
|
||||||
template.content.appendChild(child);
|
|
||||||
}
|
|
||||||
if (canDecorate) {
|
|
||||||
try {
|
|
||||||
Object.defineProperty(template, "innerHTML", {
|
|
||||||
get: function() {
|
|
||||||
var o = "";
|
|
||||||
for (var e = this.content.firstChild; e; e = e.nextSibling) {
|
|
||||||
o += e.outerHTML || escapeData(e.data);
|
|
||||||
}
|
|
||||||
return o;
|
|
||||||
},
|
|
||||||
set: function(text) {
|
|
||||||
contentDoc.body.innerHTML = text;
|
|
||||||
HTMLTemplateElement.bootstrap(contentDoc);
|
|
||||||
while (this.content.firstChild) {
|
|
||||||
this.content.removeChild(this.content.firstChild);
|
|
||||||
}
|
|
||||||
while (contentDoc.body.firstChild) {
|
|
||||||
this.content.appendChild(contentDoc.body.firstChild);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
configurable: true
|
|
||||||
});
|
|
||||||
} catch (err) {
|
|
||||||
canDecorate = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
|
||||||
HTMLTemplateElement.bootstrap = function(doc) {
|
|
||||||
var templates = doc.querySelectorAll(TEMPLATE_TAG);
|
|
||||||
for (var i = 0, l = templates.length, t; i < l && (t = templates[i]); i++) {
|
|
||||||
HTMLTemplateElement.decorate(t);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
window.addEventListener("DOMContentLoaded", function() {
|
|
||||||
HTMLTemplateElement.bootstrap(document);
|
|
||||||
});
|
|
||||||
var createElement = document.createElement;
|
|
||||||
document.createElement = function() {
|
|
||||||
"use strict";
|
|
||||||
var el = createElement.apply(document, arguments);
|
|
||||||
if (el.localName == "template") {
|
|
||||||
HTMLTemplateElement.decorate(el);
|
|
||||||
}
|
|
||||||
return el;
|
|
||||||
};
|
|
||||||
var escapeDataRegExp = /[&\u00A0<>]/g;
|
|
||||||
function escapeReplace(c) {
|
|
||||||
switch (c) {
|
|
||||||
case "&":
|
|
||||||
return "&";
|
|
||||||
|
|
||||||
case "<":
|
|
||||||
return "<";
|
|
||||||
|
|
||||||
case ">":
|
|
||||||
return ">";
|
|
||||||
|
|
||||||
case " ":
|
|
||||||
return " ";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
function escapeData(s) {
|
|
||||||
return s.replace(escapeDataRegExp, escapeReplace);
|
|
||||||
}
|
|
||||||
})();
|
|
||||||
}
|
|
||||||
|
|
||||||
(function(scope) {
|
|
||||||
"use strict";
|
|
||||||
if (!window.performance) {
|
|
||||||
var start = Date.now();
|
|
||||||
window.performance = {
|
|
||||||
now: function() {
|
|
||||||
return Date.now() - start;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (!window.requestAnimationFrame) {
|
|
||||||
window.requestAnimationFrame = function() {
|
|
||||||
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
|
||||||
return nativeRaf ? function(callback) {
|
|
||||||
return nativeRaf(function() {
|
|
||||||
callback(performance.now());
|
|
||||||
});
|
|
||||||
} : function(callback) {
|
|
||||||
return window.setTimeout(callback, 1e3 / 60);
|
|
||||||
};
|
|
||||||
}();
|
|
||||||
}
|
|
||||||
if (!window.cancelAnimationFrame) {
|
|
||||||
window.cancelAnimationFrame = function() {
|
|
||||||
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
|
||||||
clearTimeout(id);
|
|
||||||
};
|
|
||||||
}();
|
|
||||||
}
|
|
||||||
})(window.WebComponents);
|
|
||||||
|
|
||||||
(function(scope) {
|
(function(scope) {
|
||||||
var style = document.createElement("style");
|
var style = document.createElement("style");
|
||||||
style.textContent = "" + "body {" + "transition: opacity ease-in 0.2s;" + " } \n" + "body[unresolved] {" + "opacity: 0; display: block; overflow: hidden; position: relative;" + " } \n";
|
style.textContent = "" + "body {" + "transition: opacity ease-in 0.2s;" + " } \n" + "body[unresolved] {" + "opacity: 0; display: block; overflow: hidden; position: relative;" + " } \n";
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,7 +7,7 @@
|
||||||
* Code distributed by Google as part of the polymer project is also
|
* Code distributed by Google as part of the polymer project is also
|
||||||
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
* subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
*/
|
*/
|
||||||
// @version 0.7.15
|
// @version 0.7.16
|
||||||
(function() {
|
(function() {
|
||||||
window.WebComponents = window.WebComponents || {
|
window.WebComponents = window.WebComponents || {
|
||||||
flags: {}
|
flags: {}
|
||||||
|
@ -1159,6 +1159,23 @@ if (WebComponents.flags.shadow) {
|
||||||
stopImmediatePropagationTable.set(this, true);
|
stopImmediatePropagationTable.set(this, true);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
var supportsDefaultPrevented = function() {
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent("test", true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
if (!supportsDefaultPrevented) {
|
||||||
|
Event.prototype.preventDefault = function() {
|
||||||
|
if (!this.cancelable) return;
|
||||||
|
unsafeUnwrap(this).preventDefault();
|
||||||
|
Object.defineProperty(this, "defaultPrevented", {
|
||||||
|
get: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
registerWrapper(OriginalEvent, Event, document.createEvent("Event"));
|
registerWrapper(OriginalEvent, Event, document.createEvent("Event"));
|
||||||
function unwrapOptions(options) {
|
function unwrapOptions(options) {
|
||||||
if (!options || !options.relatedTarget) return options;
|
if (!options || !options.relatedTarget) return options;
|
||||||
|
@ -3387,6 +3404,9 @@ if (WebComponents.flags.shadow) {
|
||||||
},
|
},
|
||||||
elementFromPoint: function(x, y) {
|
elementFromPoint: function(x, y) {
|
||||||
return elementFromPoint(this, this.ownerDocument, x, y);
|
return elementFromPoint(this, this.ownerDocument, x, y);
|
||||||
|
},
|
||||||
|
getSelection: function() {
|
||||||
|
return document.getSelection();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
scope.wrappers.ShadowRoot = ShadowRoot;
|
scope.wrappers.ShadowRoot = ShadowRoot;
|
||||||
|
@ -3974,7 +3994,7 @@ if (WebComponents.flags.shadow) {
|
||||||
unsafeUnwrap(this).removeRange(unwrap(range));
|
unsafeUnwrap(this).removeRange(unwrap(range));
|
||||||
},
|
},
|
||||||
selectAllChildren: function(node) {
|
selectAllChildren: function(node) {
|
||||||
unsafeUnwrap(this).selectAllChildren(unwrapIfNeeded(node));
|
unsafeUnwrap(this).selectAllChildren(node instanceof ShadowRoot ? unsafeUnwrap(node.host) : unwrapIfNeeded(node));
|
||||||
},
|
},
|
||||||
toString: function() {
|
toString: function() {
|
||||||
return unsafeUnwrap(this).toString();
|
return unsafeUnwrap(this).toString();
|
||||||
|
@ -5705,6 +5725,77 @@ if (WebComponents.flags.shadow) {
|
||||||
}
|
}
|
||||||
})(self);
|
})(self);
|
||||||
|
|
||||||
|
(function(scope) {
|
||||||
|
"use strict";
|
||||||
|
if (!window.performance) {
|
||||||
|
var start = Date.now();
|
||||||
|
window.performance = {
|
||||||
|
now: function() {
|
||||||
|
return Date.now() - start;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
if (!window.requestAnimationFrame) {
|
||||||
|
window.requestAnimationFrame = function() {
|
||||||
|
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
||||||
|
return nativeRaf ? function(callback) {
|
||||||
|
return nativeRaf(function() {
|
||||||
|
callback(performance.now());
|
||||||
|
});
|
||||||
|
} : function(callback) {
|
||||||
|
return window.setTimeout(callback, 1e3 / 60);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
if (!window.cancelAnimationFrame) {
|
||||||
|
window.cancelAnimationFrame = function() {
|
||||||
|
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
||||||
|
clearTimeout(id);
|
||||||
|
};
|
||||||
|
}();
|
||||||
|
}
|
||||||
|
var workingDefaultPrevented = function() {
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent("foo", true, true);
|
||||||
|
e.preventDefault();
|
||||||
|
return e.defaultPrevented;
|
||||||
|
}();
|
||||||
|
if (!workingDefaultPrevented) {
|
||||||
|
var origPreventDefault = Event.prototype.preventDefault;
|
||||||
|
Event.prototype.preventDefault = function() {
|
||||||
|
if (!this.cancelable) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
origPreventDefault.call(this);
|
||||||
|
Object.defineProperty(this, "defaultPrevented", {
|
||||||
|
get: function() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
|
var isIE = /Trident/.test(navigator.userAgent);
|
||||||
|
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
||||||
|
window.CustomEvent = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("CustomEvent");
|
||||||
|
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.CustomEvent.prototype = window.Event.prototype;
|
||||||
|
}
|
||||||
|
if (!window.Event || isIE && typeof window.Event !== "function") {
|
||||||
|
var origEvent = window.Event;
|
||||||
|
window.Event = function(inType, params) {
|
||||||
|
params = params || {};
|
||||||
|
var e = document.createEvent("Event");
|
||||||
|
e.initEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable));
|
||||||
|
return e;
|
||||||
|
};
|
||||||
|
window.Event.prototype = origEvent.prototype;
|
||||||
|
}
|
||||||
|
})(window.WebComponents);
|
||||||
|
|
||||||
window.HTMLImports = window.HTMLImports || {
|
window.HTMLImports = window.HTMLImports || {
|
||||||
flags: {}
|
flags: {}
|
||||||
};
|
};
|
||||||
|
@ -5906,10 +5997,14 @@ window.HTMLImports.addModule(function(scope) {
|
||||||
request.open("GET", url, xhr.async);
|
request.open("GET", url, xhr.async);
|
||||||
request.addEventListener("readystatechange", function(e) {
|
request.addEventListener("readystatechange", function(e) {
|
||||||
if (request.readyState === 4) {
|
if (request.readyState === 4) {
|
||||||
var locationHeader = request.getResponseHeader("Location");
|
|
||||||
var redirectedUrl = null;
|
var redirectedUrl = null;
|
||||||
|
try {
|
||||||
|
var locationHeader = request.getResponseHeader("Location");
|
||||||
if (locationHeader) {
|
if (locationHeader) {
|
||||||
var redirectedUrl = locationHeader.substr(0, 1) === "/" ? location.origin + locationHeader : locationHeader;
|
redirectedUrl = locationHeader.substr(0, 1) === "/" ? location.origin + locationHeader : locationHeader;
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
console.error(e.message);
|
||||||
}
|
}
|
||||||
next.call(nextContext, !xhr.ok(request) && request, request.response || request.responseText, redirectedUrl);
|
next.call(nextContext, !xhr.ok(request) && request, request.response || request.responseText, redirectedUrl);
|
||||||
}
|
}
|
||||||
|
@ -6423,22 +6518,6 @@ window.HTMLImports.addModule(function(scope) {
|
||||||
if (scope.useNative) {
|
if (scope.useNative) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
|
||||||
window.CustomEvent = function(inType, params) {
|
|
||||||
params = params || {};
|
|
||||||
var e = document.createEvent("CustomEvent");
|
|
||||||
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
|
||||||
e.preventDefault = function() {
|
|
||||||
Object.defineProperty(this, "defaultPrevented", {
|
|
||||||
get: function() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
window.CustomEvent.prototype = window.Event.prototype;
|
|
||||||
}
|
|
||||||
initializeModules();
|
initializeModules();
|
||||||
var rootDocument = scope.rootDocument;
|
var rootDocument = scope.rootDocument;
|
||||||
function bootstrap() {
|
function bootstrap() {
|
||||||
|
@ -7055,22 +7134,6 @@ window.CustomElements.addModule(function(scope) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (!window.CustomEvent || isIE && typeof window.CustomEvent !== "function") {
|
|
||||||
window.CustomEvent = function(inType, params) {
|
|
||||||
params = params || {};
|
|
||||||
var e = document.createEvent("CustomEvent");
|
|
||||||
e.initCustomEvent(inType, Boolean(params.bubbles), Boolean(params.cancelable), params.detail);
|
|
||||||
e.preventDefault = function() {
|
|
||||||
Object.defineProperty(this, "defaultPrevented", {
|
|
||||||
get: function() {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
};
|
|
||||||
return e;
|
|
||||||
};
|
|
||||||
window.CustomEvent.prototype = window.Event.prototype;
|
|
||||||
}
|
|
||||||
if (document.readyState === "complete" || scope.flags.eager) {
|
if (document.readyState === "complete" || scope.flags.eager) {
|
||||||
bootstrap();
|
bootstrap();
|
||||||
} else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
|
} else if (document.readyState === "interactive" && !window.attachEvent && (!window.HTMLImports || window.HTMLImports.ready)) {
|
||||||
|
@ -7095,37 +7158,6 @@ window.CustomElements.addModule(function(scope) {
|
||||||
}
|
}
|
||||||
})(window.WebComponents);
|
})(window.WebComponents);
|
||||||
|
|
||||||
(function(scope) {
|
|
||||||
"use strict";
|
|
||||||
if (!window.performance) {
|
|
||||||
var start = Date.now();
|
|
||||||
window.performance = {
|
|
||||||
now: function() {
|
|
||||||
return Date.now() - start;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
||||||
if (!window.requestAnimationFrame) {
|
|
||||||
window.requestAnimationFrame = function() {
|
|
||||||
var nativeRaf = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame;
|
|
||||||
return nativeRaf ? function(callback) {
|
|
||||||
return nativeRaf(function() {
|
|
||||||
callback(performance.now());
|
|
||||||
});
|
|
||||||
} : function(callback) {
|
|
||||||
return window.setTimeout(callback, 1e3 / 60);
|
|
||||||
};
|
|
||||||
}();
|
|
||||||
}
|
|
||||||
if (!window.cancelAnimationFrame) {
|
|
||||||
window.cancelAnimationFrame = function() {
|
|
||||||
return window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || function(id) {
|
|
||||||
clearTimeout(id);
|
|
||||||
};
|
|
||||||
}();
|
|
||||||
}
|
|
||||||
})(window.WebComponents);
|
|
||||||
|
|
||||||
(function(scope) {
|
(function(scope) {
|
||||||
var style = document.createElement("style");
|
var style = document.createElement("style");
|
||||||
style.textContent = "" + "body {" + "transition: opacity ease-in 0.2s;" + " } \n" + "body[unresolved] {" + "opacity: 0; display: block; overflow: hidden; position: relative;" + " } \n";
|
style.textContent = "" + "body {" + "transition: opacity ease-in 0.2s;" + " } \n" + "body[unresolved] {" + "opacity: 0; display: block; overflow: hidden; position: relative;" + " } \n";
|
||||||
|
|
File diff suppressed because one or more lines are too long
77
dashboard-ui/cordova/android/iap.js
vendored
77
dashboard-ui/cordova/android/iap.js
vendored
|
@ -92,6 +92,80 @@
|
||||||
return deferred.promise();
|
return deferred.promise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isUnlockedOverride(feature) {
|
||||||
|
|
||||||
|
var deferred = DeferredBuilder.Deferred();
|
||||||
|
|
||||||
|
if (feature == 'playback') {
|
||||||
|
isPlaybackUnlockedViaOldApp(deferred);
|
||||||
|
} else if (feature == 'livetv') {
|
||||||
|
isLiveTvUnlockedViaOldApp(deferred);
|
||||||
|
} else {
|
||||||
|
deferred.resolveWith(null, [false]);
|
||||||
|
}
|
||||||
|
|
||||||
|
return deferred.promise();
|
||||||
|
}
|
||||||
|
|
||||||
|
function isPlaybackUnlockedViaOldApp(deferred) {
|
||||||
|
|
||||||
|
testDeviceId(ConnectionManager.deviceId()).done(function (isUnlocked) {
|
||||||
|
|
||||||
|
if (isUnlocked) {
|
||||||
|
deferred.resolveWith(null, [true]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
testDeviceId(device.uuid).done(function (isUnlocked) {
|
||||||
|
|
||||||
|
if (isUnlocked) {
|
||||||
|
deferred.resolveWith(null, [true]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
deferred.resolveWith(null, [false]);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function testDeviceId(deviceId) {
|
||||||
|
|
||||||
|
var deferred = DeferredBuilder.Deferred();
|
||||||
|
|
||||||
|
var cacheKey = 'oldapp-' + deviceId;
|
||||||
|
var cacheValue = appStorage.getItem(cacheKey);
|
||||||
|
if (cacheValue) {
|
||||||
|
|
||||||
|
deferred.resolveWith(null, [cacheValue == 'true']);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
HttpClient.send({
|
||||||
|
|
||||||
|
type: 'GET',
|
||||||
|
url: 'https://mb3admin.com/admin/service/statistics/appAccess?application=AndroidV1&deviceId=' + deviceId
|
||||||
|
|
||||||
|
}).done(function () {
|
||||||
|
|
||||||
|
appStorage.setItem(cacheKey, 'true');
|
||||||
|
deferred.resolveWith(null, [true]);
|
||||||
|
|
||||||
|
}).fail(function (e) {
|
||||||
|
|
||||||
|
if (e.status == 404) {
|
||||||
|
appStorage.setItem(cacheKey, 'false');
|
||||||
|
}
|
||||||
|
deferred.resolveWith(null, [false]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
return deferred.promise();
|
||||||
|
}
|
||||||
|
|
||||||
|
function isLiveTvUnlockedViaOldApp(deferred) {
|
||||||
|
|
||||||
|
isPlaybackUnlockedViaOldApp(deferred);
|
||||||
|
}
|
||||||
|
|
||||||
window.IapManager = {
|
window.IapManager = {
|
||||||
isPurchaseAvailable: isPurchaseAvailable,
|
isPurchaseAvailable: isPurchaseAvailable,
|
||||||
getProductInfo: getProduct,
|
getProductInfo: getProduct,
|
||||||
|
@ -99,7 +173,8 @@
|
||||||
beginPurchase: beginPurchase,
|
beginPurchase: beginPurchase,
|
||||||
onPurchaseComplete: onPurchaseComplete,
|
onPurchaseComplete: onPurchaseComplete,
|
||||||
getSubscriptionOptions: getSubscriptionOptions,
|
getSubscriptionOptions: getSubscriptionOptions,
|
||||||
onStoreReady: onStoreReady
|
onStoreReady: onStoreReady,
|
||||||
|
isUnlockedOverride: isUnlockedOverride
|
||||||
};
|
};
|
||||||
|
|
||||||
NativeIapManager.initStore();
|
NativeIapManager.initStore();
|
||||||
|
|
10
dashboard-ui/cordova/iap.js
vendored
10
dashboard-ui/cordova/iap.js
vendored
|
@ -267,12 +267,20 @@
|
||||||
return deferred.promise();
|
return deferred.promise();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isUnlockedOverride(feature) {
|
||||||
|
|
||||||
|
var deferred = DeferredBuilder.Deferred();
|
||||||
|
deferred.resolveWith(null, [false]);
|
||||||
|
return deferred.promise();
|
||||||
|
}
|
||||||
|
|
||||||
window.IapManager = {
|
window.IapManager = {
|
||||||
isPurchaseAvailable: isPurchaseAvailable,
|
isPurchaseAvailable: isPurchaseAvailable,
|
||||||
getProductInfo: getProduct,
|
getProductInfo: getProduct,
|
||||||
beginPurchase: beginPurchase,
|
beginPurchase: beginPurchase,
|
||||||
restorePurchase: restorePurchase,
|
restorePurchase: restorePurchase,
|
||||||
getSubscriptionOptions: getSubscriptionOptions
|
getSubscriptionOptions: getSubscriptionOptions,
|
||||||
|
isUnlockedOverride: isUnlockedOverride
|
||||||
};
|
};
|
||||||
|
|
||||||
initializeStore();
|
initializeStore();
|
||||||
|
|
8
dashboard-ui/cordova/registrationservices.js
vendored
8
dashboard-ui/cordova/registrationservices.js
vendored
|
@ -24,6 +24,13 @@
|
||||||
|
|
||||||
var prefix = $.browser.android ? 'android' : 'ios';
|
var prefix = $.browser.android ? 'android' : 'ios';
|
||||||
|
|
||||||
|
IapManager.isUnlockedOverride(feature).done(function (isUnlocked) {
|
||||||
|
|
||||||
|
if (isUnlocked) {
|
||||||
|
deferred.resolve();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Get supporter status
|
// Get supporter status
|
||||||
getRegistrationInfo(prefix + 'appunlock').done(function (registrationInfo) {
|
getRegistrationInfo(prefix + 'appunlock').done(function (registrationInfo) {
|
||||||
|
|
||||||
|
@ -51,6 +58,7 @@
|
||||||
}).fail(function () {
|
}).fail(function () {
|
||||||
deferred.reject();
|
deferred.reject();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function cancelInAppPurchase() {
|
function cancelInAppPurchase() {
|
||||||
|
|
|
@ -271,7 +271,7 @@
|
||||||
|
|
||||||
// Sometimes this fails
|
// Sometimes this fails
|
||||||
try {
|
try {
|
||||||
//hlsPlayer.destroy();
|
hlsPlayer.destroy();
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
Logger.log(err);
|
Logger.log(err);
|
||||||
|
@ -348,7 +348,7 @@
|
||||||
else {
|
else {
|
||||||
|
|
||||||
if (hlsPlayer) {
|
if (hlsPlayer) {
|
||||||
//hlsPlayer.destroy();
|
hlsPlayer.destroy();
|
||||||
hlsPlayer = null;
|
hlsPlayer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1259,7 +1259,7 @@
|
||||||
if (item.ImageTags.Primary) {
|
if (item.ImageTags.Primary) {
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
width: downloadWidth,
|
maxWidth: downloadWidth,
|
||||||
tag: item.ImageTags.Primary,
|
tag: item.ImageTags.Primary,
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
index: 0,
|
index: 0,
|
||||||
|
@ -1271,7 +1271,7 @@
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.AlbumId, {
|
imgUrl = ApiClient.getScaledImageUrl(item.AlbumId, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
width: downloadWidth,
|
maxWidth: downloadWidth,
|
||||||
tag: item.AlbumPrimaryImageTag,
|
tag: item.AlbumPrimaryImageTag,
|
||||||
minScale: minScale
|
minScale: minScale
|
||||||
});
|
});
|
||||||
|
@ -1281,7 +1281,7 @@
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.SeriesId, {
|
imgUrl = ApiClient.getScaledImageUrl(item.SeriesId, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
width: downloadWidth,
|
maxWidth: downloadWidth,
|
||||||
tag: item.SeriesPrimaryImageTag,
|
tag: item.SeriesPrimaryImageTag,
|
||||||
minScale: minScale
|
minScale: minScale
|
||||||
});
|
});
|
||||||
|
@ -1291,7 +1291,7 @@
|
||||||
|
|
||||||
imgUrl = ApiClient.getImageUrl(item.ParentPrimaryImageItemId, {
|
imgUrl = ApiClient.getImageUrl(item.ParentPrimaryImageItemId, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
width: downloadWidth,
|
maxWidth: downloadWidth,
|
||||||
tag: item.ParentPrimaryImageTag,
|
tag: item.ParentPrimaryImageTag,
|
||||||
minScale: minScale
|
minScale: minScale
|
||||||
});
|
});
|
||||||
|
@ -1773,6 +1773,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var showTitle = options.showTitle == 'auto' ? true : options.showTitle;
|
var showTitle = options.showTitle == 'auto' ? true : options.showTitle;
|
||||||
|
var coverImage = options.coverImage;
|
||||||
|
|
||||||
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
|
if (options.autoThumb && item.ImageTags && item.ImageTags.Primary && item.PrimaryImageAspectRatio && item.PrimaryImageAspectRatio >= 1.5) {
|
||||||
|
|
||||||
|
@ -1781,11 +1782,14 @@
|
||||||
|
|
||||||
imgUrl = ApiClient.getImageUrl(item.Id, {
|
imgUrl = ApiClient.getImageUrl(item.Id, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
height: height,
|
maxHeight: height,
|
||||||
width: width,
|
maxWidth: width,
|
||||||
tag: item.ImageTags.Primary,
|
tag: item.ImageTags.Primary,
|
||||||
enableImageEnhancers: enableImageEnhancers
|
enableImageEnhancers: enableImageEnhancers
|
||||||
});
|
});
|
||||||
|
if (height != null) {
|
||||||
|
coverImage = true;
|
||||||
|
}
|
||||||
|
|
||||||
} else if (options.autoThumb && item.ImageTags && item.ImageTags.Thumb) {
|
} else if (options.autoThumb && item.ImageTags && item.ImageTags.Thumb) {
|
||||||
|
|
||||||
|
@ -1858,18 +1862,20 @@
|
||||||
|
|
||||||
imgUrl = ApiClient.getImageUrl(item.Id, {
|
imgUrl = ApiClient.getImageUrl(item.Id, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
height: height,
|
maxHeight: height,
|
||||||
width: width,
|
maxWidth: width,
|
||||||
tag: item.ImageTags.Primary,
|
tag: item.ImageTags.Primary,
|
||||||
enableImageEnhancers: enableImageEnhancers
|
enableImageEnhancers: enableImageEnhancers
|
||||||
});
|
});
|
||||||
|
if (height != null) {
|
||||||
|
coverImage = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (item.ParentPrimaryImageTag) {
|
else if (item.ParentPrimaryImageTag) {
|
||||||
|
|
||||||
imgUrl = ApiClient.getImageUrl(item.ParentPrimaryImageItemId, {
|
imgUrl = ApiClient.getImageUrl(item.ParentPrimaryImageItemId, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
width: posterWidth,
|
maxWidth: posterWidth,
|
||||||
tag: item.ParentPrimaryImageTag,
|
tag: item.ParentPrimaryImageTag,
|
||||||
enableImageEnhancers: enableImageEnhancers
|
enableImageEnhancers: enableImageEnhancers
|
||||||
});
|
});
|
||||||
|
@ -1881,12 +1887,14 @@
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.AlbumId, {
|
imgUrl = ApiClient.getScaledImageUrl(item.AlbumId, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
height: height,
|
maxHeight: height,
|
||||||
width: width,
|
maxWidth: width,
|
||||||
tag: item.AlbumPrimaryImageTag,
|
tag: item.AlbumPrimaryImageTag,
|
||||||
enableImageEnhancers: enableImageEnhancers
|
enableImageEnhancers: enableImageEnhancers
|
||||||
});
|
});
|
||||||
|
if (width != null) {
|
||||||
|
coverImage = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (item.Type == 'Season' && item.ImageTags && item.ImageTags.Thumb) {
|
else if (item.Type == 'Season' && item.ImageTags && item.ImageTags.Thumb) {
|
||||||
|
|
||||||
|
@ -2005,7 +2013,7 @@
|
||||||
if (icon) {
|
if (icon) {
|
||||||
imageCssClass += " iconCardImage";
|
imageCssClass += " iconCardImage";
|
||||||
}
|
}
|
||||||
if (options.coverImage) {
|
if (coverImage) {
|
||||||
imageCssClass += " coveredCardImage";
|
imageCssClass += " coveredCardImage";
|
||||||
}
|
}
|
||||||
if (options.centerImage) {
|
if (options.centerImage) {
|
||||||
|
@ -3043,7 +3051,7 @@
|
||||||
|
|
||||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Thumb",
|
type: "Thumb",
|
||||||
height: imageHeight,
|
maxHeight: imageHeight,
|
||||||
tag: item.ImageTags.Thumb
|
tag: item.ImageTags.Thumb
|
||||||
});
|
});
|
||||||
shape = 'thumb';
|
shape = 'thumb';
|
||||||
|
@ -3052,7 +3060,7 @@
|
||||||
|
|
||||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
height: imageHeight,
|
maxHeight: imageHeight,
|
||||||
tag: item.ImageTags.Primary
|
tag: item.ImageTags.Primary
|
||||||
});
|
});
|
||||||
detectRatio = true;
|
detectRatio = true;
|
||||||
|
@ -3061,7 +3069,7 @@
|
||||||
|
|
||||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Backdrop",
|
type: "Backdrop",
|
||||||
height: imageHeight,
|
maxHeight: imageHeight,
|
||||||
tag: item.BackdropImageTags[0]
|
tag: item.BackdropImageTags[0]
|
||||||
});
|
});
|
||||||
shape = 'thumb';
|
shape = 'thumb';
|
||||||
|
@ -3070,7 +3078,7 @@
|
||||||
|
|
||||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Thumb",
|
type: "Thumb",
|
||||||
height: imageHeight,
|
maxHeight: imageHeight,
|
||||||
tag: item.ImageTags.Thumb
|
tag: item.ImageTags.Thumb
|
||||||
});
|
});
|
||||||
shape = 'thumb';
|
shape = 'thumb';
|
||||||
|
@ -3079,7 +3087,7 @@
|
||||||
|
|
||||||
url = ApiClient.getScaledImageUrl(item.Id, {
|
url = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Disc",
|
type: "Disc",
|
||||||
height: imageHeight,
|
maxHeight: imageHeight,
|
||||||
tag: item.ImageTags.Disc
|
tag: item.ImageTags.Disc
|
||||||
});
|
});
|
||||||
shape = 'square';
|
shape = 'square';
|
||||||
|
@ -3088,7 +3096,7 @@
|
||||||
|
|
||||||
url = ApiClient.getScaledImageUrl(item.AlbumId, {
|
url = ApiClient.getScaledImageUrl(item.AlbumId, {
|
||||||
type: "Primary",
|
type: "Primary",
|
||||||
height: imageHeight,
|
maxHeight: imageHeight,
|
||||||
tag: item.AlbumPrimaryImageTag
|
tag: item.AlbumPrimaryImageTag
|
||||||
});
|
});
|
||||||
shape = 'square';
|
shape = 'square';
|
||||||
|
|
|
@ -42,13 +42,12 @@
|
||||||
|
|
||||||
html += '<div style="margin-bottom:1em;">';
|
html += '<div style="margin-bottom:1em;">';
|
||||||
var logoHeight = isSmallItem || isMiniItem ? 20 : 26;
|
var logoHeight = isSmallItem || isMiniItem ? 20 : 26;
|
||||||
var maxLogoWidth = isPortrait ? 100 : 200;
|
|
||||||
var imgUrl;
|
var imgUrl;
|
||||||
|
|
||||||
if (parentName && item.ParentLogoItemId) {
|
if (parentName && item.ParentLogoItemId) {
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.ParentLogoItemId, {
|
imgUrl = ApiClient.getScaledImageUrl(item.ParentLogoItemId, {
|
||||||
height: logoHeight,
|
maxHeight: logoHeight,
|
||||||
type: 'logo',
|
type: 'logo',
|
||||||
tag: item.ParentLogoImageTag
|
tag: item.ParentLogoImageTag
|
||||||
});
|
});
|
||||||
|
@ -59,7 +58,7 @@
|
||||||
else if (item.ImageTags.Logo) {
|
else if (item.ImageTags.Logo) {
|
||||||
|
|
||||||
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
imgUrl = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
height: logoHeight,
|
maxHeight: logoHeight,
|
||||||
type: 'logo',
|
type: 'logo',
|
||||||
tag: item.ImageTags.Logo
|
tag: item.ImageTags.Logo
|
||||||
});
|
});
|
||||||
|
@ -769,7 +768,7 @@
|
||||||
logoUrl = ApiClient.getScaledImageUrl(item.Id, {
|
logoUrl = ApiClient.getScaledImageUrl(item.Id, {
|
||||||
type: "Logo",
|
type: "Logo",
|
||||||
index: 0,
|
index: 0,
|
||||||
height: logoHeight,
|
maxHeight: logoHeight,
|
||||||
tag: item.ImageTags.Logo
|
tag: item.ImageTags.Logo
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -2397,7 +2397,7 @@ var AppInfo = {};
|
||||||
cordova.getAppVersion.getVersionNumber(function (appVersion) {
|
cordova.getAppVersion.getVersionNumber(function (appVersion) {
|
||||||
var capablities = Dashboard.capabilities();
|
var capablities = Dashboard.capabilities();
|
||||||
|
|
||||||
var name = $.browser.android ? "Emby for Android" : ($.browser.safari ? "Emby for iOS" : "Emby Mobile");
|
var name = $.browser.android ? "Emby for Android Mobile" : ($.browser.safari ? "Emby for iOS" : "Emby Mobile");
|
||||||
|
|
||||||
// Remove special characters
|
// Remove special characters
|
||||||
var cleanDeviceName = device.model.replace(/[^\w\s]/gi, '');
|
var cleanDeviceName = device.model.replace(/[^\w\s]/gi, '');
|
||||||
|
|
|
@ -19541,6 +19541,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
:host {
|
:host {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(:focus) {
|
:host(:focus) {
|
||||||
|
@ -19556,9 +19557,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 18px;
|
width: 18px;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
cursor: pointer;
|
|
||||||
-webkit-transform: translateZ(0);
|
|
||||||
transform: translateZ(0);
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
background-color: var(--paper-checkbox-unchecked-background-color, transparent);
|
background-color: var(--paper-checkbox-unchecked-background-color, transparent);
|
||||||
}
|
}
|
||||||
|
@ -19917,6 +19915,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
:host {
|
:host {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(:focus) {
|
:host(:focus) {
|
||||||
|
@ -19928,7 +19927,6 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
cursor: pointer;
|
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue