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
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
44
dashboard-ui/bower_components/prism-element/.bower.json
vendored
Normal file
44
dashboard-ui/bower_components/prism-element/.bower.json
vendored
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
"name": "prism-element",
|
||||
"description": "Prism.js import and syntax highlighting",
|
||||
"version": "1.0.3",
|
||||
"authors": [
|
||||
"The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)"
|
||||
],
|
||||
"keywords": [
|
||||
"web-components",
|
||||
"polymer",
|
||||
"prism",
|
||||
"molecule"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/PolymerElements/prism-element.git"
|
||||
},
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"homepage": "https://github.com/PolymerElements/prism-highlighter",
|
||||
"main": "prism-highlighter.html",
|
||||
"ignore": [
|
||||
"/.*",
|
||||
"/test/",
|
||||
"/demo/"
|
||||
],
|
||||
"dependencies": {
|
||||
"prism": "*",
|
||||
"polymer": "Polymer/polymer#^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"paper-styles": "PolymerElements/paper-styles#^1.0.0"
|
||||
},
|
||||
"_release": "1.0.3",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.3",
|
||||
"commit": "9de59abd5a8081a253dca5a7066e7be95e34bfbc"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/prism-element.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/prism-element"
|
||||
}
|
72
dashboard-ui/bower_components/prism-element/CONTRIBUTING.md
vendored
Normal file
72
dashboard-ui/bower_components/prism-element/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!
|
35
dashboard-ui/bower_components/prism-element/bower.json
vendored
Normal file
35
dashboard-ui/bower_components/prism-element/bower.json
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
"name": "prism-element",
|
||||
"description": "Prism.js import and syntax highlighting",
|
||||
"version": "1.0.3",
|
||||
"authors": [
|
||||
"The Polymer Project Authors (https://polymer.github.io/AUTHORS.txt)"
|
||||
],
|
||||
"keywords": [
|
||||
"web-components",
|
||||
"polymer",
|
||||
"prism",
|
||||
"molecule"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/PolymerElements/prism-element.git"
|
||||
},
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"homepage": "https://github.com/PolymerElements/prism-highlighter",
|
||||
"main": "prism-highlighter.html",
|
||||
"ignore": [
|
||||
"/.*",
|
||||
"/test/",
|
||||
"/demo/"
|
||||
],
|
||||
"dependencies": {
|
||||
"prism": "*",
|
||||
"polymer": "Polymer/polymer#^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0",
|
||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||
"paper-styles": "PolymerElements/paper-styles#^1.0.0"
|
||||
}
|
||||
}
|
28
dashboard-ui/bower_components/prism-element/index.html
vendored
Normal file
28
dashboard-ui/bower_components/prism-element/index.html
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!doctype html>
|
||||
<!--
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
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
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>prism-element</title>
|
||||
|
||||
<script src="../webcomponentsjs/webcomponents-lite.js"></script>
|
||||
<link rel="import" href="../iron-component-page/iron-component-page.html">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<iron-component-page src="prism-highlighter.html"></iron-component-page>
|
||||
|
||||
</body>
|
||||
</html>
|
95
dashboard-ui/bower_components/prism-element/prism-highlighter.html
vendored
Normal file
95
dashboard-ui/bower_components/prism-element/prism-highlighter.html
vendored
Normal file
|
@ -0,0 +1,95 @@
|
|||
<!--
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
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
|
||||
-->
|
||||
|
||||
<link rel="import" href="../polymer/polymer.html">
|
||||
|
||||
<link rel="import" href="prism-import.html">
|
||||
|
||||
<!--
|
||||
Syntax highlighting via [Prism](http://prismjs.com/).
|
||||
|
||||
Place a `<prism-highlighter>` in your document, preferably as a direct child of
|
||||
`<body>`. It will listen for `syntax-highlight` events on its parent element,
|
||||
and annotate the code being provided via that event.
|
||||
|
||||
The `syntax-highlight` event's detail is expected to have a `code` property
|
||||
containing the source to highlight. The event detail can optionally contain a
|
||||
`lang` property, containing a string like `"html"`, `"js"`, etc.
|
||||
|
||||
This flow is supported by [`<marked-element>`](https://github.com/PolymerElements/marked-element).
|
||||
-->
|
||||
<script>
|
||||
(function() {
|
||||
|
||||
'use strict';
|
||||
|
||||
var HIGHLIGHT_EVENT = 'syntax-highlight';
|
||||
|
||||
Polymer({
|
||||
|
||||
is: 'prism-highlighter',
|
||||
|
||||
ready: function() {
|
||||
this._handler = this._highlight.bind(this);
|
||||
},
|
||||
|
||||
attached: function() {
|
||||
(this.parentElement || this.parentNode.host).addEventListener(HIGHLIGHT_EVENT, this._handler);
|
||||
},
|
||||
|
||||
detached: function() {
|
||||
(this.parentElement || this.parentNode.host).removeEventListener(HIGHLIGHT_EVENT, this._handler);
|
||||
},
|
||||
|
||||
/**
|
||||
* Handle the highlighting event, if we can.
|
||||
*
|
||||
* @param {!CustomEvent} event
|
||||
*/
|
||||
_highlight: function(event) {
|
||||
if (!event.detail || !event.detail.code) {
|
||||
console.warn('Malformed', HIGHLIGHT_EVENT, 'event:', event.detail);
|
||||
return;
|
||||
}
|
||||
|
||||
var detail = event.detail;
|
||||
detail.code = Prism.highlight(detail.code, this._detectLang(detail.code, detail.lang));
|
||||
},
|
||||
|
||||
/**
|
||||
* Picks a Prism formatter based on the `lang` hint and `code`.
|
||||
*
|
||||
* @param {string} code The source being highlighted.
|
||||
* @param {string=} lang A language hint (e.g. ````LANG`).
|
||||
* @return {!prism.Lang}
|
||||
*/
|
||||
_detectLang: function(code, lang) {
|
||||
if (!lang) {
|
||||
// Stupid simple detection if we have no lang, courtesy of:
|
||||
// https://github.com/robdodson/mark-down/blob/ac2eaa/mark-down.html#L93-101
|
||||
return code.match(/^\s*</) ? Prism.languages.markup : Prism.languages.javascript;
|
||||
}
|
||||
|
||||
if (lang === 'js' || lang.substr(0, 2) === 'es') {
|
||||
return Prism.languages.javascript;
|
||||
} else if (lang === 'css') {
|
||||
return Prism.languages.css;
|
||||
} else if (lang === 'c') {
|
||||
return Prism.languages.clike;
|
||||
} else {
|
||||
// The assumption is that you're mostly documenting HTML when in HTML.
|
||||
return Prism.languages.markup;
|
||||
}
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
})();
|
||||
</script>
|
11
dashboard-ui/bower_components/prism-element/prism-import.html
vendored
Normal file
11
dashboard-ui/bower_components/prism-element/prism-import.html
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!--
|
||||
@license
|
||||
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
||||
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
||||
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
||||
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
||||
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
|
||||
-->
|
||||
<script src="../prism/prism.js" data-manual></script>
|
||||
<link rel="stylesheet" href="../prism/themes/prism.css">
|
Loading…
Add table
Add a link
Reference in a new issue