+
+
+
+
+
+ {{ stats.users }}
注册用户
{{ stats.total }}
累计请求
{{ stats.denied }}
越权 / 失败
{{ stats.p95 ?? '—' }}
P95 耗时 ms
diff --git a/admin/index.html b/admin/index.html new file mode 100644 index 0000000..1ddfebe --- /dev/null +++ b/admin/index.html @@ -0,0 +1,12 @@ + + +
+ + +{{ error }}
+| 时间 | 用户 | 事件 | 方法 | 路径 | 状态 | 耗时 |
|---|---|---|---|---|---|---|
| 加载中… | ||||||
| 暂无日志 | ||||||
| {{ (e.ts || '').replace('T', ' ').slice(0, 19) }} | +{{ e.user_id ? e.user_id.slice(0, 8) : '—' }} | +{{ EVENT_LABEL[e.event] || e.event }} | +{{ e.method || '—' }} | +{{ e.path || '—' }} | +{{ e.status }}— | +{{ e.latency_ms != null ? e.latency_ms + 'ms' : '—' }} | +
| 用户 | 角色 | 授权范围 | 创建时间 | |
|---|---|---|---|---|
| 加载中… | ||||
| 暂无用户 | ||||
|
+
+
+ {{ u.username[0] }}
+ {{ u.username }} {{ u.id.slice(0, 8) }} |
+ {{ ROLE_LABEL[u.role] || u.role }} | ++ 全部权限 + {{ UNIT_LABEL[a] || a }} + | +{{ (u.created_at || '').slice(0, 10) }} | +编辑删除 |
+