iframe corrections
This commit is contained in:
parent
41356a5ee7
commit
763542cb77
@ -2,7 +2,7 @@ import { getServerSession } from "next-auth/next";
|
|||||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function CrmPage() {
|
||||||
const session = await getServerSession(authOptions);
|
const session = await getServerSession(authOptions);
|
||||||
|
|
||||||
if (!session) {
|
if (!session) {
|
||||||
@ -10,15 +10,13 @@ export default async function Page() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="w-full min-h-screen bg-black">
|
<div className="h-[calc(100vh-4rem)] overflow-hidden">
|
||||||
<div className="w-full h-[calc(100vh-4rem)]">
|
<iframe
|
||||||
<iframe
|
src="https://crm.slm-lab.net"
|
||||||
src="https://connect.slm-lab.net/realms/cercle/protocol/openid-connect/auth?client_id=mediations.slm-lab.net&redirect_uri=https%3A%2F%2Fmediations.slm-lab.net%2F%3Fopenid_mode%3Dtrue&scope=openid%20profile%20email&response_type=code"
|
className="w-full h-full border-0"
|
||||||
className="w-full h-full border-none"
|
style={{ display: 'block' }}
|
||||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
allow="fullscreen"
|
||||||
allowFullScreen
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1,14 +1,22 @@
|
|||||||
import { getServerSession } from "next-auth/next";
|
import { getServerSession } from "next-auth/next";
|
||||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
import { FlowFrame } from "@/components/flow/flow-frame";
|
|
||||||
|
|
||||||
export default async function Page() {
|
export default async function FlowPage() {
|
||||||
const session = await getServerSession(authOptions);
|
const session = await getServerSession(authOptions);
|
||||||
|
|
||||||
if (!session) {
|
if (!session) {
|
||||||
redirect("/signin");
|
redirect("/signin");
|
||||||
}
|
}
|
||||||
|
|
||||||
return <FlowFrame />;
|
return (
|
||||||
|
<div className="h-[calc(100vh-4rem)] overflow-hidden">
|
||||||
|
<iframe
|
||||||
|
src="https://lab.slm-lab.net/flow"
|
||||||
|
className="w-full h-full border-0"
|
||||||
|
style={{ display: 'block' }}
|
||||||
|
allow="fullscreen"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user