From b0d8a19975d666d11d62e27a58d31defb5d8b478 Mon Sep 17 00:00:00 2001 From: zhaowei Date: Tue, 20 May 2025 14:10:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20=E5=BF=AB=E9=80=9F=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E5=88=A0=E9=99=A4=E5=BC=80=E5=8F=91=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Workspace/components/QuickStart/index.tsx | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/react-ui/src/pages/Workspace/components/QuickStart/index.tsx b/react-ui/src/pages/Workspace/components/QuickStart/index.tsx index d155dae9..f77f36e2 100644 --- a/react-ui/src/pages/Workspace/components/QuickStart/index.tsx +++ b/react-ui/src/pages/Workspace/components/QuickStart/index.tsx @@ -16,13 +16,13 @@ function QuickStart() { const changeScale = () => { // body 的宽度 - 菜单的宽度 - 两个 padding - 右边用户管理的宽度 - 右边用户管理的 marginLeft - 滚动条的宽度, const width = document.body.offsetWidth - 256 - 80 - 60 - 326 - 15 - 8; - if (width >= 1223) { - const spaceX = (width - 192 * 5 - 60) / 7; + if (width >= 1002) { + const spaceX = (width - 192 * 4 - 60) / 6; setSpace(spaceX); setCanvasWidth('100%'); setScale(1.0); } else { - const ratio = width / 1223; + const ratio = width / 1002; setCanvasWidth('1223px'); setSpace(29); setScale(ratio); @@ -60,20 +60,20 @@ function QuickStart() { y={309} onClick={() => navigate('/datasetPreparation/datasetAnnotation')} /> - navigate('/developmentEnvironment')} - /> + /> */} navigate('/pipeline/template')} /> @@ -81,7 +81,7 @@ function QuickStart() { content="开发者可以在这里运行流水线模板,产生实验实例,对比实验训练过程与产生的实验训练数据" buttonText="实验" buttonTop={40} - x={left + 3 * (192 + space)} + x={left + 2 * (192 + space)} y={295} onClick={() => navigate('/pipeline/experiment')} /> @@ -90,20 +90,20 @@ function QuickStart() { tips="模型在线服务" buttonText="模型在线部署" buttonTop={20} - x={left + 4 * (192 + space) + 60 + space} + x={left + 3 * (192 + space) + 60 + space} y={263} onClick={() => navigate('/dataset/modelDeployment')} />
模型管理
任务自动调度 @@ -117,7 +117,7 @@ function QuickStart() { arrorwTop={-4} borderBottom={1} /> - + /> */} Date: Tue, 20 May 2025 14:17:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- react-ui/src/pages/Workspace/index.tsx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/react-ui/src/pages/Workspace/index.tsx b/react-ui/src/pages/Workspace/index.tsx index 0546f22a..9aa7600a 100644 --- a/react-ui/src/pages/Workspace/index.tsx +++ b/react-ui/src/pages/Workspace/index.tsx @@ -1,15 +1,15 @@ -import { useDraggable } from '@/hooks/useDraggable'; +// import { useDraggable } from '@/hooks/useDraggable'; import { getWorkspaceOverviewReq } from '@/services/workspace'; import { ExperimentInstance } from '@/types'; import { to } from '@/utils/promise'; import { Divider, Flex } from 'antd'; import { useEffect, useState } from 'react'; -import Draggable from 'react-draggable'; +// import Draggable from 'react-draggable'; import AssetsManagement from './components/AssetsManagement'; import ExperimentChart, { type ExperimentStatistics } from './components/ExperimentChart'; import ExperitableTable from './components/ExperimentTable'; import QuickStart from './components/QuickStart'; -import RobotFrame from './components/RobotFrame'; +// import RobotFrame from './components/RobotFrame'; import TotalStatistics from './components/TotalStatistics'; import UserPoints from './components/UserPoints'; import UserSpace from './components/UserSpace'; @@ -25,10 +25,10 @@ type OverviewData = { function Workspace() { const [overviewData, setOverviewData] = useState(); - const [robotFrameVisible, setRobotFrameVisible] = useState(false); - const { handleStart, handleStop, handleDrag, handleClick } = useDraggable(() => - setRobotFrameVisible((prev) => !prev), - ); + // const [robotFrameVisible, setRobotFrameVisible] = useState(false); + // const { handleStart, handleStop, handleDrag, handleClick } = useDraggable(() => + // setRobotFrameVisible((prev) => !prev), + // ); const users: number[] = new Array(8).fill(0); useEffect(() => { @@ -85,7 +85,7 @@ function Workspace() {
- + {/* setRobotFrameVisible(false)} - > + > */} ); }