diff --git a/app/admin/about/page.tsx b/app/admin/about/page.tsx index a889ff2..67f7b28 100644 --- a/app/admin/about/page.tsx +++ b/app/admin/about/page.tsx @@ -53,7 +53,7 @@ export default function About() { /> -

v2.0.3

+

v2.0.4

PicImpact 是一个摄影师专用的摄影作品展示网站,基于 Next.js + Hono.js 开发。
diff --git a/components/LivePhoto.tsx b/components/LivePhoto.tsx index e73a0a7..f710001 100644 --- a/components/LivePhoto.tsx +++ b/components/LivePhoto.tsx @@ -2,8 +2,9 @@ import * as React from 'react' import { useEffect, useRef } from 'react' +import { cn } from '~/lib/utils' -export default function LivePhoto({ url, videoUrl }: { url: string; videoUrl: string }) { +export default function LivePhoto({ url, videoUrl, className }: { url: string; videoUrl: string; className?: string }) { const livePhotoRef = useRef(null) useEffect(() => { @@ -23,6 +24,8 @@ export default function LivePhoto({ url, videoUrl }: { url: string; videoUrl: st }, [livePhotoRef, url, videoUrl]) return ( -
+
) } diff --git a/components/MasonryItem.tsx b/components/MasonryItem.tsx index 7e9160d..62e346f 100644 --- a/components/MasonryItem.tsx +++ b/components/MasonryItem.tsx @@ -127,6 +127,7 @@ export default function MasonryItem() { : }
diff --git a/components/admin/album/AlbumAddSheet.tsx b/components/admin/album/AlbumAddSheet.tsx index 7d1c8a8..81d1ddc 100644 --- a/components/admin/album/AlbumAddSheet.tsx +++ b/components/admin/album/AlbumAddSheet.tsx @@ -58,7 +58,7 @@ export default function AlbumAddSheet(props : Readonly) { onOpenChange={() => setAlbumAdd(!albumAdd)} modal={false} > - event.preventDefault()}> + event.preventDefault()}> 新增相册 diff --git a/components/admin/album/AlbumEditSheet.tsx b/components/admin/album/AlbumEditSheet.tsx index 1b5d751..17a86f5 100644 --- a/components/admin/album/AlbumEditSheet.tsx +++ b/components/admin/album/AlbumEditSheet.tsx @@ -66,7 +66,7 @@ export default function AlbumEditSheet(props : Readonly) { }} modal={false} > - event.preventDefault()}> + event.preventDefault()}> 编辑相册 diff --git a/components/admin/album/AlbumHelpSheet.tsx b/components/admin/album/AlbumHelpSheet.tsx index a846135..9698208 100644 --- a/components/admin/album/AlbumHelpSheet.tsx +++ b/components/admin/album/AlbumHelpSheet.tsx @@ -19,7 +19,7 @@ export default function AlbumHelpSheet() { }} modal={false} > - + 帮助 diff --git a/components/admin/copyright/CopyrightAddSheet.tsx b/components/admin/copyright/CopyrightAddSheet.tsx index b8c0449..6d617ea 100644 --- a/components/admin/copyright/CopyrightAddSheet.tsx +++ b/components/admin/copyright/CopyrightAddSheet.tsx @@ -70,7 +70,7 @@ export default function CopyrightAddSheet(props : Readonly) { onOpenChange={() => setCopyrightAdd(!copyrightAdd)} modal={false} > - event.preventDefault()}> + event.preventDefault()}> 新增版权 diff --git a/components/admin/copyright/CopyrightEditSheet.tsx b/components/admin/copyright/CopyrightEditSheet.tsx index 156e188..8dfa18d 100644 --- a/components/admin/copyright/CopyrightEditSheet.tsx +++ b/components/admin/copyright/CopyrightEditSheet.tsx @@ -74,7 +74,7 @@ export default function CopyrightEditSheet(props : Readonly) { }} modal={false} > - event.preventDefault()}> + event.preventDefault()}> 编辑版权 diff --git a/components/admin/list/ImageBatchDeleteSheet.tsx b/components/admin/list/ImageBatchDeleteSheet.tsx index 5495862..4d38a32 100644 --- a/components/admin/list/ImageBatchDeleteSheet.tsx +++ b/components/admin/list/ImageBatchDeleteSheet.tsx @@ -71,7 +71,7 @@ export default function ImageBatchDeleteSheet(props : Readonly - event.preventDefault()}> + event.preventDefault()}> 批量删除 diff --git a/components/admin/list/ImageEditSheet.tsx b/components/admin/list/ImageEditSheet.tsx index 556edf7..ff34084 100644 --- a/components/admin/list/ImageEditSheet.tsx +++ b/components/admin/list/ImageEditSheet.tsx @@ -70,7 +70,7 @@ export default function ImageEditSheet(props : Readonly - event.preventDefault()}> + event.preventDefault()}> 编辑图片 @@ -120,6 +120,21 @@ export default function ImageEditSheet(props : Readonly +