Other information | The following comment/snippet was identified via the pattern: \bUSERNAME\b var _dataTable=null,l=abp.localization.getResource("AbpIdentity"),_identitySecurityLog=volo.abp.identity.identitySecurityLog;abp.ui.extensions.tableColumns.get("identity.securityLogs").addContributor(function(n){n.addManyTail([{title:l("SecurityLogs:Time"),data:"creationTime",dataFormat:"datetime"},{title:l("SecurityLogs:Action"),data:"action",autoWidth:!0,render:function(n){return n=n||"",'<span class="datatableCell" data-filter-field="Action">'+n+"<\/span>"}},{title:l("SecurityLogs:IpAddress"),data:"clientIpAddress",autoWidth:!0,orderable:!1},{title:l("SecurityLogs:Browser"),data:"browserInfo",autoWidth:!0,orderable:!1,render:function(n){n=n||"";var t=20;return n.length>t?'<span data-toggle="tooltip" title="'+n+'">'+n.substring(0,t)+"...<\/span>":n}},{title:l("SecurityLogs:Application"),data:"applicationName",autoWidth:!0,render:function(n){return n=n||"",'<span class="datatableCell" data-filter-field="ApplicationName">'+n+"<\/span>"}},{title:l("SecurityLogs:Identity"),data:"identity",autoWidth:!0,render:function(n){return n=n||"",'<span class="datatableCell" data-filter-field="Identity">'+n+"<\/span>"}},{title:l("SecurityLogs:UserName"),data:"userName",autoWidth:!0,render:function(n){return n=n||"",'<span class="datatableCell" data-filter-field="UserName">'+n+"<\/span>"}},{title:l("SecurityLogs:Client"),data:"clientId",autoWidth:!0,render:function(n){return n=n||"",'<span class="datatableCell" data-filter-field="ClientId">'+n+"<\/span>"}},{title:l("SecurityLogs:CorrelationId"),data:"correlationId",autoWidth:!0,orderable:!1,render:function(n){return n=n||"",'<span class="datatableCell" data-filter-field="CorrelationId">'+n+"<\/span>"}},])},0);$(function(){$(".input-daterange").datepicker({todayBtn:"linked",autoclose:!0,language:abp.localization.currentCulture.cultureName}).on("hide",function(n){n.stopPropagation()});_dataTable=$("#IdentitySecurityLogsTable").DataTable(abp.libs.datatables.normalizeConfiguration({processing:!0,serverSide:!0,paging:!0,scrollX:!0,searching:!1,scrollCollapse:!0,order:[[0,"desc"]],ajax:abp.libs.datatables.createAjax(_identitySecurityLog.getList,function(){var n=$("#FilterFormId").serializeFormToObject(),i=luxon.DateTime.fromFormat(n.startTime,abp.localization.currentCulture.dateTimeFormat.shortDatePattern,{locale:abp.localization.currentCulture.cultureName}),t;return i.invalid||(n.startTime=i.toFormat("yyyy-MM-dd")),t=luxon.DateTime.fromFormat(n.endTime,abp.localization.currentCulture.dateTimeFormat.shortDatePattern,{locale:abp.localization.currentCulture.cultureName}),t.invalid||(n.endTime=t.toFormat("yyyy-MM-dd")),n}),columnDefs:abp.ui.extensions.tableColumns.get("identity.securityLogs").columns.toArray()}));$(document).on("click",".datatableCell",function(){$("#"+$(this).attr("data-filter-field")).val($(this).text());$("#FilterFormId").submit()});$("#FilterFormId").submit(function(n){n.preventDefault();_dataTable.ajax.reload(null,!1)})}); |