mirror of
https://github.com/LukeHagar/dokploy.git
synced 2025-12-09 12:27:48 +00:00
* fix: dashboard layout scroll * feat: dashboard nav style animation * chore: code input font * style: format code * pref: alert component extraction * fix: global font var not found * fix: code path beak line * chore: remove framer-motion * fix: status color
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogDescription,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
DialogTrigger,
|
|
} from "@/components/ui/dialog";
|
|
import dynamic from "next/dynamic";
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
|
|
const Terminal = dynamic(
|
|
() => import("./docker-terminal").then((e) => e.DockerTerminal),
|
|
{
|
|
ssr: false,
|
|
},
|
|
);
|
|
|
|
interface Props {
|
|
containerId: string;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export const DockerTerminalModal = ({ children, containerId }: Props) => {
|
|
return (
|
|
<Dialog>
|
|
<DialogTrigger asChild>
|
|
<DropdownMenuItem
|
|
className="w-full cursor-pointer space-x-3"
|
|
onSelect={(e) => e.preventDefault()}
|
|
>
|
|
{children}
|
|
</DropdownMenuItem>
|
|
</DialogTrigger>
|
|
<DialogContent className="max-h-screen overflow-y-auto sm:max-w-7xl">
|
|
<DialogHeader>
|
|
<DialogTitle>Docker Terminal</DialogTitle>
|
|
<DialogDescription>
|
|
Easy way to access to docker container
|
|
</DialogDescription>
|
|
</DialogHeader>
|
|
|
|
<Terminal id="terminal" containerId={containerId} />
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
};
|