🐛 fix(deps): Remove outdated @iconify/react dependency and add iconify-json packages
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
/* eslint-disable */
|
||||
import request from '@/utils/request';
|
||||
|
||||
/** Get Tos Content GET /v1/common/app/info */
|
||||
export async function getAppInfo(options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.GetAppInfoResponse }>('/v1/common/app/info', {
|
||||
method: 'GET',
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** Get verification code POST /v1/common/send_code */
|
||||
export async function sendEmailCode(body: API.SendCodeRequest, options?: { [key: string]: any }) {
|
||||
return request<API.Response & { data?: API.SendCodeResponse }>('/v1/common/send_code', {
|
||||
|
||||
+52
-9
@@ -10,21 +10,59 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type AppConfig = {
|
||||
name: string;
|
||||
domains: string[];
|
||||
describe: string;
|
||||
startup_picture: string;
|
||||
startup_picture_skip_time: number;
|
||||
};
|
||||
|
||||
type Application = {
|
||||
id: number;
|
||||
name: string;
|
||||
platform: string;
|
||||
subscribe_type: string;
|
||||
icon: string;
|
||||
url: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type ApplicationPlatform = {
|
||||
ios?: ApplicationVersion[];
|
||||
mac?: ApplicationVersion[];
|
||||
linux?: ApplicationVersion[];
|
||||
android?: ApplicationVersion[];
|
||||
windows?: ApplicationVersion[];
|
||||
harmony?: ApplicationVersion[];
|
||||
};
|
||||
|
||||
type ApplicationResponse = {
|
||||
windows: Application[];
|
||||
mac: Application[];
|
||||
linux: Application[];
|
||||
android: Application[];
|
||||
ios: Application[];
|
||||
applications: ApplicationResponseInfo[];
|
||||
};
|
||||
|
||||
type ApplicationResponseInfo = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
subscription_protocol: string;
|
||||
platform: ApplicationPlatform;
|
||||
};
|
||||
|
||||
type ApplicationVersion = {
|
||||
id: number;
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
is_default: boolean;
|
||||
};
|
||||
|
||||
type AppVersion = {
|
||||
id: number;
|
||||
os: string;
|
||||
version: string;
|
||||
download_url: string;
|
||||
describe: string;
|
||||
default_version: boolean;
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
@@ -113,6 +151,11 @@ declare namespace API {
|
||||
created_at: number;
|
||||
};
|
||||
|
||||
type GetAppInfoResponse = {
|
||||
config: AppConfig;
|
||||
versions: AppVersion[];
|
||||
};
|
||||
|
||||
type GetGlobalConfigResponse = {
|
||||
site: SiteConfig;
|
||||
verify: VeifyConfig;
|
||||
|
||||
Vendored
+47
-9
@@ -10,21 +10,59 @@ declare namespace API {
|
||||
updated_at: number;
|
||||
};
|
||||
|
||||
type AppConfig = {
|
||||
name: string;
|
||||
domains: string[];
|
||||
describe: string;
|
||||
startup_picture: string;
|
||||
startup_picture_skip_time: number;
|
||||
};
|
||||
|
||||
type Application = {
|
||||
id: number;
|
||||
name: string;
|
||||
platform: string;
|
||||
subscribe_type: string;
|
||||
icon: string;
|
||||
url: string;
|
||||
name: string;
|
||||
description: string;
|
||||
subscribe_type: string;
|
||||
};
|
||||
|
||||
type ApplicationPlatform = {
|
||||
ios?: ApplicationVersion[];
|
||||
mac?: ApplicationVersion[];
|
||||
linux?: ApplicationVersion[];
|
||||
android?: ApplicationVersion[];
|
||||
windows?: ApplicationVersion[];
|
||||
harmony?: ApplicationVersion[];
|
||||
};
|
||||
|
||||
type ApplicationResponse = {
|
||||
windows: Application[];
|
||||
mac: Application[];
|
||||
linux: Application[];
|
||||
android: Application[];
|
||||
ios: Application[];
|
||||
applications: ApplicationResponseInfo[];
|
||||
};
|
||||
|
||||
type ApplicationResponseInfo = {
|
||||
id: number;
|
||||
name: string;
|
||||
icon: string;
|
||||
description: string;
|
||||
subscription_protocol: string;
|
||||
platform: ApplicationPlatform;
|
||||
};
|
||||
|
||||
type ApplicationVersion = {
|
||||
id: number;
|
||||
url: string;
|
||||
version: string;
|
||||
description: string;
|
||||
is_default: boolean;
|
||||
};
|
||||
|
||||
type AppVersion = {
|
||||
id: number;
|
||||
os: string;
|
||||
version: string;
|
||||
download_url: string;
|
||||
describe: string;
|
||||
default_version: boolean;
|
||||
};
|
||||
|
||||
type AuthConfig = {
|
||||
|
||||
Reference in New Issue
Block a user