Poor mans desktop (UI) widgets for ratelimits

This commit is contained in:
Igor Katson 2024-11-20 16:12:37 +00:00
parent 06b50d65ab
commit 69a638fb81
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
2 changed files with 37 additions and 0 deletions

View file

@ -39,6 +39,11 @@ interface RqbitDesktopConfigUpnp {
server_friendly_name: string;
}
export interface LimitsConfig {
upload_bps?: number | null;
download_bps?: number | null;
}
export interface RqbitDesktopConfig {
default_download_location: PathLike;
disable_upload?: boolean;
@ -48,6 +53,7 @@ export interface RqbitDesktopConfig {
persistence: RqbitDesktopConfigPersistence;
peer_opts: RqbitDesktopConfigPeerOpts;
http_api: RqbitDesktopConfigHttpApi;
ratelimits: LimitsConfig;
}
export interface CurrentDesktopState {