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:
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user