format frontend code

This commit is contained in:
felinae98
2022-02-12 10:35:35 +08:00
parent 9055a039a8
commit 649c1cf8f2
20 changed files with 825 additions and 592 deletions
+33 -33
View File
@@ -1,34 +1,34 @@
interface QQGroup {
id: string,
name: string,
id: string;
name: string;
}
export interface LoginStatus {
login: boolean
type: string
name: string
id: string
login: boolean;
type: string;
name: string;
id: string;
// groups: Array<QQGroup>
token: string,
failed: boolean,
token: string;
failed: boolean;
}
export type LoginContextType = {
login: LoginStatus
save: (status: LoginStatus) => void
}
login: LoginStatus;
save: (status: LoginStatus) => void;
};
export interface SubscribeConfig {
platformName: string
target: string
targetName: string
cats: Array<number>
tags: Array<string>
platformName: string;
target: string;
targetName: string;
cats: Array<number>;
tags: Array<string>;
}
export interface GlobalConf {
platformConf: AllPlatformConf,
loaded: boolean
platformConf: AllPlatformConf;
loaded: boolean;
}
export interface AllPlatformConf {
@@ -36,34 +36,34 @@ export interface AllPlatformConf {
}
export interface CategoryConfig {
[idx: number]: string
[idx: number]: string;
}
export interface PlatformConfig {
name: string
categories: CategoryConfig
enabledTag: boolean,
platformName: string,
hasTarget: boolean
name: string;
categories: CategoryConfig;
enabledTag: boolean;
platformName: string;
hasTarget: boolean;
}
export interface TokenResp {
status: number,
token: string,
type: string,
id: string
name: string
status: number;
token: string;
type: string;
id: string;
name: string;
}
export interface SubscribeGroupDetail {
name: string,
subscribes: Array<SubscribeConfig>
name: string;
subscribes: Array<SubscribeConfig>;
}
export interface SubscribeResp {
[idx: string]: SubscribeGroupDetail
[idx: string]: SubscribeGroupDetail;
}
export interface TargetNameResp {
targetName: string
targetName: string;
}