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
|
@ -32,14 +32,14 @@
|
||||||
"web-component-tester": "^4.0.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.8",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.8",
|
||||||
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-icon"
|
"_originalSource": "PolymerElements/iron-icon"
|
||||||
}
|
}
|
|
@ -12,12 +12,12 @@
|
||||||
"library"
|
"library"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/jquery/jquery-dist",
|
"homepage": "https://github.com/jquery/jquery-dist",
|
||||||
"version": "2.2.1",
|
"version": "2.2.2",
|
||||||
"_release": "2.2.1",
|
"_release": "2.2.2",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "2.2.1",
|
"tag": "2.2.2",
|
||||||
"commit": "788eaba2f83e7b7445c7a83a50c81c0704423874"
|
"commit": "086d381cd2f3b4b8b0af85ecb2c9593a61e5b4bd"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/jquery/jquery-dist.git",
|
"_source": "git://github.com/jquery/jquery-dist.git",
|
||||||
"_target": ">=1.9.1",
|
"_target": ">=1.9.1",
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*!
|
/*!
|
||||||
* jQuery JavaScript Library v2.2.1
|
* jQuery JavaScript Library v2.2.2
|
||||||
* http://jquery.com/
|
* http://jquery.com/
|
||||||
*
|
*
|
||||||
* Includes Sizzle.js
|
* Includes Sizzle.js
|
||||||
|
@ -9,7 +9,7 @@
|
||||||
* Released under the MIT license
|
* Released under the MIT license
|
||||||
* http://jquery.org/license
|
* http://jquery.org/license
|
||||||
*
|
*
|
||||||
* Date: 2016-02-22T19:11Z
|
* Date: 2016-03-17T17:51Z
|
||||||
*/
|
*/
|
||||||
|
|
||||||
(function( global, factory ) {
|
(function( global, factory ) {
|
||||||
|
@ -65,7 +65,7 @@ var support = {};
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
version = "2.2.1",
|
version = "2.2.2",
|
||||||
|
|
||||||
// Define a local copy of jQuery
|
// Define a local copy of jQuery
|
||||||
jQuery = function( selector, context ) {
|
jQuery = function( selector, context ) {
|
||||||
|
@ -276,6 +276,7 @@ jQuery.extend( {
|
||||||
},
|
},
|
||||||
|
|
||||||
isPlainObject: function( obj ) {
|
isPlainObject: function( obj ) {
|
||||||
|
var key;
|
||||||
|
|
||||||
// Not plain objects:
|
// Not plain objects:
|
||||||
// - Any object or value whose internal [[Class]] property is not "[object Object]"
|
// - Any object or value whose internal [[Class]] property is not "[object Object]"
|
||||||
|
@ -285,14 +286,18 @@ jQuery.extend( {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Not own constructor property must be Object
|
||||||
if ( obj.constructor &&
|
if ( obj.constructor &&
|
||||||
!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
|
!hasOwn.call( obj, "constructor" ) &&
|
||||||
|
!hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the function hasn't returned already, we're confident that
|
// Own properties are enumerated firstly, so to speed up,
|
||||||
// |obj| is a plain object, created by {} or constructed with new Object
|
// if last one is own, then all properties are own
|
||||||
return true;
|
for ( key in obj ) {}
|
||||||
|
|
||||||
|
return key === undefined || hasOwn.call( obj, key );
|
||||||
},
|
},
|
||||||
|
|
||||||
isEmptyObject: function( obj ) {
|
isEmptyObject: function( obj ) {
|
||||||
|
@ -7325,6 +7330,12 @@ jQuery.extend( {
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// Support: IE <=11 only
|
||||||
|
// Accessing the selectedIndex property
|
||||||
|
// forces the browser to respect setting selected
|
||||||
|
// on the option
|
||||||
|
// The getter ensures a default option is selected
|
||||||
|
// when in an optgroup
|
||||||
if ( !support.optSelected ) {
|
if ( !support.optSelected ) {
|
||||||
jQuery.propHooks.selected = {
|
jQuery.propHooks.selected = {
|
||||||
get: function( elem ) {
|
get: function( elem ) {
|
||||||
|
@ -7333,6 +7344,16 @@ if ( !support.optSelected ) {
|
||||||
parent.parentNode.selectedIndex;
|
parent.parentNode.selectedIndex;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
},
|
||||||
|
set: function( elem ) {
|
||||||
|
var parent = elem.parentNode;
|
||||||
|
if ( parent ) {
|
||||||
|
parent.selectedIndex;
|
||||||
|
|
||||||
|
if ( parent.parentNode ) {
|
||||||
|
parent.parentNode.selectedIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -7527,7 +7548,8 @@ jQuery.fn.extend( {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
var rreturn = /\r/g;
|
var rreturn = /\r/g,
|
||||||
|
rspaces = /[\x20\t\r\n\f]+/g;
|
||||||
|
|
||||||
jQuery.fn.extend( {
|
jQuery.fn.extend( {
|
||||||
val: function( value ) {
|
val: function( value ) {
|
||||||
|
@ -7603,9 +7625,15 @@ jQuery.extend( {
|
||||||
option: {
|
option: {
|
||||||
get: function( elem ) {
|
get: function( elem ) {
|
||||||
|
|
||||||
// Support: IE<11
|
var val = jQuery.find.attr( elem, "value" );
|
||||||
// option.value not trimmed (#14858)
|
return val != null ?
|
||||||
return jQuery.trim( elem.value );
|
val :
|
||||||
|
|
||||||
|
// Support: IE10-11+
|
||||||
|
// option.text throws exceptions (#14686, #14858)
|
||||||
|
// Strip and collapse whitespace
|
||||||
|
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
|
||||||
|
jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
|
@ -9353,18 +9381,6 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Support: Safari 8+
|
|
||||||
// In Safari 8 documents created via document.implementation.createHTMLDocument
|
|
||||||
// collapse sibling forms: the second one becomes a child of the first one.
|
|
||||||
// Because of that, this security measure has to be disabled in Safari 8.
|
|
||||||
// https://bugs.webkit.org/show_bug.cgi?id=137337
|
|
||||||
support.createHTMLDocument = ( function() {
|
|
||||||
var body = document.implementation.createHTMLDocument( "" ).body;
|
|
||||||
body.innerHTML = "<form></form><form></form>";
|
|
||||||
return body.childNodes.length === 2;
|
|
||||||
} )();
|
|
||||||
|
|
||||||
|
|
||||||
// Argument "data" should be string of html
|
// Argument "data" should be string of html
|
||||||
// context (optional): If specified, the fragment will be created in this context,
|
// context (optional): If specified, the fragment will be created in this context,
|
||||||
// defaults to document
|
// defaults to document
|
||||||
|
@ -9377,12 +9393,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
|
||||||
keepScripts = context;
|
keepScripts = context;
|
||||||
context = false;
|
context = false;
|
||||||
}
|
}
|
||||||
|
context = context || document;
|
||||||
// Stop scripts or inline event handlers from being executed immediately
|
|
||||||
// by using document.implementation
|
|
||||||
context = context || ( support.createHTMLDocument ?
|
|
||||||
document.implementation.createHTMLDocument( "" ) :
|
|
||||||
document );
|
|
||||||
|
|
||||||
var parsed = rsingleTag.exec( data ),
|
var parsed = rsingleTag.exec( data ),
|
||||||
scripts = !keepScripts && [];
|
scripts = !keepScripts && [];
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
36
dashboard-ui/bower_components/jquery/sizzle/LICENSE.txt
vendored
Normal file
36
dashboard-ui/bower_components/jquery/sizzle/LICENSE.txt
vendored
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
Copyright jQuery Foundation and other contributors, https://jquery.org/
|
||||||
|
|
||||||
|
This software consists of voluntary contributions made by many
|
||||||
|
individuals. For exact contribution history, see the revision history
|
||||||
|
available at https://github.com/jquery/sizzle
|
||||||
|
|
||||||
|
The following license applies to all parts of this software except as
|
||||||
|
documented below:
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
All files located in the node_modules and external directories are
|
||||||
|
externally maintained libraries used by this software which have their
|
||||||
|
own licenses; we recommend you read them, as their terms may differ from
|
||||||
|
the terms above.
|
2143
dashboard-ui/bower_components/jquery/sizzle/dist/sizzle.js
vendored
Normal file
2143
dashboard-ui/bower_components/jquery/sizzle/dist/sizzle.js
vendored
Normal file
File diff suppressed because it is too large
Load diff
3
dashboard-ui/bower_components/jquery/sizzle/dist/sizzle.min.js
vendored
Normal file
3
dashboard-ui/bower_components/jquery/sizzle/dist/sizzle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dashboard-ui/bower_components/jquery/sizzle/dist/sizzle.min.map
vendored
Normal file
1
dashboard-ui/bower_components/jquery/sizzle/dist/sizzle.min.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -79,6 +79,12 @@ jQuery.extend( {
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
||||||
|
// Support: IE <=11 only
|
||||||
|
// Accessing the selectedIndex property
|
||||||
|
// forces the browser to respect setting selected
|
||||||
|
// on the option
|
||||||
|
// The getter ensures a default option is selected
|
||||||
|
// when in an optgroup
|
||||||
if ( !support.optSelected ) {
|
if ( !support.optSelected ) {
|
||||||
jQuery.propHooks.selected = {
|
jQuery.propHooks.selected = {
|
||||||
get: function( elem ) {
|
get: function( elem ) {
|
||||||
|
@ -87,6 +93,16 @@ if ( !support.optSelected ) {
|
||||||
parent.parentNode.selectedIndex;
|
parent.parentNode.selectedIndex;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
|
},
|
||||||
|
set: function( elem ) {
|
||||||
|
var parent = elem.parentNode;
|
||||||
|
if ( parent ) {
|
||||||
|
parent.selectedIndex;
|
||||||
|
|
||||||
|
if ( parent.parentNode ) {
|
||||||
|
parent.parentNode.selectedIndex;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,8 @@ define( [
|
||||||
"../core/init"
|
"../core/init"
|
||||||
], function( jQuery, support ) {
|
], function( jQuery, support ) {
|
||||||
|
|
||||||
var rreturn = /\r/g;
|
var rreturn = /\r/g,
|
||||||
|
rspaces = /[\x20\t\r\n\f]+/g;
|
||||||
|
|
||||||
jQuery.fn.extend( {
|
jQuery.fn.extend( {
|
||||||
val: function( value ) {
|
val: function( value ) {
|
||||||
|
@ -80,9 +81,15 @@ jQuery.extend( {
|
||||||
option: {
|
option: {
|
||||||
get: function( elem ) {
|
get: function( elem ) {
|
||||||
|
|
||||||
// Support: IE<11
|
var val = jQuery.find.attr( elem, "value" );
|
||||||
// option.value not trimmed (#14858)
|
return val != null ?
|
||||||
return jQuery.trim( elem.value );
|
val :
|
||||||
|
|
||||||
|
// Support: IE10-11+
|
||||||
|
// option.text throws exceptions (#14686, #14858)
|
||||||
|
// Strip and collapse whitespace
|
||||||
|
// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
|
||||||
|
jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
|
|
13
dashboard-ui/bower_components/jquery/src/core.js
vendored
13
dashboard-ui/bower_components/jquery/src/core.js
vendored
|
@ -223,6 +223,7 @@ jQuery.extend( {
|
||||||
},
|
},
|
||||||
|
|
||||||
isPlainObject: function( obj ) {
|
isPlainObject: function( obj ) {
|
||||||
|
var key;
|
||||||
|
|
||||||
// Not plain objects:
|
// Not plain objects:
|
||||||
// - Any object or value whose internal [[Class]] property is not "[object Object]"
|
// - Any object or value whose internal [[Class]] property is not "[object Object]"
|
||||||
|
@ -232,14 +233,18 @@ jQuery.extend( {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Not own constructor property must be Object
|
||||||
if ( obj.constructor &&
|
if ( obj.constructor &&
|
||||||
!hasOwn.call( obj.constructor.prototype, "isPrototypeOf" ) ) {
|
!hasOwn.call( obj, "constructor" ) &&
|
||||||
|
!hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the function hasn't returned already, we're confident that
|
// Own properties are enumerated firstly, so to speed up,
|
||||||
// |obj| is a plain object, created by {} or constructed with new Object
|
// if last one is own, then all properties are own
|
||||||
return true;
|
for ( key in obj ) {}
|
||||||
|
|
||||||
|
return key === undefined || hasOwn.call( obj, key );
|
||||||
},
|
},
|
||||||
|
|
||||||
isEmptyObject: function( obj ) {
|
isEmptyObject: function( obj ) {
|
||||||
|
|
|
@ -2,11 +2,8 @@ define( [
|
||||||
"../core",
|
"../core",
|
||||||
"../var/document",
|
"../var/document",
|
||||||
"./var/rsingleTag",
|
"./var/rsingleTag",
|
||||||
"../manipulation/buildFragment",
|
"../manipulation/buildFragment"
|
||||||
|
], function( jQuery, document, rsingleTag, buildFragment ) {
|
||||||
// This is the only module that needs core/support
|
|
||||||
"./support"
|
|
||||||
], function( jQuery, document, rsingleTag, buildFragment, support ) {
|
|
||||||
|
|
||||||
// Argument "data" should be string of html
|
// Argument "data" should be string of html
|
||||||
// context (optional): If specified, the fragment will be created in this context,
|
// context (optional): If specified, the fragment will be created in this context,
|
||||||
|
@ -20,12 +17,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) {
|
||||||
keepScripts = context;
|
keepScripts = context;
|
||||||
context = false;
|
context = false;
|
||||||
}
|
}
|
||||||
|
context = context || document;
|
||||||
// Stop scripts or inline event handlers from being executed immediately
|
|
||||||
// by using document.implementation
|
|
||||||
context = context || ( support.createHTMLDocument ?
|
|
||||||
document.implementation.createHTMLDocument( "" ) :
|
|
||||||
document );
|
|
||||||
|
|
||||||
var parsed = rsingleTag.exec( data ),
|
var parsed = rsingleTag.exec( data ),
|
||||||
scripts = !keepScripts && [];
|
scripts = !keepScripts && [];
|
||||||
|
|
|
@ -33,6 +33,6 @@
|
||||||
"commit": "95a2cd49c679d9825930d72de7e6fdd155e9150f"
|
"commit": "95a2cd49c679d9825930d72de7e6fdd155e9150f"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/google/material-design-lite.git",
|
"_source": "git://github.com/google/material-design-lite.git",
|
||||||
"_target": "~1.1.2",
|
"_target": "^1.1.2",
|
||||||
"_originalSource": "material-design-lite"
|
"_originalSource": "material-design-lite"
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-progress",
|
"name": "paper-progress",
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"license": "http://polymer.github.io/LICENSE.txt",
|
"license": "http://polymer.github.io/LICENSE.txt",
|
||||||
"description": "A material design progress bar",
|
"description": "A material design progress bar",
|
||||||
"authors": "The Polymer Authors",
|
"authors": "The Polymer Authors",
|
||||||
|
@ -22,18 +22,19 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
"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",
|
"paper-button": "PolymerElements/paper-button#^1.0.0",
|
||||||
"test-fixture": "PolymerElements/test-fixture#^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"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/PolymerElements/paper-progress",
|
"homepage": "https://github.com/PolymerElements/paper-progress",
|
||||||
"_release": "1.0.8",
|
"_release": "1.0.9",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.8",
|
"tag": "v1.0.9",
|
||||||
"commit": "9d879787a55c95eedaa28cfd65813de4367bc858"
|
"commit": "389e717d2e600bb44c6cb1537ee12b203b55fca1"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-progress.git",
|
"_source": "git://github.com/PolymerElements/paper-progress.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
|
|
|
@ -1,22 +1,25 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
sudo: false
|
sudo: false
|
||||||
before_script:
|
before_script:
|
||||||
- npm install web-component-tester
|
- npm install -g bower polylint web-component-tester
|
||||||
- npm install bower
|
|
||||||
- 'export PATH=$PWD/node_modules/.bin:$PATH'
|
|
||||||
- bower install
|
- bower install
|
||||||
|
- polylint
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: fmp2kJysxTcVsouaQfEkPCJYPzbsuGCeq5RqvttDaYdue92n5912OR/WI476PPGpX2owvxq97saVX9CqXweVtgrmdhONsrGy31eULpW0vUonuhbjkKU87E0aAmHu478uuJnc4hU7oN7wuNEtqWmpFG+oqMqHKwUyAWLk+V4XY0nseuFYQLX52qfglD+CqipQsoe84nIM0JxQxpDw1njYZbKQzZVttyLQVv13Ahh+5v75EqqwggoD2mgU1xQIH1GarbnZpmE9BL4ETbaJwJ7Fon/Pxsrs1Zs9hEStJCwo5aTiyPJibRQBCk9Cj+PJY3TkqfE3zIwhbW1/aSCIuUg5egsh6Of6clqrDE2wWPyIURUBFcE3UXsqBEXh56K9WQh+KNIgJYoQ/tzhD2VlgQhM89geTKZc6ysSTWcukv9tw9h9gaG2gD1e+uRQ/rMyt6vlh2DNI/J8oAv1WifZwuUKRkwm7SUBP55sukFryJIQEXEMqjT0WVbjTWP+2VNiHFPo7wGdVZ8X7y4bwA7lmnlC4AnNd8L6BE0tStZUBAKv3LhzRvd+DrRvaiSPdFhGBbAiMzytKGgxfD7nhMntV7GREjfQCB/hch5anePK7Cuw58kF8PiZX9aVk8Se3VP0+rdUkzVgWTW5THhdpw2nnuIyK5QDtL4/L3l/oJhl9Jbmak4=
|
- secure: fmp2kJysxTcVsouaQfEkPCJYPzbsuGCeq5RqvttDaYdue92n5912OR/WI476PPGpX2owvxq97saVX9CqXweVtgrmdhONsrGy31eULpW0vUonuhbjkKU87E0aAmHu478uuJnc4hU7oN7wuNEtqWmpFG+oqMqHKwUyAWLk+V4XY0nseuFYQLX52qfglD+CqipQsoe84nIM0JxQxpDw1njYZbKQzZVttyLQVv13Ahh+5v75EqqwggoD2mgU1xQIH1GarbnZpmE9BL4ETbaJwJ7Fon/Pxsrs1Zs9hEStJCwo5aTiyPJibRQBCk9Cj+PJY3TkqfE3zIwhbW1/aSCIuUg5egsh6Of6clqrDE2wWPyIURUBFcE3UXsqBEXh56K9WQh+KNIgJYoQ/tzhD2VlgQhM89geTKZc6ysSTWcukv9tw9h9gaG2gD1e+uRQ/rMyt6vlh2DNI/J8oAv1WifZwuUKRkwm7SUBP55sukFryJIQEXEMqjT0WVbjTWP+2VNiHFPo7wGdVZ8X7y4bwA7lmnlC4AnNd8L6BE0tStZUBAKv3LhzRvd+DrRvaiSPdFhGBbAiMzytKGgxfD7nhMntV7GREjfQCB/hch5anePK7Cuw58kF8PiZX9aVk8Se3VP0+rdUkzVgWTW5THhdpw2nnuIyK5QDtL4/L3l/oJhl9Jbmak4=
|
||||||
- secure: WzzECDnm17AwL4VDbMJD0E1cdi11p2YLahJRPi/+GZ9BFNIV3I2WZFc5l0WEiGDMB4igx5DdXHzDFk7HF2z2qRpf2skhWDTd/Ie5+exZlY9/D/tED8dJepGtV40UTuWr+vHsDJeNkXteYNpNU7ZHfNbXl14/x25ccaLYSX5yRNLBRMn9KToRNBhXA0YH/Q9AnWNKGFWb0YBfjSRywSvVuVRQr/tL43JUCTEEwjdGHVTUlvWPE5XHDs6yqjJlTI70GVvQb5WPZdQJugiolG9Z66ZRWEEuawJgzTCdlaKwBQX0UAXLdfUsQKwrcxvLnDibMHVG6hNOBw4Un73YL0klD7nKoPlhCiDHtPWoNUCvpNGxPWozw2KC50YX4MZSFKAWCkIA4/oiIhMvSUOWcrOpfHZNpJNNBCFHvv6JS5PwEiNlqM2BjqfS4Vy/03Fy0h6CyNX8o5wDAjZvJKCyZQHGy4tFWNPpyZ6SbwsnzH+bjqXSDURI6hCUNiujlIRzUT95H8rIega1mWT8sffvb4qK72iXAqf7hoQbi1Ldhjq/b0iO0PRdpjX5vusLN797KxPNrxDZc9LoaIgVMAFD5AJmwF/DilvwsW6sI4o5cpAw58/g1wpB7iX0YFWXNzXv/hZh2o4gW81Y2afM//gIgCFSitRO10bOqw+pEcGCnLrz/BQ=
|
- secure: WzzECDnm17AwL4VDbMJD0E1cdi11p2YLahJRPi/+GZ9BFNIV3I2WZFc5l0WEiGDMB4igx5DdXHzDFk7HF2z2qRpf2skhWDTd/Ie5+exZlY9/D/tED8dJepGtV40UTuWr+vHsDJeNkXteYNpNU7ZHfNbXl14/x25ccaLYSX5yRNLBRMn9KToRNBhXA0YH/Q9AnWNKGFWb0YBfjSRywSvVuVRQr/tL43JUCTEEwjdGHVTUlvWPE5XHDs6yqjJlTI70GVvQb5WPZdQJugiolG9Z66ZRWEEuawJgzTCdlaKwBQX0UAXLdfUsQKwrcxvLnDibMHVG6hNOBw4Un73YL0klD7nKoPlhCiDHtPWoNUCvpNGxPWozw2KC50YX4MZSFKAWCkIA4/oiIhMvSUOWcrOpfHZNpJNNBCFHvv6JS5PwEiNlqM2BjqfS4Vy/03Fy0h6CyNX8o5wDAjZvJKCyZQHGy4tFWNPpyZ6SbwsnzH+bjqXSDURI6hCUNiujlIRzUT95H8rIega1mWT8sffvb4qK72iXAqf7hoQbi1Ldhjq/b0iO0PRdpjX5vusLN797KxPNrxDZc9LoaIgVMAFD5AJmwF/DilvwsW6sI4o5cpAw58/g1wpB7iX0YFWXNzXv/hZh2o4gW81Y2afM//gIgCFSitRO10bOqw+pEcGCnLrz/BQ=
|
||||||
node_js: 4
|
- CXX=g++-4.8
|
||||||
|
node_js: stable
|
||||||
addons:
|
addons:
|
||||||
firefox: latest
|
firefox: latest
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- google-chrome
|
- google-chrome
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- google-chrome-stable
|
- google-chrome-stable
|
||||||
|
- g++-4.8
|
||||||
|
sauce_connect: true
|
||||||
script:
|
script:
|
||||||
- xvfb-run wct
|
- xvfb-run wct
|
||||||
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
|
- "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 that file, it will get updated everywhere else.
|
||||||
If you edit this file, your changes will get overridden :)
|
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
|
# Polymer Elements
|
||||||
## Guide for Contributors
|
## 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.
|
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.
|
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:
|
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
|
```markdown
|
||||||
(For a single issue)
|
(For a single issue)
|
||||||
Fixes #20
|
Fixes #20
|
||||||
|
|
||||||
(For multiple issues)
|
(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:
|
2. **A succinct description of the design** used to fix any related issues. For example:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "paper-progress",
|
"name": "paper-progress",
|
||||||
"version": "1.0.8",
|
"version": "1.0.9",
|
||||||
"license": "http://polymer.github.io/LICENSE.txt",
|
"license": "http://polymer.github.io/LICENSE.txt",
|
||||||
"description": "A material design progress bar",
|
"description": "A material design progress bar",
|
||||||
"authors": "The Polymer Authors",
|
"authors": "The Polymer Authors",
|
||||||
|
@ -22,9 +22,10 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
"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",
|
"paper-button": "PolymerElements/paper-button#^1.0.0",
|
||||||
"test-fixture": "PolymerElements/test-fixture#^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"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"ignore": []
|
"ignore": []
|
||||||
|
|
|
@ -18,21 +18,49 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
|
|
||||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||||
<link rel="import" href="../../paper-styles/color.html">
|
<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-progress.html">
|
||||||
<link rel="import" href="../../paper-button/paper-button.html">
|
<link rel="import" href="../../paper-button/paper-button.html">
|
||||||
|
|
||||||
<style is="custom-style">
|
<style is="custom-style" include="demo-pages-shared-styles">
|
||||||
body {
|
|
||||||
padding: 40px;
|
|
||||||
}
|
|
||||||
|
|
||||||
paper-progress {
|
paper-progress {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
}
|
}
|
||||||
|
paper-button {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body unresolved>
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<h3>It can be styled using custom properties</h3>
|
||||||
|
<demo-snippet class="centered-demo">
|
||||||
|
<template>
|
||||||
|
<style is="custom-style">
|
||||||
paper-progress.blue {
|
paper-progress.blue {
|
||||||
--paper-progress-active-color: var(--paper-light-blue-500);
|
--paper-progress-active-color: var(--paper-light-blue-500);
|
||||||
--paper-progress-secondary-color: var(--paper-light-blue-100);
|
--paper-progress-secondary-color: var(--paper-light-blue-100);
|
||||||
|
@ -43,47 +71,20 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
--paper-progress-secondary-color: var(--paper-red-100);
|
--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.green {
|
||||||
--paper-progress-active-color: var(--paper-light-green-500);
|
--paper-progress-active-color: var(--paper-light-green-500);
|
||||||
--paper-progress-secondary-color: var(--paper-light-green-100);
|
--paper-progress-secondary-color: var(--paper-light-green-100);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<paper-progress value="800" min="100" max="1000" class="red"></paper-progress>
|
||||||
</head>
|
<paper-progress value="60" class="green"></paper-progress>
|
||||||
<body unresolved>
|
<paper-progress value="40" secondary-progress="80" class="blue"></paper-progress>
|
||||||
<div class="vertical-section-container">
|
</template>
|
||||||
<h4>Progress bar</h4>
|
</demo-snippet>
|
||||||
<div class="vertical-section">
|
|
||||||
<paper-progress></paper-progress>
|
|
||||||
<paper-button raised onclick="startProgress();">Start</paper-button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
var progress, button, animationFrame;
|
||||||
var progress = document.querySelector('paper-progress');
|
|
||||||
var button = document.querySelector('paper-button');
|
|
||||||
|
|
||||||
var repeat, maxRepeat = 5, animating = false;
|
var repeat, maxRepeat = 5, animating = false;
|
||||||
|
|
||||||
function nextProgress() {
|
function nextProgress() {
|
||||||
|
@ -98,8 +99,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
}
|
}
|
||||||
progress.value = progress.min;
|
progress.value = progress.min;
|
||||||
}
|
}
|
||||||
|
var animationFrame = requestAnimationFrame(nextProgress);
|
||||||
requestAnimationFrame(nextProgress);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function startProgress() {
|
function startProgress() {
|
||||||
|
@ -112,7 +112,8 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
}
|
}
|
||||||
|
|
||||||
window.addEventListener('WebComponentsReady', function() {
|
window.addEventListener('WebComponentsReady', function() {
|
||||||
startProgress();
|
progress = document.querySelector('paper-progress');
|
||||||
|
button = document.querySelector('paper-button');
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -108,7 +108,7 @@ Custom property | Description
|
||||||
|
|
||||||
#progressContainer,
|
#progressContainer,
|
||||||
.indeterminate::after {
|
.indeterminate::after {
|
||||||
background-color: var(--paper-progress-container-color, --google-grey-300);
|
background: var(--paper-progress-container-color, --google-grey-300);
|
||||||
}
|
}
|
||||||
|
|
||||||
:host(.transiting) #primaryProgress,
|
:host(.transiting) #primaryProgress,
|
||||||
|
@ -140,20 +140,19 @@ Custom property | Description
|
||||||
}
|
}
|
||||||
|
|
||||||
#primaryProgress {
|
#primaryProgress {
|
||||||
background-color: var(--paper-progress-active-color, --google-green-500);
|
background: var(--paper-progress-active-color, --google-green-500);
|
||||||
}
|
}
|
||||||
|
|
||||||
#secondaryProgress {
|
#secondaryProgress {
|
||||||
position: relative;
|
background: var(--paper-progress-secondary-color, --google-green-100);
|
||||||
background-color: var(--paper-progress-secondary-color, --google-green-100);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:host([disabled]) #primaryProgress {
|
: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 {
|
: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 {
|
:host(:not([disabled])) #primaryProgress.indeterminate {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "requirejs",
|
"name": "requirejs",
|
||||||
"version": "2.1.22",
|
"version": "2.2.0",
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "http://requirejs.org",
|
"homepage": "http://requirejs.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
@ -12,14 +12,13 @@
|
||||||
"AMD"
|
"AMD"
|
||||||
],
|
],
|
||||||
"license": [
|
"license": [
|
||||||
"BSD-3-Clause",
|
|
||||||
"MIT"
|
"MIT"
|
||||||
],
|
],
|
||||||
"_release": "2.1.22",
|
"_release": "2.2.0",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "2.1.22",
|
"tag": "2.2.0",
|
||||||
"commit": "9cd0b99417eac61e890d11c5119f2e45e752c999"
|
"commit": "1da07057390909f5422c5fd4fb18b6b57cf92b66"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/jrburke/requirejs-bower.git",
|
"_source": "git://github.com/jrburke/requirejs-bower.git",
|
||||||
"_target": "^2.1.22",
|
"_target": "^2.1.22",
|
||||||
|
|
45
dashboard-ui/bower_components/requirejs/LICENSE
vendored
Normal file
45
dashboard-ui/bower_components/requirejs/LICENSE
vendored
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
Copyright jQuery Foundation and other contributors, https://jquery.org/
|
||||||
|
|
||||||
|
This software consists of voluntary contributions made by many
|
||||||
|
individuals. For exact contribution history, see the revision history
|
||||||
|
available at https://github.com/requirejs/requirejs-bower
|
||||||
|
|
||||||
|
The following license applies to all parts of this software except as
|
||||||
|
documented below:
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining
|
||||||
|
a copy of this software and associated documentation files (the
|
||||||
|
"Software"), to deal in the Software without restriction, including
|
||||||
|
without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be
|
||||||
|
included in all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||||
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||||
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||||
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||||
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||||
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Copyright and related rights for sample code are waived via CC0. Sample
|
||||||
|
code is defined as all source code displayed within the prose of the
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
|
|
||||||
|
====
|
||||||
|
|
||||||
|
Files located in the node_modules directory, and certain utilities used
|
||||||
|
to build or test the software in the test and dist directories, are
|
||||||
|
externally maintained libraries used by this software which have their own
|
||||||
|
licenses; we recommend you read them, as their terms may differ from the
|
||||||
|
terms above.
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "requirejs",
|
"name": "requirejs",
|
||||||
"version": "2.1.22",
|
"version": "2.2.0",
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "http://requirejs.org",
|
"homepage": "http://requirejs.org",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
@ -12,7 +12,6 @@
|
||||||
"AMD"
|
"AMD"
|
||||||
],
|
],
|
||||||
"license": [
|
"license": [
|
||||||
"BSD-3-Clause",
|
|
||||||
"MIT"
|
"MIT"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
/** vim: et:ts=4:sw=4:sts=4
|
/** vim: et:ts=4:sw=4:sts=4
|
||||||
* @license RequireJS 2.1.22 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
|
* @license RequireJS 2.2.0 Copyright jQuery Foundation and other contributors.
|
||||||
* Available via the MIT or new BSD license.
|
* Released under MIT license, http://github.com/requirejs/requirejs/LICENSE
|
||||||
* see: http://github.com/jrburke/requirejs for details
|
|
||||||
*/
|
*/
|
||||||
//Not using strict: uneven strict support in browsers, #392, and causes
|
//Not using strict: uneven strict support in browsers, #392, and causes
|
||||||
//problems with requirejs.exec()/transpiler plugins that may not be strict.
|
//problems with requirejs.exec()/transpiler plugins that may not be strict.
|
||||||
|
@ -12,7 +11,7 @@ var requirejs, require, define;
|
||||||
(function (global) {
|
(function (global) {
|
||||||
var req, s, head, baseElement, dataMain, src,
|
var req, s, head, baseElement, dataMain, src,
|
||||||
interactiveScript, currentlyAddingScript, mainScript, subPath,
|
interactiveScript, currentlyAddingScript, mainScript, subPath,
|
||||||
version = '2.1.22',
|
version = '2.2.0',
|
||||||
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
|
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
|
||||||
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
|
||||||
jsSuffixRegExp = /\.js$/,
|
jsSuffixRegExp = /\.js$/,
|
||||||
|
@ -20,7 +19,6 @@ var requirejs, require, define;
|
||||||
op = Object.prototype,
|
op = Object.prototype,
|
||||||
ostring = op.toString,
|
ostring = op.toString,
|
||||||
hasOwn = op.hasOwnProperty,
|
hasOwn = op.hasOwnProperty,
|
||||||
ap = Array.prototype,
|
|
||||||
isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document),
|
isBrowser = !!(typeof window !== 'undefined' && typeof navigator !== 'undefined' && window.document),
|
||||||
isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
|
isWebWorker = !isBrowser && typeof importScripts !== 'undefined',
|
||||||
//PS3 indicates loaded and complete, but need to wait for complete
|
//PS3 indicates loaded and complete, but need to wait for complete
|
||||||
|
@ -37,6 +35,11 @@ var requirejs, require, define;
|
||||||
globalDefQueue = [],
|
globalDefQueue = [],
|
||||||
useInteractive = false;
|
useInteractive = false;
|
||||||
|
|
||||||
|
//Could match something like ')//comment', do not lose the prefix to comment.
|
||||||
|
function commentReplace(match, multi, multiText, singlePrefix) {
|
||||||
|
return singlePrefix || '';
|
||||||
|
}
|
||||||
|
|
||||||
function isFunction(it) {
|
function isFunction(it) {
|
||||||
return ostring.call(it) === '[object Function]';
|
return ostring.call(it) === '[object Function]';
|
||||||
}
|
}
|
||||||
|
@ -861,11 +864,22 @@ var requirejs, require, define;
|
||||||
|
|
||||||
if (this.depCount < 1 && !this.defined) {
|
if (this.depCount < 1 && !this.defined) {
|
||||||
if (isFunction(factory)) {
|
if (isFunction(factory)) {
|
||||||
|
//If there is an error listener, favor passing
|
||||||
|
//to that instead of throwing an error. However,
|
||||||
|
//only do it for define()'d modules. require
|
||||||
|
//errbacks should not be called for failures in
|
||||||
|
//their callbacks (#699). However if a global
|
||||||
|
//onError is set, use that.
|
||||||
|
if ((this.events.error && this.map.isDefine) ||
|
||||||
|
req.onError !== defaultOnError) {
|
||||||
try {
|
try {
|
||||||
exports = context.execCb(id, factory, depExports, exports);
|
exports = context.execCb(id, factory, depExports, exports);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
err = e;
|
err = e;
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
exports = context.execCb(id, factory, depExports, exports);
|
||||||
|
}
|
||||||
|
|
||||||
// Favor return value over exports. If node/cjs in play,
|
// Favor return value over exports. If node/cjs in play,
|
||||||
// then will not have a return value anyway. Favor
|
// then will not have a return value anyway. Favor
|
||||||
|
@ -881,30 +895,12 @@ var requirejs, require, define;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err) {
|
if (err) {
|
||||||
// If there is an error listener, favor passing
|
|
||||||
// to that instead of throwing an error. However,
|
|
||||||
// only do it for define()'d modules. require
|
|
||||||
// errbacks should not be called for failures in
|
|
||||||
// their callbacks (#699). However if a global
|
|
||||||
// onError is set, use that.
|
|
||||||
if ((this.events.error && this.map.isDefine) ||
|
|
||||||
req.onError !== defaultOnError) {
|
|
||||||
err.requireMap = this.map;
|
err.requireMap = this.map;
|
||||||
err.requireModules = this.map.isDefine ? [this.map.id] : null;
|
err.requireModules = this.map.isDefine ? [this.map.id] : null;
|
||||||
err.requireType = this.map.isDefine ? 'define' : 'require';
|
err.requireType = this.map.isDefine ? 'define' : 'require';
|
||||||
return onError((this.error = err));
|
return onError((this.error = err));
|
||||||
} else if (typeof console !== 'undefined' &&
|
|
||||||
console.error) {
|
|
||||||
// Log the error for debugging. If promises could be
|
|
||||||
// used, this would be different, but making do.
|
|
||||||
console.error(err);
|
|
||||||
} else {
|
|
||||||
// Do not want to completely lose the error. While this
|
|
||||||
// will mess up processing and lead to similar results
|
|
||||||
// as bug 1440, it at least surfaces the error.
|
|
||||||
req.onError(err);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//Just a literal value
|
//Just a literal value
|
||||||
exports = factory;
|
exports = factory;
|
||||||
|
@ -1288,6 +1284,14 @@ var requirejs, require, define;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert old style urlArgs string to a function.
|
||||||
|
if (typeof cfg.urlArgs === 'string') {
|
||||||
|
var urlArgs = cfg.urlArgs;
|
||||||
|
cfg.urlArgs = function(id, url) {
|
||||||
|
return (url.indexOf('?') === -1 ? '?' : '&') + urlArgs;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
//Save off the paths since they require special processing,
|
//Save off the paths since they require special processing,
|
||||||
//they are additive.
|
//they are additive.
|
||||||
var shim = config.shim,
|
var shim = config.shim,
|
||||||
|
@ -1664,13 +1668,12 @@ var requirejs, require, define;
|
||||||
|
|
||||||
//Join the path parts together, then figure out if baseUrl is needed.
|
//Join the path parts together, then figure out if baseUrl is needed.
|
||||||
url = syms.join('/');
|
url = syms.join('/');
|
||||||
url += (ext || (/^data\:|\?/.test(url) || skipExt ? '' : '.js'));
|
url += (ext || (/^data\:|^blob\:|\?/.test(url) || skipExt ? '' : '.js'));
|
||||||
url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
|
url = (url.charAt(0) === '/' || url.match(/^[\w\+\.\-]+:/) ? '' : config.baseUrl) + url;
|
||||||
}
|
}
|
||||||
|
|
||||||
return config.urlArgs ? url +
|
return config.urlArgs && !/^blob\:/.test(url) ?
|
||||||
((url.indexOf('?') === -1 ? '?' : '&') +
|
url + config.urlArgs(moduleName, url) : url;
|
||||||
config.urlArgs) : url;
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//Delegates to req.load. Broken out as a separate function to
|
//Delegates to req.load. Broken out as a separate function to
|
||||||
|
@ -1724,8 +1727,8 @@ var requirejs, require, define;
|
||||||
each(value.depMaps, function(depMap) {
|
each(value.depMaps, function(depMap) {
|
||||||
if (depMap.id === data.id) {
|
if (depMap.id === data.id) {
|
||||||
parents.push(key);
|
parents.push(key);
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1891,9 +1894,6 @@ var requirejs, require, define;
|
||||||
if (isBrowser) {
|
if (isBrowser) {
|
||||||
//In the browser so use a script tag
|
//In the browser so use a script tag
|
||||||
node = req.createNode(config, moduleName, url);
|
node = req.createNode(config, moduleName, url);
|
||||||
if (config.onNodeCreated) {
|
|
||||||
config.onNodeCreated(node, config, moduleName, url);
|
|
||||||
}
|
|
||||||
|
|
||||||
node.setAttribute('data-requirecontext', context.contextName);
|
node.setAttribute('data-requirecontext', context.contextName);
|
||||||
node.setAttribute('data-requiremodule', moduleName);
|
node.setAttribute('data-requiremodule', moduleName);
|
||||||
|
@ -1909,11 +1909,11 @@ var requirejs, require, define;
|
||||||
if (node.attachEvent &&
|
if (node.attachEvent &&
|
||||||
//Check if node.attachEvent is artificially added by custom script or
|
//Check if node.attachEvent is artificially added by custom script or
|
||||||
//natively supported by browser
|
//natively supported by browser
|
||||||
//read https://github.com/jrburke/requirejs/issues/187
|
//read https://github.com/requirejs/requirejs/issues/187
|
||||||
//if we can NOT find [native code] then it must NOT natively supported.
|
//if we can NOT find [native code] then it must NOT natively supported.
|
||||||
//in IE8, node.attachEvent does not have toString()
|
//in IE8, node.attachEvent does not have toString()
|
||||||
//Note the test for "[native code" with no closing brace, see:
|
//Note the test for "[native code" with no closing brace, see:
|
||||||
//https://github.com/jrburke/requirejs/issues/273
|
//https://github.com/requirejs/requirejs/issues/273
|
||||||
!(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
|
!(node.attachEvent.toString && node.attachEvent.toString().indexOf('[native code') < 0) &&
|
||||||
!isOpera) {
|
!isOpera) {
|
||||||
//Probably IE. IE (at least 6-8) do not fire
|
//Probably IE. IE (at least 6-8) do not fire
|
||||||
|
@ -1941,6 +1941,12 @@ var requirejs, require, define;
|
||||||
}
|
}
|
||||||
node.src = url;
|
node.src = url;
|
||||||
|
|
||||||
|
//Calling onNodeCreated after all properties on the node have been
|
||||||
|
//set, but before it is placed in the DOM.
|
||||||
|
if (config.onNodeCreated) {
|
||||||
|
config.onNodeCreated(node, config, moduleName, url);
|
||||||
|
}
|
||||||
|
|
||||||
//For some cache cases in IE 6-8, the script executes before the end
|
//For some cache cases in IE 6-8, the script executes before the end
|
||||||
//of the appendChild execution, so to tie an anonymous define
|
//of the appendChild execution, so to tie an anonymous define
|
||||||
//call to the module name (which is stored on the node), hold on
|
//call to the module name (which is stored on the node), hold on
|
||||||
|
@ -1962,6 +1968,11 @@ var requirejs, require, define;
|
||||||
//are in play, the expectation is that a build has been done so
|
//are in play, the expectation is that a build has been done so
|
||||||
//that only one script needs to be loaded anyway. This may need
|
//that only one script needs to be loaded anyway. This may need
|
||||||
//to be reevaluated if other use cases become common.
|
//to be reevaluated if other use cases become common.
|
||||||
|
|
||||||
|
// Post a task to the event loop to work around a bug in WebKit
|
||||||
|
// where the worker gets garbage-collected after calling
|
||||||
|
// importScripts(): https://webkit.org/b/153317
|
||||||
|
setTimeout(function() {}, 0);
|
||||||
importScripts(url);
|
importScripts(url);
|
||||||
|
|
||||||
//Account for anonymous modules
|
//Account for anonymous modules
|
||||||
|
@ -2007,8 +2018,10 @@ var requirejs, require, define;
|
||||||
//Preserve dataMain in case it is a path (i.e. contains '?')
|
//Preserve dataMain in case it is a path (i.e. contains '?')
|
||||||
mainScript = dataMain;
|
mainScript = dataMain;
|
||||||
|
|
||||||
//Set final baseUrl if there is not already an explicit one.
|
//Set final baseUrl if there is not already an explicit one,
|
||||||
if (!cfg.baseUrl) {
|
//but only do so if the data-main value is not a loader plugin
|
||||||
|
//module ID.
|
||||||
|
if (!cfg.baseUrl && mainScript.indexOf('!') === -1) {
|
||||||
//Pull off the directory of data-main for use as the
|
//Pull off the directory of data-main for use as the
|
||||||
//baseUrl.
|
//baseUrl.
|
||||||
src = mainScript.split('/');
|
src = mainScript.split('/');
|
||||||
|
@ -2069,7 +2082,7 @@ var requirejs, require, define;
|
||||||
if (callback.length) {
|
if (callback.length) {
|
||||||
callback
|
callback
|
||||||
.toString()
|
.toString()
|
||||||
.replace(commentRegExp, '')
|
.replace(commentRegExp, commentReplace)
|
||||||
.replace(cjsRequireRegExp, function (match, dep) {
|
.replace(cjsRequireRegExp, function (match, dep) {
|
||||||
deps.push(dep);
|
deps.push(dep);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue