web: improve notification and API drawers (#12659)

* web: move clear all notification button to header, add empty state

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

* improve sorting for API requests

Signed-off-by: Jens Langhammer <jens@goauthentik.io>

---------

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens L.
2025-01-13 22:40:48 +01:00
committed by GitHub
parent baf8f18d54
commit 1f49ee77df
3 changed files with 52 additions and 37 deletions

View File

@ -12,6 +12,7 @@ import {
export const CSRFHeaderName = "X-authentik-CSRF";
export interface RequestInfo {
time: number;
method: string;
path: string;
status: number;
@ -47,6 +48,7 @@ export class CSRFMiddleware implements Middleware {
export class EventMiddleware implements Middleware {
post?(context: ResponseContext): Promise<Response | void> {
const request: RequestInfo = {
time: new Date().getTime(),
method: (context.init.method || "GET").toUpperCase(),
path: context.url,
status: context.response.status,