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 { redirect } from "next/navigation";
|
||||
|
||||
export default async function Page() {
|
||||
export default async function CrmPage() {
|
||||
const session = await getServerSession(authOptions);
|
||||
|
||||
if (!session) {
|
||||
@ -10,15 +10,13 @@ export default async function Page() {
|
||||
}
|
||||
|
||||
return (
|
||||
<main className="w-full min-h-screen bg-black">
|
||||
<div className="w-full h-[calc(100vh-4rem)]">
|
||||
<iframe
|
||||
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-none"
|
||||
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
|
||||
allowFullScreen
|
||||
/>
|
||||
</div>
|
||||
</main>
|
||||
<div className="h-[calc(100vh-4rem)] overflow-hidden">
|
||||
<iframe
|
||||
src="https://crm.slm-lab.net"
|
||||
className="w-full h-full border-0"
|
||||
style={{ display: 'block' }}
|
||||
allow="fullscreen"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@ -1,14 +1,22 @@
|
||||
import { getServerSession } from "next-auth/next";
|
||||
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
|
||||
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);
|
||||
|
||||
if (!session) {
|
||||
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