From 4d77faebf5d9e9e95e4828d66852c01550724ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=98=84=EC=84=B1=ED=95=84?= Date: Sat, 25 Jan 2025 20:41:02 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A0=88=EC=9D=B4=EC=95=84=EC=9B=83=20?= =?UTF-8?q?=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/MainContentArea.jsx | 2 +- .../api-tester/DraggableApiItem.jsx | 93 +++---------------- 2 files changed, 15 insertions(+), 80 deletions(-) diff --git a/TestMasterUI/src/components/MainContentArea.jsx b/TestMasterUI/src/components/MainContentArea.jsx index ff280ec..8493c1d 100644 --- a/TestMasterUI/src/components/MainContentArea.jsx +++ b/TestMasterUI/src/components/MainContentArea.jsx @@ -172,7 +172,7 @@ const ScenarioMode = ({
-
+
( - - -
- -
-
- - - Open - - - - Rename - - - Delete - - -
-); - -const DraggableApiItem = ({ api, collectionId, onApiAction }) => { +const DraggableApiItem = ({api, collectionId, onApiAction}) => { const [isDragging, setIsDragging] = useState(false); const handleDragStart = (event) => { @@ -69,63 +47,20 @@ const DraggableApiItem = ({ api, collectionId, onApiAction }) => { draggable onDragStart={handleDragStart} onDragEnd={handleDragEnd} - className={`cursor-move transition-colors duration-200 ${isDragging ? 'opacity-50 bg-accent' : ''}`} - > - {/* {*/} - {/* // Prevent click when dragging ends*/} - {/* if (!isDragging) {*/} - {/* onApiAction.open(collectionId, api.id);*/} - {/* }*/} - {/* }}*/} - {/* className="w-full justify-start gap-2"*/} - {/* asChild*/} - {/*>*/} - {/*
*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/* {api.method && {api.method} }*/} - {/* {api.name}*/} - {/* */} - {/* */} - {/* */} - {/*
*/} - {/*

{api.name}

*/} - {/* {api.path &&

{api.path}

}*/} - {/*
*/} - {/*
*/} - {/*
*/} - {/* e.stopPropagation()}*/} - {/* >*/} - {/* onApiAction.open(collectionId, api.id)}*/} - {/* onRename={() => onApiAction.rename(collectionId, api.id)}*/} - {/* onDelete={() => onApiAction.delete(collectionId, api.id)}*/} - {/* />*/} - {/* */} - {/*
*/} - {/**/} -
-
!isDragging && onApiAction.open(collectionId, api.id)} - className="flex items-center gap-2 flex-1 min-w-0 cursor-pointer" - > + className={`cursor-move transition-colors duration-200 px-4 ${isDragging ? 'opacity-50 bg-accent' : ''}`}> +
+
!isDragging && onApiAction.open(collectionId, api.id)} className="flex items-center gap-2 flex-1 min-w-0 cursor-pointer"> - - - {api.method && {api.method} } - {api.name} - + + s + {api.name} +

{api.name}

- {api.path &&

{api.path}

} + {api.path &&

{api.method} {api.path}

}