-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added option to change invidious server #5
- Loading branch information
1 parent
0edd0af
commit 44f2db7
Showing
7 changed files
with
238 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
export interface ServerInstance { | ||
flag?: string; | ||
region?: string; | ||
stats?: Stats; | ||
cors?: boolean; | ||
api?: boolean; | ||
type: ServerInstanceType; | ||
uri: string; | ||
monitor?: Monitor; | ||
} | ||
|
||
interface Monitor { | ||
monitorId: number; | ||
createdAt: number; | ||
statusClass: StatusClass; | ||
name: string; | ||
url: null; | ||
type: MonitorType; | ||
dailyRatios: Ratio[]; | ||
"90dRatio": Ratio; | ||
"30dRatio": Ratio; | ||
} | ||
|
||
interface Ratio { | ||
ratio: string; | ||
label: StatusClass; | ||
} | ||
|
||
export enum StatusClass { | ||
Black = "black", | ||
Success = "success", | ||
Warning = "warning" | ||
} | ||
|
||
export enum MonitorType { | ||
HTTPS = "HTTP(s)" | ||
} | ||
|
||
export interface Stats { | ||
version: string; | ||
software: Software; | ||
openRegistrations: boolean; | ||
usage: Usage; | ||
metadata: Metadata; | ||
} | ||
|
||
interface Metadata { | ||
updatedAt: number; | ||
lastChannelRefreshedAt: number; | ||
} | ||
|
||
interface Software { | ||
name: Name; | ||
version: string; | ||
branch: Branch; | ||
} | ||
|
||
export enum Branch { | ||
Master = "master" | ||
} | ||
|
||
export enum Name { | ||
Invidious = "invidious" | ||
} | ||
|
||
interface Usage { | ||
users: Users; | ||
} | ||
|
||
interface Users { | ||
total: number; | ||
activeHalfyear: number; | ||
activeMonth: number; | ||
} | ||
|
||
export enum ServerInstanceType { | ||
HTTPS = "https", | ||
Onion = "onion" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters