clean pages
This commit is contained in:
parent
07a7b1c404
commit
2709ba645d
@ -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 (
|
||||
<main className="w-full h-screen bg-black">
|
||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||
<ResponsiveIframe
|
||||
src={process.env.NEXT_PUBLIC_IFRAME_CONTACTS_URL || ''}
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
className="relative"
|
||||
style={{
|
||||
marginTop: '-64px',
|
||||
marginLeft: '-180px',
|
||||
width: 'calc(100% + 500px)',
|
||||
right: '-160px'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@ -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 (
|
||||
<main className="w-full h-screen bg-black">
|
||||
<div className="w-full h-full px-4 pt-12 pb-4">
|
||||
<ResponsiveIframe
|
||||
src={process.env.NEXT_PUBLIC_IFRAME_DIARY_URL || ''}
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
className="relative"
|
||||
style={{
|
||||
marginTop: '-64px',
|
||||
marginLeft: '-180px',
|
||||
width: 'calc(100% + 500px)',
|
||||
right: '-160px'
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
"use client";
|
||||
|
||||
export function AnnouncementFrame() {
|
||||
return (
|
||||
<div className="w-full h-[calc(100vh-8rem)]">
|
||||
<iframe
|
||||
src={process.env.NEXT_PUBLIC_IFRAME_ANNOUNCEMENT_URL}
|
||||
className="w-full h-full border-none"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowFullScreen
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
"use client";
|
||||
|
||||
export function NotesFrame() {
|
||||
return (
|
||||
<div className="w-full h-[calc(100vh-8rem)]">
|
||||
<iframe
|
||||
src={process.env.NEXT_PUBLIC_IFRAME_NOTES_URL}
|
||||
className="w-full h-full border-none"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowFullScreen
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@ -5,7 +5,6 @@ import { useState } from "react";
|
||||
|
||||
import { cn } from "@/lib/utils";
|
||||
import {
|
||||
BookOpen,
|
||||
Share2,
|
||||
Palette,
|
||||
GitFork,
|
||||
@ -18,7 +17,6 @@ import {
|
||||
MessageSquare,
|
||||
FileText,
|
||||
Calculator,
|
||||
Users,
|
||||
Kanban,
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
@ -68,12 +66,6 @@ export function Sidebar({ isOpen, onClose }: SidebarProps) {
|
||||
|
||||
// Base menu items (available for everyone)
|
||||
const baseMenuItems: MenuItem[] = [
|
||||
{
|
||||
title: "Diary",
|
||||
icon: BookOpen,
|
||||
href: "/diary",
|
||||
iframe: process.env.NEXT_PUBLIC_IFRAME_DIARY_URL,
|
||||
},
|
||||
{
|
||||
title: "Courrier",
|
||||
icon: Mail,
|
||||
@ -85,12 +77,6 @@ export function Sidebar({ isOpen, onClose }: SidebarProps) {
|
||||
href: "/drive",
|
||||
iframe: process.env.NEXT_PUBLIC_IFRAME_DRIVE_URL,
|
||||
},
|
||||
{
|
||||
title: "Contacts",
|
||||
icon: Users,
|
||||
href: "/contacts",
|
||||
iframe: process.env.NEXT_PUBLIC_IFRAME_CONTACTS_URL,
|
||||
},
|
||||
{
|
||||
title: "Learn",
|
||||
icon: GraduationCap,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user