More webapp changes+fixes
All checks were successful
Build Docker and Deploy / Build Docker Container (push) Successful in 1m41s
Build Docker and Deploy / Run Unit-Tests (push) Successful in 9m31s
Build Docker and Deploy / Deploy to Server (push) Successful in 18s

This commit is contained in:
2025-12-05 21:36:50 +01:00
parent c554479604
commit 2b7950f5dc
44 changed files with 1245 additions and 189 deletions

View File

@@ -28,6 +28,7 @@ import {
ClientListResponse,
SenderNameStatistics,
SenderNameListResponse,
DeliveryListResponse,
} from '../models';
@Injectable({
@@ -167,6 +168,10 @@ export class ApiService {
return this.http.delete<Message>(`${this.baseUrl}/messages/${messageId}`);
}
getDeliveries(messageId: string): Observable<DeliveryListResponse> {
return this.http.get<DeliveryListResponse>(`${this.baseUrl}/messages/${messageId}/deliveries`);
}
// Subscription endpoints
getSubscriptions(userId: string, filter?: SubscriptionFilter): Observable<SubscriptionListResponse> {
let httpParams = new HttpParams();

View File

@@ -0,0 +1,32 @@
import { Injectable, signal } from '@angular/core';
const EXPERT_MODE_KEY = 'scn_expert_mode';
@Injectable({
providedIn: 'root'
})
export class SettingsService {
private _expertMode = signal(false);
expertMode = this._expertMode.asReadonly();
constructor() {
this.loadFromStorage();
}
private loadFromStorage(): void {
const stored = localStorage.getItem(EXPERT_MODE_KEY);
if (stored === 'true') {
this._expertMode.set(true);
}
}
setExpertMode(enabled: boolean): void {
localStorage.setItem(EXPERT_MODE_KEY, String(enabled));
this._expertMode.set(enabled);
}
toggleExpertMode(): void {
this.setExpertMode(!this._expertMode());
}
}