From 7f4269c9ec973df475c441851402fc80974e3eef Mon Sep 17 00:00:00 2001 From: DIYgod Date: Tue, 4 Jun 2024 16:34:56 +0800 Subject: [PATCH] feat: collected status --- src/renderer/src/components/entry-column/article-item.tsx | 7 +++++-- .../src/components/entry-column/notification-item.tsx | 8 +++++++- src/renderer/src/components/entry-column/picture-item.tsx | 8 +++++++- .../src/components/entry-column/social-media-item.tsx | 8 +++++++- src/renderer/src/components/entry-column/video-item.tsx | 8 +++++++- 5 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/components/entry-column/article-item.tsx b/src/renderer/src/components/entry-column/article-item.tsx index 70e9eae98..706e00374 100644 --- a/src/renderer/src/components/entry-column/article-item.tsx +++ b/src/renderer/src/components/entry-column/article-item.tsx @@ -16,7 +16,7 @@ export function ArticleItem({ entryId, entryPreview }: UniversalItemProps) { return (
-
+
{entry.feeds.title} ยท @@ -29,8 +29,11 @@ export function ArticleItem({ entryId, entryPreview }: UniversalItemProps) { .humanize()}
-
+
{entry.entries.title} + {!!entry.collections && ( + + )}
{entry.entries.description} diff --git a/src/renderer/src/components/entry-column/notification-item.tsx b/src/renderer/src/components/entry-column/notification-item.tsx index 6247ebef9..f2db97e8a 100644 --- a/src/renderer/src/components/entry-column/notification-item.tsx +++ b/src/renderer/src/components/entry-column/notification-item.tsx @@ -1,5 +1,6 @@ import { FeedIcon } from "@renderer/components/feed-icon" import dayjs from "@renderer/lib/dayjs" +import { cn } from "@renderer/lib/utils" import { useEntry } from "@renderer/store/entry" import { ReactVirtuosoItemPlaceholder } from "../ui/placeholder" @@ -24,7 +25,12 @@ export function NotificationItem({ entryId, entryPreview }: UniversalItemProps) .humanize()}
-
{entry.entries.title}
+
+ {entry.entries.title} + {!!entry.collections && ( + + )} +
) diff --git a/src/renderer/src/components/entry-column/picture-item.tsx b/src/renderer/src/components/entry-column/picture-item.tsx index 4893af628..f5370817f 100644 --- a/src/renderer/src/components/entry-column/picture-item.tsx +++ b/src/renderer/src/components/entry-column/picture-item.tsx @@ -2,6 +2,7 @@ import { FeedIcon } from "@renderer/components/feed-icon" import { SwipeImages } from "@renderer/components/swipe-images" import { ReactVirtuosoItemPlaceholder } from "@renderer/components/ui/placeholder" import dayjs from "@renderer/lib/dayjs" +import { cn } from "@renderer/lib/utils" import { useEntry } from "@renderer/store/entry" import type { UniversalItemProps } from "./types" @@ -21,7 +22,12 @@ export function PictureItem({ entryId, entryPreview }: UniversalItemProps) { />
-
{entry.entries.title}
+
+ {entry.entries.title} + {!!entry.collections && ( + + )} +
-
{entry.entries.description}
+
+ {entry.entries.description} + {!!entry.collections && ( + + )} +
{entry.entries.images?.map((image) => ( diff --git a/src/renderer/src/components/entry-column/video-item.tsx b/src/renderer/src/components/entry-column/video-item.tsx index e9e6ef255..c749488d0 100644 --- a/src/renderer/src/components/entry-column/video-item.tsx +++ b/src/renderer/src/components/entry-column/video-item.tsx @@ -1,6 +1,7 @@ import { FeedIcon } from "@renderer/components/feed-icon" import { Image } from "@renderer/components/ui/image" import dayjs from "@renderer/lib/dayjs" +import { cn } from "@renderer/lib/utils" import { useEntry } from "@renderer/store/entry" import { ReactVirtuosoItemPlaceholder } from "../ui/placeholder" @@ -26,7 +27,12 @@ export function VideoItem({ entryId, entryPreview }: UniversalItemProps) { />
-
{entry.entries.title}
+
+ {entry.entries.title} + {!!entry.collections && ( + + )} +