mirror of
https://github.com/idanoo/autobrr
synced 2025-07-25 09:49:13 +00:00
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:
parent
2fed48e0dd
commit
438902137b
4 changed files with 244 additions and 123 deletions
2
web/src/types/Notification.d.ts
vendored
2
web/src/types/Notification.d.ts
vendored
|
@ -12,7 +12,7 @@ type NotificationEvent =
|
|||
| "IRC_RECONNECTED"
|
||||
| "APP_UPDATE_AVAILABLE";
|
||||
|
||||
interface Notification {
|
||||
interface ServiceNotification {
|
||||
id: number;
|
||||
name: string;
|
||||
enabled: boolean;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue