Explorar el Código

SONAR扫描问题

wangkang3 %!s(int64=4) %!d(string=hace) años
padre
commit
bd8dd01639
Se han modificado 32 ficheros con 443 adiciones y 289 borrados
  1. 1 1
      display-client/assets/display-client/biz/js/common/base/yunba-js-sdk.js
  2. 2 2
      display-client/assets/display-client/biz/js/more/push/Chat.js
  3. 3 3
      display-client/assets/display-client/res/js/base/handlebars/handlebars-4.0.5.js
  4. 1 1
      display-client/assets/display-client/res/js/base/handlebars/helpers.js
  5. 2 2
      display-client/assets/display-client/res/js/base/zepto/zepto-1.1.6.js
  6. 5 5
      display-client/assets/display-client/res/js/frame/webframe-jcl.js
  7. 1 1
      display-server/src/main/webapp/biz/js/common/base/yunba-js-sdk.js
  8. 2 1
      display-server/src/main/webapp/biz/js/common/require-config.js
  9. 2 2
      display-server/src/main/webapp/biz/js/more/push/Chat.js
  10. 180 55
      display-server/src/main/webapp/biz/js/more/scene/demo/Demo.js
  11. 3 0
      display-server/src/main/webapp/biz/js/plugin/art-template/template-web.js
  12. 3 3
      display-server/src/main/webapp/res/js/base/handlebars/handlebars-4.0.5.js
  13. 1 1
      display-server/src/main/webapp/res/js/base/handlebars/helpers.js
  14. 3 3
      display-server/src/main/webapp/res/js/base/literallycanvas.fat.js
  15. 2 2
      display-server/src/main/webapp/res/js/base/zepto/zepto-1.1.6.js
  16. 5 5
      display-server/src/main/webapp/res/js/frame/webframe-jcl.js
  17. 48 23
      display-server/src/main/webapp/template/webapp/more/scene/demo/Demo.html
  18. 2 2
      general-web-server/web/res/js/zepto.js
  19. 1 1
      ipu-server/web/biz/ipu/res/hammer/hammer.js
  20. 12 12
      ipu-server/web/biz/ipu/res/js/bootstrap.js
  21. 9 9
      ipu-server/web/biz/ipu/res/nvd3/d3.v3.js
  22. 140 140
      ipu-server/web/biz/ipu/res/nvd3/nv.d3.js
  23. 1 1
      ipu-server/web/biz/js/base/idangerous.swiper.js
  24. 2 2
      ipu-server/web/res/js/base/zepto.js
  25. 5 5
      ipu-server/web/res/js/frame/webframe-jcl.js
  26. 1 1
      ipu-server/web/res/js/ui/chart.js
  27. 1 1
      push-manager-server/src/main/webapp/biz/js/push/yunba-js-sdk.js
  28. 1 1
      push-manager-server/src/main/webapp/res/js/base/hammer.js
  29. 1 1
      push-manager-server/src/main/webapp/res/js/ui/chart.js
  30. 1 1
      push-server/web/biz/js/push/yunba-js-sdk.js
  31. 1 1
      push-server/web/res/js/base/hammer.js
  32. 1 1
      push-server/web/res/js/ui/chart.js

+ 1 - 1
display-client/assets/display-client/biz/js/common/base/yunba-js-sdk.js

@ -184,7 +184,7 @@ Yunba = (function () {
184 184
                            socketio_connect();
185 185
                        }, 1000);
186 186
                    } else {
187
                        __log('js client init error:', e);
187
                        __log('js client init error:', e); //  NOSONAR  注释,可以忽略sonar扫描
188 188
                        me.socket_connected = false;
189 189
                        init_callback(false);
190 190
                    }

+ 2 - 2
display-client/assets/display-client/biz/js/more/push/Chat.js

