From 2709ba645da1e61c5b1c9c790a3c818a7936bc1b Mon Sep 17 00:00:00 2001 From: alma Date: Thu, 17 Apr 2025 16:31:06 +0200 Subject: [PATCH] clean pages --- app/contacts/page.tsx | 30 ------------------- app/diary/page.tsx | 30 ------------------- .../announcement/announcement-frame.tsx | 14 --------- components/notes/notes-frame.tsx | 14 --------- components/sidebar.tsx | 14 --------- 5 files changed, 102 deletions(-) delete mode 100644 app/contacts/page.tsx delete mode 100644 app/diary/page.tsx delete mode 100644 components/announcement/announcement-frame.tsx delete mode 100644 components/notes/notes-frame.tsx diff --git a/app/contacts/page.tsx b/app/contacts/page.tsx deleted file mode 100644 index 54aae814..00000000 --- a/app/contacts/page.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/app/api/auth/[...nextauth]/route"; -import { redirect } from "next/navigation"; -import { ResponsiveIframe } from "@/app/components/responsive-iframe"; - -export default async function Page() { - const session = await getServerSession(authOptions); - - if (!session) { - redirect("/signin"); - } - - return ( -
-
- -
-
- ); -} \ No newline at end of file diff --git a/app/diary/page.tsx b/app/diary/page.tsx deleted file mode 100644 index b65e907b..00000000 --- a/app/diary/page.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { getServerSession } from "next-auth/next"; -import { authOptions } from "@/app/api/auth/[...nextauth]/route"; -import { redirect } from "next/navigation"; -import { ResponsiveIframe } from "@/app/components/responsive-iframe"; - -export default async function Page() { - const session = await getServerSession(authOptions); - - if (!session) { - redirect("/signin"); - } - - return ( -
-
- -
-
- ); -} \ No newline at end of file diff --git a/components/announcement/announcement-frame.tsx b/components/announcement/announcement-frame.tsx deleted file mode 100644 index e9e588e5..00000000 --- a/components/announcement/announcement-frame.tsx +++ /dev/null @@ -1,14 +0,0 @@ -"use client"; - -export function AnnouncementFrame() { - return ( -
-