40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
import { VisuElementsProvider } from "@/_context/visu/VisuElementsProvider";
|
|
import { api_drawData } from "@/actions/draw/api-draw";
|
|
import { drawGetSvg } from "@/actions/rk/api-draw";
|
|
import { api_VisuElementsAll } from "@/actions/rk/api-visuElements";
|
|
import { Card, CardContent, CardHeader } from "@/components/ui/card";
|
|
import { SvgShow } from "@/components/visu/draw/svgShow";
|
|
import VisuContent from "@/components/visu/visuContent";
|
|
|
|
export default async function PageShowDraw() {
|
|
|
|
const data = await api_drawData();
|
|
|
|
|
|
|
|
return (
|
|
<div className="bg-gray-200">
|
|
<svg
|
|
width="100%"
|
|
height="100%"
|
|
viewBox={`${0} ${0} ${1820} ${1120}`}
|
|
>
|
|
<rect x1={1} y1={0} width={1750} height={1500} fill="#fee0fe" stroke="#000" strokeWidth={1} />
|
|
|
|
<SvgShow svg={data.svg} />
|
|
|
|
</svg>
|
|
|
|
{true &&
|
|
<Card positons={"start"}>
|
|
<CardHeader variant={"danger"} >Debug</CardHeader>
|
|
<CardContent className="ps-8">
|
|
<pre>{JSON.stringify(data, null, 2)}</pre>
|
|
|
|
</CardContent>
|
|
</Card>
|
|
}
|
|
</div>
|
|
);
|
|
}
|