refactor: simplify node editor page and update admin page registry

- Removed the redirect logic from the NodeEditorPage, now directly rendering the DataFlowPage component.
- Updated the AdminPageRenderer to correctly register the new node editor page and adjust the cascading management imports for consistency.
- Enhanced the dynamic import logic to streamline page loading and improve performance.

Made-with: Cursor
This commit is contained in:
kjs
2026-03-12 02:02:45 +09:00
parent 09c3fa4708
commit 5c6469c75c
2 changed files with 52 additions and 45 deletions

View File

@@ -1,24 +1,7 @@
"use client";
/**
* 제어 시스템 페이지 (리다이렉트)
* 이 페이지는 /admin/dataflow로 리다이렉트됩니다.
*/
import { useEffect } from "react";
import { useRouter } from "next/navigation";
import DataFlowPage from "../page";
export default function NodeEditorPage() {
const router = useRouter();
useEffect(() => {
// /admin/dataflow 메인 페이지로 리다이렉트
router.replace("/admin/systemMng/dataflow");
}, [router]);
return (
<div className="flex h-screen items-center justify-center bg-muted">
<div className="text-muted-foreground"> ...</div>
</div>
);
return <DataFlowPage />;
}