feat:版本迭代

This commit is contained in:
jiangrui
2025-02-20 12:00:19 +08:00
parent fd110590af
commit 510fdc48f6
86 changed files with 5045 additions and 1161 deletions

View File

@@ -0,0 +1,18 @@
export interface HotListParams {
type: string;
tag?: string;
page_limit?: string;
page_start?: string;
}
export interface HotListItem {
cover: string;
cover_x: number;
cover_y: number;
episodes_info: string;
id: string;
is_new: boolean;
playable: boolean;
rate: string;
title: string;
url: string;
}

15
frontend/src/types/globals.d.ts vendored Normal file
View File

@@ -0,0 +1,15 @@
declare global {
interface Location {
// 根据你的需求定义 location 的属性和方法
pathname: string;
search: string;
hash: string;
host: string;
// 其他属性和方法...
}
interface Window {
location: Location;
}
}
export {};

View File

@@ -1,14 +1,28 @@
export interface Resource {
export interface ResourceItem {
id: string;
title: string;
channel: string;
channelId?: string;
image?: string;
cloudLinks: string[];
tags?: string[];
content?: string;
pubDate: string;
cloudType: string;
messageId?: string;
}
export interface Resource {
list: ResourceItem[];
displayList?: boolean;
channelInfo: {
channelId: string;
name: string;
channelLogo: string;
};
id: string;
}
export interface ShareInfo {
fileId: string;
fileName: string;
@@ -17,13 +31,11 @@ export interface ShareInfo {
}
export interface ShareInfoResponse {
data: {
list: ShareInfo[];
pwdId?: string;
stoken?: string;
shareCode?: string;
receiveCode?: string;
};
list: ShareInfo[];
pwdId?: string;
stoken?: string;
shareCode?: string;
receiveCode?: string;
}
export interface Folder {
@@ -61,3 +73,23 @@ export interface SaveQuarkFileParams {
pdir_fid: string;
scene: string;
}
export interface TagColor {
baiduPan: string;
weiyun: string;
aliyun: string;
pan115: string;
quark: string;
}
export interface GlobalSettingAttributes {
httpProxyHost: string;
httpProxyPort: number | string;
isProxyEnabled: boolean;
AdminUserCode: number;
CommonUserCode: number;
}
export interface UserSettingAttributes {
cloud115Cookie: string;
quarkCookie: string;
}

View File

@@ -0,0 +1,15 @@
export type RequestErrorCode = -1 | 400 | 401 | 402 | 403 | 500 | 501;
export interface RequestSuccess<T> {
code: 0;
data: T;
message: string;
}
export interface RequestError<T> {
code: RequestErrorCode;
message: string;
data?: T;
}
export type RequestResult<T> = RequestSuccess<T> | RequestError<T>;

View File

@@ -0,0 +1,6 @@
import { GlobalSettingAttributes, UserSettingAttributes } from "@/types";
export interface UserSettingStore {
globalSetting?: GlobalSettingAttributes | null;
userSettings: UserSettingAttributes;
displayStyle?: "table" | "card";
}