Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

refactor(react): 类型里的 image_version 不再逐处重复同一句说明

longmeidaob13967966f3d
diff --git a/frontend/src/react/components/mix-card.tsx b/frontend/src/react/components/mix-card.tsx
index efa09a63a..821117d92 100644
--- a/frontend/src/react/components/mix-card.tsx
+++ b/frontend/src/react/components/mix-card.tsx
@@ -23,7 +23,6 @@ export interface MixCardFace {
id: number;
name: string;
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
avatar_focus?: unknown;
}
diff --git a/frontend/src/react/entity-hero/entity-hero.ts b/frontend/src/react/entity-hero/entity-hero.ts
index aff3f26b4..ecb34f08e 100644
--- a/frontend/src/react/entity-hero/entity-hero.ts
+++ b/frontend/src/react/entity-hero/entity-hero.ts
@@ -35,7 +35,6 @@ export interface HeroCostar {
n?: number;
rep?: number | null;
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
has_avatar?: boolean;
avatar_focus?: unknown;
diff --git a/frontend/src/react/entity-page/entity-page.ts b/frontend/src/react/entity-page/entity-page.ts
index 5597b3d0d..11770ff25 100644
--- a/frontend/src/react/entity-page/entity-page.ts
+++ b/frontend/src/react/entity-page/entity-page.ts
@@ -33,7 +33,6 @@ export interface EntityPageData extends EntityHeroData {
related_performers?: (HeroCostar & IndexPerson)[];
labels?: IndexPerson[];
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
has_avatar?: boolean;
has_logo?: boolean;
diff --git a/frontend/src/react/follow-manage/follow-manage.ts b/frontend/src/react/follow-manage/follow-manage.ts
index 2e57c0d8c..76c9fc615 100644
--- a/frontend/src/react/follow-manage/follow-manage.ts
+++ b/frontend/src/react/follow-manage/follow-manage.ts
@@ -477,7 +477,6 @@ export interface FeedSource {
entity_name: string | null;
/** 这位有没有资料图:有就在名字前画 `/entity-image` 的圆框,没有退首字母。 */
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
/** 资料图的人脸取景,和 `has_image` 出自同一份身份引用。 */
avatar_focus?: unknown;
diff --git a/frontend/src/react/index/index-data.ts b/frontend/src/react/index/index-data.ts
index 9db998ffe..68df62efc 100644
--- a/frontend/src/react/index/index-data.ts
+++ b/frontend/src/react/index/index-data.ts
@@ -59,7 +59,6 @@ export interface IndexPerson {
n: number;
rep?: number | null;
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
has_avatar?: boolean;
avatar_focus?: unknown;
diff --git a/frontend/src/react/item-detail/item-detail.ts b/frontend/src/react/item-detail/item-detail.ts
index 4a3db795b..095aaba05 100644
--- a/frontend/src/react/item-detail/item-detail.ts
+++ b/frontend/src/react/item-detail/item-detail.ts
@@ -23,7 +23,6 @@ export interface DetailEntityRef {
id: number | null;
name: string;
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
avatar_focus?: unknown;
has_logo?: boolean;
diff --git a/frontend/src/react/playlists/playlists.ts b/frontend/src/react/playlists/playlists.ts
index 7869e4733..ec144a0ec 100644
--- a/frontend/src/react/playlists/playlists.ts
+++ b/frontend/src/react/playlists/playlists.ts
@@ -19,7 +19,6 @@ export interface PlaylistFace {
id: number;
name: string;
has_image: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
avatar_focus?: unknown;
}
diff --git a/frontend/src/react/review/review.ts b/frontend/src/react/review/review.ts
index bbed6588b..0793a50aa 100644
--- a/frontend/src/react/review/review.ts
+++ b/frontend/src/react/review/review.ts
@@ -117,7 +117,6 @@ export interface ReviewRow {
asset_mutation_revision?: number | null;
entity_id?: number;
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
avatar_focus?: unknown;
avatar_url?: string;
diff --git a/frontend/src/react/taste/taste.ts b/frontend/src/react/taste/taste.ts
index 868194b22..99b628e86 100644
--- a/frontend/src/react/taste/taste.ts
+++ b/frontend/src/react/taste/taste.ts
@@ -44,7 +44,6 @@ export interface RankRow {
peach_items?: number;
entity_id?: number | null;
has_image?: boolean;
- /** 实体图的版本,拼进 `/entity-image` 的 `v=`:换过头像地址就变。 */
image_version?: string;
avatar_focus?: unknown;
has_avatar?: boolean;