restore qg place
This commit is contained in:
parent
fa08cebaa5
commit
f5daa7a099
23
app/qg/page.tsx
Normal file
23
app/qg/page.tsx
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
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_MISSIONVIEW_URL || ''}
|
||||||
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
);
|
||||||
|
}
|
||||||
@ -185,7 +185,13 @@ export function MainNav() {
|
|||||||
icon: any;
|
icon: any;
|
||||||
href: string;
|
href: string;
|
||||||
requiredRoles?: string[];
|
requiredRoles?: string[];
|
||||||
}[] = [];
|
}[] = [
|
||||||
|
{
|
||||||
|
title: "QG",
|
||||||
|
icon: Target,
|
||||||
|
href: '/qg',
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
// Role-specific menu items
|
// Role-specific menu items
|
||||||
const roleSpecificItems = [
|
const roleSpecificItems = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user