feat(ideContainer): 增加开发引导页

master
钟良源 1 week ago
parent 5a06269e1d
commit b04965f14f

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 565 KiB

@ -0,0 +1,18 @@
.appGuideContainer {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
background-color: var(--color-fill-2);
overflow: auto;
}
.guideImage {
max-width: 100%;
max-height: 100%;
object-fit: contain;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border-radius: 4px;
}

@ -0,0 +1,16 @@
import React from 'react';
import styles from './index.module.less';
const AppGuide: React.FC = () => {
return (
<div className={styles.appGuideContainer}>
<img
src="/images/process.png"
alt="开发应用引导流程图"
className={styles.guideImage}
/>
</div>
);
};
export default AppGuide;

@ -47,6 +47,15 @@ export const menuData1 = [
]; ];
export const menuData2 = [ export const menuData2 = [
{
title: '开发引导',
path: 'appGuide',
key: 'appGuide',
parentKey: 'appGuide',
icon: '/ideContainer/icon/appList.png',
activeIcon: '/ideContainer/icon/appList_active.png',
children: null
},
{ {
title: '组件列表', title: '组件列表',
path: 'componentList', path: 'componentList',

@ -32,6 +32,7 @@ import ComponentDeployment from '@/pages/componentDevelopment/componentDeploymen
import ComponentTest from '@/pages/componentDevelopment/componentTest'; import ComponentTest from '@/pages/componentDevelopment/componentTest';
import ComponentEnv from '@/pages/componentDevelopment/componentEnv'; import ComponentEnv from '@/pages/componentDevelopment/componentEnv';
import SystemResource from '@/pages/componentDevelopment/systemResource'; import SystemResource from '@/pages/componentDevelopment/systemResource';
import AppGuide from '@/pages/ideContainer/appGuide';
import { getUserToken } from '@/api/user'; import { getUserToken } from '@/api/user';
import { Message } from '@arco-design/web-react'; import { Message } from '@arco-design/web-react';
import { queryEventItemBySceneId, queryEventItemBySceneIdOld } from '@/api/event'; import { queryEventItemBySceneId, queryEventItemBySceneIdOld } from '@/api/event';
@ -53,7 +54,7 @@ const ALL_PATHS = [
'compFlow', 'complexFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'appCompList', 'compFlow', 'complexFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar', 'appCompList',
'myComponents', 'matchingComponents', 'componentReview', 'componentList', 'myComponents', 'matchingComponents', 'componentReview', 'componentList',
'componentCoding', 'componentDeployment', 'componentTest', 'envConfig', 'componentCoding', 'componentDeployment', 'componentTest', 'envConfig',
'systemResource' 'systemResource', 'appGuide'
]; ];
function IDEContainer() { function IDEContainer() {
@ -384,6 +385,8 @@ function IDEContainer() {
return <ComponentEnv />; return <ComponentEnv />;
case 'systemResource': case 'systemResource':
return <SystemResource />; return <SystemResource />;
case 'appGuide':
return <AppGuide />;
default: default:
return <div></div>; return <div></div>;
} }

Loading…
Cancel
Save