♻️ 剔除日历JSON冗余数据

This commit is contained in:
目棃
2024-12-31 11:09:22 +08:00
parent a98cb5dbd1
commit 4cfb19dc21
5 changed files with 1777 additions and 11353 deletions

View File

@@ -1,13 +1,13 @@
/**
* @file types/App/Calendar.d.ts
* @description 应用素材日历相关类型定义文件
* @since Beta v0.3.8
* @since Beta v0.6.7
*/
declare namespace TGApp.App.Calendar {
/**
* @description 素材日历类型
* @since Beta v0.3.8
* @since Beta v0.6.7
* @interface Item
* @property {number} id - 角色ID/武器ID
* @property {number} contentId - 观测枢的 content_id
@@ -15,62 +15,44 @@ declare namespace TGApp.App.Calendar {
* @property {string} name - 角色/武器名称
* @property {string} itemType - 角色|武器
* @property {number} star - 角色/武器星级
* @property {string} bg - 日历项背景
* @property {string} icon - 日历项图标
* @property {string} weaponIcon - 武器类型图标
* @property {string} elementIcon - 角色元素类型图标
* @property {string} weapon - 武器类型图标
* @property {string} element - 角色元素类型图标
* @property {Material[]} materials - 日历项需要的素材
* @property {Source} source - 日历项来源
* @return Item
*/
interface Item {
type Item = {
id: number;
contentId: number;
dropDays: number[];
itemType: string;
name: string;
itemType: string; // character | weapon
star: number;
bg: string;
icon: string;
weaponIcon: string;
elementIcon?: string;
weapon: string;
element?: string;
materials: Material[];
source: Source;
}
};
/**
* @description 素材日历材料类型
* @since Alpha v0.1.5
* @since Beta v0.6.7
* @interface Material
* @property {number} id - 素材 ID
* @property {string} name - 素材名称
* @property {number} star - 素材星级
* @property {string} starIcon - 素材星级图标
* @property {string} bg - 素材背景
* @property {string} icon - 素材图标
* @return Material
*/
interface Material {
id: number;
name: string;
star: number;
starIcon: string;
bg: string;
icon: string;
}
type Material = { id: number; name: string; star: number };
/**
* @description 素材日历来源类型
* @since Alpha v0.1.5
* @since Beta v0.6.7
* @interface Source
* @property {number} index - 来源索引
* @property {string} area - 来源区域
* @property {string} icon - 来源图标
* @property {string} name - 来源名称
* @return Source
*/
interface Source {
area: string;
icon: string;
name: string;
}
type Source = { index: number; area: string; name: string };
}