1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update polymer

This commit is contained in:
Luke Pulverenti 2015-10-29 19:24:14 -04:00
parent 15b68f5f4b
commit 2ffd85b8d0
14 changed files with 150 additions and 36 deletions

View file

@ -1,6 +1,6 @@
{
"name": "paper-item",
"version": "1.0.5",
"version": "1.0.6",
"description": "A material-design styled list item",
"authors": [
"The Polymer Authors"
@ -39,11 +39,11 @@
"web-component-tester": "Polymer/web-component-tester#^3.3.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
},
"_release": "1.0.5",
"_release": "1.0.6",
"_resolution": {
"type": "version",
"tag": "v1.0.5",
"commit": "a292fb913d0e9f1e7b9bb46d2af60dc8c7a05dc3"
"tag": "v1.0.6",
"commit": "803078d9942d1279fb6f4142b7522186d57f17c8"
},
"_source": "git://github.com/PolymerElements/paper-item.git",
"_target": "~1.0.2",

View 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: NCk3KK+wbaXMzp8XAY6FeL+TSdI0AlPI3/tl0OpsUIaU2EiCjQuzf/UpyzCW5XZMEVFF4q/eDjrPkqJodHfpngj36mpkfmfqj9DrgDmYsV9BDvsTd8KmLsA6H8D6p7Qer+r1JMMB8PvX44vdhQ6GhZD1HFNYK1Ekpt0TkYwWKNw=
- secure: TGgUEQe6FJS+GuYk94d//8YQmDLUu0ekMvPSIs8TQ2QkdBK4SL+2bSXZt44BbDEOwc9P4NCPSUx/RMiCAqsc5OGRJImzb/zqPNIDTeKG6q72HPBBBD3Sk0CrEpTQbOK/Flaa/B7RYR0U1kuljSmRS7lPG19nnY8gOHnIAgwIyk0=

View 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 users 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 dont be afraid to ask us if you need help with that!

View file

@ -1,6 +1,6 @@
{
"name": "paper-item",
"version": "1.0.5",
"version": "1.0.6",
"description": "A material-design styled list item",
"authors": [
"The Polymer Authors"

View file

@ -78,7 +78,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div class="layout wrap inline center-center">
<div>
<h4>Single line items</h4>
<div class="list short" role="list">
<div class="list short" role="listbox">
<paper-item>Inbox</paper-item>
<paper-item>Starred</paper-item>
<paper-item>Sent mail</paper-item>
@ -88,7 +88,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Icon with text</h4>
<div class="list short" role="list">
<div class="list short" role="listbox">
<paper-icon-item>
<iron-icon icon="inbox" item-icon></iron-icon> Inbox
</paper-icon-item>
@ -106,7 +106,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Avatar with text</h4>
<div class="list short" role="list">
<div class="list short" role="listbox">
<paper-icon-item>
<div class="avatar blue" item-icon></div> Alphonso Engelking
</paper-icon-item>
@ -124,7 +124,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Avatar with text and icon</h4>
<div class="list short" role="list">
<div class="list short" role="listbox">
<paper-icon-item>
<div class="avatar red" item-icon></div>
<div class="flex">Alphonso</div>
@ -150,7 +150,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Avatar with text and control</h4>
<div class="list short" role="list">
<div class="list short" role="listbox">
<paper-icon-item>
<div class="avatar orange" item-icon></div>
<div class="flex">Alphonso</div>
@ -176,7 +176,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Control with text and icon</h4>
<div class="list short" role="list">
<div class="list short" role="listbox">
<paper-icon-item>
<paper-checkbox item-icon></paper-checkbox>
<div class="flex">Alphonso</div>
@ -202,7 +202,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Two-line items</h4>
<div class="list" role="list">
<div class="list" role="listbox">
<paper-item>
<paper-item-body two-line class="layout vertical">
<div>Profile Photo</div>
@ -226,7 +226,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Icon with two-line text</h4>
<div class="list" role="list">
<div class="list" role="listbox">
<paper-icon-item>
<div class="avatar green" item-icon></div>
<paper-item-body two-line>
@ -254,7 +254,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<div>
<h4>Avatar with text and icon</h4>
<div class="list" role="list">
<div class="list" role="listbox">
<paper-icon-item>
<div class="avatar blue" item-icon></div>
<paper-item-body two-line>

View file

@ -75,7 +75,7 @@ Custom property | Description |
is: 'paper-icon-item',
hostAttributes: {
'role': 'listitem',
'role': 'option',
'tabindex': '0'
},

View file

@ -86,7 +86,7 @@ This element has `role="listitem"` by default. Depending on usage, it may be mor
is: 'paper-item',
hostAttributes: {
role: 'listitem',
role: 'option',
tabindex: '0'
},

View file

@ -31,7 +31,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<test-fixture id="item">
<template>
<div role="list">
<div role="listbox">
<paper-item>item</paper-item>
</div>
</template>
@ -39,7 +39,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
<test-fixture id="iconItem">
<template>
<div role="list">
<div role="listbox">
<paper-icon-item>item</paper-icon-item>
</div>
</template>
@ -56,11 +56,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
});
test('item has role="listitem"', function() {
assert.equal(item.getAttribute('role'), 'listitem', 'has role="item"');
assert.equal(item.getAttribute('role'), 'option', 'has role="option"');
});
test('icon item has role="listitem"', function() {
assert.equal(iconItem.getAttribute('role'), 'listitem', 'has role="item"');
assert.equal(iconItem.getAttribute('role'), 'option', 'has role="option"');
});
a11ySuite('item');