use new frontend

This commit is contained in:
felinae98
2022-07-31 00:05:22 +08:00
parent 22f6796b33
commit 1d7d9b8fde
43 changed files with 3438 additions and 4667 deletions
+14 -34
View File
@@ -1,31 +1,10 @@
interface QQGroup {
id: string;
name: string;
}
export interface LoginStatus {
login: boolean;
type: string;
name: string;
id: string;
// groups: Array<QQGroup>
export interface TokenResp {
status: number;
token: string;
failed: boolean;
type: string;
id: number;
name: string;
}
export type LoginContextType = {
login: LoginStatus;
save: (status: LoginStatus) => void;
};
export interface SubscribeConfig {
platformName: string;
target: string;
targetName: string;
cats: Array<number>;
tags: Array<string>;
}
export interface GlobalConf {
platformConf: AllPlatformConf;
loaded: boolean;
@@ -47,12 +26,12 @@ export interface PlatformConfig {
hasTarget: boolean;
}
export interface TokenResp {
status: number;
token: string;
type: string;
id: string;
name: string;
export interface SubscribeConfig {
platformName: string;
target: string;
targetName: string;
cats: Array<number>;
tags: Array<string>;
}
export interface SubscribeGroupDetail {
@@ -64,6 +43,7 @@ export interface SubscribeResp {
[idx: string]: SubscribeGroupDetail;
}
export interface TargetNameResp {
targetName: string;
export interface StatusResp {
status: number;
msg: string;
}
+4
View File
@@ -0,0 +1,4 @@
export const baseUrl = '/bison/api/';
export const authUrl = `${baseUrl}auth`;
export const globalConfUrl = `${baseUrl}global_conf`;
export const subsribeUrl = `${baseUrl}subs`;