mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
feat: show query params in audit log details
This commit is contained in:
@@ -2844,6 +2844,7 @@
|
||||
"timestamp": "Timestamp",
|
||||
"before": "Before",
|
||||
"after": "After",
|
||||
"queryParams": "Query Parameters",
|
||||
"requestBody": "Request Body",
|
||||
"fullDetails": "Full Details"
|
||||
},
|
||||
|
||||
@@ -2629,6 +2629,7 @@
|
||||
"timestamp": "زمان",
|
||||
"before": "قبل",
|
||||
"after": "بعد",
|
||||
"queryParams": "پارامترهای درخواست",
|
||||
"requestBody": "دادههای درخواست",
|
||||
"fullDetails": "جزئیات کامل"
|
||||
},
|
||||
|
||||
@@ -3396,7 +3396,8 @@
|
||||
"timestamp": "Время",
|
||||
"before": "До",
|
||||
"after": "После",
|
||||
"requestBody": "Данные запроса",
|
||||
"queryParams": "Параметры запроса",
|
||||
"requestBody": "Тело запроса",
|
||||
"fullDetails": "Полные данные"
|
||||
},
|
||||
"time": {
|
||||
|
||||
@@ -2628,6 +2628,7 @@
|
||||
"timestamp": "时间戳",
|
||||
"before": "之前",
|
||||
"after": "之后",
|
||||
"queryParams": "请求参数",
|
||||
"requestBody": "请求数据",
|
||||
"fullDetails": "完整详情"
|
||||
},
|
||||
|
||||
@@ -363,6 +363,20 @@ function LogEntryCard({ entry, isExpanded, onToggle }: LogEntryCardProps) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Query params */}
|
||||
{entry.details &&
|
||||
'query_params' in entry.details &&
|
||||
entry.details.query_params != null && (
|
||||
<div className="sm:col-span-2">
|
||||
<p className="mb-1 text-xs font-medium uppercase text-dark-500">
|
||||
{t('admin.auditLog.details.queryParams')}
|
||||
</p>
|
||||
<pre className="max-h-40 overflow-auto rounded-lg bg-dark-900 p-2 text-xs text-dark-300">
|
||||
{JSON.stringify(entry.details.query_params, null, 2)}
|
||||
</pre>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Request body */}
|
||||
{entry.details &&
|
||||
'request_body' in entry.details &&
|
||||
|
||||
Reference in New Issue
Block a user