From 5c57e000709319f86cd4184b7c805fa5836c7eb2 Mon Sep 17 00:00:00 2001
From: besscroft
Date: Thu, 27 Jun 2024 15:17:39 +0800
Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20LICENSE=20?=
=?UTF-8?q?=E6=8F=8F=E8=BF=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
LICENSE | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/LICENSE b/LICENSE
index ecfd57d..c37d344 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2024 Bess Croft
+Copyright (c) 2024-PRESENT Bess Croft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
From a51427282273d6f08a4ddb9be04769b221f19073 Mon Sep 17 00:00:00 2001
From: besscroft
Date: Fri, 28 Jun 2024 23:59:58 +0800
Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=BF=94?=
=?UTF-8?q?=E5=9B=9E=E9=A1=B6=E9=83=A8=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/Masonry.tsx | 2 ++
style/globals.css | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/components/Masonry.tsx b/components/Masonry.tsx
index 0f79858..e65aae0 100644
--- a/components/Masonry.tsx
+++ b/components/Masonry.tsx
@@ -11,6 +11,7 @@ import { toast } from 'sonner'
import { useSearchParams } from 'next/navigation'
import BlurImage from '~/components/BlurImage'
import { useButtonStore } from '~/app/providers/button-store-Providers'
+import { FloatButton } from 'antd'
export default function Masonry(props : Readonly) {
const { data: pageTotal } = useSWRPageTotalHook(props)
@@ -96,6 +97,7 @@ export default function Masonry(props : Readonly) {
}
+
)
diff --git a/style/globals.css b/style/globals.css
index a2b0d1a..c21ac45 100644
--- a/style/globals.css
+++ b/style/globals.css
@@ -24,6 +24,10 @@
display: none;
}
+.ant-float-btn {
+ z-index: 30;
+}
+
.ant-upload-select {
display: block !important;
}
From 427af73801613e88ffa0f00d8269bf529e7ff4de Mon Sep 17 00:00:00 2001
From: besscroft
Date: Sat, 29 Jun 2024 00:22:59 +0800
Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=88=86?=
=?UTF-8?q?=E4=BA=AB=E6=8C=89=E9=92=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/MasonryItem.tsx | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/components/MasonryItem.tsx b/components/MasonryItem.tsx
index dfc28e3..84c573b 100644
--- a/components/MasonryItem.tsx
+++ b/components/MasonryItem.tsx
@@ -7,7 +7,7 @@ import {
import { useButtonStore } from '~/app/providers/button-store-Providers'
import { CopyrightType, DataProps, ImageType } from '~/types'
import { Image, Tabs, Tab, Card, CardHeader, CardBody, CardFooter, Button, Chip, Link, Avatar } from '@nextui-org/react'
-import { Aperture, Camera, Image as ImageIcon, Languages, CalendarDays, X, SunMedium, MoonStar, Copyright, Crosshair, Timer, CircleGauge, Copy } from 'lucide-react'
+import { Aperture, Camera, Image as ImageIcon, Languages, CalendarDays, X, SunMedium, MoonStar, Copyright, Crosshair, Timer, CircleGauge, Copy, Share2 } from 'lucide-react'
import * as React from 'react'
import { useTheme } from 'next-themes'
import { useRouter } from 'next-nprogress-bar'
@@ -27,6 +27,23 @@ export default function MasonryItem() {
data: MasonryViewData,
}
+ async function handleOnClick() {
+ const url = window.location.origin + (pathname === '/' ? '/preview/' : pathname + '/preview/') + MasonryViewData.id
+ if (navigator.canShare({ url })) {
+ try {
+ await navigator.share({
+ title: MasonryViewData.title,
+ text: MasonryViewData.detail,
+ url: url
+ });
+ } catch (error) {
+ toast.warning('分享发生错误!', { duration: 500 })
+ }
+ } else {
+ toast.warning('您的浏览器不支持!', { duration: 500 })
+ }
+ }
+
return (
+