[15/50] [abbrv] hadoop git commit: YARN-8633. Update DataTables version in yarn-common in line with JQuery 3 upgrade. Contributed by Akhil PB.

2018-08-10 Thread tmarquardt
http://git-wip-us.apache.org/repos/asf/hadoop/blob/00013d6e/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css
deleted file mode 100644
index 3bc0433..000
--- 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.9.4/css/demo_table.css
+++ /dev/null
@@ -1,538 +0,0 @@
-/*
- *  File: demo_table.css
- *  CVS:  $Id$
- *  Description:  CSS descriptions for DataTables demo pages
- *  Author:   Allan Jardine
- *  Created:  Tue May 12 06:47:22 BST 2009
- *  Modified: $Date$ by $Author$
- *  Language: CSS
- *  Project:  DataTables
- *
- *  Copyright 2009 Allan Jardine. All Rights Reserved.
- *
- * ***
- * DESCRIPTION
- *
- * The styles given here are suitable for the demos that are used with the 
standard DataTables
- * distribution (see www.datatables.net). You will most likely wish to modify 
these styles to
- * meet the layout requirements of your site.
- *
- * Common issues:
- *   'full_numbers' pagination - I use an extra selector on the body tag to 
ensure that there is
- * no conflict between the two pagination types. If you want to use 
full_numbers pagination
- * ensure that you either have "example_alt_pagination" as a body class 
name, or better yet,
- * modify that selector.
- *   Note that the path used for Images is relative. All images are by default 
located in
- * ../images/ - relative to this CSS file.
- */
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * DataTables features
- */
-
-.dataTables_wrapper {
-   position: relative;
-   min-height: 302px;
-   clear: both;
-   _height: 302px;
-   zoom: 1; /* Feeling sorry for IE */
-}
-
-.dataTables_processing {
-   position: absolute;
-   top: 50%;
-   left: 50%;
-   width: 250px;
-   height: 30px;
-   margin-left: -125px;
-   margin-top: -15px;
-   padding: 14px 0 2px 0;
-   border: 1px solid #ddd;
-   text-align: center;
-   color: #999;
-   font-size: 14px;
-   background-color: white;
-}
-
-.dataTables_length {
-   width: 40%;
-   float: left;
-}
-
-.dataTables_filter {
-   width: 50%;
-   float: right;
-   text-align: right;
-}
-
-.dataTables_info {
-   width: 60%;
-   float: left;
-}
-
-.dataTables_paginate {
-   width: 44px;
-   * width: 50px;
-   float: right;
-   text-align: right;
-}
-
-/* Pagination nested */
-.paginate_disabled_previous, .paginate_enabled_previous, 
.paginate_disabled_next, .paginate_enabled_next {
-   height: 19px;
-   width: 19px;
-   margin-left: 3px;
-   float: left;
-}
-
-.paginate_disabled_previous {
-   background-image: url('../images/back_disabled.jpg');
-}
-
-.paginate_enabled_previous {
-   background-image: url('../images/back_enabled.jpg');
-}
-
-.paginate_disabled_next {
-   background-image: url('../images/forward_disabled.jpg');
-}
-
-.paginate_enabled_next {
-   background-image: url('../images/forward_enabled.jpg');
-}
-
-
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * DataTables display
- */
-table.display {
-   margin: 0 auto;
-   clear: both;
-   width: 100%;
-   
-   /* Note Firefox 3.5 and before have a bug with border-collapse
-* ( https://bugzilla.mozilla.org/show%5Fbug.cgi?id=155955 ) 
-* border-spacing: 0; is one possible option. Conditional-css.com is
-* useful for this kind of thing
-*
-* Further note IE 6/7 has problems when calculating widths with border 
width.
-* It subtracts one px relative to the other browsers from the first 
column, and
-* adds one to the end...
-*
-* If you want that effect I'd suggest setting a border-top/left on 
th/td's and 
-* then filling in the gaps with other borders.
-*/
-}
-
-table.display thead th {
-   padding: 3px 18px 3px 10px;
-   border-bottom: 1px solid black;
-   font-weight: bold;
-   cursor: pointer;
-   * cursor: hand;
-}
-
-table.display tfoot th {
-   padding: 3px 18px 3px 10px;
-   border-top: 1px solid black;
-   font-weight: bold;
-}
-
-table.display tr.heading2 td {
-   border-bottom: 1px solid #aaa;
-}
-
-table.display td {
-   padding: 3px 10px;
-}
-
-table.display td.center {
-   text-align: center;
-}
-
-
-
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * DataTables sorting
- */
-
-.sorting_asc {
-   

[15/50] [abbrv] hadoop git commit: YARN-8633. Update DataTables version in yarn-common in line with JQuery 3 upgrade. Contributed by Akhil PB.

2018-08-10 Thread ehiggs
http://git-wip-us.apache.org/repos/asf/hadoop/blob/64901abd/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.10.7/js/jquery.dataTables.min.js
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.10.7/js/jquery.dataTables.min.js
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.10.7/js/jquery.dataTables.min.js
new file mode 100644
index 000..85dd817
--- /dev/null
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/resources/webapps/static/dt-1.10.7/js/jquery.dataTables.min.js
@@ -0,0 +1,160 @@
+/*! DataTables 1.10.7
+ * ©2008-2015 SpryMedia Ltd - datatables.net/license
+ */
+(function(Ea,Q,k){var P=function(h){function W(a){var 
b,c,e={};h.each(a,function(d){if((b=d.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa 
ai ao as b fn i m o s ".indexOf(b[1]+" 
"))c=d.replace(b[0],b[2].toLowerCase()),e[c]=d,"o"===b[1]&(a[d])});a._hungarianMap=e}function
 H(a,b,c){a._hungarianMap||W(a);var 
e;h.each(b,function(d){e=a._hungarianMap[d];if(e!==k&&(c||b[e]===k))"o"===e.charAt(0)?(b[e]||(b[e]={}),h.extend(!0,b[e],b[d]),H(a[e],b[e],c)):b[e]=b[d]})}function
 P(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;
+!a.sEmptyTable&&(c&&"No data available in 
table"===b.sEmptyTable)&(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&(a,a,"sZeroRecords","sLoadingRecords");a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&(a)}function
 
eb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");
+A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");if(a=a.aoSearchCols)for(var
 b=0,c=a.length;b").css({position:"absolute",top:0,left:0,height:1,width:1,overflow:"hidden"}).append(h("").css({position:"absolute",
+top:1,left:1,width:100,overflow:"scroll"}).append(h('').css({width:"100%",height:10}))).appendTo("body"),c=b.find(".test");a.bScrollOversize=100===c[0].offsetWidth;a.bScrollbarLeft=1!==Math.round(c.offset().left);b.remove()}function
 hb(a,b,c,e,d,f){var 
g,j=!1;c!==k&&(g=c,j=!0);for(;e!==d;)a.hasOwnProperty(e)&&(g=j?b(g,a[e],e,a):a[e],j=!0,e+=f);return
 g}function Fa(a,b){var 
c=m.defaults.column,e=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:Q.createElement("th"),sTitle:c.sTitle?
+c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[e],mData:c.mData?c.mData:e,idx:e});a.aoColumns.push(c);c=a.aoPreSearchCols;c[e]=h.extend({},m.models.oSearch,c[e]);ka(a,e,h(b).data())}function
 ka(a,b,c){var 
b=a.aoColumns[b],e=a.oClasses,d=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=d.attr("width")||null;var
 
f=(d.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&!==c&&(fb(c),H(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&
+(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),E(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),E(b,c,"aDataSort"));var
 
g=b.mData,j=R(g),i=b.mRender?R(b.mRender):null,c=function(a){return"string"===typeof
 
a&&-1!==a.indexOf("@")};b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b.fnGetData=function(a,b,c){var
 e=j(a,b,k,c);return i&?i(e,b,a,c):e};b.fnSetData=function(a,b,c){return 
S(g)(a,b,c)};"number"!==typeof g&&
+(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,d.addClass(e.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=e.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=e.sSortableAsc,b.sSortingClassJUI=e.sSortJUIAscAllowed):!a&?(b.sSortingClass=e.sSortableDesc,b.sSortingClassJUI=e.sSortJUIDescAllowed):(b.sSortingClass=e.sSortable,b.sSortingClassJUI=e.sSortJUI)}function
 X(a){if(!1!==a.oFeatures.bAutoWidth){var b=
+a.aoColumns;Ga(a);for(var 
c=0,e=b.length;cq[f])e(l.length+q[f],o);else if("string"===typeof 
q[f]){j=0;for(i=l.length;jb&[d]--; -1!=e&===k&(e,1)}function 
ca(a,b,c,e){var 
d=a.aoData[b],f,g=function(c,f){for(;c.childNodes.length;)c.removeChild(c.firstChild);c.innerHTML=x(a,b,f,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===d.src)d._aData=na(a,d,e,e===k?k:d._aData).data;else{var
 
j=d.anCells;if(j)if(e!==k)g(j[e],e);else{c=0;for(f=j.length;c").appendTo(g));b=0;for(c=l.length;btr").attr("role","row");h(g).find(">tr>th,
 >tr>td").addClass(o.sHeaderTH);
+h(j).find(">tr>th, 
>tr>td").addClass(o.sFooterTH);if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=-1);var 
g=a._iDisplayStart,o=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else
 if(j){if(!a.bDestroying&&!kb(a))return}else