mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
ee120181ee
commit
438755e048
24 changed files with 2465 additions and 185 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-progress",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "A material design progress bar",
|
||||
"authors": "The Polymer Authors",
|
||||
|
@ -22,18 +22,19 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
|
||||
"paper-button": "PolymerElements/paper-button#^1.0.0",
|
||||
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
|
||||
"web-component-tester": "*",
|
||||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/PolymerElements/paper-progress",
|
||||
"_release": "1.0.8",
|
||||
"_release": "1.0.9",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.8",
|
||||
"commit": "9d879787a55c95eedaa28cfd65813de4367bc858"
|
||||
"tag": "v1.0.9",
|
||||
"commit": "389e717d2e600bb44c6cb1537ee12b203b55fca1"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/paper-progress.git",
|
||||
"_target": "^1.0.0",
|
||||
|
|
|
@ -1,22 +1,25 @@
|
|||
language: node_js
|
||||
sudo: false
|
||||
before_script:
|
||||
- npm install web-component-tester
|
||||
- npm install bower
|
||||
- 'export PATH=$PWD/node_modules/.bin:$PATH'
|
||||
- npm install -g bower polylint web-component-tester
|
||||
- bower install
|
||||
- polylint
|
||||
env:
|
||||
global:
|
||||
- secure: fmp2kJysxTcVsouaQfEkPCJYPzbsuGCeq5RqvttDaYdue92n5912OR/WI476PPGpX2owvx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5wDAjZvJKCyZQHGy4tFWNPpyZ6SbwsnzH+bjqXSDURI6hCUNiujlIRzUT95H8rIega1mWT8sffvb4qK72iXAqf7hoQbi1Ldhjq/b0iO0PRdpjX5vusLN797KxPNrxDZc9LoaIgVMAFD5AJmwF/DilvwsW6sI4o5cpAw58/g1wpB7iX0YFWXNzXv/hZh2o4gW81Y2afM//gIgCFSitRO10bOqw+pEcGCnLrz/BQ=
|
||||
node_js: 4
|
||||
- CXX=g++-4.8
|
||||
node_js: stable
|
||||
addons:
|
||||
firefox: latest
|
||||
apt:
|
||||
sources:
|
||||
- google-chrome
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- google-chrome-stable
|
||||
- g++-4.8
|
||||
sauce_connect: true
|
||||
script:
|
||||
- xvfb-run wct
|
||||
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
|
||||
|
|
|
@ -5,6 +5,11 @@ 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 :)
|
||||
|
||||
You can however override the jsbin link with one that's customized to this
|
||||
specific element:
|
||||
|
||||
jsbin=https://jsbin.com/cagaye/edit?html,output
|
||||
-->
|
||||
# Polymer Elements
|
||||
## Guide for Contributors
|
||||
|
@ -41,7 +46,7 @@ Polymer Elements are built in the open, and the Polymer authors eagerly encourag
|
|||
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).
|
||||
2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output).
|
||||
|
||||
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
|
||||
|
||||
|
@ -51,14 +56,14 @@ Polymer Elements are built in the open, and the Polymer authors eagerly encourag
|
|||
|
||||
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:
|
||||
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax:
|
||||
|
||||
```markdown
|
||||
(For a single issue)
|
||||
Fixes #20
|
||||
|
||||
(For multiple issues)
|
||||
Fixes #32, #40
|
||||
Fixes #32, fixes #40
|
||||
```
|
||||
|
||||
2. **A succinct description of the design** used to fix any related issues. For example:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper-progress",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.9",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "A material design progress bar",
|
||||
"authors": "The Polymer Authors",
|
||||
|
@ -22,9 +22,10 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
|
||||
"paper-button": "PolymerElements/paper-button#^1.0.0",
|
||||
"test-fixture": "PolymerElements/test-fixture#^1.0.0",
|
||||
"web-component-tester": "*",
|
||||
"web-component-tester": "^4.0.0",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"ignore": []
|
||||
|
|
|
@ -18,72 +18,73 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
|
||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<link rel="import" href="../../paper-styles/color.html">
|
||||
<link rel="import" href="../../paper-styles/demo-pages.html">
|
||||
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
|
||||
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
|
||||
<link rel="import" href="../paper-progress.html">
|
||||
<link rel="import" href="../../paper-button/paper-button.html">
|
||||
|
||||
<style is="custom-style">
|
||||
body {
|
||||
padding: 40px;
|
||||
}
|
||||
|
||||
<style is="custom-style" include="demo-pages-shared-styles">
|
||||
paper-progress {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
paper-progress.blue {
|
||||
--paper-progress-active-color: var(--paper-light-blue-500);
|
||||
--paper-progress-secondary-color: var(--paper-light-blue-100);
|
||||
}
|
||||
|
||||
paper-progress.red {
|
||||
--paper-progress-active-color: var(--paper-red-500);
|
||||
--paper-progress-secondary-color: var(--paper-red-100);
|
||||
}
|
||||
|
||||
paper-progress.orange {
|
||||
--paper-progress-active-color: var(--paper-orange-500);
|
||||
--paper-progress-secondary-color: var(--paper-orange-100);
|
||||
}
|
||||
|
||||
paper-progress.green {
|
||||
--paper-progress-active-color: var(--paper-light-green-500);
|
||||
--paper-progress-secondary-color: var(--paper-light-green-100);
|
||||
paper-button {
|
||||
display: inline-block;
|
||||
padding: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body unresolved>
|
||||
<div class="vertical-section-container">
|
||||
<h4>Progress bar</h4>
|
||||
<div class="vertical-section">
|
||||
<paper-progress></paper-progress>
|
||||
<paper-button raised onclick="startProgress();">Start</paper-button>
|
||||
</div>
|
||||
<div class="vertical-section-container centered">
|
||||
<h3>paper-progress can be imperatively controlled</h3>
|
||||
<demo-snippet class="centered-demo">
|
||||
<template>
|
||||
<p>Once started, loops 5 times before stopping.
|
||||
<!-- View the source code to see the contents of startProgress() -->
|
||||
<paper-button raised onclick="startProgress();" id="start">Start</paper-button>
|
||||
</p>
|
||||
<paper-progress id="progress"></paper-progress>
|
||||
</template>
|
||||
</demo-snippet>
|
||||
|
||||
<h4>Indeterminate</h4>
|
||||
<div class="vertical-section">
|
||||
<paper-progress indeterminate></paper-progress><br>
|
||||
<paper-progress class="blue" indeterminate value="800" min="100" max="1000"></paper-progress><br>
|
||||
</div>
|
||||
<h3>paper-progress can be indeterminate</h3>
|
||||
<demo-snippet class="centered-demo">
|
||||
<template>
|
||||
<paper-progress indeterminate></paper-progress>
|
||||
<paper-progress indeterminate value="800" min="100" max="1000"></paper-progress>
|
||||
</template>
|
||||
</demo-snippet>
|
||||
|
||||
<h4>Color</h4>
|
||||
<div class="vertical-section">
|
||||
<paper-progress value="40" class="blue"></paper-progress><br>
|
||||
<paper-progress value="800" min="100" max="1000" class="red"></paper-progress><br>
|
||||
<paper-progress value="40" class="orange"></paper-progress><br>
|
||||
<paper-progress value="200" max="200" class="green"></paper-progress><br>
|
||||
<paper-progress value="40" secondary-progress="80" class="blue"></paper-progress><br>
|
||||
</div>
|
||||
<h3>It can be styled using custom properties</h3>
|
||||
<demo-snippet class="centered-demo">
|
||||
<template>
|
||||
<style is="custom-style">
|
||||
paper-progress.blue {
|
||||
--paper-progress-active-color: var(--paper-light-blue-500);
|
||||
--paper-progress-secondary-color: var(--paper-light-blue-100);
|
||||
}
|
||||
|
||||
paper-progress.red {
|
||||
--paper-progress-active-color: var(--paper-red-500);
|
||||
--paper-progress-secondary-color: var(--paper-red-100);
|
||||
}
|
||||
|
||||
paper-progress.green {
|
||||
--paper-progress-active-color: var(--paper-light-green-500);
|
||||
--paper-progress-secondary-color: var(--paper-light-green-100);
|
||||
}
|
||||
</style>
|
||||
<paper-progress value="800" min="100" max="1000" class="red"></paper-progress>
|
||||
<paper-progress value="60" class="green"></paper-progress>
|
||||
<paper-progress value="40" secondary-progress="80" class="blue"></paper-progress>
|
||||
</template>
|
||||
</demo-snippet>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
var progress = document.querySelector('paper-progress');
|
||||
var button = document.querySelector('paper-button');
|
||||
|
||||
var progress, button, animationFrame;
|
||||
var repeat, maxRepeat = 5, animating = false;
|
||||
|
||||
function nextProgress() {
|
||||
|
@ -98,8 +99,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
}
|
||||
progress.value = progress.min;
|
||||
}
|
||||
|
||||
requestAnimationFrame(nextProgress);
|
||||
var animationFrame = requestAnimationFrame(nextProgress);
|
||||
}
|
||||
|
||||
function startProgress() {
|
||||
|
@ -112,7 +112,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
}
|
||||
|
||||
window.addEventListener('WebComponentsReady', function() {
|
||||
startProgress();
|
||||
progress = document.querySelector('paper-progress');
|
||||
button = document.querySelector('paper-button');
|
||||
});
|
||||
|
||||
</script>
|
||||
|
|
|
@ -108,7 +108,7 @@ Custom property | Description
|
|||
|
||||
#progressContainer,
|
||||
.indeterminate::after {
|
||||
background-color: var(--paper-progress-container-color, --google-grey-300);
|
||||
background: var(--paper-progress-container-color, --google-grey-300);
|
||||
}
|
||||
|
||||
:host(.transiting) #primaryProgress,
|
||||
|
@ -140,20 +140,19 @@ Custom property | Description
|
|||
}
|
||||
|
||||
#primaryProgress {
|
||||
background-color: var(--paper-progress-active-color, --google-green-500);
|
||||
background: var(--paper-progress-active-color, --google-green-500);
|
||||
}
|
||||
|
||||
#secondaryProgress {
|
||||
position: relative;
|
||||
background-color: var(--paper-progress-secondary-color, --google-green-100);
|
||||
background: var(--paper-progress-secondary-color, --google-green-100);
|
||||
}
|
||||
|
||||
:host([disabled]) #primaryProgress {
|
||||
background-color: var(--paper-progress-disabled-active-color, --google-grey-500);
|
||||
background: var(--paper-progress-disabled-active-color, --google-grey-500);
|
||||
}
|
||||
|
||||
:host([disabled]) #secondaryProgress {
|
||||
background-color: var(--paper-progress-disabled-secondary-color, --google-grey-300);
|
||||
background: var(--paper-progress-disabled-secondary-color, --google-grey-300);
|
||||
}
|
||||
|
||||
:host(:not([disabled])) #primaryProgress.indeterminate {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue