mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-15 10:55:23 +02:00
Remove problematic CSS classes from system settings: - Git provider configurations - User management dialogs - API key management - Certificate management - Notification settings - Server management dialogs - Profile and 2FA settings Fixes render loops in admin panels.
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import { CodeEditor } from "@/components/shared/code-editor";
|
|
import {
|
|
Dialog,
|
|
DialogContent,
|
|
DialogDescription,
|
|
DialogHeader,
|
|
DialogTitle,
|
|
DialogTrigger,
|
|
} from "@/components/ui/dialog";
|
|
import { DropdownMenuItem } from "@/components/ui/dropdown-menu";
|
|
|
|
interface Props {
|
|
data: unknown;
|
|
}
|
|
|
|
export const ShowNodeData = ({ data }: Props) => {
|
|
return (
|
|
<Dialog>
|
|
<DialogTrigger asChild>
|
|
<DropdownMenuItem
|
|
className="w-full cursor-pointer"
|
|
onSelect={(e) => e.preventDefault()}
|
|
>
|
|
View Config
|
|
</DropdownMenuItem>
|
|
</DialogTrigger>
|
|
<DialogContent className={"sm:max-w-5xl"}>
|
|
<DialogHeader>
|
|
<DialogTitle>Node Config</DialogTitle>
|
|
<DialogDescription>
|
|
See in detail the metadata of this node
|
|
</DialogDescription>
|
|
</DialogHeader>
|
|
<div className="text-wrap rounded-lg border p-4 text-sm sm:max-w-[59rem] bg-card">
|
|
<code>
|
|
<pre className="whitespace-pre-wrap break-words">
|
|
<CodeEditor
|
|
language="json"
|
|
lineWrapping
|
|
lineNumbers={false}
|
|
readOnly
|
|
value={JSON.stringify(data, null, 2)}
|
|
/>
|
|
</pre>
|
|
</code>
|
|
</div>
|
|
</DialogContent>
|
|
</Dialog>
|
|
);
|
|
};
|