enhancement(web): modernize APIClient and improve robustness (#1093)

modernized APIClient, removed Notification type collision

enhancement: APIClient now follows the recent RFC3986 (this wasn't the case previously)
enhancement: improved APIClient DX by adding a queryString parameter (avoiding URLSearchParameters)
fix: changed Notification type to ServiceNotification (collision with built-in browser API https://developer.mozilla.org/en-US/docs/Web/API/Notification -- so TS checks wouldn't function as necessary)
This commit is contained in:
stacksmash76 2023-09-10 16:18:39 +02:00 committed by GitHub
parent 2fed48e0dd
commit 438902137b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 244 additions and 123 deletions

View file

@ -12,7 +12,7 @@ type NotificationEvent =
| "IRC_RECONNECTED"
| "APP_UPDATE_AVAILABLE";
interface Notification {
interface ServiceNotification {
id: number;
name: string;
enabled: boolean;