This is an automated email from the ASF dual-hosted git repository. kentontaylor pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/allura.git
commit 800c9615933b1a3500c9b6a2a9bebc147aae55d0 Author: Dave Brondsema <[email protected]> AuthorDate: Fri Sep 17 09:56:32 2021 -0400 Remove pb.transformie.min.js and jquery.browser shim pb.transformie.min.js is an ancient polyfill for IE versions without CSS transform support jquery.browser was only used by it. lightbox_me used to use it, but that was updated a while ago --- Allura/LICENSE | 3 -- Allura/allura/public/nf/js/jquery-base.js | 40 +----------------------- Allura/allura/public/nf/js/pb.transformie.min.js | 31 ------------------ Allura/allura/templates/jinja_master/master.html | 1 - LICENSE | 3 -- rat-excludes.txt | 1 - 6 files changed, 1 insertion(+), 78 deletions(-) diff --git a/Allura/LICENSE b/Allura/LICENSE index 9ff796f..5d27810 100644 --- a/Allura/LICENSE +++ b/Allura/LICENSE @@ -234,9 +234,6 @@ under the MIT license. For details, see the individual files: allura/public/nf/css/forge/tooltipster.css allura/public/nf/js/jquery.tooltipster.js -Transformie (https://github.com/pbakaus/transformie/), which is available under the MIT license. -For details, see allura/public/nf/js/pb.transformie.min.js - Blueprint, which is available under the MIT license. For details, see allura/public/nf/css/blueprint/ diff --git a/Allura/allura/public/nf/js/jquery-base.js b/Allura/allura/public/nf/js/jquery-base.js index d5775cc..8ee3739 100644 --- a/Allura/allura/public/nf/js/jquery-base.js +++ b/Allura/allura/public/nf/js/jquery-base.js @@ -118,42 +118,4 @@ return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeTyp return !$.cookie(key); }; -})); - - -/** - * It's the piece from jquery-migrate plugin to detect browser. - * https://github.com/jquery/jquery-migrate/blob/master/src/core.js#L68-L102 - * Browser detection was removed in 1.9+, but we still need it for - * `pb.transformie.min.js` (see jinja_master/master.html) and lightbox_me - * plugin which we use a lot. - */ -jQuery.uaMatch = function( ua ) { - ua = ua.toLowerCase(); - var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) || - /(webkit)[ \/]([\w.]+)/.exec( ua ) || - /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || - /(msie) ([\w.]+)/.exec( ua ) || - ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || - []; - return { - browser: match[ 1 ] || "", - version: match[ 2 ] || "0" - }; -}; -// Don't clobber any existing jQuery.browser in case it's different -if ( !jQuery.browser ) { - matched = jQuery.uaMatch( navigator.userAgent ); - browser = {}; - if ( matched.browser ) { - browser[ matched.browser ] = true; - browser.version = matched.version; - } - // Chrome is Webkit, but Webkit is also Safari. - if ( browser.chrome ) { - browser.webkit = true; - } else if ( browser.webkit ) { - browser.safari = true; - } - jQuery.browser = browser; -} +})); \ No newline at end of file diff --git a/Allura/allura/public/nf/js/pb.transformie.min.js b/Allura/allura/public/nf/js/pb.transformie.min.js deleted file mode 100755 index b912d94..0000000 --- a/Allura/allura/public/nf/js/pb.transformie.min.js +++ /dev/null @@ -1,31 +0,0 @@ -/* -Copyright (c) 2007 Paul Bakaus, http://paulbakaus.com/ - -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. -*/ - -jQuery(function(){if(!jQuery.browser.msie)return;if(Number(jQuery.browser.version)>=9)return;if(Transformie.stylesheets) -Transformie.parseStylesheets();if(Transformie.inlineCSS){jQuery(Transformie.inlineCSS===true?'*':Transformie.inlineCSS).each(function(){if(Transformie.resolveCSSKey(this.style)) -Transformie.refreshMatrix(this,Transformie.resolveCSSKey(this.style));});} -if(Transformie.trackChangesFor){Transformie.bindChangeEvent(Transformie.trackChangesFor);}});var Transformie={inlineCSS:"*",stylesheets:true,trackChangesFor:"*",toRadian:function(value){if(value.indexOf("deg")!=-1){return parseInt(value,10)*(Math.PI*2/360);}else if(value.indexOf("grad")!=-1){return parseInt(value,10)*(Math.PI/200);}else{return parseInt(value,10);}},bindChangeEvent:function(query){jQuery(query).unbind('propertychange').bind('propertychange',function(e){if(e.originalEvent. [...] -Transformie.refreshMatrix(this,Transformie.resolveCSSKey(this.style));});},resolveCSSKey:function(style){return style['-webkit-transform']||style['webkit-transform']||style['transform']||style.webkitTransform;},parseStylesheets:function(){for(var i=0;i<document.styleSheets.length;i++){for(var j=0;j<document.styleSheets[i].rules.length;j++){if(Transformie.resolveCSSKey(document.styleSheets[i].rules[j].style)) -Transformie.refreshMatrix(document.styleSheets[i].rules[j].selectorText,Transformie.resolveCSSKey(document.styleSheets[i].rules[j].style));};};},refreshMatrix:function(selector,ruleValue){var functions=ruleValue.match(/[A-z]+\([^\)]+/g)||[];var matrices=[];for(var k=0;k<functions.length;k++){var func=functions[k].split('(')[0],value=functions[k].split('(')[1];switch(func){case'matrix':var values=value.split(',');matrices.push($M([[values[0],values[2],0],[values[1],values[3],0],[0,0,1]])) [...] -return;var matrix=matrices[0];for(var k=0;k<matrices.length;k++){if(matrices[k+1])matrix=matrices[k].x(matrices[k+1]);};jQuery(selector).each(function(){if(!this.filters["DXImageTransform.Microsoft.Matrix"]){this.style.filter=(this.style.filter?'':' ')+"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand')";Transformie.bindChangeEvent(this);} -jQuery.extend(this.filters["DXImageTransform.Microsoft.Matrix"],{M11:matrix.elements[0][0],M12:matrix.elements[0][1],M21:matrix.elements[1][0],M22:matrix.elements[1][1]});});}}; \ No newline at end of file diff --git a/Allura/allura/templates/jinja_master/master.html b/Allura/allura/templates/jinja_master/master.html index c905b54..58ce10b 100644 --- a/Allura/allura/templates/jinja_master/master.html +++ b/Allura/allura/templates/jinja_master/master.html @@ -27,7 +27,6 @@ {% do g.register_forge_js('js/jquery.tooltipster.js') %} {% do g.register_forge_js('js/sylvester.js') %} {% do g.register_forge_js('js/twemoji.min.js') %} -{% do g.register_forge_js('js/pb.transformie.min.js') %} {% do g.register_forge_js('js/allura-base.js') %} {% do g.register_forge_js('js/checklist.js') %} {% do g.register_forge_css('css/forge/hilite.css') %} diff --git a/LICENSE b/LICENSE index 46ba1eb..8705e24 100644 --- a/LICENSE +++ b/LICENSE @@ -239,9 +239,6 @@ under the MIT license. For details, see the individual files: Allura/allura/public/nf/css/chosen.min.css Allura/allura/public/nf/js/chosen.jquery.min.js -Transformie (https://github.com/pbakaus/transformie/), which is available under the MIT license. -For details, see Allura/allura/public/nf/js/pb.transformie.min.js - Blueprint, which is available under the MIT license. For details, see Allura/allura/public/nf/css/blueprint/ diff --git a/rat-excludes.txt b/rat-excludes.txt index 03f25ea..35db6dd 100644 --- a/rat-excludes.txt +++ b/rat-excludes.txt @@ -48,7 +48,6 @@ Allura/allura/public/nf/js/jquery.maxlength.min.js Allura/allura/public/nf/js/jquery.tablesorter.js Allura/allura/public/nf/js/jquery.tooltipster.js Allura/allura/public/nf/js/jquery.viewport.js -Allura/allura/public/nf/js/pb.transformie.min.js Allura/allura/public/nf/js/prop-types.min.js Allura/allura/public/nf/js/react.development.js Allura/allura/public/nf/js/react.production.min.js
