|
|
@ -1,7 +1,16 @@ |
|
|
import { useLocalization } from '/@/hooks/abp/useLocalization'; |
|
|
import { useLocalization } from '/@/hooks/abp/useLocalization'; |
|
|
import { FormProps } from '/@/components/Form'; |
|
|
import { FormProps } from '/@/components/Form'; |
|
|
|
|
|
|
|
|
const { L } = useLocalization('AbpAuditLogging'); |
|
|
const { L } = useLocalization(['AbpAuditLogging']); |
|
|
|
|
|
|
|
|
|
|
|
const httpMethodOptions = [ |
|
|
|
|
|
{ value: 'GET', label: 'GET' }, |
|
|
|
|
|
{ value: 'POST', label: 'POST' }, |
|
|
|
|
|
{ value: 'PATCH', label: 'PATCH' }, |
|
|
|
|
|
{ value: 'DELETE', label: 'DELETE' }, |
|
|
|
|
|
{ value: 'OPTIONS', label: 'OPTIONS' }, |
|
|
|
|
|
{ value: 'HEAD', label: 'HEAD' }, |
|
|
|
|
|
]; |
|
|
|
|
|
|
|
|
const httpStatusCodeOptions = [ |
|
|
const httpStatusCodeOptions = [ |
|
|
{ value: 100, label: '100 - Continue' }, |
|
|
{ value: 100, label: '100 - Continue' }, |
|
|
@ -52,6 +61,7 @@ const httpStatusCodeOptions = [ |
|
|
export function getSearchFormSchemas(): Partial<FormProps> { |
|
|
export function getSearchFormSchemas(): Partial<FormProps> { |
|
|
return { |
|
|
return { |
|
|
labelWidth: 100, |
|
|
labelWidth: 100, |
|
|
|
|
|
alwaysShowLines: 3, |
|
|
fieldMapToTime: [ |
|
|
fieldMapToTime: [ |
|
|
['dateRange', ['startTime', 'endTime'], ['YYYY-MM-DDT00:00:00', 'YYYY-MM-DDT00:00:00']], |
|
|
['dateRange', ['startTime', 'endTime'], ['YYYY-MM-DDT00:00:00', 'YYYY-MM-DDT00:00:00']], |
|
|
], |
|
|
], |
|
|
@ -69,9 +79,15 @@ export function getSearchFormSchemas(): Partial<FormProps> { |
|
|
colProps: { span: 6 }, |
|
|
colProps: { span: 6 }, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'httpMethod', |
|
|
field: 'clientId', |
|
|
component: 'Input', |
|
|
component: 'Input', |
|
|
label: L('HttpMethod'), |
|
|
label: L('ClientId'), |
|
|
|
|
|
colProps: { span: 6 }, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'clientIpAddress', |
|
|
|
|
|
component: 'Input', |
|
|
|
|
|
label: L('ClientIpAddress'), |
|
|
colProps: { span: 6 }, |
|
|
colProps: { span: 6 }, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
@ -83,6 +99,15 @@ export function getSearchFormSchemas(): Partial<FormProps> { |
|
|
options: httpStatusCodeOptions, |
|
|
options: httpStatusCodeOptions, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'httpMethod', |
|
|
|
|
|
component: 'Select', |
|
|
|
|
|
label: L('HttpMethod'), |
|
|
|
|
|
colProps: { span: 6 }, |
|
|
|
|
|
componentProps: { |
|
|
|
|
|
options: httpMethodOptions, |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'url', |
|
|
field: 'url', |
|
|
component: 'Input', |
|
|
component: 'Input', |
|
|
@ -90,21 +115,33 @@ export function getSearchFormSchemas(): Partial<FormProps> { |
|
|
colProps: { span: 12 }, |
|
|
colProps: { span: 12 }, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'minExecutionDuration', |
|
|
field: 'dateRange', |
|
|
component: 'InputNumber', |
|
|
component: 'RangePicker', |
|
|
label: L('MinExecutionDuration'), |
|
|
label: L('StartTime'), |
|
|
labelWidth: 180, |
|
|
|
|
|
colProps: { span: 6 }, |
|
|
colProps: { span: 6 }, |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: { |
|
|
style: { |
|
|
width: '100%', |
|
|
width: '100%' |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'maxExecutionDuration', |
|
|
field: 'correlationId', |
|
|
|
|
|
component: 'Input', |
|
|
|
|
|
label: L('CorrelationId'), |
|
|
|
|
|
colProps: { span: 12 }, |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'hasException', |
|
|
|
|
|
component: 'Checkbox', |
|
|
|
|
|
label: L('HasException'), |
|
|
|
|
|
colProps: { span: 6 }, |
|
|
|
|
|
renderComponentContent: L('HasException'), |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'minExecutionDuration', |
|
|
component: 'InputNumber', |
|
|
component: 'InputNumber', |
|
|
label: L('MaxExecutionDuration'), |
|
|
label: L('MinExecutionDuration'), |
|
|
labelWidth: 180, |
|
|
labelWidth: 180, |
|
|
colProps: { span: 6 }, |
|
|
colProps: { span: 6 }, |
|
|
componentProps: { |
|
|
componentProps: { |
|
|
@ -114,28 +151,16 @@ export function getSearchFormSchemas(): Partial<FormProps> { |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
field: 'correlationId', |
|
|
field: 'maxExecutionDuration', |
|
|
component: 'Input', |
|
|
component: 'InputNumber', |
|
|
label: L('CorrelationId'), |
|
|
label: L('MaxExecutionDuration'), |
|
|
|
|
|
labelWidth: 180, |
|
|
colProps: { span: 6 }, |
|
|
colProps: { span: 6 }, |
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
field: 'dateRange', |
|
|
|
|
|
component: 'RangePicker', |
|
|
|
|
|
label: L('StartTime'), |
|
|
|
|
|
colProps: { span: 12 }, |
|
|
|
|
|
componentProps: { |
|
|
componentProps: { |
|
|
style: { |
|
|
style: { |
|
|
width: '100%' |
|
|
width: '100%', |
|
|
}, |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
|
|
|
field: 'hasException', |
|
|
|
|
|
component: 'Checkbox', |
|
|
|
|
|
label: L('HasException'), |
|
|
|
|
|
colProps: { span: 6 }, |
|
|
|
|
|
renderComponentContent: L('HasException'), |
|
|
|
|
|
}, |
|
|
}, |
|
|
], |
|
|
], |
|
|
}; |
|
|
}; |
|
|
|