From d7f1e3ea252ef7ef7b1fd909f3f73dfbd8880507 Mon Sep 17 00:00:00 2001 From: gunshiz Date: Sun, 16 Aug 2026 21:12:56 +0700 Subject: [PATCH] feat: share update --- app/layout.tsx | 4 ---- app/share/[id]/{share-client.tsx => client.tsx} | 0 app/share/[id]/page.tsx | 6 +++--- app/share/layout.tsx | 6 +++--- app/share/page.tsx | 5 +---- 5 files changed, 7 insertions(+), 14 deletions(-) rename app/share/[id]/{share-client.tsx => client.tsx} (100%) diff --git a/app/layout.tsx b/app/layout.tsx index b5afee6..eededf2 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -30,12 +30,8 @@ export const metadata: Metadata = { }, openGraph: { type: "website", - locale: "th_TH", url: siteUrl, siteName: "Erika!", - title: "Erika!", - description: - "แหล่งรวมลิ้งค์ทั้งหมดของช่อง Erika!", images: [ { url: "/avatar.webp", diff --git a/app/share/[id]/share-client.tsx b/app/share/[id]/client.tsx similarity index 100% rename from app/share/[id]/share-client.tsx rename to app/share/[id]/client.tsx diff --git a/app/share/[id]/page.tsx b/app/share/[id]/page.tsx index 605e30e..99c62fe 100644 --- a/app/share/[id]/page.tsx +++ b/app/share/[id]/page.tsx @@ -10,7 +10,7 @@ import { CopyShareActions, DeleteCommentButton, DeleteShareButton, -} from "@/app/share/[id]/share-client"; +} from "@/app/share/[id]/client"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Button } from "@/components/ui/button"; import { @@ -176,7 +176,7 @@ export default async function SharedTextPage({
{share.content}
@@ -246,7 +246,7 @@ export default async function SharedTextPage({ /> )} -

+

{comment.body}

diff --git a/app/share/layout.tsx b/app/share/layout.tsx index 38111c1..771a37c 100644 --- a/app/share/layout.tsx +++ b/app/share/layout.tsx @@ -10,8 +10,8 @@ import { authOptions } from "@/lib/auth/auth-options"; import { getDiscordMemberProfile } from "@/lib/discord/discord"; export const metadata: Metadata = { - title: "Share | Erika!", - description: "แชร์ข้อความและไฟล์ .txt ผ่านลิงก์สั้น", + title: "Share", + description: "แชร์ข้อความและไฟล์ผ่านลิงก์สั้น", }; export default async function ShareLayout({ children }: { children: React.ReactNode }) { @@ -32,7 +32,7 @@ export default async function ShareLayout({ children }: { children: React.ReactN - Erika / Share + Share
diff --git a/app/share/page.tsx b/app/share/page.tsx index 970fd4f..0b251f7 100644 --- a/app/share/page.tsx +++ b/app/share/page.tsx @@ -22,14 +22,11 @@ export default async function SharePage() { return (
-

- New public paste -

วางข้อความ แล้วส่งลิงก์ต่อ

- เนื้อหาหลักจะถูกเก็บตามที่พิมพ์ทุกตัวอักษร คนที่มีลิงก์สามารถเปิดอ่านได้โดยไม่ต้องเข้าสู่ระบบ + คนที่มีลิงก์สามารถเปิดอ่านได้