' + App.genTable(r.Data.list, {
'StatusCode': function (raw, index) {
return '
' + raw + '';
},
'Brower': wp,
- 'UserAgent': wp,
- 'URI': wp,
- 'Referer': wp,
+ 'UserAgent': wp2,
+ 'URI': wp2,
+ 'Referer': wp2,
'': function (raw, index) {
return App.htmlEncode(raw);
}
diff --git a/public/assets/backend/js/behaviour/general.min.js b/public/assets/backend/js/behaviour/general.min.js
index 506047dfe..9b1c902ff 100644
--- a/public/assets/backend/js/behaviour/general.min.js
+++ b/public/assets/backend/js/behaviour/general.min.js
@@ -1 +1 @@
-var App=function(){var a={tooltip:true,popover:true,nanoScroller:true,nestableLists:true,hiddenElements:true,bootstrapSwitch:true,dateTime:true,select2:true,tags:true,slider:true};var t=function(){$(".wizard-ux").wizard();$(".wizard-ux").on("changed",function(){$(".bslider").slider()});$(".wizard-next").on("click",function(t){$(".wizard-ux").wizard("next");t.preventDefault()});$(".wizard-previous").on("click",function(t){$(".wizard-ux").wizard("previous");t.preventDefault()})};function n(t){var e=$("#sidebar-collapse")[0];var a=$("#cl-wrapper");if(a.hasClass("sb-collapsed")){$(".fa",e).addClass("fa-angle-left").removeClass("fa-angle-right");a.removeClass("sb-collapsed")}else{$(".fa",e).removeClass("fa-angle-left").addClass("fa-angle-right");a.addClass("sb-collapsed")}}function e(){var i=window.location.pathname.replace(/^\//,"").replace(/[^\w]/g,"-");$(".page-aside").each(function(t){var e=$(this).attr("page-key")||i;var a=$(this),n=e+".page-aside-"+t;$(this).find(".header > .collapse-button").on("click",function(){a.addClass("collapsed");store.set(n,"collapsed");a.trigger("collapsed");g()});$(this).children(".collapsed-button").on("click",function(){a.removeClass("collapsed");store.set(n,"");a.trigger("expanded");g()});if(store.get(n)=="collapsed"){$(this).find(".header > .collapse-button").trigger("click")}})}function r(){var t=$("#main-container > .page-aside");var e=t.width();if(e<270){t.find(".header > .collapse-button").trigger("click");return}g()}function o(t){var e=t.children();if(e.length<1)return null;switch(e[0].tagName.toUpperCase()){case"TABLE":return e;default:return o(e)}}function g(t){if(t==null)t="#cl-wrapper > .cl-body .table-responsive";var e=t instanceof jQuery?t:$(t);var i=$("#pcont").offset().left,r=$(window).width()-i;e.each(function(){var t=$(this).offset().left-i;var e=r-t*2;var a=$(this).data("width");if(a&&a==e)return;$(this).data("width",e);var n=o($(this));if(n==null)return;if(n.outerWidth()>e){$(this).addClass("overflow").css("max-width",e)}else{$(this).removeClass("overflow").css("max-width",e)}})}var s=$("");var l=/&|<|>| |\'|\"/g,c={"&":"&","<":"<",">":">"," ":" ","'":"'",'"':"""};var f=/&|<|>| |'|"/g,d={"&":"&","<":"<",">":">"," ":" ","'":"'",""":'"'};var p=/\n| |\t/g,u={"\n":"
"," ":" ","\t":" "};function h(t,e){if(($("#cl-wrapper").hasClass("sb-collapsed")||$(window).width()>755&&$(window).width()<963)&&$("ul",t).length>0){$(t).removeClass("ocult");var a=$("ul",t);if(!$(".dropdown-header",t).length){var n='";a.prepend(n)}s.appendTo("body");var i=$(t).offset().top+8-$(window).scrollTop();var r=$(t).width();s.css({top:i,left:r+8});s.html('");s.show();a.css("top",i)}else{s.hide()}}function v(){var t=220;var e=500;var a=$('
');a.appendTo("body");$(window).on("scroll",function(){if($(this).scrollTop()>t){$(".back-to-top").fadeIn(e)}else{$(".back-to-top").fadeOut(e)}});$(".back-to-top").on("click",function(t){t.preventDefault();$("html, body").animate({scrollTop:0},e);return false})}var w=null,m=null;return{clientID:{},i18n:{SYS_INFO:"System Information",UPLOAD_ERR:"Upload Error",PLEASE_SELECT_FOR_OPERATE:"Please select the item you want to operate",PLEASE_SELECT_FOR_REMOVE:"Please select the item you want to delete",CONFIRM_REMOVE:"Are you sure you want to delete them?",SELECTED_ITEMS:"You have selected %d items",SUCCESS:"The operation was successful",FAILURE:"Operation failed",UPLOADING:"File uploading, please wait...",UPLOAD_SUCCEED:"Upload successfully",BUTTON_UPLOAD:"Upload"},lang:"en",sprintf:sprintfWrapper.init,t:function(t){if(typeof App.i18n[t]=="undefined"){if(arguments.length<2)return t;return App.sprintf.apply(this,arguments)}if(arguments.length<2)return App.i18n[t];arguments[0]=App.i18n[t];return App.sprintf.apply(this,arguments)},langInfo:function(){if(w!=null)return w;var t=App.lang.split("-",2);w={encoding:t[0],country:""};if(t.length>1)w.country=t[1].toUpperCase();return w},langTag:function(t){var e=App.langInfo();if(e.country){if(t==null){t="-"}return e.encoding+t+e.country}return e.encoding},initTool:function(){s.on("mouseenter",function(t){$(this).addClass("over")}).on("mouseleave",function(){$(this).removeClass("over");s.fadeOut("fast")});$(document).on("click",function(){s.hide()});$(document).on("touchstart click",function(t){s.fadeOut("fast")});s.on("click",function(t){t.stopPropagation()})},initLeftNav:function(){$(".cl-vnavigation li ul").each(function(){$(this).parent().addClass("parent")});$(".cl-vnavigation li ul li.active").each(function(){$(this).parent().show().parent().addClass("open")});if(!$(".cl-vnavigation").data("initclick")){$(".cl-vnavigation").data("initclick",true);$(".cl-vnavigation").on("click",".parent > a",function(t){$(".cl-vnavigation .parent.open > ul").not($(this).parent().find("ul")).slideUp(300,"swing",function(){$(this).parent().removeClass("open")});var e=$(this).parent().find("ul");e.slideToggle(300,"swing",function(){var t=$(this).parent();if(t.hasClass("open")){t.removeClass("open")}else{t.addClass("open")}$("#cl-wrapper .nscroller").nanoScroller({preventPageScrolling:true})});t.preventDefault()})}$(".cl-vnavigation li").on("mouseenter",function(t){h(this,t)}).on("mouseleave",function(t){s.removeClass("over");setTimeout(function(){if(!s.hasClass("over")&&!$(".cl-vnavigation li:hover").length>0){s.hide()}},500)});$(".cl-vnavigation li").on("click",function(t){if(($("#cl-wrapper").hasClass("sb-collapsed")||$(window).width()>755&&$(window).width()<963)&&$("ul",this).length>0&&!($(window).width()<755)){h(this,t);t.stopPropagation()}})},initLeftNavAjax:function(t,e){App.markNavByURL(t);App.attachPjax(e,{onclick:function(t){if($(t).data("marknav")){App.unmarkNav($(t),$(t).data("marknav"));App.markNav($(t),$(t).data("marknav"))}},onend:function(t,e,a){$(a.container).find('[data-popover="popover"]').popover();$(a.container).find('.ttip, [data-toggle="tooltip"]').tooltip()}});App.attachAjaxURL(e)},init:function(t){$.extend(a,t);App.initLeftNav();App.initTool();App.showRequriedInputStar();$(".cl-toggle").on("click",function(t){var e=$(".cl-vnavigation");e.slideToggle(300,"swing",function(){});t.preventDefault()});$("#sidebar-collapse").on("click",function(){n()});if($("#cl-wrapper").hasClass("fixed-menu")){var i=$("#cl-wrapper .menu-space");i.addClass("nano nscroller");function e(){var t=$("#cl-wrapper .collapse-button");var e=t.outerHeight();var a=$("#head-nav").height();var n=$(window).height()-(t.is(":visible")?e:0)-a;i.css("height",n);$("#cl-wrapper .nscroller").nanoScroller({preventPageScrolling:true})}$(window).on("resize",function(){e()});e();$("#cl-wrapper .nscroller").nanoScroller({preventPageScrolling:true})}else{$(window).on("resize",function(){if($(window).width()>767){var t=$("#head-nav").height();$("#cl-wrapper").css("padding-top",t)}})}v();if($(".ui-datepicker").length>0)$(".ui-datepicker").datepicker();if(a.tooltip){$('.ttip, [data-toggle="tooltip"]').tooltip()}if(a.popover){$('[data-popover="popover"]').popover()}if(a.nanoScroller){$(".nscroller:not(.has-scrollbar)").nanoScroller()}if(a.bootstrapSwitch){if($(".switch:not(.has-switch)").length>0)$(".switch:not(.has-switch)").bootstrapSwitch()}if(a.dateTime){if($(".datetime").length>0)$(".datetime").datetimepicker({autoclose:true})}if(a.select2){if($(".select2").length>0)$(".select2").select2({width:"100%"})}if(a.tags){if($(".tags").length>0)$(".tags").select2({tags:0,width:"100%"})}if(a.slider){if($(".bslider").length>0)$(".bslider").slider()}if(a.hiddenElements){$(".dropdown").on("shown.bs.dropdown",function(){$(".nscroller").nanoScroller()});$(".nav-tabs").on("shown.bs.tab",function(t){$(".nscroller").nanoScroller()})}App.startLazyload();App.autoFixedThead();$(window).trigger("scroll")},autoFixedThead:function(t){if(t==null)t="";var e=function(){return $(window).width()>=753?$("#head-nav").height():0};App.topFloatThead(t+"thead.auto-fixed",e)},pageAside:function(t){e(t)},tableReponsiveInit:function(t){r(t)},tableReponsive:function(t){g(t)},toggleSideBar:function(){n()},wizard:function(){t()},markNavByURL:function(t){if(!t)t=window.location.pathname;if(t=="/index")return;var e=$('#leftnav a[href="'+BACKEND_URL+t+'"]');if(e.length<1)e=$('#leftnav a[href="'+t+'"]');App.markNav(e,"left");var a=$('#topnav a[href="'+BACKEND_URL+t+'"]:first');if(a.length<1)a=$('#topnav a[href="'+t+'"]:first');App.markNav(a,"top")},markNav:function(t,e){if(t.length<1)return;var a=t.parent("li").addClass("active");switch(e){case"left":a.parent(".from-left").show().parent("li").addClass("open");var n=$("#leftnav").attr("data-project");var i=$('#topnav li[data-project="'+n+'"]');if(i.length>0&&!i.hasClass("active")){i.addClass("active").siblings(".active").removeClass("active").find(".active").removeClass("active")}break;case"top":a.parent(".from-top").parent("li").addClass("active").siblings("li.active").removeClass("active");break}},unmarkNav:function(t,e){var a=t.parent("li");var n=a.siblings("li.active");if(n.length>0){n.removeClass("active");return}switch(e){case"left":if(a.parent("ul.sub-menu").length>0){var i=$(".col-menu-2").children("li.open");if(i.length>0)i.removeClass("open").find("li.active").removeClass("active")}$("#leftnav > .open").removeClass("open").children("ul.sub-menu").hide().children("li.active").removeClass("active");$("#leftnav .active").removeClass("active");break;case"top":var r=a.parent("ul.dropdown-menu.from-top");if(r.length>0){n=r.parent("li").addClass("active").siblings("li.active")}if(n.length>0){n.removeClass("active").children("ul.dropdown-menu.from-top").children("li.active").removeClass("active")}break}},message:function(t,e){if(typeof t=="string"){switch(t){case"remove":var a=e;return $.gritter.remove(a);case"clear":return $.gritter.removeAll(e||{})}}var n={title:App.i18n.SYS_INFO,text:"",image:"",class_name:"clean",sticky:false};if(typeof t!="object")t={text:t,class_name:"clean"};if(typeof t.type!="undefined"&&t.type)t.class_name=t.type;t=$.extend({},n,t||{});switch(t.class_name){case"dark":case"primary":case"clean":case"info":if(t.title)t.title='
'+App.t(t.title);break;case"error":t.class_name="danger";case"danger":if(t.title)t.title=' '+App.t(t.title);break;case"warning":if(t.title)t.title='
'+App.t(t.title);break;case"success":if(t.title)t.title='
'+App.t(t.title);break}if(e!=null)t.sticky=e;if(t.text)t.text=App.t(t.text);var a=$.gritter.add(t);return a},attachAjaxURL:function(t){if(t==null)t=document;$(t).on("click","[data-ajax-url]",function(){var n=$(this),t=n.data("ajax-confirm");if(n.data("processing")){alert(App.t("Processing, please wait for the operation to complete"));return}if(t&&!confirm(t))return;n.data("processing",true);var e=n.data("ajax-url"),a=n.data("ajax-method")||"get",i=n.data("ajax-params")||{},r=n.attr("title")||App.i18n.SYS_INFO,o=n.data("ajax-accept")||"html",s=n.data("ajax-target"),l=n.data("ajax-callback"),c=n.data("ajax-toggle"),f=n.data("ajax-onsuccess"),d=n.data("ajax-reload")||false;if(!r)r=n.text();var p=n.children(".fa");var u=c&&p.length>0;if(u){p.addClass("fa-spin")}else{App.loading("show")}n.trigger("processing");if(typeof i==="function")i=i.apply(this,arguments);i=App.setClientID(i);$[a](e,i||{},function(t){n.data("processing",false);n.trigger("finished",arguments);if(u){p.removeClass("fa-spin")}else{App.loading("hide")}if(l)return l.apply(this,arguments);if(s){var e;if(o=="json"){if(t.Code!=1){return App.message({title:r,text:t.Info,type:"error",time:5e3,sticky:false})}e=t.Data}else{e=t}$(s).html(e);n.trigger("partial.loaded",arguments);$(s).trigger("partial.loaded",arguments);if(f)window.setTimeout(f,0);return}if(t.Code==1){if(f)window.setTimeout(f,2e3);if(d)window.setTimeout(function(){window.location.reload()},2e3)}if(o=="json"){return App.message({title:r,text:t.Info,type:t.Code==1?"success":"error",time:5e3,sticky:false})}App.message({title:r,text:t,time:5e3,sticky:false})},o).error(function(t,e,a){n.data("processing",false);n.trigger("finished",arguments);if(u){p.removeClass("fa-spin")}else{App.loading("hide")}App.message({title:r,text:t.responseText,type:"error",time:5e3,sticky:false})})})},startLazyload:function(t){if(t==null)t=document;$(t).find("[lazyload-url]:not([loaded])").each(function(){var n=$(this);n.attr("loaded","1");var t=n.attr("lazyload-url"),e=n.attr("lazyload-method")||"get",a=n.attr("lazyload-params")||{},i=n.attr("title")||App.i18n.SYS_INFO,r=n.attr("lazyload-accept")||"html",o=n.attr("lazyload-target"),s=n.attr("lazyload-onsuccess");if(!i)i=n.text();if(!o)o=this;$(o).html('
');if(typeof a==="function")a=a.apply(this,arguments);a=App.setClientID(a||{});$.ajax({type:e,url:t,async:true,dataType:r,data:a||{},success:function(t){n.trigger("finished",arguments);var e;if(r=="json"){if(t.Code!=1){$(o).html('
'+t.Info+" ");return}e=t.Data.html||""}else{e=t}$(o).html(e);if(s)window.setTimeout(s,0)},error:function(t,e,a){n.trigger("finished",arguments);$(o).html('
'+t.responseText+" ")}})})},postFormData:function(t,e,a,n,i){var r=$(t);var o=new FormData(r[0]);if(e){for(var s in e){o.append(s,e[s])}}var l=App.getClientID();if(l)o.append("notifyClientID",l);if(!i)i="json";var c=r.attr("action");$.ajax({type:"post",url:c,data:o,dataType:i,cache:false,processData:false,contentType:false}).success(function(t){a&&a.apply(this,arguments)}).error(function(t,e,a){n&&n.apply(this,arguments)})},attachPjax:function(t,e,f){if(!$.support.pjax)return;if(t==null)t="a";if(f==null)f=5e3;var a={onclick:null,onsend:null,oncomplete:null,ontimeout:null,onstart:null,onend:null};var d=$.extend({},a,e||{});$(document).on("click",t+"[data-pjax]",function(t){var e=$(this).data("pjax"),a=$(this).data("keepjs");var n=$(this).data("onclick"),i=$(this).data("toggleclass");$.pjax.click(t,e,{timeout:f,keepjs:a});if(d.onclick)d.onclick(this);if(n&&typeof window[n]=="function")window[n](this);if(i){var r=i.split(":"),o,s;if(r.length>1){o=r[0];i=r[1]}i=i.replace(/^\./g,"");if(o){var l=o.indexOf("."),c;if(l>0){c=o.substring(l+1);o=o.substring(0,l)}switch(o){case"parent":s=$(this).parent(c);break;case"parents":s=$(this).parents(c);break;case"closest":s=$(this).closest(c);break;default:s=$(this).parent(c);break}}else{s=$(this)}s.addClass(i).siblings("."+i).removeClass(i)}$(".sp_result_area").remove();$(".tox").remove();$(".select2-hidden-accessible").remove();$(".select2-sizer").remove();$(".select2-drop").remove();$("#select2-drop-mask").remove()}).on("pjax:send",function(t,e,a){App.loading("show");if(d.onsend)d.onsend(t,e,a)}).on("pjax:complete",function(t,e,a,n){App.loading("hide");if(d.oncomplete)d.oncomplete(t,e,a,n)}).on("pjax:timeout",function(t,e,a){console.log("timeout");App.loading("hide");if(d.ontimeout)d.ontimeout(t,e,a)}).on("pjax:start",function(t,e,a){if(d.onstart)d.onstart(t,e,a)}).on("pjax:end",function(t,e,a){App.loading("hide");if(d.onend)d.onend(t,e,a);if(a.container){App.bottomFloat(a.container+" .pagination");App.bottomFloat(a.container+" .form-submit-group",0,true);$(a.container+" .switch:not(.has-switch)").bootstrapSwitch();App.autoFixedThead(a.container+" ")}if(a.type=="GET")$("#global-search-form").attr("action",a.url);App.startLazyload(a.container);App.formWithNotify()})},attachTurn:function(t,e){var a={elem:t,target:$(t).data("target"),show:{Y:true,N:false},event:"click"};if(typeof e=="string"){a.target=e;e={}}var i=$.extend(a,e||{});if(i.event==null)i.event="click";if($(i.elem).length<1)return;$(i.elem).on(i.event,function(){var t=$(this).val(),e=$(i.target);var a=$(this).data("turn");if(a){a=a=="on"||a=="1"||a=="true"||a=="Y";if(a){e.show()}else{e.hide()}}else if(typeof a!="undefined"){e.hide()}if(i.prop){for(var n in i.prop){e.prop(n,i.prop.prop[t])}return}if(t in i.show){if(i.show[t]){e.show()}else{e.hide()}}});switch($(i.elem)[0].tagName.toUpperCase()){case"INPUT":$(i.elem+":checked").trigger(i.event);break;case"SELECT":if(!$(i.elem).children("option:first").prop("selected")){$(i.elem).trigger(i.event)}break}},wsURL:function(t){var e="ws:";if(window.location.protocol=="https:")e="wss:";var a=String(t).indexOf("//");if(a==-1){t=e+"//"+window.location.host+t}else{t=e+String(t).substring(a)}return t},websocket:function(e,t,a){t=App.wsURL(t);var n=new WebSocket(t);n.onopen=function(t){console.log("Websocket Server is connected");if(a!=null&&typeof a==="function")a.apply(this,arguments)};n.onclose=function(t){console.log("Websocket Server is disconnected")};n.onmessage=function(t){e(t.data)};n.onerror=function(t){console.dir(t)};if(a!=null&&typeof a=="object"){n=$.extend({},n,a)}return n},notifyRecvDefault:function(t,e,a){var n="notify-default-shower",i="notify-default-shower-body";var r="#"+n,o="#"+i;if(a==null)a=false;if(a&&!t){if($(r).length>0)$(o).slideUp("slow",function(){$(r).remove()});return}if($(r).length<1){$("body").append('
\t\t\t\t
');if(!a){var s=window.setInterval(function(){var t=Number($(r).attr("updated")||0);if((new Date).getTime()-t>5e3&&!$("#loading-status").is(":visible")){window.clearInterval(s);$(o).slideUp("slow",function(){$(r).remove()})}},1e3)}}$(r).attr("updated",(new Date).getTime());if(e)t="["+Number(e).toFixed(2)+"%] "+t;$(o).text(t)},formWithNotify:function(){if(typeof App.clientID["notify"]=="undefined"||!App.clientID["notify"])return;var t=$("#pcont").find("form[notify]");if(t.length<1)return;var e=t.find("input[name=notifyClientID]");if(e.length<1){t.append('