add frontend support for api token create, delete and revoke

This commit is contained in:
Gregor Vostrak
2025-02-11 17:57:00 +01:00
parent a9d9c13846
commit e0506fa3e3
9 changed files with 488 additions and 41 deletions

View File

@@ -99,6 +99,10 @@ export function formatDateLocalized(date: string): string {
return getLocalizedDayJs(date).format('DD.MM.YYYY');
}
export function formatDateTimeLocalized(date: string): string {
return getLocalizedDayJs(date).format('DD.MM.YYYY HH:mm');
}
export function formatWeek(date: string | null): string {
return 'Week ' + getDayJsInstance()(date).week();
}