resolve issues with new features

This commit is contained in:
Matthias Hochmeister
2026-03-12 16:42:21 +01:00
parent 5aa309b97a
commit 68586b01dc
19 changed files with 526 additions and 109 deletions

View File

@@ -6,6 +6,11 @@ interface ApiResponse<T> {
data: T;
}
export interface PdfSettings {
pdf_header: string;
pdf_footer: string;
}
export const configApi = {
getExternalLinks(): Promise<ExternalLinks> {
return api
@@ -17,4 +22,9 @@ export const configApi = {
.get<ApiResponse<ServiceModeStatus>>('/api/config/service-mode')
.then((r) => r.data.data);
},
getPdfSettings(): Promise<PdfSettings> {
return api
.get<ApiResponse<PdfSettings>>('/api/config/pdf-settings')
.then((r) => r.data.data);
},
};

View File

@@ -28,4 +28,12 @@ export const notificationsApi = {
async markAllRead(): Promise<void> {
await api.post('/api/notifications/mark-all-read');
},
async dismissByType(quellTyp: string): Promise<void> {
await api.post('/api/notifications/dismiss-by-type', { quellTyp });
},
async deleteAllRead(): Promise<void> {
await api.delete('/api/notifications/read');
},
};