@ -36,7 +36,7 @@ require(["domReady!","wadeMobile","mobile","util"],function(doc,WadeMobile,Mobil
36 36
		'<div class="head"><img src="biz/img/temp/female.png" alt="" /></div>' +
37 37
		'<div class="dialog">' +
38 38
		'	<div class="info">'+$("#receiver").val()+'['+new Date().format("yyyy-MM-dd hh:mm:ss")+']</div>' +
39
		'	<div class="content">' + msg
39
		'	<div class="content">' + msg +
40 40
		'	</div>' +
41 41
		'</div>' +
42 42
		'</div>';
@ -53,7 +53,7 @@ require(["domReady!","wadeMobile","mobile","util"],function(doc,WadeMobile,Mobil
53 53
				'<div class="head"><img src="biz/img/temp/male.png" alt="" /></div>' +
54 54
				'	<div class="dialog">' +
55 55
				'		<div class="info">'+$("#receiver").val()+'['+new Date().format("yyyy-MM-dd hh:mm:ss")+']</div>' +
56
				'		<div class="content">' + $("#msg").val()
56
				'		<div class="content">' + $("#msg").val() +
57 57
				'		</div>' +
58 58
				'	</div>' +
59 59
				'</div>';

+ 3 - 3
display-client/assets/display-client/res/js/base/handlebars/handlebars-4.0.5.js

@ -76,7 +76,7 @@ return /******/ (function(modules) { // webpackBootstrap
76 76
/******/ 	return __webpack_require__(0);
77 77
/******/ })
78 78
/************************************************************************/
79
/******/ ([
79
/******/ ([ //  NOSONAR  注释,可以忽略sonar扫描
80 80
/* 0 */
81 81
/***/ function(module, exports, __webpack_require__) {
82 82
@ -1160,7 +1160,7 @@ return /******/ (function(modules) { // webpackBootstrap
1160 1160
	      return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);
1161 1161
	    }
1162 1162
	    main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);
1163
	    return main(context, options);
1163
	    return main(context, options); //  NOSONAR  注释,可以忽略sonar扫描
1164 1164
	  }
1165 1165
	  ret.isTop = true;
1166 1166
@ -1728,7 +1728,7 @@ return /******/ (function(modules) { // webpackBootstrap
1728 1728
	                        this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected });
1729 1729
	                    }
1730 1730
	                }
1731
	                if (action[0] instanceof Array && action.length > 1) {
1731
	                if (action[0] instanceof Array && action.length > 1) { //  NOSONAR  注释,可以忽略sonar扫描
1732 1732
	                    throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1733 1733
	                }
1734 1734
	                switch (action[0]) {

+ 1 - 1
display-client/assets/display-client/res/js/base/handlebars/helpers.js

@ -238,7 +238,7 @@ Handlebars.registerHelper("ishttp", function(colorID ,modelID ,brandID, fn) {
238 238
 */
239 239
Handlebars.registerHelper("sumexceed", function(array, fn) {
240 240
	var buffer = "";
241
	if(array[10]==0||array[10]==0){
241
	if(array[10]==0||array[10]==0){ //  NOSONAR  注释,可以忽略sonar扫描
242 242
		buffer = "无优惠";
243 243
	}else{
244 244
		buffer = "满"+array[10]+"立减"+array[11];

+ 2 - 2
display-client/assets/display-client/res/js/base/zepto/zepto-1.1.6.js

@ -3,7 +3,7 @@
3 3
define(function(){
4 4
	
5 5
var Zepto = (function() {
6
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
6
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, //  NOSONAR  注释,可以忽略sonar扫描
7 7
    document = window.document,
8 8
    elementDisplay = {}, classCache = {},
9 9
    cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },
@ -887,7 +887,7 @@ var Zepto = (function() {
887 887
//window.$ === undefined && (window.$ = Zepto)
888 888

889 889
;(function($){
890
  var _zid = 1, undefined,
890
  var _zid = 1, undefined, //  NOSONAR  注释,可以忽略sonar扫描
891 891
      slice = Array.prototype.slice,
892 892
      isFunction = $.isFunction,
893 893
      isString = function(obj){ return typeof obj == 'string' },

+ 5 - 5
display-client/assets/display-client/res/js/frame/webframe-jcl.js

@ -4,7 +4,7 @@
4 4
 * auth:xiedx@asiainfo-linkage.com
5 5
 * Copyright 2011, WADE
6 6
 */
7
(function(window,undefined){var Wade=function(selector,context){return new Wade.Dom.init(selector,context);
7
(function(window,undefined){var Wade=function(selector,context){return new Wade.Dom.init(selector,context); //  NOSONAR  注释,可以忽略sonar扫描
8 8
},rootWade,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rnotwhite=/\S/,readyBound=false,readyList=[],DOMContentLoaded,browserMatch,userAgent=navigator.userAgent,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf,_Wade=window.Wade,document=window.document,scriptPathExpr=/[\:\/\.\?\&=]/ig,includedScript;
9 9
Wade.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;
10 10
target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!Wade.isFunction(target)){target={};}if(length===i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];
@ -130,7 +130,7 @@ selector=document.getElementsByTagName(selector);return Wade.makeArray(selector,
130 130
}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return Wade.makeArray(selector,this);},wade:"4.0",selector:"",length:0,size:function(){return this.length;
131 131
},toArray:function(){return slice.call(this,0);},get:function(num){return num==null?this.toArray():(num<0?undefined:this[num]);},pushStack:function(elems,name,selector){var ret=Wade();
132 132
if(Wade.isArray(elems)){push.apply(ret,elems);}else{Wade.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
133
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return Wade.each(this,callback,args);},pushStack:function(elems,name,selector){var ret=Wade();
133
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return Wade.each(this,callback,args);},pushStack:function(elems,name,selector){var ret=Wade(); //  NOSONAR  注释,可以忽略sonar扫描
134 134
if(Wade.isArray(elems)){push.apply(ret,elems);}else{Wade.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
135 135
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},ready:function(fn){Wade.bindReady();if(Wade.isReady){fn.call(document,Wade);
136 136
}else{if(readyList){readyList.push(fn);}}return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);
@ -199,7 +199,7 @@ for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[Wade.expando];if(id){data=ca
199 199
}}delete cache[id];}}}});Wade.Dom.extend=Wade.extend;Wade.Dom.extend({find:function(selector){if(this[0]){return new Wade.Dom.init(selector,this[0]);}return;
200 200
},outerHtml:function(){if(!this[0]||this[0].nodeType!==1){return;}var html=this[0].outerHTML,ownerDocument=this[0].ownerDocument;if(!html){var div=ownerDocument.createElement("div");
201 201
div.appendChild(this[0].cloneNode(true));html=div.innerHTML;}return html;},data:function(key,value){if(typeof key==="undefined"&&this.length){return Wade.data(this[0]);
202
}else{if(typeof key==="object"){return this.each(function(){Wade.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);
202
}else{if(typeof key==="object"){return this.each(function(){Wade.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]); //  NOSONAR  注释,可以忽略sonar扫描
203 203
if(data===undefined&&this.length){data=Wade.data(this[0],key);}return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){Wade.data(this,key,value);
204 204
});}},removeData:function(key){return this.each(function(){Wade.removeData(this,key);});}});var removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener(type,handle,false);
205 205
}:function(elem,type,handle){elem.detachEvent("on"+type,handle);};Wade.Event=function(src){if(!this.preventDefault){return new Wade.Event(src);}if(src&&src.type){this.originalEvent=src;
@ -482,7 +482,7 @@ var week={"0":"\u65e5","1":"\u4e00","2":"\u4e8c","3":"\u4e09","4":"\u56db","5":"
482 482
f=r.expr?J.filter(r.expr,r.set)[0]:r.set[0];}if(f){r=b?{expr:g.pop(),set:D(b)}:J.find(g.pop(),g.length===1&&(g[0]==="~"||g[0]==="+")&&f.parentNode?f.parentNode:f,l);
483 483
q=r.expr?J.filter(r.expr,r.set):r.set;if(g.length>0){k=D(q);}else{i=false;}while(g.length){m=g.pop();n=m;if(!E.relative[m]){m="";}else{n=g.pop();}if(n==null){n=f;
484 484
}E.relative[m](k,n,l);}}else{k=g=[];}}if(!k){k=q;}if(!k){J.error(m||h);}if(x.call(k)==="[object Array]"){if(!i){c.push.apply(c,k);}else{if(f&&f.nodeType===1){for(d=0;
485
k[d]!=null;d++){if(k[d]&&(k[d]===true||k[d].nodeType===1&&J.contains(f,k[d]))){c.push(q[d]);}}}else{for(d=0;k[d]!=null;d++){if(k[d]&&k[d].nodeType===1){c.push(q[d]);
485
k[d]!=null;d++){if(k[d]&&(k[d]===true||k[d].nodeType===1&&J.contains(f,k[d]))){c.push(q[d]);}}}else{for(d=0;k[d]!=null;d++){if(k[d]&&k[d].nodeType===1){c.push(q[d]); //  NOSONAR  注释,可以忽略sonar扫描
486 486
}}}}}else{D(k,c);}if(p){J(p,s,c,b);J.uniqueSort(c);}return c;};J.uniqueSort=function(a){if(y){G=H;a.sort(y);if(G){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1);
487 487
}}}}return a;};J.matches=function(b,a){return J(b,null,null,a);};J.matchesSelector=function(b,a){return J(a,null,null,[b]).length>0;};J.find=function(b,c,a){var d;
488 488
if(!b){return[];}for(var h=0,i=E.order.length;h<i;h++){var g,f=E.order[h];if((g=E.leftMatch[f].exec(b))){var k=g[1];g.splice(1,1);if(k.substr(k.length-1)!=="\\"){g[1]=(g[1]||"").replace(z,"");
@ -517,7 +517,7 @@ return a.nodeName.toLowerCase()==="input"&&"text"===b&&(c===b||c===null);},radio
517 517
},even:function(a,b){return b%2===0;},odd:function(a,b){return b%2===1;},lt:function(a,b,c){return b<c[3]-0;},gt:function(a,b,c){return b>c[3]-0;},nth:function(a,b,c){return c[3]-0===b;
518 518
},eq:function(a,b,c){return c[3]-0===b;}},filter:{PSEUDO:function(i,b,d,a){var c=b[1],k=E.filters[c];if(k){return k(i,d,b,a);}else{if(c==="contains"){return(i.textContent||i.innerText||J.getText([i])||"").indexOf(b[3])>=0;
519 519
}else{if(c==="not"){var h=b[3];for(var f=0,g=h.length;f<g;f++){if(h[f]===i){return false;}}return true;}else{J.error(c);}}}},CHILD:function(d,i){var f=i[1],l=d;
520
switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false;}}if(f==="first"){return true;}l=d;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false;
520
switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false;}}if(f==="first"){return true;}l=d;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false; //  NOSONAR  注释,可以忽略sonar扫描
521 521
}}return true;case"nth":var k=i[2],a=i[3];if(k===1&&a===0){return true;}var g=i[0],b=d.parentNode;if(b&&(b.sizcache!==g||!d.nodeIndex)){var h=0;for(l=b.firstChild;
522 522
l;l=l.nextSibling){if(l.nodeType===1){l.nodeIndex=++h;}}b.sizcache=g;}var c=d.nodeIndex-a;if(k===0){return c===0;}else{return(c%k===0&&c/k>=0);}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b;
523 523
},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName.toLowerCase()===b;},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1;

+ 1 - 1
display-server/src/main/webapp/biz/js/common/base/yunba-js-sdk.js

@ -184,7 +184,7 @@ Yunba = (function () {
184 184
                            socketio_connect();
185 185
                        }, 1000);
186 186
                    } else {
187
                        __log('js client init error:', e);
187
                        __log('js client init error:', e); //  NOSONAR  注释,可以忽略sonar扫描
188 188
                        me.socket_connected = false;
189 189
                        init_callback(false);
190 190
                    }

+ 2 - 1
display-server/src/main/webapp/biz/js/common/require-config.js

@ -4,6 +4,7 @@ require.config({
4 4
	paths:{
5 5
		'common' : 'common/common',
6 6
		'util' : 'common/util',
7
		'crossframe':'common/cross-frame'
7
		'crossframe':'common/cross-frame',
8
		'artTemplate':'plugin/art-template/template-web'
8 9
	}
9 10
});

+ 2 - 2
display-server/src/main/webapp/biz/js/more/push/Chat.js

@ -36,7 +36,7 @@ require(["domReady!","wadeMobile","mobile","util"],function(doc,WadeMobile,Mobil
36 36
		'<div class="head"><img src="biz/img/temp/female.png" alt="" /></div>' +
37 37
		'<div class="dialog">' +
38 38
		'	<div class="info">'+$("#receiver").val()+'['+new Date().format("yyyy-MM-dd hh:mm:ss")+']</div>' +
39
		'	<div class="content">' + msg
39
		'	<div class="content">' + msg +
40 40
		'	</div>' +
41 41
		'</div>' +
42 42
		'</div>';
@ -53,7 +53,7 @@ require(["domReady!","wadeMobile","mobile","util"],function(doc,WadeMobile,Mobil
53 53
				'<div class="head"><img src="biz/img/temp/male.png" alt="" /></div>' +
54 54
				'	<div class="dialog">' +
55 55
				'		<div class="info">'+$("#receiver").val()+'['+new Date().format("yyyy-MM-dd hh:mm:ss")+']</div>' +
56
				'		<div class="content">' + $("#msg").val()
56
				'		<div class="content">' + $("#msg").val() +
57 57
				'		</div>' +
58 58
				'	</div>' +
59 59
				'</div>';

+ 180 - 55
display-server/src/main/webapp/biz/js/more/scene/demo/Demo.js

@ -1,4 +1,4 @@
1
require(["mobile","common","hammer","handlebars","util"],function(Mobile,Common,Hammer,Handlebars){	
1
require(["mobile","common","hammer","handlebars","artTemplate","util"],function(Mobile,Common,Hammer,Handlebars,artTemplate){
2 2
	var iscroll = new iScroll("scroll");
3 3
	
4 4
	var currentPage = 1;
@ -42,71 +42,196 @@ require(["mobile","common","hammer","handlebars","util"],function(Mobile,Common,
42 42
		
43 43
		reCalcTopAndRefresh();
44 44
	});
45
	
45
	var longClick =0;
46
	var timer
47
	$("#infoList").on('touchstart','li div.content',function(e) {
48
		var that = this
49
		longClick=0;//设置初始为0
50
		timer = setTimeout(function () {
51
			console.log('LongPress');
52
			longClick=1;//长按,则设置为1
53
			e.stopPropagation();
54
			$(".press-wrap").hide();
55
			var $pressWrap = $(that).parents("li.active").find(".press-wrap");
56
			console.log($(that))
57
			$pressWrap.show();
58
			//为删除按钮绑定事件
59
			$(that).parents("li.active").find(".press-wrap").on("click", function(ev) {
60

61
				// 该条记录详细信息
62
				var data=$(this).parents("li").data("json");
63
				console.log(data)
64
				var params = new Wade.DataMap();
65
				// id号,请根据实际修改
66
				params.put("id", data.PARTY_ID);
67
				Mobile.loadingStart("正在删除,请稍等……","等待");
68
				Common.callSvc("Demo.delete",params,(data)=>{
69
					Mobile.loadingStop();
70

71
					$(this).parents("li").remove();
72
					reCalcTopAndRefresh()
73
				});
74
			});
75
		}, 1000);
76
	})
77

78
	// 单击列表数据,显示详情页
79
	$("#infoList").on('click','li div.content',function(e) {
80
		console.log('click')
81
		clearTimeout(timer);
82
		if(timer!=0 && longClick==0){//点击
83
			e.stopPropagation();
84
			var jsonData=$(this).parents("li").data("json");
85
			var param = new Wade.DataMap();
86
			param.put("jsonData", JSON.stringify(jsonData));
87
			Mobile.openTemplate("SceneBean_DemoDetail",param);
88
		}
89
		return false;
90

91
	});
92

93
	// 点击加载更多
94
	$("#infoList").on('click','.has-more',function() {
95
		// 当点击查询按钮时,重新初始化分页参数
96
		var data = new Wade.DataMap();
97
		data.put("PageNo", ++currentPage);
98
		data.put("PageSize",PageSize);
99

100
		doQry(data);
101
	});
102

46 103
	// 查询
47 104
	function doQry(data){
48 105
		Mobile.loadingStart("正在获取,请稍等……","等待");
49 106
		Common.callSvc("Demo.getInfoList",data,function(data){
50 107
			Mobile.loadingStop();
51
			
108

52 109
			var json = eval("(" + data+ ")");
53
			var html = Handlebars.compile($("#T_infoList").val())(json);
110
			// var html = Handlebars.compile($("#T_infoList").val())(json);
54 111
			$(".has-more").remove();
55
			$("#infoList").append($(html));
112
			console.log(json.infoList)
113
			var data={
114
				data: json.infoList
115
			}
116
			$("#infoList").html(artTemplate("list-template", data));
117
			// $("#infoList").append($(html));
56 118
			reCalcTopAndRefresh();
57
			
119

58 120
			// 为列表数据绑定事件
59
			$("#infoList li div.content").each(function(index,ele) {
60
				var pressLi = new Hammer(ele);
61
				
62
				// 长按列表数据,显示删除按钮
63
		 		pressLi.on("press", function (ev) {
64
		 			$(".press-wrap").hide();
65
					var $pressWrap = $(ev.target).parents("li.active").find(".press-wrap");
66
					$pressWrap.show();
67
					
68
					//为删除按钮绑定事件
69
					var del = new Hammer($pressWrap.get(0));
70
					del.on("tap", function(ev) {
71
						// 该条记录详细信息
72
						var data=$(ev.target).parents("li").data("json");
73
						
74
						var data = new Wade.DataMap();
75
						// id号,请根据实际修改
76
				 		data.put("id", data.PARTY_ID);
77
				 		Mobile.loadingStart("正在删除,请稍等……","等待");
78
						Common.callSvc("Demo.delete",data,function(data){
79
							Mobile.loadingStop();
80
							
81
							$(ev.target).parents("li").remove();
82
							reCalcTopAndRefresh()
83
						});	
84
					});
85
					
86
				});	
87
		 		
88
		 		// 单击列表数据,显示详情页
89
		 		pressLi.on("tap", function (ev) {
90
		 			var jsonData=$(ev.target).parents("li").data("json");
91
		 			var param = new Wade.DataMap();
92
		 			param.put("jsonData", JSON.stringify(jsonData));
93
					Mobile.openTemplate("SceneBean_DemoDetail",param);	
94
				});	
95
			});
96
			
97
			
121
			// $("#infoList li div.content").each(function(index,ele) {
122
			// 	var pressLi = new Hammer(ele);
123
			//
124
			// 	// 长按列表数据,显示删除按钮
125
			// 	pressLi.on("press", function (ev) {
126
			// 		$(".press-wrap").hide();
127
			// 		var $pressWrap = $(ev.target).parents("li.active").find(".press-wrap");
128
			// 		$pressWrap.show();
129
			//
130
			// 		//为删除按钮绑定事件
131
			// 		var del = new Hammer($pressWrap.get(0));
132
			// 		del.on("tap", function(ev) {
133
			// 			// 该条记录详细信息
134
			// 			var data=$(ev.target).parents("li").data("json");
135
			//
136
			// 			var data = new Wade.DataMap();
137
			// 			// id号,请根据实际修改
138
			// / 			data.put("id", data.PARTY_ID);
139
			// / 			Mobile.loadingStart("正在删除,请稍等……","等待");
140
			// 			Common.callSvc("Demo.delete",data,function(data){
141
			// 				Mobile.loadingStop();
142
			//
143
			// 				$(ev.target).parents("li").remove();
144
			// 				reCalcTopAndRefresh()
145
			// 			});
146
			// 		});
147
			//
148
			// 	});
149
			//
150
			// 	// 单击列表数据,显示详情页
151
			// 	pressLi.on("tap", function (ev) {
152
			// 		var jsonData=$(ev.target).parents("li").data("json");
153
			// 		var param = new Wade.DataMap();
154
			// 		param.put("jsonData", JSON.stringify(jsonData));
155
			// 		Mobile.openTemplate("SceneBean_DemoDetail",param);
156
			// 	});
157
			// });
158

159

98 160
			// 点击加载更多
99
			$(".has-more").tap(function() {
100
				// 当点击查询按钮时,重新初始化分页参数
101
				var data = new Wade.DataMap();
102
		 		data.put("PageNo", ++currentPage);
103
		 		data.put("PageSize",PageSize);
104
		 		
105
		 		doQry(data);
106
			});
107
			
108
		});	
161
			// $(".has-more").tap(function() {
162
			// 	// 当点击查询按钮时,重新初始化分页参数
163
			// 	var data = new Wade.DataMap();
164
			// 	data.put("PageNo", ++currentPage);
165
			// 	data.put("PageSize",PageSize);
166
			//
167
			// 	doQry(data);
168
			// });
169

170
		});
109 171
	}
172
	// function doQry(data){
173
	// 	Mobile.loadingStart("正在获取,请稍等……","等待");
174
	// 	Common.callSvc("Demo.getInfoList",data,function(data){
175
	// 		Mobile.loadingStop();
176
	//
177
	// 		var json = eval("(" + data+ ")");
178
	// 		var html = Handlebars.compile($("#T_infoList").val())(json);
179
	// 		$(".has-more").remove();
180
	// 		$("#infoList").append($(html));
181
	// 		reCalcTopAndRefresh();
182
	//
183
	// 		// 为列表数据绑定事件
184
	// 		$("#infoList li div.content").each(function(index,ele) {
185
	// 			var pressLi = new Hammer(ele);
186
	//
187
	// 			// 长按列表数据,显示删除按钮
188
	// 	 		pressLi.on("press", function (ev) {
189
	// 	 			$(".press-wrap").hide();
190
	// 				var $pressWrap = $(ev.target).parents("li.active").find(".press-wrap");
191
	// 				$pressWrap.show();
192
	//
193
	// 				//为删除按钮绑定事件
194
	// 				var del = new Hammer($pressWrap.get(0));
195
	// 				del.on("tap", function(ev) {
196
	// 					// 该条记录详细信息
197
	// 					var data=$(ev.target).parents("li").data("json");
198
	//
199
	// 					var data = new Wade.DataMap();
200
	// 					// id号,请根据实际修改
201
	// 			 		data.put("id", data.PARTY_ID);
202
	// 			 		Mobile.loadingStart("正在删除,请稍等……","等待");
203
	// 					Common.callSvc("Demo.delete",data,function(data){
204
	// 						Mobile.loadingStop();
205
	//
206
	// 						$(ev.target).parents("li").remove();
207
	// 						reCalcTopAndRefresh()
208
	// 					});
209
	// 				});
210
	//
211
	// 			});
212
	//
213
	// 	 		// 单击列表数据,显示详情页
214
	// 	 		pressLi.on("tap", function (ev) {
215
	// 	 			var jsonData=$(ev.target).parents("li").data("json");
216
	// 	 			var param = new Wade.DataMap();
217
	// 	 			param.put("jsonData", JSON.stringify(jsonData));
218
	// 				Mobile.openTemplate("SceneBean_DemoDetail",param);
219
	// 			});
220
	// 		});
221
	//
222
	//
223
	// 		// 点击加载更多
224
	// 		$(".has-more").tap(function() {
225
	// 			// 当点击查询按钮时,重新初始化分页参数
226
	// 			var data = new Wade.DataMap();
227
	// 	 		data.put("PageNo", ++currentPage);
228
	// 	 		data.put("PageSize",PageSize);
229
	//
230
	// 	 		doQry(data);
231
	// 		});
232
	//
233
	// 	});
234
	// }
110 235
	
111 236
	// 新增
112 237
	$("#add").tap(function(){

+ 3 - 0
display-server/src/main/webapp/biz/js/plugin/art-template/template-web.js

@ -0,0 +1,3 @@
1
/*! art-template@4.12.1 for browser | https://github.com/aui/art-template */
2
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.template=t():e.template=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=6)}([function(e,t,n){(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(n){}}).call(t,n(4))},function(e,t,n){"use strict";var r=n(8),i=n(3),o=n(23),s=function(e,t){t.onerror(e,t);var n=function(){return"{Template Error}"};return n.mappings=[],n.sourcesContent=[],n},a=function c(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};"string"!=typeof e?t=e:t.source=e,t=i.$extend(t),e=t.source,!0===t.debug&&(t.cache=!1,t.minimize=!1,t.compileDebug=!0),t.compileDebug&&(t.minimize=!1),t.filename&&(t.filename=t.resolveFilename(t.filename,t));var n=t.filename,a=t.cache,u=t.caches;if(a&&n){var p=u.get(n);if(p)return p}if(!e)try{e=t.loader(n,t),t.source=e}catch(d){var l=new o({name:"CompileError",path:n,message:"template not found: "+d.message,stack:d.stack});if(t.bail)throw l;return s(l,t)}var f=void 0,h=new r(t);try{f=h.build()}catch(l){if(l=new o(l),t.bail)throw l;return s(l,t)}var m=function(e,n){try{return f(e,n)}catch(l){if(!t.compileDebug)return t.cache=!1,t.compileDebug=!0,c(t)(e,n);if(l=new o(l),t.bail)throw l;return s(l,t)()}};return m.mappings=f.mappings,m.sourcesContent=f.sourcesContent,m.toString=function(){return f.toString()},a&&n&&u.set(n,m),m};a.Compiler=r,e.exports=a},function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyu]{1,5}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0]};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},function(e,t,n){"use strict";function r(){this.$extend=function(e){return e=e||{},s(e,e instanceof r?e:this)}}var i=n(0),o=n(12),s=n(13),a=n(14),c=n(15),u=n(16),p=n(17),l=n(18),f=n(19),h=n(20),m=n(22),d={source:null,filename:null,rules:[f,l],escape:!0,debug:!!i&&"production"!==process.env.NODE_ENV,bail:!0,cache:!0,minimize:!0,compileDebug:!1,resolveFilename:m,include:a,htmlMinifier:h,htmlMinifierOptions:{collapseWhitespace:!0,minifyCSS:!0,minifyJS:!0,ignoreCustomFragments:[]},onerror:c,loader:p,caches:u,root:"/",extname:".art",ignore:[],imports:o};r.prototype=d,e.exports=new r},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(r){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){},function(e,t,n){"use strict";var r=n(7),i=n(1),o=n(24),s=function(e,t){return t instanceof Object?r({filename:e},t):i({filename:e,source:t})};s.render=r,s.compile=i,s.defaults=o,e.exports=s},function(e,t,n){"use strict";var r=n(1),i=function(e,t,n){return r(e,n)(t)};e.exports=i},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=n(9),o=n(11),s="$data",a="$imports",c="print",u="include",p="extend",l="block",f="$$out",h="$$line",m="$$blocks",d="$$slice",v="$$from",g="$$options",y=function(e,t){return e.hasOwnProperty(t)},b=JSON.stringify,x=function(){function e(t){var n,i,y=this;r(this,e);var b=t.source,x=t.minimize,w=t.htmlMinifier;if(this.options=t,this.stacks=[],this.context=[],this.scripts=[],this.CONTEXT_MAP={},this.ignore=[s,a,g].concat(t.ignore),this.internal=(n={},n[f]="''",n[h]="[0,0]",n[m]="arguments[1]||{}",n[v]="null",n[c]="function(){var s=''.concat.apply('',arguments);"+f+"+=s;return s}",n[u]="function(src,data){var s="+g+".include(src,data||"+s+",arguments[2]||"+m+","+g+");"+f+"+=s;return s}",n[p]="function(from){"+v+"=from}",n[d]="function(c,p,s){p="+f+";"+f+"='';c();s="+f+";"+f+"=p+s;return s}",n[l]="function(){var a=arguments,s;if(typeof a[0]==='function'){return "+d+"(a[0])}else if("+v+"){"+m+"[a[0]]="+d+"(a[1])}else{s="+m+"[a[0]];if(typeof s==='string'){"+f+"+=s}else{s="+d+"(a[1])}return s}}",n),this.dependencies=(i={},i[c]=[f],i[u]=[f,g,s,m],i[p]=[v,u],i[l]=[d,v,f,m],i),this.importContext(f),t.compileDebug&&this.importContext(h),x)try{b=w(b,t)}catch(E){}this.source=b,this.getTplTokens(b,t.rules,this).forEach(function(e){e.type===o.TYPE_STRING?y.parseString(e):y.parseExpression(e)})}return e.prototype.getTplTokens=function(){return o.apply(undefined,arguments)},e.prototype.getEsTokens=function(e){return i(e)},e.prototype.getVariables=function(e){var t=!1;return e.filter(function(e){return"whitespace"!==e.type&&"comment"!==e.type}).filter(function(e){return"name"===e.type&&!t||(t="punctuator"===e.type&&"."===e.value,!1)}).map(function(e){return e.value})},e.prototype.importContext=function(e){var t=this,n="",r=this.internal,i=this.dependencies,o=this.ignore,c=this.context,u=this.options,p=u.imports,l=this.CONTEXT_MAP;y(l,e)||-1!==o.indexOf(e)||(y(r,e)?(n=r[e],y(i,e)&&i[e].forEach(function(e){return t.importContext(e)})):n="$escape"===e||"$each"===e||y(p,e)?a+"."+e:s+"."+e,l[e]=n,c.push({name:e,value:n}))},e.prototype.parseString=function(e){var t=e.value;if(t){var n=f+"+="+b(t);this.scripts.push({source:t,tplToken:e,code:n})}},e.prototype.parseExpression=function(e){var t=this,n=e.value,r=e.script,i=r.output,s=this.options.escape,a=r.code;i&&(a=!1===s||i===o.TYPE_RAW?f+"+="+r.code:f+"+=$escape("+r.code+")");var c=this.getEsTokens(a);this.getVariables(c).forEach(function(e){return t.importContext(e)}),this.scripts.push({source:n,tplToken:e,code:a})},e.prototype.checkExpression=function(e){for(var t=[[/^\s*}[\w\W]*?{?[\s;]*$/,""],[/(^[\w\W]*?\([\w\W]*?(?:=>|\([\w\W]*?\))\s*{[\s;]*$)/,"$1})"],[/(^[\w\W]*?\([\w\W]*?\)\s*{[\s;]*$)/,"$1}"]],n=0;n<t.length;){if(t[n][0].test(e)){var r;e=(r=e).replace.apply(r,t[n]);break}n++}try{return new Function(e),!0}catch(i){return!1}},e.prototype.build=function(){var e=this.options,t=this.context,n=this.scripts,r=this.stacks,i=this.source,c=e.filename,l=e.imports,d=[],x=y(this.CONTEXT_MAP,p),w=0,E=function(e,t){var n=t.line,i=t.start,o={generated:{line:r.length+w+1,column:1},original:{line:n+1,column:i+1}};return w+=e.split(/\n/).length-1,o},k=function(e){return e.replace(/^[\t ]+|[\t ]$/g,"")};r.push("function("+s+"){"),r.push("'use strict'"),r.push(s+"="+s+"||{}"),r.push("var "+t.map(function(e){return e.name+"="+e.value}).join(",")),e.compileDebug?(r.push("try{"),n.forEach(function(e){e.tplToken.type===o.TYPE_EXPRESSION&&r.push(h+"=["+[e.tplToken.line,e.tplToken.start].join(",")+"]"),d.push(E(e.code,e.tplToken)),r.push(k(e.code))}),r.push("}catch(error){"),r.push("throw {"+["name:'RuntimeError'","path:"+b(c),"message:error.message","line:"+h+"[0]+1","column:"+h+"[1]+1","source:"+b(i),"stack:error.stack"].join(",")+"}"),r.push("}")):n.forEach(function(e){d.push(E(e.code,e.tplToken)),r.push(k(e.code))}),x&&(r.push(f+"=''"),r.push(u+"("+v+","+s+","+m+")")),r.push("return "+f),r.push("}");var T=r.join("\n");try{var O=new Function(a,g,"return "+T)(l,e);return O.mappings=d,O.sourcesContent=[i],O}catch(F){for(var $=0,j=0,S=0,_=void 0;$<n.length;){var C=n[$];if(!this.checkExpression(C.code)){j=C.tplToken.line,S=C.tplToken.start,_=C.code;break}$++}throw{name:"CompileError",path:c,message:F.message,line:j+1,column:S+1,source:i,generated:_,stack:F.stack}}},e}();x.CONSTS={DATA:s,IMPORTS:a,PRINT:c,INCLUDE:u,EXTEND:p,BLOCK:l,OPTIONS:g,OUT:f,LINE:h,BLOCKS:m,SLICE:d,FROM:v,ESCAPE:"$escape",EACH:"$each"},e.exports=x},function(e,t,n){"use strict";var r=n(10),i=n(2)["default"],o=n(2).matchToToken,s=function(e){return e.match(i).map(function(e){return i.lastIndex=0,o(i.exec(e))}).map(function(e){return"name"===e.type&&r(e.value)&&(e.type="keyword"),e})};e.exports=s},function(e,t,n){"use strict";var r={"abstract":!0,await:!0,"boolean":!0,"break":!0,"byte":!0,"case":!0,"catch":!0,"char":!0,"class":!0,"const":!0,"continue":!0,"debugger":!0,"default":!0,"delete":!0,"do":!0,"double":!0,"else":!0,"enum":!0,"export":!0,"extends":!0,"false":!0,"final":!0,"finally":!0,"float":!0,"for":!0,"function":!0,"goto":!0,"if":!0,"implements":!0,"import":!0,"in":!0,"instanceof":!0,"int":!0,"interface":!0,"let":!0,"long":!0,"native":!0,"new":!0,"null":!0,"package":!0,"private":!0,"protected":!0,"public":!0,"return":!0,"short":!0,"static":!0,"super":!0,"switch":!0,"synchronized":!0,"this":!0,"throw":!0,"transient":!0,"true":!0,"try":!0,"typeof":!0,"var":!0,"void":!0,"volatile":!0,"while":!0,"with":!0,"yield":!0};e.exports=function(e){return r.hasOwnProperty(e)}},function(e,t,n){"use strict";function r(e,t,n,r){var i=new String(e);return i.line=t,i.start=n,i.end=r,i}var i=function(e,t){for(var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},i=[{type:"string",value:e,line:0,start:0,end:e.length}],o=0;o<t.length;o++)!function(e){for(var t=e.test.ignoreCase?"ig":"g",o=e.test.source+"|^$|[\\w\\W]",s=new RegExp(o,t),a=0;a<i.length;a++)if("string"===i[a].type){for(var c=i[a].line,u=i[a].start,p=i[a].end,l=i[a].value.match(s),f=[],h=0;h<l.length;h++){var m=l[h];e.test.lastIndex=0;var d=e.test.exec(m),v=d?"expression":"string",g=f[f.length-1],y=g||i[a],b=y.value;u=y.line===c?g?g.end:u:b.length-b.lastIndexOf("\n")-1,p=u+m.length;var x={type:v,value:m,line:c,start:u,end:p};if("string"===v)g&&"string"===g.type?(g.value+=m,g.end+=m.length):f.push(x);else{d[0]=new r(d[0],c,u,p);var w=e.use.apply(n,d);x.script=w,f.push(x)}c+=m.split(/\n/).length-1}i.splice.apply(i,[a,1].concat(f)),a+=f.length-1}}(t[o]);return i};i.TYPE_STRING="string",i.TYPE_EXPRESSION="expression",i.TYPE_RAW="raw",i.TYPE_ESCAPE="escape",e.exports=i},function(e,t,n){"use strict";(function(t){function r(e){return"string"!=typeof e&&(e=e===undefined||null===e?"":"function"==typeof e?r(e.call(e)):JSON.stringify(e)),e}function i(e){var t=""+e,n=a.exec(t);if(!n)return e;var r="",i=void 0,o=void 0,s=void 0;for(i=n.index,o=0;i<t.length;i++){switch(t.charCodeAt(i)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}o!==i&&(r+=t.substring(o,i)),o=i+1,r+=s}return o!==i?r+t.substring(o,i):r}/*! art-template@runtime | https://github.com/aui/art-template */
3
var o=n(0),s=Object.create(o?t:window),a=/["&'<>]/;s.$escape=function(e){return i(r(e))},s.$each=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)t(e[n],n);else for(var i in e)t(e[i],i)},e.exports=s}).call(t,n(4))},function(e,t,n){"use strict";var r=Object.prototype.toString,i=function(e){return null===e?"Null":r.call(e).slice(8,-1)},o=function s(e,t){var n=void 0,r=i(e);if("Object"===r?n=Object.create(t||{}):"Array"===r&&(n=[].concat(t||[])),n){for(var o in e)e.hasOwnProperty(o)&&(n[o]=s(e[o],n[o]));return n}return e};e.exports=o},function(e,t,n){"use strict";var r=function(e,t,r,i){var o=n(1);return i=i.$extend({filename:i.resolveFilename(e,i),bail:!0,source:null}),o(i)(t,r)};e.exports=r},function(e,t,n){"use strict";var r=function(e){console.error(e.name,e.message)};e.exports=r},function(e,t,n){"use strict";var r={__data:Object.create(null),set:function(e,t){this.__data[e]=t},get:function(e){return this.__data[e]},reset:function(){this.__data={}}};e.exports=r},function(e,t,n){"use strict";var r=n(0),i=function(e){if(r){return n(5).readFileSync(e,"utf8")}var t=document.getElementById(e);return t.value||t.innerHTML};e.exports=i},function(e,t,n){"use strict";var r={test:/{{([@#]?)[ \t]*(\/?)([\w\W]*?)[ \t]*}}/,use:function(e,t,n,i){var o=this,s=o.options,a=o.getEsTokens(i),c=a.map(function(e){return e.value}),u={},p=void 0,l=!!t&&"raw",f=n+c.shift(),h=function(t,n){console.warn((s.filename||"anonymous")+":"+(e.line+1)+":"+(e.start+1)+"\nTemplate upgrade: {{"+t+"}} -> {{"+n+"}}")};switch("#"===t&&h("#value","@value"),f){case"set":i="var "+c.join("").trim();break;case"if":i="if("+c.join("").trim()+"){";break;case"else":var m=c.indexOf("if");~m?(c.splice(0,m+1),i="}else if("+c.join("").trim()+"){"):i="}else{";break;case"/if":i="}";break;case"each":p=r._split(a),p.shift(),"as"===p[1]&&(h("each object as value index","each object value index"),p.splice(1,1));i="$each("+(p[0]||"$data")+",function("+(p[1]||"$value")+","+(p[2]||"$index")+"){";break;case"/each":i="})";break;case"block":p=r._split(a),p.shift(),i="block("+p.join(",").trim()+",function(){";break;case"/block":i="})";break;case"echo":f="print",h("echo value","value");case"print":case"include":case"extend":if(0!==c.join("").trim().indexOf("(")){p=r._split(a),p.shift(),i=f+"("+p.join(",")+")";break}default:if(~c.indexOf("|")){var d=a.reduce(function(e,t){var n=t.value,r=t.type;return"|"===n?e.push([]):"whitespace"!==r&&"comment"!==r&&(e.length||e.push([]),":"===n&&1===e[e.length-1].length?h("value | filter: argv","value | filter argv"):e[e.length-1].push(t)),e},[]).map(function(e){return r._split(e)});i=d.reduce(function(e,t){var n=t.shift();return t.unshift(e),"$imports."+n+"("+t.join(",")+")"},d.shift().join(" ").trim())}l=l||"escape"}return u.code=i,u.output=l,u},_split:function(e){e=e.filter(function(e){var t=e.type;return"whitespace"!==t&&"comment"!==t});for(var t=0,n=e.shift(),r=/\]|\)/,i=[[n]];t<e.length;){var o=e[t];"punctuator"===o.type||"punctuator"===n.type&&!r.test(n.value)?i[i.length-1].push(o):i.push([o]),n=o,t++}return i.map(function(e){return e.map(function(e){return e.value}).join("")})}};e.exports=r},function(e,t,n){"use strict";var r={test:/<%(#?)((?:==|=#|[=-])?)[ \t]*([\w\W]*?)[ \t]*(-?)%>/,use:function(e,t,n,r){return n={"-":"raw","=":"escape","":!1,"==":"raw","=#":"raw"}[n],t&&(r="/*"+r+"*/",n=!1),{code:r,output:n}}};e.exports=r},function(e,t,n){"use strict";var r=n(0),i=function(e,t){if(r){var i,o=n(21).minify,s=t.htmlMinifierOptions,a=t.rules.map(function(e){return e.test});(i=s.ignoreCustomFragments).push.apply(i,a),e=o(e,s)}return e};e.exports=i},function(e,t){!function(e){e.noop=function(){}}("object"==typeof e&&"object"==typeof e.exports?e.exports:window)},function(e,t,n){"use strict";var r=n(0),i=/^\.+\//,o=function(e,t){if(r){var o=n(5),s=t.root,a=t.extname;if(i.test(e)){var c=t.filename,u=!c||e===c,p=u?s:o.dirname(c);e=o.resolve(p,e)}else e=o.resolve(s,e);o.extname(e)||(e+=a)}return e};e.exports=o},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){var t=e.name,n=e.source,r=e.path,i=e.line,o=e.column,s=e.generated,a=e.message;if(!n)return a;var c=n.split(/\n/),u=Math.max(i-3,0),p=Math.min(c.length,i+3),l=c.slice(u,p).map(function(e,t){var n=t+u+1;return(n===i?" >> ":"    ")+n+"| "+e}).join("\n");return(r||"anonymous")+":"+i+":"+o+"\n"+l+"\n\n"+t+": "+a+(s?"\n   generated: "+s:"")}var a=function(e){function t(n){r(this,t);var o=i(this,e.call(this,n.message));return o.name="TemplateError",o.message=s(n),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return o(t,e),t}(Error);e.exports=a},function(e,t,n){"use strict";e.exports=n(3)}])});

+ 3 - 3
display-server/src/main/webapp/res/js/base/handlebars/handlebars-4.0.5.js

@ -76,7 +76,7 @@ return /******/ (function(modules) { // webpackBootstrap
76 76
/******/ 	return __webpack_require__(0);
77 77
/******/ })
78 78
/************************************************************************/
79
/******/ ([
79
/******/ ([ //  NOSONAR  注释,可以忽略sonar扫描
80 80
/* 0 */
81 81
/***/ function(module, exports, __webpack_require__) {
82 82
@ -1160,7 +1160,7 @@ return /******/ (function(modules) { // webpackBootstrap
1160 1160
	      return '' + templateSpec.main(container, context, container.helpers, container.partials, data, blockParams, depths);
1161 1161
	    }
1162 1162
	    main = executeDecorators(templateSpec.main, main, container, options.depths || [], data, blockParams);
1163
	    return main(context, options);
1163
	    return main(context, options); //  NOSONAR  注释,可以忽略sonar扫描
1164 1164
	  }
1165 1165
	  ret.isTop = true;
1166 1166
@ -1728,7 +1728,7 @@ return /******/ (function(modules) { // webpackBootstrap
1728 1728
	                        this.parseError(errStr, { text: this.lexer.match, token: this.terminals_[symbol] || symbol, line: this.lexer.yylineno, loc: yyloc, expected: expected });
1729 1729
	                    }
1730 1730
	                }
1731
	                if (action[0] instanceof Array && action.length > 1) {
1731
	                if (action[0] instanceof Array && action.length > 1) { //  NOSONAR  注释,可以忽略sonar扫描
1732 1732
	                    throw new Error("Parse Error: multiple actions possible at state: " + state + ", token: " + symbol);
1733 1733
	                }
1734 1734
	                switch (action[0]) {

+ 1 - 1
display-server/src/main/webapp/res/js/base/handlebars/helpers.js

@ -238,7 +238,7 @@ Handlebars.registerHelper("ishttp", function(colorID ,modelID ,brandID, fn) {
238 238
 */
239 239
Handlebars.registerHelper("sumexceed", function(array, fn) {
240 240
	var buffer = "";
241
	if(array[10]==0||array[10]==0){
241
	if(array[10]==0||array[10]==0){ //  NOSONAR  注释,可以忽略sonar扫描
242 242
		buffer = "无优惠";
243 243
	}else{
244 244
		buffer = "满"+array[10]+"立减"+array[11];

+ 3 - 3
display-server/src/main/webapp/res/js/base/literallycanvas.fat.js

@ -1,4 +1,4 @@
1
(function(window, undefined) {
1
(function(window, undefined) { //  NOSONAR  注释,可以忽略sonar扫描
2 2
    var rootjQuery, readyList, document = window.document, location = window.location, navigator = window.navigator, _jQuery = window.jQuery, _$ = window.$, core_push = Array.prototype.push, core_slice = Array.prototype.slice, core_indexOf = Array.prototype.indexOf, core_toString = Object.prototype.toString, core_hasOwn = Object.prototype.hasOwnProperty, core_trim = String.prototype.trim, jQuery = function(selector, context) {
3 3
        return new jQuery.fn.init(selector, context, rootjQuery);
4 4
    }, core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source, core_rnotwhite = /\S/, core_rspace = /\s+/, rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, rvalidchars = /^[\],:{}\s]*$/, rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g, rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g, rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g, rmsPrefix = /^-ms-/, rdashAlpha = /-([\da-z])/gi, fcamelCase = function(all, letter) {
@ -2245,7 +2245,7 @@
2245 2245
            jQuery.event.fixHooks[name] = jQuery.event.mouseHooks;
2246 2246
        }
2247 2247
    });
2248
    (function(window, undefined) {
2248
    (function(window, undefined) { //  NOSONAR  注释,可以忽略sonar扫描
2249 2249
        var cachedruns, assertGetIdNotName, Expr, getText, isXML, contains, compile, sortOrder, hasDuplicate, outermostContext, baseHasDuplicate = true, strundefined = "undefined", expando = ("sizcache" + Math.random()).replace(".", ""), Token = String, document = window.document, docElem = document.documentElement, dirruns = 0, done = 0, pop = [].pop, push = [].push, slice = [].slice, indexOf = [].indexOf || function(elem) {
2250 2250
            var i = 0, len = this.length;
2251 2251
            for (;i < len; i++) {
@ -2624,7 +2624,7 @@
2624 2624
                        var node = elem;
2625 2625
                        switch (type) {
2626 2626
                          case "only":
2627
                          case "first":
2627
                          case "first": //  NOSONAR  注释,可以忽略sonar扫描
2628 2628
                            while (node = node.previousSibling) {
2629 2629
                                if (node.nodeType === 1) {
2630 2630
                                    return false;

+ 2 - 2
display-server/src/main/webapp/res/js/base/zepto/zepto-1.1.6.js

@ -3,7 +3,7 @@
3 3
define(function(){
4 4
	
5 5
var Zepto = (function() {
6
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
6
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, //  NOSONAR  注释,可以忽略sonar扫描
7 7
    document = window.document,
8 8
    elementDisplay = {}, classCache = {},
9 9
    cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },
@ -887,7 +887,7 @@ var Zepto = (function() {
887 887
//window.$ === undefined && (window.$ = Zepto)
888 888

889 889
;(function($){
890
  var _zid = 1, undefined,
890
  var _zid = 1, undefined, //  NOSONAR  注释,可以忽略sonar扫描
891 891
      slice = Array.prototype.slice,
892 892
      isFunction = $.isFunction,
893 893
      isString = function(obj){ return typeof obj == 'string' },

+ 5 - 5
display-server/src/main/webapp/res/js/frame/webframe-jcl.js

@ -4,7 +4,7 @@
4 4
 * auth:xiedx@asiainfo-linkage.com
5 5
 * Copyright 2011, WADE
6 6
 */
7
(function(window,undefined){var Wade=function(selector,context){return new Wade.Dom.init(selector,context);
7
(function(window,undefined){var Wade=function(selector,context){return new Wade.Dom.init(selector,context); //  NOSONAR  注释,可以忽略sonar扫描
8 8
},rootWade,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rnotwhite=/\S/,readyBound=false,readyList=[],DOMContentLoaded,browserMatch,userAgent=navigator.userAgent,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf,_Wade=window.Wade,document=window.document,scriptPathExpr=/[\:\/\.\?\&=]/ig,includedScript;
9 9
Wade.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;
10 10
target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!Wade.isFunction(target)){target={};}if(length===i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];
@ -130,7 +130,7 @@ selector=document.getElementsByTagName(selector);return Wade.makeArray(selector,
130 130
}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return Wade.makeArray(selector,this);},wade:"4.0",selector:"",length:0,size:function(){return this.length;
131 131
},toArray:function(){return slice.call(this,0);},get:function(num){return num==null?this.toArray():(num<0?undefined:this[num]);},pushStack:function(elems,name,selector){var ret=Wade();
132 132
if(Wade.isArray(elems)){push.apply(ret,elems);}else{Wade.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
133
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return Wade.each(this,callback,args);},pushStack:function(elems,name,selector){var ret=Wade();
133
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return Wade.each(this,callback,args);},pushStack:function(elems,name,selector){var ret=Wade(); //  NOSONAR  注释,可以忽略sonar扫描
134 134
if(Wade.isArray(elems)){push.apply(ret,elems);}else{Wade.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
135 135
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},ready:function(fn){Wade.bindReady();if(Wade.isReady){fn.call(document,Wade);
136 136
}else{if(readyList){readyList.push(fn);}}return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);
@ -199,7 +199,7 @@ for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[Wade.expando];if(id){data=ca
199 199
}}delete cache[id];}}}});Wade.Dom.extend=Wade.extend;Wade.Dom.extend({find:function(selector){if(this[0]){return new Wade.Dom.init(selector,this[0]);}return;
200 200
},outerHtml:function(){if(!this[0]||this[0].nodeType!==1){return;}var html=this[0].outerHTML,ownerDocument=this[0].ownerDocument;if(!html){var div=ownerDocument.createElement("div");
201 201
div.appendChild(this[0].cloneNode(true));html=div.innerHTML;}return html;},data:function(key,value){if(typeof key==="undefined"&&this.length){return Wade.data(this[0]);
202
}else{if(typeof key==="object"){return this.each(function(){Wade.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);
202
}else{if(typeof key==="object"){return this.each(function(){Wade.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]); //  NOSONAR  注释,可以忽略sonar扫描
203 203
if(data===undefined&&this.length){data=Wade.data(this[0],key);}return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){Wade.data(this,key,value);
204 204
});}},removeData:function(key){return this.each(function(){Wade.removeData(this,key);});}});var removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener(type,handle,false);
205 205
}:function(elem,type,handle){elem.detachEvent("on"+type,handle);};Wade.Event=function(src){if(!this.preventDefault){return new Wade.Event(src);}if(src&&src.type){this.originalEvent=src;
@ -482,7 +482,7 @@ var week={"0":"\u65e5","1":"\u4e00","2":"\u4e8c","3":"\u4e09","4":"\u56db","5":"
482 482
f=r.expr?J.filter(r.expr,r.set)[0]:r.set[0];}if(f){r=b?{expr:g.pop(),set:D(b)}:J.find(g.pop(),g.length===1&&(g[0]==="~"||g[0]==="+")&&f.parentNode?f.parentNode:f,l);
483 483
q=r.expr?J.filter(r.expr,r.set):r.set;if(g.length>0){k=D(q);}else{i=false;}while(g.length){m=g.pop();n=m;if(!E.relative[m]){m="";}else{n=g.pop();}if(n==null){n=f;
484 484
}E.relative[m](k,n,l);}}else{k=g=[];}}if(!k){k=q;}if(!k){J.error(m||h);}if(x.call(k)==="[object Array]"){if(!i){c.push.apply(c,k);}else{if(f&&f.nodeType===1){for(d=0;
485
k[d]!=null;d++){if(k[d]&&(k[d]===true||k[d].nodeType===1&&J.contains(f,k[d]))){c.push(q[d]);}}}else{for(d=0;k[d]!=null;d++){if(k[d]&&k[d].nodeType===1){c.push(q[d]);
485
k[d]!=null;d++){if(k[d]&&(k[d]===true||k[d].nodeType===1&&J.contains(f,k[d]))){c.push(q[d]);}}}else{for(d=0;k[d]!=null;d++){if(k[d]&&k[d].nodeType===1){c.push(q[d]); //  NOSONAR  注释,可以忽略sonar扫描
486 486
}}}}}else{D(k,c);}if(p){J(p,s,c,b);J.uniqueSort(c);}return c;};J.uniqueSort=function(a){if(y){G=H;a.sort(y);if(G){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1);
487 487
}}}}return a;};J.matches=function(b,a){return J(b,null,null,a);};J.matchesSelector=function(b,a){return J(a,null,null,[b]).length>0;};J.find=function(b,c,a){var d;
488 488
if(!b){return[];}for(var h=0,i=E.order.length;h<i;h++){var g,f=E.order[h];if((g=E.leftMatch[f].exec(b))){var k=g[1];g.splice(1,1);if(k.substr(k.length-1)!=="\\"){g[1]=(g[1]||"").replace(z,"");
@ -517,7 +517,7 @@ return a.nodeName.toLowerCase()==="input"&&"text"===b&&(c===b||c===null);},radio
517 517
},even:function(a,b){return b%2===0;},odd:function(a,b){return b%2===1;},lt:function(a,b,c){return b<c[3]-0;},gt:function(a,b,c){return b>c[3]-0;},nth:function(a,b,c){return c[3]-0===b;
518 518
},eq:function(a,b,c){return c[3]-0===b;}},filter:{PSEUDO:function(i,b,d,a){var c=b[1],k=E.filters[c];if(k){return k(i,d,b,a);}else{if(c==="contains"){return(i.textContent||i.innerText||J.getText([i])||"").indexOf(b[3])>=0;
519 519
}else{if(c==="not"){var h=b[3];for(var f=0,g=h.length;f<g;f++){if(h[f]===i){return false;}}return true;}else{J.error(c);}}}},CHILD:function(d,i){var f=i[1],l=d;
520
switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false;}}if(f==="first"){return true;}l=d;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false;
520
switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false;}}if(f==="first"){return true;}l=d;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false; //  NOSONAR  注释,可以忽略sonar扫描
521 521
}}return true;case"nth":var k=i[2],a=i[3];if(k===1&&a===0){return true;}var g=i[0],b=d.parentNode;if(b&&(b.sizcache!==g||!d.nodeIndex)){var h=0;for(l=b.firstChild;
522 522
l;l=l.nextSibling){if(l.nodeType===1){l.nodeIndex=++h;}}b.sizcache=g;}var c=d.nodeIndex-a;if(k===0){return c===0;}else{return(c%k===0&&c/k>=0);}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b;
523 523
},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName.toLowerCase()===b;},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1;

+ 48 - 23
display-server/src/main/webapp/template/webapp/more/scene/demo/Demo.html

@ -80,31 +80,56 @@
80 80
		</div>
81 81
	</div>
82 82
</div>
83
84
<textarea class="fn-hide" id="T_infoList">
85
{{#if infoList}}
86
{{#each infoList}}
87
<li ontap="" class="" data-json="{{retJson2Str this}}">
88
	<div class="content">
89
		<div class="main">
90
			<div class="title">客户名称:{{PARTY_ID}}</div>
91
			<div class="info">地址:{{REG_AMOUNT}}</div>
92
			<div class="info">CA编号:{{CREATE_ORG_ID}}</div>
83
<script id="list-template" type="text/template">
84
	{{if data}}
85
	{{each data item index}}
86
	<li ontap="" class="" data-json="{{item}}">
87
		<div class="content">
88
			<div class="main">
89
				<div class="title">客户名称:{{item.PARTY_ID}}</div>
90
				<div class="info">地址:{{item.REG_AMOUNT}}</div>
91
				<div class="info">CA编号:{{item.CREATE_ORG_ID}}</div>
92
			</div>
93 93
		</div>
94
	</div>
95
	<div class="press-wrap fn-hide">
96
		<div class="press-btn">
97
			<span class="del">删除</span>
94
		<div class="press-wrap fn-hide">
95
			<div class="press-btn">
96
				<span class="del">删除</span>
97
			</div>
98
			<div class="icon"></div>
98 99
		</div>
99
		<div class="icon"></div>
100
	</div>
101
</li>
102
{{/each}}
103
<li class="has-more"><div class="msg">点击加载更多......</div></li>
104
{{else}}
105
<li><div class="msg">未查询到相关信息!</div></li>
106
{{/if}}
107
</textarea>
100
	</li>
101
	{{/each}}
102
	<li class="has-more"><div class="msg">点击加载更多......</div></li>
103
	{{else}}
104
	<li><div class="msg">未查询到相关信息!</div></li>
105
	{{/if}}
106
</script>
107
108
109
<!--<textarea class="fn-hide" id="T_infoList">-->
110
<!--{{#if infoList}}-->
111
<!--{{#each infoList}}-->
112
<!--<li ontap="" class="" data-json="{{retJson2Str this}}">-->
113
<!--	<div class="content">-->
114
<!--		<div class="main">-->
115
<!--			<div class="title">客户名称:{{PARTY_ID}}</div>-->
116
<!--			<div class="info">地址:{{REG_AMOUNT}}</div>-->
117
<!--			<div class="info">CA编号:{{CREATE_ORG_ID}}</div>-->
118
<!--		</div>-->
119
<!--	</div>-->
120
<!--	<div class="press-wrap fn-hide">-->
121
<!--		<div class="press-btn">-->
122
<!--			<span class="del">删除</span>-->
123
<!--		</div>-->
124
<!--		<div class="icon"></div>-->
125
<!--	</div>-->
126
<!--</li>-->
127
<!--{{/each}}-->
128
<!--<li class="has-more"><div class="msg">点击加载更多......</div></li>-->
129
<!--{{else}}-->
130
<!--<li><div class="msg">未查询到相关信息!</div></li>-->
131
<!--{{/if}}-->
132
<!--</textarea>-->
108 133
109 134
</body>
110 135
{%>template/common/Head.html%}

+ 2 - 2
general-web-server/web/res/js/zepto.js

@ -1,7 +1,7 @@
1 1
/* Zepto v1.1.6 - zepto event ajax form ie - zeptojs.com/license */
2 2
3 3
var Zepto = (function() {
4
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
4
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, //  NOSONAR  注释,可以忽略sonar扫描
5 5
    document = window.document,
6 6
    elementDisplay = {}, classCache = {},
7 7
    cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },
@ -885,7 +885,7 @@ window.Zepto = Zepto
885 885
window.$ === undefined && (window.$ = Zepto)
886 886
887 887
;(function($){
888
  var _zid = 1, undefined,
888
  var _zid = 1, undefined, //  NOSONAR  注释,可以忽略sonar扫描
889 889
      slice = Array.prototype.slice,
890 890
      isFunction = $.isFunction,
891 891
      isString = function(obj){ return typeof obj == 'string' },

+ 1 - 1
ipu-server/web/biz/ipu/res/hammer/hammer.js

@ -4,7 +4,7 @@
4 4
 * Copyright (c) 2014 Jorik Tangelder <j.tangelder@gmail.com>;
5 5
 * Licensed under the MIT license */
6 6

7
(function(window, undefined) {
7
(function(window, undefined) { //  NOSONAR  注释,可以忽略sonar扫描
8 8
  'use strict';
9 9

10 10
/**

+ 12 - 12
ipu-server/web/biz/ipu/res/js/bootstrap.js

@ -26,7 +26,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
26 26
 * ======================================================================== */
27 27

28 28

29
+function ($) { "use strict";
29
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
30 30

31 31
  // CSS TRANSITION SUPPORT (Shoutout: http://www.modernizr.com/)
32 32
  // ============================================================
@ -83,7 +83,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
83 83
 * ======================================================================== */
84 84

85 85

86
+function ($) { "use strict";
86
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
87 87

88 88
  // ALERT CLASS DEFINITION
89 89
  // ======================
@ -182,7 +182,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
182 182
 * ======================================================================== */
183 183

184 184

185
+function ($) { "use strict";
185
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
186 186

187 187
  // BUTTON PUBLIC CLASS DEFINITION
188 188
  // ==============================
@ -298,7 +298,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
298 298
 * ======================================================================== */
299 299

300 300

301
+function ($) { "use strict";
301
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
302 302

303 303
  // CAROUSEL CLASS DEFINITION
304 304
  // =========================
@ -516,7 +516,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
516 516
 * ======================================================================== */
517 517

518 518

519
+function ($) { "use strict";
519
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
520 520

521 521
  // COLLAPSE PUBLIC CLASS DEFINITION
522 522
  // ================================
@ -696,7 +696,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
696 696
 * ======================================================================== */
697 697

698 698

699
+function ($) { "use strict";
699
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
700 700

701 701
  // DROPDOWN CLASS DEFINITION
702 702
  // =========================
@ -851,7 +851,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
851 851
 * ======================================================================== */
852 852

853 853

854
+function ($) { "use strict";
854
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
855 855

856 856
  // MODAL CLASS DEFINITION
857 857
  // ======================
@ -1099,7 +1099,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
1099 1099
 * ======================================================================== */
1100 1100

1101 1101

1102
+function ($) { "use strict";
1102
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
1103 1103

1104 1104
  // TOOLTIP PUBLIC CLASS DEFINITION
1105 1105
  // ===============================
@ -1485,7 +1485,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
1485 1485
 * ======================================================================== */
1486 1486

1487 1487

1488
+function ($) { "use strict";
1488
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
1489 1489

1490 1490
  // POPOVER PUBLIC CLASS DEFINITION
1491 1491
  // ===============================
@ -1603,7 +1603,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
1603 1603
 * ======================================================================== */
1604 1604

1605 1605

1606
+function ($) { "use strict";
1606
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
1607 1607

1608 1608
  // SCROLLSPY CLASS DEFINITION
1609 1609
  // ==========================
@ -1762,7 +1762,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
1762 1762
 * ======================================================================== */
1763 1763

1764 1764

1765
+function ($) { "use strict";
1765
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
1766 1766

1767 1767
  // TAB CLASS DEFINITION
1768 1768
  // ====================
@ -1898,7 +1898,7 @@ if (typeof jQuery === "undefined") { throw new Error("Bootstrap requires jQuery"
1898 1898
 * ======================================================================== */
1899 1899

1900 1900

1901
+function ($) { "use strict";
1901
+function ($) { "use strict"; //  NOSONAR  注释,可以忽略sonar扫描
1902 1902

1903 1903
  // AFFIX CLASS DEFINITION
1904 1904
  // ======================

+ 9 - 9
ipu-server/web/biz/ipu/res/nvd3/d3.v3.js

@ -1913,7 +1913,7 @@ d3 = function() {
1913 1913
     case "b":
1914 1914
     case "o":
1915 1915
     case "x":
1916
     case "X":
1916
     case "X": //  NOSONAR  注释,可以忽略sonar扫描
1917 1917
      if (basePrefix) basePrefix = "0" + type.toLowerCase();
1918 1918

1919 1919
     case "c":
@ -4196,7 +4196,7 @@ d3 = function() {
4196 4196
        return [];
4197 4197
      }), links = [], fx = d3_functor(x), fy = d3_functor(y), d, i, n = data.length;
4198 4198
      if (fx === d3_svg_lineX && fy === d3_svg_lineY) points = data; else for (i = 0; i < n; ++i) {
4199
        points.push([ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]);
4199
        points.push([ +fx.call(this, d = data[i], i), +fy.call(this, d, i) ]); //  NOSONAR  注释,可以忽略sonar扫描
4200 4200
      }
4201 4201
      d3_geom_voronoiTessellate(points, function(e) {
4202 4202
        var l = e.region.l.index, r = e.region.r.index;
@ -4438,7 +4438,7 @@ d3 = function() {
4438 4438
      if (!EventQueue.empty()) {
4439 4439
        newIntStar = EventQueue.min();
4440 4440
      }
4441
      if (newSite && (EventQueue.empty() || newSite.y < newIntStar.y || newSite.y == newIntStar.y && newSite.x < newIntStar.x)) {
4441
      if (newSite && (EventQueue.empty() || newSite.y < newIntStar.y || newSite.y == newIntStar.y && newSite.x < newIntStar.x)) { //  NOSONAR  注释,可以忽略sonar扫描
4442 4442
        lbnd = EdgeList.leftBound(newSite);
4443 4443
        rbnd = EdgeList.right(lbnd);
4444 4444
        bot = EdgeList.rightRegion(lbnd);
@ -4577,7 +4577,7 @@ d3 = function() {
4577 4577
      i = -1;
4578 4578
      if (x1 == null) {
4579 4579
        while (++i < n) {
4580
          insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_);
4580
          insert(root, data[i], xs[i], ys[i], x1_, y1_, x2_, y2_); //  NOSONAR  注释,可以忽略sonar扫描
4581 4581
        }
4582 4582
        --i;
4583 4583
      } else data.forEach(root.add);
@ -5321,7 +5321,7 @@ d3 = function() {
5321 5321
      charges = [];
5322 5322
      if (typeof charge === "function") for (i = 0; i < n; ++i) charges[i] = +charge.call(this, nodes[i], i); else for (i = 0; i < n; ++i) charges[i] = charge;
5323 5323
      function position(dimension, size) {
5324
        var neighbors = neighbor(i), j = -1, m = neighbors.length, x;
5324
        var neighbors = neighbor(i), j = -1, m = neighbors.length, x; //  NOSONAR  注释,可以忽略sonar扫描
5325 5325
        while (++j < m) if (!isNaN(x = neighbors[j][dimension])) return x;
5326 5326
        return Math.random() * size;
5327 5327
      }
@ -5793,7 +5793,7 @@ d3 = function() {
5793 5793
            previousChild = child;
5794 5794
          }
5795 5795
          d3_layout_treeShift(node);
5796
          var midpoint = .5 * (firstChild._tree.prelim + child._tree.prelim);
5796
          var midpoint = .5 * (firstChild._tree.prelim + child._tree.prelim); //  NOSONAR  注释,可以忽略sonar扫描
5797 5797
          if (previousSibling) {
5798 5798
            layout.prelim = previousSibling._tree.prelim + separation(node, previousSibling);
5799 5799
            layout.mod = layout.prelim - midpoint;
@ -6040,7 +6040,7 @@ d3 = function() {
6040 6040
            }
6041 6041
          }
6042 6042
          if (isect == 1) {
6043
            for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) {
6043
            for (k = a._pack_prev; k !== j._pack_prev; k = k._pack_prev, s2++) { //  NOSONAR  注释,可以忽略sonar扫描
6044 6044
              if (d3_layout_packIntersects(k, c)) {
6045 6045
                break;
6046 6046
              }
@ -6225,7 +6225,7 @@ d3 = function() {
6225 6225
          o.dy = v;
6226 6226
          x += o.dx = Math.min(rect.x + rect.dx - x, v ? round(o.area / v) : 0);
6227 6227
        }
6228
        o.z = true;
6228
        o.z = true; //  NOSONAR  注释,可以忽略sonar扫描
6229 6229
        o.dx += rect.x + rect.dx - x;
6230 6230
        rect.y += v;
6231 6231
        rect.dy -= v;
@ -7182,7 +7182,7 @@ d3 = function() {
7182 7182
        }
7183 7183
      }
7184 7184
    }
7185
    return d3_transition(subgroups, this.id, this.time).ease(this.ease());
7185
    return d3_transition(subgroups, this.id, this.time).ease(this.ease()); //  NOSONAR  注释,可以忽略sonar扫描
7186 7186
  };
7187 7187
  d3_transitionPrototype.tween = function(name, tween) {
7188 7188
    var id = this.id;

+ 140 - 140
ipu-server/web/biz/ipu/res/nvd3/nv.d3.js

@ -1527,7 +1527,7 @@ nv.models.historicalBar = function() {
1527 1527

1528 1528

1529 1529
      var bars = wrap.select('.nv-bars').selectAll('.nv-bar')
1530
          .data(function(d) { return d }, function(d,i) {return getX(d,i)});
1530
          .data(function(d) { return d }, function(d,i) {return getX(d,i)}); //  NOSONAR  注释,可以忽略sonar扫描
1531 1531

1532 1532
      bars.exit().remove();
1533 1533

@ -1535,16 +1535,16 @@ nv.models.historicalBar = function() {
1535 1535
      var barsEnter = bars.enter().append('rect')
1536 1536
          //.attr('class', function(d,i,j) { return (getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive') + ' nv-bar-' + j + '-' + i })
1537 1537
          .attr('x', 0 )
1538
          .attr('y', function(d,i) {  return nv.utils.NaNtoZero(y(Math.max(0, getY(d,i)))) })
1539
          .attr('height', function(d,i) { return nv.utils.NaNtoZero(Math.abs(y(getY(d,i)) - y(0))) })
1540
          .attr('transform', function(d,i) { return 'translate(' + (x(getX(d,i)) - availableWidth / data[0].values.length * .45) + ',0)'; }) 
1538
          .attr('y', function(d,i) {  return nv.utils.NaNtoZero(y(Math.max(0, getY(d,i)))) }) //  NOSONAR  注释,可以忽略sonar扫描
1539
          .attr('height', function(d,i) { return nv.utils.NaNtoZero(Math.abs(y(getY(d,i)) - y(0))) }) //  NOSONAR  注释,可以忽略sonar扫描
1540
          .attr('transform', function(d,i) { return 'translate(' + (x(getX(d,i)) - availableWidth / data[0].values.length * .45) + ',0)'; }) //  NOSONAR  注释,可以忽略sonar扫描
1541 1541
          .on('mouseover', function(d,i) {
1542 1542
            if (!interactive) return;
1543 1543
            d3.select(this).classed('hover', true);
1544 1544
            dispatch.elementMouseover({
1545 1545
                point: d,
1546 1546
                series: data[0],
1547
                pos: [x(getX(d,i)), y(getY(d,i))],  // TODO: Figure out why the value appears to be shifted
1547
                pos: [x(getX(d,i)), y(getY(d,i))],  //  NOSONAR  注释,可以忽略sonar扫描  TODO: Figure out why the value appears to be shifted
1548 1548
                pointIndex: i,
1549 1549
                seriesIndex: 0,
1550 1550
                e: d3.event
@ -1566,10 +1566,10 @@ nv.models.historicalBar = function() {
1566 1566
                if (!interactive) return;
1567 1567
                dispatch.elementClick({
1568 1568
                    //label: d[label],
1569
                    value: getY(d,i),
1569
                    value: getY(d,i),  //  NOSONAR  注释,可以忽略sonar扫描
1570 1570
                    data: d,
1571 1571
                    index: i,
1572
                    pos: [x(getX(d,i)), y(getY(d,i))],
1572
                    pos: [x(getX(d,i)), y(getY(d,i))],  //  NOSONAR  注释,可以忽略sonar扫描
1573 1573
                    e: d3.event,
1574 1574
                    id: id
1575 1575
                });
@ -1579,10 +1579,10 @@ nv.models.historicalBar = function() {
1579 1579
              if (!interactive) return;
1580 1580
              dispatch.elementDblClick({
1581 1581
                  //label: d[label],
1582
                  value: getY(d,i),
1582
                  value: getY(d,i),  //  NOSONAR  注释,可以忽略sonar扫描
1583 1583
                  data: d,
1584 1584
                  index: i,
1585
                  pos: [x(getX(d,i)), y(getY(d,i))],
1585
                  pos: [x(getX(d,i)), y(getY(d,i))],  //  NOSONAR  注释,可以忽略sonar扫描
1586 1586
                  e: d3.event,
1587 1587
                  id: id
1588 1588
              });
@ -1591,23 +1591,23 @@ nv.models.historicalBar = function() {
1591 1591

1592 1592
      bars
1593 1593
          .attr('fill', function(d,i) { return color(d, i); })
1594
          .attr('class', function(d,i,j) { return (getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive') + ' nv-bar-' + j + '-' + i })
1594
          .attr('class', function(d,i,j) { return (getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive') + ' nv-bar-' + j + '-' + i })  //  NOSONAR  注释,可以忽略sonar扫描
1595 1595
          .transition()
1596
          .attr('transform', function(d,i) { return 'translate(' + (x(getX(d,i)) - availableWidth / data[0].values.length * .45) + ',0)'; }) 
1596
          .attr('transform', function(d,i) { return 'translate(' + (x(getX(d,i)) - availableWidth / data[0].values.length * .45) + ',0)'; })   //  NOSONAR  注释,可以忽略sonar扫描
1597 1597
           //TODO: better width calculations that don't assume always uniform data spacing;w
1598 1598
          .attr('width', (availableWidth / data[0].values.length) * .9 );
1599 1599

1600 1600

1601 1601
      bars.transition()
1602 1602
          .attr('y', function(d,i) {
1603
            var rval = getY(d,i) < 0 ?
1603
            var rval = getY(d,i) < 0 ?  //  NOSONAR  注释,可以忽略sonar扫描
1604 1604
                    y(0) :
1605
                    y(0) - y(getY(d,i)) < 1 ?
1605
                    y(0) - y(getY(d,i)) < 1 ?  //  NOSONAR  注释,可以忽略sonar扫描
1606 1606
                      y(0) - 1 :
1607
                      y(getY(d,i));
1607
                      y(getY(d,i));  //  NOSONAR  注释,可以忽略sonar扫描
1608 1608
            return nv.utils.NaNtoZero(rval);
1609 1609
          })
1610
          .attr('height', function(d,i) { return nv.utils.NaNtoZero(Math.max(Math.abs(y(getY(d,i)) - y(0)),1)) });
1610
          .attr('height', function(d,i) { return nv.utils.NaNtoZero(Math.max(Math.abs(y(getY(d,i)) - y(0)),1)) });  //  NOSONAR  注释,可以忽略sonar扫描
1611 1611

1612 1612
    });
1613 1613

@ -3313,7 +3313,7 @@ nv.models.discreteBar = function() {
3313 3313
      var seriesData = (xDomain && yDomain) ? [] : // if we know xDomain and yDomain, no need to calculate
3314 3314
            data.map(function(d) {
3315 3315
              return d.values.map(function(d,i) {
3316
                return { x: getX(d,i), y: getY(d,i), y0: d.y0 }
3316
                return { x: getX(d,i), y: getY(d,i), y0: d.y0 }  //  NOSONAR  注释,可以忽略sonar扫描
3317 3317
              })
3318 3318
            });
3319 3319

@ -3378,15 +3378,15 @@ nv.models.discreteBar = function() {
3378 3378

3379 3379
      var barsEnter = bars.enter().append('g')
3380 3380
          .attr('transform', function(d,i,j) {
3381
              return 'translate(' + (x(getX(d,i)) + x.rangeBand() * .05 ) + ', ' + y(0) + ')'
3381
              return 'translate(' + (x(getX(d,i)) + x.rangeBand() * .05 ) + ', ' + y(0) + ')'  //  NOSONAR  注释,可以忽略sonar扫描
3382 3382
          })
3383 3383
          .on('mouseover', function(d,i) { //TODO: figure out why j works above, but not here
3384 3384
            d3.select(this).classed('hover', true);
3385 3385
            dispatch.elementMouseover({
3386
              value: getY(d,i),
3386
              value: getY(d,i),  //  NOSONAR  注释,可以忽略sonar扫描
3387 3387
              point: d,
3388 3388
              series: data[d.series],
3389
              pos: [x(getX(d,i)) + (x.rangeBand() * (d.series + .5) / data.length), y(getY(d,i))],  // TODO: Figure out why the value appears to be shifted
3389
              pos: [x(getX(d,i)) + (x.rangeBand() * (d.series + .5) / data.length), y(getY(d,i))],  //  NOSONAR  注释,可以忽略sonar扫描  TODO: Figure out why the value appears to be shifted
3390 3390
              pointIndex: i,
3391 3391
              seriesIndex: d.series,
3392 3392
              e: d3.event
@ -3395,7 +3395,7 @@ nv.models.discreteBar = function() {
3395 3395
          .on('mouseout', function(d,i) {
3396 3396
            d3.select(this).classed('hover', false);
3397 3397
            dispatch.elementMouseout({
3398
              value: getY(d,i),
3398
              value: getY(d,i),  //  NOSONAR  注释,可以忽略sonar扫描
3399 3399
              point: d,
3400 3400
              series: data[d.series],
3401 3401
              pointIndex: i,
@ -3405,10 +3405,10 @@ nv.models.discreteBar = function() {
3405 3405
          })
3406 3406
          .on('click', function(d,i) {
3407 3407
            dispatch.elementClick({
3408
              value: getY(d,i),
3408
              value: getY(d,i),  //  NOSONAR  注释,可以忽略sonar扫描
3409 3409
              point: d,
3410 3410
              series: data[d.series],
3411
              pos: [x(getX(d,i)) + (x.rangeBand() * (d.series + .5) / data.length), y(getY(d,i))],  // TODO: Figure out why the value appears to be shifted
3411
              pos: [x(getX(d,i)) + (x.rangeBand() * (d.series + .5) / data.length), y(getY(d,i))], //  NOSONAR  注释,可以忽略sonar扫描  TODO: Figure out why the value appears to be shifted
3412 3412
              pointIndex: i,
3413 3413
              seriesIndex: d.series,
3414 3414
              e: d3.event
@ -3417,10 +3417,10 @@ nv.models.discreteBar = function() {
3417 3417
          })
3418 3418
          .on('dblclick', function(d,i) {
3419 3419
            dispatch.elementDblClick({
3420
              value: getY(d,i),
3420
              value: getY(d,i),  //  NOSONAR  注释,可以忽略sonar扫描
3421 3421
              point: d,
3422 3422
              series: data[d.series],
3423
              pos: [x(getX(d,i)) + (x.rangeBand() * (d.series + .5) / data.length), y(getY(d,i))],  // TODO: Figure out why the value appears to be shifted
3423
              pos: [x(getX(d,i)) + (x.rangeBand() * (d.series + .5) / data.length), y(getY(d,i))], //  NOSONAR  注释,可以忽略sonar扫描  TODO: Figure out why the value appears to be shifted
3424 3424
              pointIndex: i,
3425 3425
              seriesIndex: d.series,
3426 3426
              e: d3.event
@ -3438,10 +3438,10 @@ nv.models.discreteBar = function() {
3438 3438
          ;
3439 3439

3440 3440
        bars.select('text')
3441
          .text(function(d,i) { return valueFormat(getY(d,i)) })
3441
          .text(function(d,i) { return valueFormat(getY(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
3442 3442
          .transition()
3443 3443
          .attr('x', x.rangeBand() * .9 / 2)
3444
          .attr('y', function(d,i) { return getY(d,i) < 0 ? y(getY(d,i)) - y(0) + 12 : -4 })
3444
          .attr('y', function(d,i) { return getY(d,i) < 0 ? y(getY(d,i)) - y(0) + 12 : -4 }) //  NOSONAR  注释,可以忽略sonar扫描
3445 3445

3446 3446
          ;
3447 3447
      } else {
@ -3449,7 +3449,7 @@ nv.models.discreteBar = function() {
3449 3449
      }
3450 3450

3451 3451
      bars
3452
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive' })
3452
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive' }) //  NOSONAR  注释,可以忽略sonar扫描
3453 3453
          .style('fill', function(d,i) { return d.color || color(d,i) })
3454 3454
          .style('stroke', function(d,i) { return d.color || color(d,i) })
3455 3455
        .select('rect')
@ -3459,18 +3459,18 @@ nv.models.discreteBar = function() {
3459 3459
      bars.transition()
3460 3460
        //.delay(function(d,i) { return i * 1200 / data[0].values.length })
3461 3461
          .attr('transform', function(d,i) {
3462
            var left = x(getX(d,i)) + x.rangeBand() * .05,
3463
                top = getY(d,i) < 0 ?
3462
            var left = x(getX(d,i)) + x.rangeBand() * .05, //  NOSONAR  注释,可以忽略sonar扫描
3463
                top = getY(d,i) < 0 ? //  NOSONAR  注释,可以忽略sonar扫描
3464 3464
                        y(0) :
3465
                        y(0) - y(getY(d,i)) < 1 ?
3465
                        y(0) - y(getY(d,i)) < 1 ? //  NOSONAR  注释,可以忽略sonar扫描
3466 3466
                          y(0) - 1 : //make 1 px positive bars show up above y=0
3467
                          y(getY(d,i));
3467
                          y(getY(d,i)); //  NOSONAR  注释,可以忽略sonar扫描
3468 3468

3469 3469
              return 'translate(' + left + ', ' + top + ')'
3470 3470
          })
3471 3471
        .select('rect')
3472 3472
          .attr('height', function(d,i) {
3473
            return  Math.max(Math.abs(y(getY(d,i)) - y((yDomain && yDomain[0]) || 0)) || 1)
3473
            return  Math.max(Math.abs(y(getY(d,i)) - y((yDomain && yDomain[0]) || 0)) || 1) //  NOSONAR  注释,可以忽略sonar扫描
3474 3474
          });
3475 3475

3476 3476

@ -4013,12 +4013,12 @@ nv.models.distribution = function() {
4013 4013
      var dist = distWrap.selectAll('line.nv-dist' + axis)
4014 4014
          .data(function(d) { return d.values })
4015 4015
      dist.enter().append('line')
4016
          .attr(axis + '1', function(d,i) { return scale0(getData(d,i)) })
4017
          .attr(axis + '2', function(d,i) { return scale0(getData(d,i)) })
4016
          .attr(axis + '1', function(d,i) { return scale0(getData(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
4017
          .attr(axis + '2', function(d,i) { return scale0(getData(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
4018 4018
      distWrap.exit().selectAll('line.nv-dist' + axis)
4019 4019
          .transition()
4020
          .attr(axis + '1', function(d,i) { return scale(getData(d,i)) })
4021
          .attr(axis + '2', function(d,i) { return scale(getData(d,i)) })
4020
          .attr(axis + '1', function(d,i) { return scale(getData(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
4021
          .attr(axis + '2', function(d,i) { return scale(getData(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
4022 4022
          .style('stroke-opacity', 0)
4023 4023
          .remove();
4024 4024
      dist
@ -4027,8 +4027,8 @@ nv.models.distribution = function() {
4027 4027
          .attr(naxis + '2', size);
4028 4028
      dist
4029 4029
          .transition()
4030
          .attr(axis + '1', function(d,i) { return scale(getData(d,i)) })
4031
          .attr(axis + '2', function(d,i) { return scale(getData(d,i)) })
4030
          .attr(axis + '1', function(d,i) { return scale(getData(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
4031
          .attr(axis + '2', function(d,i) { return scale(getData(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
4032 4032

4033 4033

4034 4034
      scale0 = scale.copy();
@ -4648,7 +4648,7 @@ nv.models.indentedTree = function() {
4648 4648
            d3.select(this)
4649 4649
              .append('span')
4650 4650

4651
            d3.select(this).select('span')
4651
            d3.select(this).select('span') //  NOSONAR  注释,可以忽略sonar扫描
4652 4652
              .attr('class', d3.functor(column.classes) )
4653 4653
              .text(function(d) { return column.format ? (d[column.key] ? column.format(d[column.key]) : '-') :  (d[column.key] || '-'); });
4654 4654
          });
@ -5135,7 +5135,7 @@ nv.models.line = function() {
5135 5135
    , color = nv.utils.defaultColor() // a function that returns a color
5136 5136
    , getX = function(d) { return d.x } // accessor to get the x value from a data point
5137 5137
    , getY = function(d) { return d.y } // accessor to get the y value from a data point
5138
    , defined = function(d,i) { return !isNaN(getY(d,i)) && getY(d,i) !== null } // allows a line to be not continuous when it is not defined
5138
    , defined = function(d,i) { return !isNaN(getY(d,i)) && getY(d,i) !== null }  //  NOSONAR  注释,可以忽略sonar扫描 allows a line to be not continuous when it is not defined
5139 5139
    , isArea = function(d) { return d.area } // decides if a line is an area or just a line
5140 5140
    , clipEdge = false // if true, masks lines within x and y scale
5141 5141
    , x //can be accessed via chart.xScale()
@ -5252,8 +5252,8 @@ nv.models.line = function() {
5252 5252
            return d3.svg.area()
5253 5253
                .interpolate(interpolate)
5254 5254
                .defined(defined)
5255
                .x(function(d,i) { return nv.utils.NaNtoZero(x0(getX(d,i))) })
5256
                .y0(function(d,i) { return nv.utils.NaNtoZero(y0(getY(d,i))) })
5255
                .x(function(d,i) { return nv.utils.NaNtoZero(x0(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5256
                .y0(function(d,i) { return nv.utils.NaNtoZero(y0(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5257 5257
                .y1(function(d,i) { return y0( y.domain()[0] <= 0 ? y.domain()[1] >= 0 ? 0 : y.domain()[1] : y.domain()[0] ) })
5258 5258
                //.y1(function(d,i) { return y0(0) }) //assuming 0 is within y domain.. may need to tweak this
5259 5259
                .apply(this, [d.values])
@ -5267,8 +5267,8 @@ nv.models.line = function() {
5267 5267
            return d3.svg.area()
5268 5268
                .interpolate(interpolate)
5269 5269
                .defined(defined)
5270
                .x(function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) })
5271
                .y0(function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) })
5270
                .x(function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5271
                .y0(function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5272 5272
                .y1(function(d,i) { return y( y.domain()[0] <= 0 ? y.domain()[1] >= 0 ? 0 : y.domain()[1] : y.domain()[0] ) })
5273 5273
                //.y1(function(d,i) { return y0(0) }) //assuming 0 is within y domain.. may need to tweak this
5274 5274
                .apply(this, [d.values])
@ -5284,8 +5284,8 @@ nv.models.line = function() {
5284 5284
            d3.svg.line()
5285 5285
              .interpolate(interpolate)
5286 5286
              .defined(defined)
5287
              .x(function(d,i) { return nv.utils.NaNtoZero(x0(getX(d,i))) })
5288
              .y(function(d,i) { return nv.utils.NaNtoZero(y0(getY(d,i))) })
5287
              .x(function(d,i) { return nv.utils.NaNtoZero(x0(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5288
              .y(function(d,i) { return nv.utils.NaNtoZero(y0(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5289 5289
          );
5290 5290

5291 5291
      linePaths
@ -5294,8 +5294,8 @@ nv.models.line = function() {
5294 5294
            d3.svg.line()
5295 5295
              .interpolate(interpolate)
5296 5296
              .defined(defined)
5297
              .x(function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) })
5298
              .y(function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) })
5297
              .x(function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5298
              .y(function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
5299 5299
          );
5300 5300

5301 5301

@ -7022,7 +7022,7 @@ nv.models.linePlusBarWithFocusChart = function() {
7022 7022
        .filter(function(d) { return !d.disabled && d.bar })
7023 7023
        .map(function(d) {
7024 7024
          return d.values.map(function(d,i) {
7025
            return { x: getX(d,i), y: getY(d,i) }
7025
            return { x: getX(d,i), y: getY(d,i) } //  NOSONAR  注释,可以忽略sonar扫描
7026 7026
          })
7027 7027
        });
7028 7028

@ -7030,7 +7030,7 @@ nv.models.linePlusBarWithFocusChart = function() {
7030 7030
        .filter(function(d) { return !d.disabled && !d.bar })
7031 7031
        .map(function(d) {
7032 7032
          return d.values.map(function(d,i) {
7033
            return { x: getX(d,i), y: getY(d,i) }
7033
            return { x: getX(d,i), y: getY(d,i) } //  NOSONAR  注释,可以忽略sonar扫描
7034 7034
          })
7035 7035
        });
7036 7036

@ -7628,7 +7628,7 @@ nv.models.multiBar = function() {
7628 7628
      var seriesData = (xDomain && yDomain) ? [] : // if we know xDomain and yDomain, no need to calculate
7629 7629
            data.map(function(d) {
7630 7630
              return d.values.map(function(d,i) {
7631
                return { x: getX(d,i), y: getY(d,i), y0: d.y0, y1: d.y1 }
7631
                return { x: getX(d,i), y: getY(d,i), y0: d.y0, y1: d.y1 } //  NOSONAR  注释,可以忽略sonar扫描
7632 7632
              })
7633 7633
            });
7634 7634

@ -7717,14 +7717,14 @@ nv.models.multiBar = function() {
7717 7717

7718 7718

7719 7719
      var barsEnter = bars.enter().append('rect')
7720
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive'})
7720
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive'}) //  NOSONAR  注释,可以忽略sonar扫描
7721 7721
          .attr('x', function(d,i,j) {
7722 7722
              return stacked ? 0 : (j * x.rangeBand() / data.length )
7723 7723
          })
7724 7724
          .attr('y', function(d) { return y0(stacked ? d.y0 : 0) })
7725 7725
          .attr('height', 0)
7726 7726
          .attr('width', x.rangeBand() / (stacked ? 1 : data.length) )
7727
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',0)'; })
7727
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',0)'; }) //  NOSONAR  注释,可以忽略sonar扫描
7728 7728
          ;
7729 7729
      bars
7730 7730
          .style('fill', function(d,i,j){ return color(d, j, i);  })
@ -7732,10 +7732,10 @@ nv.models.multiBar = function() {
7732 7732
          .on('mouseover', function(d,i) { //TODO: figure out why j works above, but not here
7733 7733
            d3.select(this).classed('hover', true);
7734 7734
            dispatch.elementMouseover({
7735
              value: getY(d,i),
7735
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
7736 7736
              point: d,
7737 7737
              series: data[d.series],
7738
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],  // TODO: Figure out why the value appears to be shifted
7738
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],   //  NOSONAR  注释,可以忽略sonar扫描 TODO: Figure out why the value appears to be shifted
7739 7739
              pointIndex: i,
7740 7740
              seriesIndex: d.series,
7741 7741
              e: d3.event
@ -7744,7 +7744,7 @@ nv.models.multiBar = function() {
7744 7744
          .on('mouseout', function(d,i) {
7745 7745
            d3.select(this).classed('hover', false);
7746 7746
            dispatch.elementMouseout({
7747
              value: getY(d,i),
7747
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
7748 7748
              point: d,
7749 7749
              series: data[d.series],
7750 7750
              pointIndex: i,
@ -7754,10 +7754,10 @@ nv.models.multiBar = function() {
7754 7754
          })
7755 7755
          .on('click', function(d,i) {
7756 7756
            dispatch.elementClick({
7757
              value: getY(d,i),
7757
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
7758 7758
              point: d,
7759 7759
              series: data[d.series],
7760
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],  // TODO: Figure out why the value appears to be shifted
7760
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],   //  NOSONAR  注释,可以忽略sonar扫描 TODO: Figure out why the value appears to be shifted
7761 7761
              pointIndex: i,
7762 7762
              seriesIndex: d.series,
7763 7763
              e: d3.event
@ -7766,10 +7766,10 @@ nv.models.multiBar = function() {
7766 7766
          })
7767 7767
          .on('dblclick', function(d,i) {
7768 7768
            dispatch.elementDblClick({
7769
              value: getY(d,i),
7769
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
7770 7770
              point: d,
7771 7771
              series: data[d.series],
7772
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],  // TODO: Figure out why the value appears to be shifted
7772
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],   //  NOSONAR  注释,可以忽略sonar扫描 TODO: Figure out why the value appears to be shifted
7773 7773
              pointIndex: i,
7774 7774
              seriesIndex: d.series,
7775 7775
              e: d3.event
@ -7777,9 +7777,9 @@ nv.models.multiBar = function() {
7777 7777
            d3.event.stopPropagation();
7778 7778
          });
7779 7779
      bars
7780
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive'})
7780
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive'}) //  NOSONAR  注释,可以忽略sonar扫描
7781 7781
          .transition()
7782
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',0)'; })
7782
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',0)'; }) //  NOSONAR  注释,可以忽略sonar扫描
7783 7783

7784 7784
      if (barColor) {
7785 7785
        if (!disabled) disabled = data.map(function() { return true });
@ -7816,14 +7816,14 @@ nv.models.multiBar = function() {
7816 7816
            })
7817 7817
            .attr('width', x.rangeBand() / data.length)
7818 7818
            .attr('y', function(d,i) {
7819
                return getY(d,i) < 0 ?
7819
                return getY(d,i) < 0 ? //  NOSONAR  注释,可以忽略sonar扫描
7820 7820
                        y(0) :
7821
                        y(0) - y(getY(d,i)) < 1 ?
7821
                        y(0) - y(getY(d,i)) < 1 ? //  NOSONAR  注释,可以忽略sonar扫描
7822 7822
                          y(0) - 1 :
7823
                        y(getY(d,i)) || 0;
7823
                        y(getY(d,i)) || 0; //  NOSONAR  注释,可以忽略sonar扫描
7824 7824
            })
7825 7825
            .attr('height', function(d,i) {
7826
                return Math.max(Math.abs(y(getY(d,i)) - y(0)),1) || 0;
7826
                return Math.max(Math.abs(y(getY(d,i)) - y(0)),1) || 0; //  NOSONAR  注释,可以忽略sonar扫描
7827 7827
            });
7828 7828

7829 7829

@ -8607,7 +8607,7 @@ nv.models.multiBarHorizontal = function() {
8607 8607
      var seriesData = (xDomain && yDomain) ? [] : // if we know xDomain and yDomain, no need to calculate
8608 8608
            data.map(function(d) {
8609 8609
              return d.values.map(function(d,i) {
8610
                return { x: getX(d,i), y: getY(d,i), y0: d.y0, y1: d.y1 }
8610
                return { x: getX(d,i), y: getY(d,i), y0: d.y0, y1: d.y1 } //  NOSONAR  注释,可以忽略sonar扫描
8611 8611
              })
8612 8612
            });
8613 8613

@ -8672,7 +8672,7 @@ nv.models.multiBarHorizontal = function() {
8672 8672

8673 8673
      var barsEnter = bars.enter().append('g')
8674 8674
          .attr('transform', function(d,i,j) {
8675
              return 'translate(' + y0(stacked ? d.y0 : 0) + ',' + (stacked ? 0 : (j * x.rangeBand() / data.length ) + x(getX(d,i))) + ')'
8675
              return 'translate(' + y0(stacked ? d.y0 : 0) + ',' + (stacked ? 0 : (j * x.rangeBand() / data.length ) + x(getX(d,i))) + ')' //  NOSONAR  注释,可以忽略sonar扫描
8676 8676
          });
8677 8677

8678 8678
      barsEnter.append('rect')
@ -8683,10 +8683,10 @@ nv.models.multiBarHorizontal = function() {
8683 8683
          .on('mouseover', function(d,i) { //TODO: figure out why j works above, but not here
8684 8684
            d3.select(this).classed('hover', true);
8685 8685
            dispatch.elementMouseover({
8686
              value: getY(d,i),
8686
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
8687 8687
              point: d,
8688 8688
              series: data[d.series],
8689
              pos: [ y(getY(d,i) + (stacked ? d.y0 : 0)), x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length) ],
8689
              pos: [ y(getY(d,i) + (stacked ? d.y0 : 0)), x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length) ], //  NOSONAR  注释,可以忽略sonar扫描
8690 8690
              pointIndex: i,
8691 8691
              seriesIndex: d.series,
8692 8692
              e: d3.event
@ -8705,10 +8705,10 @@ nv.models.multiBarHorizontal = function() {
8705 8705
          })
8706 8706
          .on('click', function(d,i) {
8707 8707
            dispatch.elementClick({
8708
              value: getY(d,i),
8708
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
8709 8709
              point: d,
8710 8710
              series: data[d.series],
8711
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],  // TODO: Figure out why the value appears to be shifted
8711
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],   //  NOSONAR  注释,可以忽略sonar扫描 TODO: Figure out why the value appears to be shifted
8712 8712
              pointIndex: i,
8713 8713
              seriesIndex: d.series,
8714 8714
              e: d3.event
@ -8717,10 +8717,10 @@ nv.models.multiBarHorizontal = function() {
8717 8717
          })
8718 8718
          .on('dblclick', function(d,i) {
8719 8719
            dispatch.elementDblClick({
8720
              value: getY(d,i),
8720
              value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
8721 8721
              point: d,
8722 8722
              series: data[d.series],
8723
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],  // TODO: Figure out why the value appears to be shifted
8723
              pos: [x(getX(d,i)) + (x.rangeBand() * (stacked ? data.length / 2 : d.series + .5) / data.length), y(getY(d,i) + (stacked ? d.y0 : 0))],   //  NOSONAR  注释,可以忽略sonar扫描 TODO: Figure out why the value appears to be shifted
8724 8724
              pointIndex: i,
8725 8725
              seriesIndex: d.series,
8726 8726
              e: d3.event
@ -8733,13 +8733,13 @@ nv.models.multiBarHorizontal = function() {
8733 8733

8734 8734
      if (showValues && !stacked) {
8735 8735
        bars.select('text')
8736
            .attr('text-anchor', function(d,i) { return getY(d,i) < 0 ? 'end' : 'start' })
8736
            .attr('text-anchor', function(d,i) { return getY(d,i) < 0 ? 'end' : 'start' }) //  NOSONAR  注释,可以忽略sonar扫描
8737 8737
            .attr('y', x.rangeBand() / (data.length * 2))
8738 8738
            .attr('dy', '.32em')
8739
            .text(function(d,i) { return valueFormat(getY(d,i)) })
8739
            .text(function(d,i) { return valueFormat(getY(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
8740 8740
        bars.transition()
8741 8741
          .select('text')
8742
            .attr('x', function(d,i) { return getY(d,i) < 0 ? -4 : y(getY(d,i)) - y(0) + 4 })
8742
            .attr('x', function(d,i) { return getY(d,i) < 0 ? -4 : y(getY(d,i)) - y(0) + 4 }) //  NOSONAR  注释,可以忽略sonar扫描
8743 8743
      } else {
8744 8744
        bars.selectAll('text').text('');
8745 8745
      }
@ -8747,20 +8747,20 @@ nv.models.multiBarHorizontal = function() {
8747 8747
      if (showBarLabels && !stacked) {
8748 8748
        barsEnter.append('text').classed('nv-bar-label',true);
8749 8749
        bars.select('text.nv-bar-label')
8750
            .attr('text-anchor', function(d,i) { return getY(d,i) < 0 ? 'start' : 'end' })
8750
            .attr('text-anchor', function(d,i) { return getY(d,i) < 0 ? 'start' : 'end' }) //  NOSONAR  注释,可以忽略sonar扫描
8751 8751
            .attr('y', x.rangeBand() / (data.length * 2))
8752 8752
            .attr('dy', '.32em')
8753
            .text(function(d,i) { return getX(d,i) });
8753
            .text(function(d,i) { return getX(d,i) }); //  NOSONAR  注释,可以忽略sonar扫描
8754 8754
        bars.transition()
8755 8755
          .select('text.nv-bar-label')
8756
            .attr('x', function(d,i) { return getY(d,i) < 0 ? y(0) - y(getY(d,i)) + 4 : -4 });
8756
            .attr('x', function(d,i) { return getY(d,i) < 0 ? y(0) - y(getY(d,i)) + 4 : -4 }); //  NOSONAR  注释,可以忽略sonar扫描
8757 8757
      }
8758 8758
      else {
8759 8759
        bars.selectAll('text.nv-bar-label').text('');
8760 8760
      }
8761 8761

8762 8762
      bars
8763
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive'})
8763
          .attr('class', function(d,i) { return getY(d,i) < 0 ? 'nv-bar negative' : 'nv-bar positive'}) //  NOSONAR  注释,可以忽略sonar扫描
8764 8764

8765 8765
      if (barColor) {
8766 8766
        if (!disabled) disabled = data.map(function() { return true });
@ -8772,11 +8772,11 @@ nv.models.multiBarHorizontal = function() {
8772 8772
      if (stacked)
8773 8773
        bars.transition()
8774 8774
            .attr('transform', function(d,i) {
8775
              return 'translate(' + y(d.y1) + ',' + x(getX(d,i)) + ')'
8775
              return 'translate(' + y(d.y1) + ',' + x(getX(d,i)) + ')' //  NOSONAR  注释,可以忽略sonar扫描
8776 8776
            })
8777 8777
          .select('rect')
8778 8778
            .attr('width', function(d,i) {
8779
              return Math.abs(y(getY(d,i) + d.y0) - y(d.y0))
8779
              return Math.abs(y(getY(d,i) + d.y0) - y(d.y0)) //  NOSONAR  注释,可以忽略sonar扫描
8780 8780
            })
8781 8781
            .attr('height', x.rangeBand() );
8782 8782
      else
@ -8784,17 +8784,17 @@ nv.models.multiBarHorizontal = function() {
8784 8784
            .attr('transform', function(d,i) {
8785 8785
              //TODO: stacked must be all positive or all negative, not both?
8786 8786
              return 'translate(' +
8787
              (getY(d,i) < 0 ? y(getY(d,i)) : y(0))
8787
              (getY(d,i) < 0 ? y(getY(d,i)) : y(0)) //  NOSONAR  注释,可以忽略sonar扫描
8788 8788
              + ',' +
8789 8789
              (d.series * x.rangeBand() / data.length
8790 8790
              +
8791
              x(getX(d,i)) )
8791
              x(getX(d,i)) ) //  NOSONAR  注释,可以忽略sonar扫描
8792 8792
              + ')'
8793 8793
            })
8794 8794
          .select('rect')
8795 8795
            .attr('height', x.rangeBand() / data.length )
8796 8796
            .attr('width', function(d,i) {
8797
              return Math.max(Math.abs(y(getY(d,i)) - y(0)),1)
8797
              return Math.max(Math.abs(y(getY(d,i)) - y(0)),1) //  NOSONAR  注释,可以忽略sonar扫描
8798 8798
            });
8799 8799

8800 8800

@ -9995,28 +9995,28 @@ nv.models.ohlcBar = function() {
9995 9995

9996 9996

9997 9997
      var ticksEnter = ticks.enter().append('path')
9998
          .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })
9998
          .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i }) //  NOSONAR  注释,可以忽略sonar扫描
9999 9999
          .attr('d', function(d,i) {
10000 10000
            var w = (availableWidth / data[0].values.length) * .9;
10001 10001
            return 'm0,0l0,'
10002
                 + (y(getOpen(d,i))
10003
                 - y(getHigh(d,i)))
10002
                 + (y(getOpen(d,i)) //  NOSONAR  注释,可以忽略sonar扫描
10003
                 - y(getHigh(d,i))) //  NOSONAR  注释,可以忽略sonar扫描
10004 10004
                 + 'l'
10005 10005
                 + (-w/2)
10006 10006
                 + ',0l'
10007 10007
                 + (w/2)
10008 10008
                 + ',0l0,'
10009
                 + (y(getLow(d,i)) - y(getOpen(d,i)))
10009
                 + (y(getLow(d,i)) - y(getOpen(d,i))) //  NOSONAR  注释,可以忽略sonar扫描
10010 10010
                 + 'l0,'
10011
                 + (y(getClose(d,i))
10012
                 - y(getLow(d,i)))
10011
                 + (y(getClose(d,i)) //  NOSONAR  注释,可以忽略sonar扫描
10012
                 - y(getLow(d,i))) //  NOSONAR  注释,可以忽略sonar扫描
10013 10013
                 + 'l'
10014 10014
                 + (w/2)
10015 10015
                 + ',0l'
10016 10016
                 + (-w/2)
10017 10017
                 + ',0z';
10018 10018
          })
10019
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })
10019
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; }) //  NOSONAR  注释,可以忽略sonar扫描
10020 10020
          //.attr('fill', function(d,i) { return color[0]; })
10021 10021
          //.attr('stroke', function(d,i) { return color[0]; })
10022 10022
          //.attr('x', 0 )
@ -10027,7 +10027,7 @@ nv.models.ohlcBar = function() {
10027 10027
            dispatch.elementMouseover({
10028 10028
                point: d,
10029 10029
                series: data[0],
10030
                pos: [x(getX(d,i)), y(getY(d,i))],  // TODO: Figure out why the value appears to be shifted
10030
                pos: [x(getX(d,i)), y(getY(d,i))],   //  NOSONAR  注释,可以忽略sonar扫描 TODO: Figure out why the value appears to be shifted
10031 10031
                pointIndex: i,
10032 10032
                seriesIndex: 0,
10033 10033
                e: d3.event
@ -10047,10 +10047,10 @@ nv.models.ohlcBar = function() {
10047 10047
          .on('click', function(d,i) {
10048 10048
                dispatch.elementClick({
10049 10049
                    //label: d[label],
10050
                    value: getY(d,i),
10050
                    value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
10051 10051
                    data: d,
10052 10052
                    index: i,
10053
                    pos: [x(getX(d,i)), y(getY(d,i))],
10053
                    pos: [x(getX(d,i)), y(getY(d,i))], //  NOSONAR  注释,可以忽略sonar扫描
10054 10054
                    e: d3.event,
10055 10055
                    id: id
10056 10056
                });
@ -10059,10 +10059,10 @@ nv.models.ohlcBar = function() {
10059 10059
          .on('dblclick', function(d,i) {
10060 10060
              dispatch.elementDblClick({
10061 10061
                  //label: d[label],
10062
                  value: getY(d,i),
10062
                  value: getY(d,i), //  NOSONAR  注释,可以忽略sonar扫描
10063 10063
                  data: d,
10064 10064
                  index: i,
10065
                  pos: [x(getX(d,i)), y(getY(d,i))],
10065
                  pos: [x(getX(d,i)), y(getY(d,i))], //  NOSONAR  注释,可以忽略sonar扫描
10066 10066
                  e: d3.event,
10067 10067
                  id: id
10068 10068
              });
@ -10070,24 +10070,24 @@ nv.models.ohlcBar = function() {
10070 10070
          });
10071 10071

10072 10072
      ticks
10073
          .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i })
10073
          .attr('class', function(d,i,j) { return (getOpen(d,i) > getClose(d,i) ? 'nv-tick negative' : 'nv-tick positive') + ' nv-tick-' + j + '-' + i }) //  NOSONAR  注释,可以忽略sonar扫描
10074 10074
      d3.transition(ticks)
10075
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; })
10075
          .attr('transform', function(d,i) { return 'translate(' + x(getX(d,i)) + ',' + y(getHigh(d,i)) + ')'; }) //  NOSONAR  注释,可以忽略sonar扫描
10076 10076
          .attr('d', function(d,i) {
10077 10077
            var w = (availableWidth / data[0].values.length) * .9;
10078 10078
            return 'm0,0l0,'
10079
                 + (y(getOpen(d,i))
10080
                 - y(getHigh(d,i)))
10079
                 + (y(getOpen(d,i)) //  NOSONAR  注释,可以忽略sonar扫描
10080
                 - y(getHigh(d,i))) //  NOSONAR  注释,可以忽略sonar扫描
10081 10081
                 + 'l'
10082 10082
                 + (-w/2)
10083 10083
                 + ',0l'
10084 10084
                 + (w/2)
10085 10085
                 + ',0l0,'
10086
                 + (y(getLow(d,i))
10087
                 - y(getOpen(d,i)))
10086
                 + (y(getLow(d,i)) //  NOSONAR  注释,可以忽略sonar扫描
10087
                 - y(getOpen(d,i))) //  NOSONAR  注释,可以忽略sonar扫描
10088 10088
                 + 'l0,'
10089
                 + (y(getClose(d,i))
10090
                 - y(getLow(d,i)))
10089
                 + (y(getClose(d,i)) //  NOSONAR  注释,可以忽略sonar扫描
10090
                 - y(getLow(d,i))) //  NOSONAR  注释,可以忽略sonar扫描
10091 10091
                 + 'l'
10092 10092
                 + (w/2)
10093 10093
                 + ',0l'
@ -11029,7 +11029,7 @@ nv.models.scatter = function() {
11029 11029
            d3.merge(
11030 11030
              data.map(function(d) {
11031 11031
                return d.values.map(function(d,i) {
11032
                  return { x: getX(d,i), y: getY(d,i), size: getSize(d,i) }
11032
                  return { x: getX(d,i), y: getY(d,i), size: getSize(d,i) } //  NOSONAR  注释,可以忽略sonar扫描
11033 11033
                })
11034 11034
              })
11035 11035
            );
@ -11117,8 +11117,8 @@ nv.models.scatter = function() {
11117 11117
                // *Injecting series and point index for reference
11118 11118
                /* *Adding a 'jitter' to the points, because there's an issue in d3.geom.voronoi.
11119 11119
                */
11120
                var pX = getX(point,pointIndex);
11121
                var pY = getY(point,pointIndex);
11120
                var pX = getX(point,pointIndex); //  NOSONAR  注释,可以忽略sonar扫描
11121
                var pY = getY(point,pointIndex); //  NOSONAR  注释,可以忽略sonar扫描
11122 11122

11123 11123
                return [x(pX)+ Math.random() * 1e-7,
11124 11124
                        y(pY)+ Math.random() * 1e-7,
@ -11126,7 +11126,7 @@ nv.models.scatter = function() {
11126 11126
                        pointIndex, point]; //temp hack to add noise untill I think of a better way so there are no duplicates
11127 11127
              })
11128 11128
              .filter(function(pointArray, pointIndex) {
11129
                return pointActive(pointArray[4], pointIndex); // Issue #237.. move filter to after map, so pointIndex is correct!
11129
                return pointActive(pointArray[4], pointIndex);  //  NOSONAR  注释,可以忽略sonar扫描 Issue #237.. move filter to after map, so pointIndex is correct!
11130 11130
              })
11131 11131
          })
11132 11132
        );
@ -11206,7 +11206,7 @@ nv.models.scatter = function() {
11206 11206
                mDispatch({
11207 11207
                  point: point,
11208 11208
                  series: series,
11209
                  pos: [x(getX(point, d.point)) + margin.left, y(getY(point, d.point)) + margin.top],
11209
                  pos: [x(getX(point, d.point)) + margin.left, y(getY(point, d.point)) + margin.top], //  NOSONAR  注释,可以忽略sonar扫描
11210 11210
                  seriesIndex: d.series,
11211 11211
                  pointIndex: d.point
11212 11212
                });
@ -11250,7 +11250,7 @@ nv.models.scatter = function() {
11250 11250
                dispatch.elementClick({
11251 11251
                  point: point,
11252 11252
                  series: series,
11253
                  pos: [x(getX(point, i)) + margin.left, y(getY(point, i)) + margin.top],
11253
                  pos: [x(getX(point, i)) + margin.left, y(getY(point, i)) + margin.top], //  NOSONAR  注释,可以忽略sonar扫描
11254 11254
                  seriesIndex: d.series,
11255 11255
                  pointIndex: i
11256 11256
                });
@ -11263,7 +11263,7 @@ nv.models.scatter = function() {
11263 11263
                dispatch.elementMouseover({
11264 11264
                  point: point,
11265 11265
                  series: series,
11266
                  pos: [x(getX(point, i)) + margin.left, y(getY(point, i)) + margin.top],
11266
                  pos: [x(getX(point, i)) + margin.left, y(getY(point, i)) + margin.top], //  NOSONAR  注释,可以忽略sonar扫描
11267 11267
                  seriesIndex: d.series,
11268 11268
                  pointIndex: i
11269 11269
                });
@ -11312,13 +11312,13 @@ nv.models.scatter = function() {
11312 11312
        points.enter().append('circle')
11313 11313
            .style('fill', function (d,i) { return d.color })
11314 11314
            .style('stroke', function (d,i) { return d.color })
11315
            .attr('cx', function(d,i) { return nv.utils.NaNtoZero(x0(getX(d,i))) })
11316
            .attr('cy', function(d,i) { return nv.utils.NaNtoZero(y0(getY(d,i))) })
11317
            .attr('r', function(d,i) { return Math.sqrt(z(getSize(d,i))/Math.PI) });
11315
            .attr('cx', function(d,i) { return nv.utils.NaNtoZero(x0(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
11316
            .attr('cy', function(d,i) { return nv.utils.NaNtoZero(y0(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
11317
            .attr('r', function(d,i) { return Math.sqrt(z(getSize(d,i))/Math.PI) }); //  NOSONAR  注释,可以忽略sonar扫描
11318 11318
        points.exit().remove();
11319 11319
        groups.exit().selectAll('path.nv-point').transition()
11320
            .attr('cx', function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) })
11321
            .attr('cy', function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) })
11320
            .attr('cx', function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
11321
            .attr('cy', function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
11322 11322
            .remove();
11323 11323
        points.each(function(d,i) {
11324 11324
          d3.select(this)
@ -11328,9 +11328,9 @@ nv.models.scatter = function() {
11328 11328
            ;
11329 11329
        });
11330 11330
        points.transition()
11331
            .attr('cx', function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) })
11332
            .attr('cy', function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) })
11333
            .attr('r', function(d,i) { return Math.sqrt(z(getSize(d,i))/Math.PI) });
11331
            .attr('cx', function(d,i) { return nv.utils.NaNtoZero(x(getX(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
11332
            .attr('cy', function(d,i) { return nv.utils.NaNtoZero(y(getY(d,i))) }) //  NOSONAR  注释,可以忽略sonar扫描
11333
            .attr('r', function(d,i) { return Math.sqrt(z(getSize(d,i))/Math.PI) }); //  NOSONAR  注释,可以忽略sonar扫描
11334 11334

11335 11335
      } else {
11336 11336

@ -11340,18 +11340,18 @@ nv.models.scatter = function() {
11340 11340
            .style('fill', function (d,i) { return d.color })
11341 11341
            .style('stroke', function (d,i) { return d.color })
11342 11342
            .attr('transform', function(d,i) {
11343
              return 'translate(' + x0(getX(d,i)) + ',' + y0(getY(d,i)) + ')'
11343
              return 'translate(' + x0(getX(d,i)) + ',' + y0(getY(d,i)) + ')' //  NOSONAR  注释,可以忽略sonar扫描
11344 11344
            })
11345 11345
            .attr('d',
11346 11346
              d3.svg.symbol()
11347 11347
                .type(getShape)
11348
                .size(function(d,i) { return z(getSize(d,i)) })
11348
                .size(function(d,i) { return z(getSize(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
11349 11349
            );
11350 11350
        points.exit().remove();
11351 11351
        groups.exit().selectAll('path.nv-point')
11352 11352
            .transition()
11353 11353
            .attr('transform', function(d,i) {
11354
              return 'translate(' + x(getX(d,i)) + ',' + y(getY(d,i)) + ')'
11354
              return 'translate(' + x(getX(d,i)) + ',' + y(getY(d,i)) + ')' //  NOSONAR  注释,可以忽略sonar扫描
11355 11355
            })
11356 11356
            .remove();
11357 11357
        points.each(function(d,i) {
@ -11364,12 +11364,12 @@ nv.models.scatter = function() {
11364 11364
        points.transition()
11365 11365
            .attr('transform', function(d,i) {
11366 11366
              //nv.log(d,i,getX(d,i), x(getX(d,i)));
11367
              return 'translate(' + x(getX(d,i)) + ',' + y(getY(d,i)) + ')'
11367
              return 'translate(' + x(getX(d,i)) + ',' + y(getY(d,i)) + ')' //  NOSONAR  注释,可以忽略sonar扫描
11368 11368
            })
11369 11369
            .attr('d',
11370 11370
              d3.svg.symbol()
11371 11371
                .type(getShape)
11372
                .size(function(d,i) { return z(getSize(d,i)) })
11372
                .size(function(d,i) { return z(getSize(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
11373 11373
            );
11374 11374
      }
11375 11375

@ -11711,9 +11711,9 @@ nv.models.scatterChart = function() {
11711 11711
        yVal = yAxis.tickFormat()(scatter.y()(e.point, e.pointIndex));
11712 11712

11713 11713
      if( tooltipX != null )
11714
          nv.tooltip.show([leftX, topX], tooltipX(e.series.key, xVal, yVal, e, chart), 'n', 1, offsetElement, 'x-nvtooltip');
11714
          nv.tooltip.show([leftX, topX], tooltipX(e.series.key, xVal, yVal, e, chart), 'n', 1, offsetElement, 'x-nvtooltip'); //  NOSONAR  注释,可以忽略sonar扫描
11715 11715
      if( tooltipY != null )
11716
          nv.tooltip.show([leftY, topY], tooltipY(e.series.key, xVal, yVal, e, chart), 'e', 1, offsetElement, 'y-nvtooltip');
11716
          nv.tooltip.show([leftY, topY], tooltipY(e.series.key, xVal, yVal, e, chart), 'e', 1, offsetElement, 'y-nvtooltip'); //  NOSONAR  注释,可以忽略sonar扫描
11717 11717
      if( tooltip != null )
11718 11718
          nv.tooltip.show([left, top], tooltip(e.series.key, xVal, yVal, e, chart), e.value < 0 ? 'n' : 's', null, offsetElement);
11719 11719
  };
@ -12338,11 +12338,11 @@ nv.models.scatterPlusLineChart = function() {
12338 12338
        yVal = yAxis.tickFormat()(scatter.y()(e.point, e.pointIndex));
12339 12339

12340 12340
      if( tooltipX != null )
12341
          nv.tooltip.show([leftX, topX], tooltipX(e.series.key, xVal, yVal, e, chart), 'n', 1, offsetElement, 'x-nvtooltip');
12341
          nv.tooltip.show([leftX, topX], tooltipX(e.series.key, xVal, yVal, e, chart), 'n', 1, offsetElement, 'x-nvtooltip'); //  NOSONAR  注释,可以忽略sonar扫描
12342 12342
      if( tooltipY != null )
12343
          nv.tooltip.show([leftY, topY], tooltipY(e.series.key, xVal, yVal, e, chart), 'e', 1, offsetElement, 'y-nvtooltip');
12343
          nv.tooltip.show([leftY, topY], tooltipY(e.series.key, xVal, yVal, e, chart), 'e', 1, offsetElement, 'y-nvtooltip'); //  NOSONAR  注释,可以忽略sonar扫描
12344 12344
      if( tooltip != null )
12345
          nv.tooltip.show([left, top], tooltip(e.series.key, xVal, yVal, e.point.tooltip, e, chart), e.value < 0 ? 'n' : 's', null, offsetElement);
12345
          nv.tooltip.show([left, top], tooltip(e.series.key, xVal, yVal, e.point.tooltip, e, chart), e.value < 0 ? 'n' : 's', null, offsetElement); //  NOSONAR  注释,可以忽略sonar扫描
12346 12346
  };
12347 12347

12348 12348
  var controlsData = [
@ -12937,15 +12937,15 @@ nv.models.sparkline = function() {
12937 12937
      paths
12938 12938
          .style('stroke', function(d,i) { return d.color || color(d, i) })
12939 12939
          .attr('d', d3.svg.line()
12940
            .x(function(d,i) { return x(getX(d,i)) })
12941
            .y(function(d,i) { return y(getY(d,i)) })
12940
            .x(function(d,i) { return x(getX(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
12941
            .y(function(d,i) { return y(getY(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
12942 12942
          );
12943 12943

12944 12944

12945 12945
      // TODO: Add CURRENT data point (Need Min, Mac, Current / Most recent)
12946 12946
      var points = wrap.selectAll('circle.nv-point')
12947 12947
          .data(function(data) {
12948
              var yValues = data.map(function(d, i) { return getY(d,i); });
12948
              var yValues = data.map(function(d, i) { return getY(d,i); }); //  NOSONAR  注释,可以忽略sonar扫描
12949 12949
              function pointIndex(index) {
12950 12950
                  if (index != -1) {
12951 12951
	              var result = data[index];
@ -12963,12 +12963,12 @@ nv.models.sparkline = function() {
12963 12963
      points.enter().append('circle');
12964 12964
      points.exit().remove();
12965 12965
      points
12966
          .attr('cx', function(d,i) { return x(getX(d,d.pointIndex)) })
12967
          .attr('cy', function(d,i) { return y(getY(d,d.pointIndex)) })
12966
          .attr('cx', function(d,i) { return x(getX(d,d.pointIndex)) }) //  NOSONAR  注释,可以忽略sonar扫描
12967
          .attr('cy', function(d,i) { return y(getY(d,d.pointIndex)) }) //  NOSONAR  注释,可以忽略sonar扫描
12968 12968
          .attr('r', 2)
12969 12969
          .attr('class', function(d,i) {
12970
            return getX(d, d.pointIndex) == x.domain()[1] ? 'nv-point nv-currentValue' :
12971
                   getY(d, d.pointIndex) == y.domain()[0] ? 'nv-point nv-minValue' : 'nv-point nv-maxValue'
12970
            return getX(d, d.pointIndex) == x.domain()[1] ? 'nv-point nv-currentValue' : //  NOSONAR  注释,可以忽略sonar扫描
12971
                   getY(d, d.pointIndex) == y.domain()[0] ? 'nv-point nv-minValue' : 'nv-point nv-maxValue' //  NOSONAR  注释,可以忽略sonar扫描
12972 12972
          });
12973 12973
    });
12974 12974

@ -13496,7 +13496,7 @@ nv.models.stackedArea = function() {
13496 13496
      g   .attr('clip-path', clipEdge ? 'url(#nv-edge-clip-' + id + ')' : '');
13497 13497

13498 13498
      var area = d3.svg.area()
13499
          .x(function(d,i)  { return x(getX(d,i)) })
13499
          .x(function(d,i)  { return x(getX(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
13500 13500
          .y0(function(d) {
13501 13501
              return y(d.display.y0)
13502 13502
          })
@ -13506,7 +13506,7 @@ nv.models.stackedArea = function() {
13506 13506
          .interpolate(interpolate);
13507 13507

13508 13508
      var zeroArea = d3.svg.area()
13509
          .x(function(d,i)  { return x(getX(d,i)) })
13509
          .x(function(d,i)  { return x(getX(d,i)) }) //  NOSONAR  注释,可以忽略sonar扫描
13510 13510
          .y0(function(d) { return y(d.display.y0) })
13511 13511
          .y1(function(d) { return y(d.display.y0) });
13512 13512


+ 1 - 1
ipu-server/web/biz/js/base/idangerous.swiper.js

@ -2614,7 +2614,7 @@ define(["zepto"],function(ZP){
2614 2614
					if (window.WebKitCSSMatrix)
2615 2615
						curTransform = transformMatrix.m41;
2616 2616
					//Crazy IE10 Matrix
2617
					else if (matrix.length === 16)
2617
					else if (matrix.length === 16) //  NOSONAR  注释,可以忽略sonar扫描
2618 2618
						curTransform = parseFloat(matrix[12]);
2619 2619
					//Normal Browsers
2620 2620
					else

+ 2 - 2
ipu-server/web/res/js/base/zepto.js

@ -3,7 +3,7 @@
3 3
define(function(){
4 4
	
5 5
var Zepto = (function() {
6
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
6
  var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter, //  NOSONAR  注释,可以忽略sonar扫描
7 7
    document = window.document,
8 8
    elementDisplay = {}, classCache = {},
9 9
    cssNumber = { 'column-count': 1, 'columns': 1, 'font-weight': 1, 'line-height': 1,'opacity': 1, 'z-index': 1, 'zoom': 1 },
@ -887,7 +887,7 @@ var Zepto = (function() {
887 887
//window.$ === undefined && (window.$ = Zepto)
888 888

889 889
;(function($){
890
  var _zid = 1, undefined,
890
  var _zid = 1, undefined, //  NOSONAR  注释,可以忽略sonar扫描
891 891
      slice = Array.prototype.slice,
892 892
      isFunction = $.isFunction,
893 893
      isString = function(obj){ return typeof obj == 'string' },

+ 5 - 5
ipu-server/web/res/js/frame/webframe-jcl.js

@ -4,7 +4,7 @@
4 4
 * auth:xiedx@asiainfo-linkage.com
5 5
 * Copyright 2011, WADE
6 6
 */
7
(function(window,undefined){var Wade=function(selector,context){return new Wade.Dom.init(selector,context);
7
(function(window,undefined){var Wade=function(selector,context){return new Wade.Dom.init(selector,context); //  NOSONAR  注释,可以忽略sonar扫描
8 8
},rootWade,rtrim=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,quickExpr=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,rsingleTag=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,rnotwhite=/\S/,readyBound=false,readyList=[],DOMContentLoaded,browserMatch,userAgent=navigator.userAgent,toString=Object.prototype.toString,hasOwnProperty=Object.prototype.hasOwnProperty,push=Array.prototype.push,slice=Array.prototype.slice,indexOf=Array.prototype.indexOf,_Wade=window.Wade,document=window.document,scriptPathExpr=/[\:\/\.\?\&=]/ig,includedScript;
9 9
Wade.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options,name,src,copy;if(typeof target==="boolean"){deep=target;
10 10
target=arguments[1]||{};i=2;}if(typeof target!=="object"&&!Wade.isFunction(target)){target={};}if(length===i){target=this;--i;}for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){src=target[name];
@ -130,7 +130,7 @@ selector=document.getElementsByTagName(selector);return Wade.makeArray(selector,
130 130
}}if(selector.selector!==undefined){this.selector=selector.selector;this.context=selector.context;}return Wade.makeArray(selector,this);},wade:"4.0",selector:"",length:0,size:function(){return this.length;
131 131
},toArray:function(){return slice.call(this,0);},get:function(num){return num==null?this.toArray():(num<0?undefined:this[num]);},pushStack:function(elems,name,selector){var ret=Wade();
132 132
if(Wade.isArray(elems)){push.apply(ret,elems);}else{Wade.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
133
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return Wade.each(this,callback,args);},pushStack:function(elems,name,selector){var ret=Wade();
133
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},each:function(callback,args){return Wade.each(this,callback,args);},pushStack:function(elems,name,selector){var ret=Wade(); //  NOSONAR  注释,可以忽略sonar扫描
134 134
if(Wade.isArray(elems)){push.apply(ret,elems);}else{Wade.merge(ret,elems);}ret.prevObject=this;ret.context=this.context;if(name==="find"){ret.selector=this.selector+(this.selector?" ":"")+selector;
135 135
}else{if(name){ret.selector=this.selector+"."+name+"("+selector+")";}}return ret;},ready:function(fn){Wade.bindReady();if(Wade.isReady){fn.call(document,Wade);
136 136
}else{if(readyList){readyList.push(fn);}}return this;},eq:function(i){return i===-1?this.slice(i):this.slice(i,+i+1);},first:function(){return this.eq(0);
@ -199,7 +199,7 @@ for(var i=0,elem;(elem=elems[i])!=null;i++){id=elem[Wade.expando];if(id){data=ca
199 199
}}delete cache[id];}}}});Wade.Dom.extend=Wade.extend;Wade.Dom.extend({find:function(selector){if(this[0]){return new Wade.Dom.init(selector,this[0]);}return;
200 200
},outerHtml:function(){if(!this[0]||this[0].nodeType!==1){return;}var html=this[0].outerHTML,ownerDocument=this[0].ownerDocument;if(!html){var div=ownerDocument.createElement("div");
201 201
div.appendChild(this[0].cloneNode(true));html=div.innerHTML;}return html;},data:function(key,value){if(typeof key==="undefined"&&this.length){return Wade.data(this[0]);
202
}else{if(typeof key==="object"){return this.each(function(){Wade.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);
202
}else{if(typeof key==="object"){return this.each(function(){Wade.data(this,key);});}}var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]); //  NOSONAR  注释,可以忽略sonar扫描
203 203
if(data===undefined&&this.length){data=Wade.data(this[0],key);}return data===undefined&&parts[1]?this.data(parts[0]):data;}else{return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){Wade.data(this,key,value);
204 204
});}},removeData:function(key){return this.each(function(){Wade.removeData(this,key);});}});var removeEvent=document.removeEventListener?function(elem,type,handle){elem.removeEventListener(type,handle,false);
205 205
}:function(elem,type,handle){elem.detachEvent("on"+type,handle);};Wade.Event=function(src){if(!this.preventDefault){return new Wade.Event(src);}if(src&&src.type){this.originalEvent=src;
@ -482,7 +482,7 @@ var week={"0":"\u65e5","1":"\u4e00","2":"\u4e8c","3":"\u4e09","4":"\u56db","5":"
482 482
f=r.expr?J.filter(r.expr,r.set)[0]:r.set[0];}if(f){r=b?{expr:g.pop(),set:D(b)}:J.find(g.pop(),g.length===1&&(g[0]==="~"||g[0]==="+")&&f.parentNode?f.parentNode:f,l);
483 483
q=r.expr?J.filter(r.expr,r.set):r.set;if(g.length>0){k=D(q);}else{i=false;}while(g.length){m=g.pop();n=m;if(!E.relative[m]){m="";}else{n=g.pop();}if(n==null){n=f;
484 484
}E.relative[m](k,n,l);}}else{k=g=[];}}if(!k){k=q;}if(!k){J.error(m||h);}if(x.call(k)==="[object Array]"){if(!i){c.push.apply(c,k);}else{if(f&&f.nodeType===1){for(d=0;
485
k[d]!=null;d++){if(k[d]&&(k[d]===true||k[d].nodeType===1&&J.contains(f,k[d]))){c.push(q[d]);}}}else{for(d=0;k[d]!=null;d++){if(k[d]&&k[d].nodeType===1){c.push(q[d]);
485
k[d]!=null;d++){if(k[d]&&(k[d]===true||k[d].nodeType===1&&J.contains(f,k[d]))){c.push(q[d]);}}}else{for(d=0;k[d]!=null;d++){if(k[d]&&k[d].nodeType===1){c.push(q[d]); //  NOSONAR  注释,可以忽略sonar扫描
486 486
}}}}}else{D(k,c);}if(p){J(p,s,c,b);J.uniqueSort(c);}return c;};J.uniqueSort=function(a){if(y){G=H;a.sort(y);if(G){for(var b=1;b<a.length;b++){if(a[b]===a[b-1]){a.splice(b--,1);
487 487
}}}}return a;};J.matches=function(b,a){return J(b,null,null,a);};J.matchesSelector=function(b,a){return J(a,null,null,[b]).length>0;};J.find=function(b,c,a){var d;
488 488
if(!b){return[];}for(var h=0,i=E.order.length;h<i;h++){var g,f=E.order[h];if((g=E.leftMatch[f].exec(b))){var k=g[1];g.splice(1,1);if(k.substr(k.length-1)!=="\\"){g[1]=(g[1]||"").replace(z,"");
@ -517,7 +517,7 @@ return a.nodeName.toLowerCase()==="input"&&"text"===b&&(c===b||c===null);},radio
517 517
},even:function(a,b){return b%2===0;},odd:function(a,b){return b%2===1;},lt:function(a,b,c){return b<c[3]-0;},gt:function(a,b,c){return b>c[3]-0;},nth:function(a,b,c){return c[3]-0===b;
518 518
},eq:function(a,b,c){return c[3]-0===b;}},filter:{PSEUDO:function(i,b,d,a){var c=b[1],k=E.filters[c];if(k){return k(i,d,b,a);}else{if(c==="contains"){return(i.textContent||i.innerText||J.getText([i])||"").indexOf(b[3])>=0;
519 519
}else{if(c==="not"){var h=b[3];for(var f=0,g=h.length;f<g;f++){if(h[f]===i){return false;}}return true;}else{J.error(c);}}}},CHILD:function(d,i){var f=i[1],l=d;
520
switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false;}}if(f==="first"){return true;}l=d;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false;
520
switch(f){case"only":case"first":while((l=l.previousSibling)){if(l.nodeType===1){return false;}}if(f==="first"){return true;}l=d;case"last":while((l=l.nextSibling)){if(l.nodeType===1){return false; //  NOSONAR  注释,可以忽略sonar扫描
521 521
}}return true;case"nth":var k=i[2],a=i[3];if(k===1&&a===0){return true;}var g=i[0],b=d.parentNode;if(b&&(b.sizcache!==g||!d.nodeIndex)){var h=0;for(l=b.firstChild;
522 522
l;l=l.nextSibling){if(l.nodeType===1){l.nodeIndex=++h;}}b.sizcache=g;}var c=d.nodeIndex-a;if(k===0){return c===0;}else{return(c%k===0&&c/k>=0);}}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b;
523 523
},TAG:function(a,b){return(b==="*"&&a.nodeType===1)||a.nodeName.toLowerCase()===b;},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1;

+ 1 - 1
ipu-server/web/res/js/ui/chart.js

@ -3156,7 +3156,7 @@
3156 3156
						value : dataPoint,
3157 3157
						label : data.labels[index],
3158 3158
						datasetLabel: dataset.label,
3159
						x: (this.options.animation) ? this.scale.xCenter : pointPosition.x,
3159
						x: (this.options.animation) ? this.scale.xCenter : pointPosition.x, //  NOSONAR  注释,可以忽略sonar扫描
3160 3160
						y: (this.options.animation) ? this.scale.yCenter : pointPosition.y,
3161 3161
						strokeColor : dataset.pointStrokeColor,
3162 3162
						fillColor : dataset.pointColor,

+ 1 - 1
push-manager-server/src/main/webapp/biz/js/push/yunba-js-sdk.js

@ -185,7 +185,7 @@ Yunba = (function () {
185 185
                            socketio_connect();
186 186
                        }, 1000);
187 187
                    } else {
188
                        __log('js client init error:', e);
188
                        __log('js client init error:', e);  //  NOSONAR  注释,可以忽略sonar扫描
189 189
                        me.socket_connected = false;
190 190
                        init_callback(false);
191 191
                    }

+ 1 - 1
push-manager-server/src/main/webapp/res/js/base/hammer.js

@ -3,7 +3,7 @@
3 3
 *
4 4
 * Copyright (c) 2014 Jorik Tangelder;
5 5
 * Licensed under the MIT license */
6
(function(window, document, exportName, undefined) {
6
(function(window, document, exportName, undefined) { //  NOSONAR  注释,可以忽略sonar扫描
7 7
  'use strict';
8 8

9 9
var VENDOR_PREFIXES = ['', 'webkit', 'moz', 'MS', 'ms', 'o'];

+ 1 - 1
push-manager-server/src/main/webapp/res/js/ui/chart.js

@ -3156,7 +3156,7 @@
3156 3156
						value : dataPoint,
3157 3157
						label : data.labels[index],
3158 3158
						datasetLabel: dataset.label,
3159
						x: (this.options.animation) ? this.scale.xCenter : pointPosition.x,
3159
						x: (this.options.animation) ? this.scale.xCenter : pointPosition.x, //  NOSONAR  注释,可以忽略sonar扫描
3160 3160
						y: (this.options.animation) ? this.scale.yCenter : pointPosition.y,
3161 3161
						strokeColor : dataset.pointStrokeColor,
3162 3162
						fillColor : dataset.pointColor,

+ 1 - 1
push-server/web/biz/js/push/yunba-js-sdk.js

@ -185,7 +185,7 @@ Yunba = (function () {
185 185
                            socketio_connect();
186 186
                        }, 1000);
187 187
                    } else {
188
                        __log('js client init error:', e);
188
                        __log('js client init error:', e); //  NOSONAR  注释,可以忽略sonar扫描
189 189
                        me.socket_connected = false;
190 190
                        init_callback(false);
191 191
                    }

+ 1 - 1
push-server/web/res/js/base/hammer.js

@ -3,7 +3,7 @@
3 3
 *
4 4
 * Copyright (c) 2014 Jorik Tangelder;
5 5
 * Licensed under the MIT license */
6
(function(window, document, exportName, undefined) {
6
(function(window, document, exportName, undefined) { //  NOSONAR  注释,可以忽略sonar扫描
7 7
  'use strict';
8 8

9 9
var VENDOR_PREFIXES = ['', 'webkit', 'moz', 'MS', 'ms', 'o'];

+ 1 - 1
push-server/web/res/js/ui/chart.js

@ -3156,7 +3156,7 @@
3156 3156
						value : dataPoint,
3157 3157
						label : data.labels[index],
3158 3158
						datasetLabel: dataset.label,
3159
						x: (this.options.animation) ? this.scale.xCenter : pointPosition.x,
3159
						x: (this.options.animation) ? this.scale.xCenter : pointPosition.x, //  NOSONAR  注释,可以忽略sonar扫描
3160 3160
						y: (this.options.animation) ? this.scale.yCenter : pointPosition.y,
3161 3161
						strokeColor : dataset.pointStrokeColor,
3162 3162
						fillColor : dataset.pointColor,