Browse Source

feat: 快速开始删除开发环境

pull/230/head
zhaowei 10 months ago
parent
commit
b0d8a19975
1 changed files with 16 additions and 16 deletions
  1. +16
    -16
      react-ui/src/pages/Workspace/components/QuickStart/index.tsx

+ 16
- 16
react-ui/src/pages/Workspace/components/QuickStart/index.tsx View File

@@ -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')}
/>
<WorkFlow
{/* <WorkFlow
content="为开发者提供定制化编辑器,开发者可根据自己需求选择配置,保存编译器中的调试环境为镜像供训练使用"
buttonText="开发环境"
buttonTop={20}
x={left + 192 + space}
y={301}
onClick={() => navigate('/developmentEnvironment')}
/>
/> */}
<WorkFlow
content="为开发者提供定制化编辑器,开发者可根据自己需求选择配置,保存编译器中的调试环境为镜像供训练使用"
tips="可视化建模Designer"
buttonText="流水线"
buttonTop={20}
x={left + 2 * (192 + space)}
x={left + 1 * (192 + space)}
y={276}
onClick={() => 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')}
/>
<div
className={styles['quick-start__content__canvas__model']}
style={{ top: '358px', left: left + 4 * (192 + space) + 'px' }}
style={{ top: '358px', left: left + 3 * (192 + space) + 'px' }}
>
<KFIcon type="icon-moxingguanli" font={38} />
<span>模型管理</span>
</div>
<div
className={styles['quick-start__content__canvas__task']}
style={{ top: '110px', left: left + 2 * (192 + space) + 56 + taskLeftArrowWidth + 16 }}
style={{ top: '110px', left: left + 1 * (192 + space) + 56 + taskLeftArrowWidth + 16 }}
>
<KFIcon type="icon-tiaoduguanli" font={13} style={{ marginRight: '5px' }} />
<span>任务自动调度</span>
@@ -117,7 +117,7 @@ function QuickStart() {
arrorwTop={-4}
borderBottom={1}
/>
<WorkArrow
{/* <WorkArrow
x={left + 2 * 192 + space + 1}
y={378}
width={arrowWidth}
@@ -125,9 +125,9 @@ function QuickStart() {
arrowLeft={arrowWidth}
arrorwTop={-4}
borderBottom={1}
/>
/> */}
<WorkArrow
x={left + 4 * 192 + 3 * space + 1}
x={left + 3 * 192 + 2 * space + 1}
y={378}
width={arrowWidth + 10}
height={1}
@@ -136,7 +136,7 @@ function QuickStart() {
borderBottom={1}
/>
<WorkArrow
x={left + 4 * 192 + 60 + 4 * space + 1 - 10}
x={left + 3 * 192 + 60 + 3 * space + 1 - 10}
y={378}
width={arrowWidth + 10}
height={1}
@@ -145,7 +145,7 @@ function QuickStart() {
borderBottom={1}
/>
<WorkArrow
x={left + 2 * (192 + space) + 56}
x={left + 1 * (192 + space) + 56}
y={139}
width={taskLeftArrowWidth}
height={120}
@@ -155,7 +155,7 @@ function QuickStart() {
borderTop={1}
/>
<WorkArrow
x={left + 2 * (192 + space) + 56 + taskLeftArrowWidth + 16 + 131 + 4}
x={left + 1 * (192 + space) + 56 + taskLeftArrowWidth + 16 + 131 + 4}
y={127}
width={taskRightArrowWidth}
height={156}


Loading…
Cancel
Save