feat: rbac接入完成,file接入完成

This commit is contained in:
Blizzard
2026-05-01 12:57:26 +08:00
parent e3e38800aa
commit 8ca5aa3148
10 changed files with 491 additions and 30 deletions
+14
View File
@@ -236,9 +236,23 @@ export default function Logs() {
<div><span className="text-muted-foreground inline-block w-20">ID:</span> <span className="font-medium">{activeLog.userId}</span></div>
<div><span className="text-muted-foreground inline-block w-20">:</span> {activeLog.clientId}</div>
<div><span className="text-muted-foreground inline-block w-20">IP地址:</span> <span className="font-mono">{activeLog.ip}</span></div>
<div>
<span className="text-muted-foreground inline-block w-20">:</span>
<span className={`font-mono font-medium ${activeLog.latency > 200000000 ? 'text-amber-500' : 'text-emerald-600'}`}>
{(activeLog.latency / 1000000).toFixed(0)}ms
</span>
</div>
<div>
<span className="text-muted-foreground inline-block w-20">:</span>
<span className={`font-mono font-medium ${activeLog.status === 200 ? 'text-emerald-600' : 'text-red-500'}`}>
{activeLog.status}
</span>
</div>
<div className="col-span-2"><span className="text-muted-foreground inline-block w-20">:</span> <span className="font-mono text-xs">{new Date(activeLog.createdAt * 1000).toLocaleString('zh-CN')}</span></div>
<div className="col-span-2"><span className="text-muted-foreground inline-block w-20">User-Agent:</span> <span className="text-xs text-muted-foreground">{activeLog.agent}</span></div>
</div>
{activeLog.body && (
<div className="space-y-2">
<h4 className="text-sm font-semibold flex items-center gap-2"><Activity className="w-4 h-4" /> Request Payload</h4>