|
|
|
@ -7,6 +7,7 @@ import LogBar from './logBar';
|
|
|
|
import RightSideBar from './rightSideBar';
|
|
|
|
import RightSideBar from './rightSideBar';
|
|
|
|
import NavBar from './navBar';
|
|
|
|
import NavBar from './navBar';
|
|
|
|
import ProjectContainer from '@/pages/orchestration/project';
|
|
|
|
import ProjectContainer from '@/pages/orchestration/project';
|
|
|
|
|
|
|
|
import ApplicationContainer from '@/pages/orchestration/application';
|
|
|
|
import { menuData, menuData2 } from './config/menuData';
|
|
|
|
import { menuData, menuData2 } from './config/menuData';
|
|
|
|
|
|
|
|
|
|
|
|
interface Selected {
|
|
|
|
interface Selected {
|
|
|
|
@ -32,7 +33,7 @@ const ComponentTest = () => <div style={{ height: '100%', width: '100%' }}>组
|
|
|
|
|
|
|
|
|
|
|
|
// 所有可显示的组件路径列表
|
|
|
|
// 所有可显示的组件路径列表
|
|
|
|
const ALL_PATHS = [
|
|
|
|
const ALL_PATHS = [
|
|
|
|
'appFlow', 'compList', 'appInstance', 'event', 'globalVar',
|
|
|
|
'compFlow', 'appFlow', 'compList', 'appInstance', 'event', 'globalVar',
|
|
|
|
'myComponents', 'matchingComponents', 'componentReview',
|
|
|
|
'myComponents', 'matchingComponents', 'componentReview',
|
|
|
|
'componentCoding', 'componentDeployment', 'componentTest'
|
|
|
|
'componentCoding', 'componentDeployment', 'componentTest'
|
|
|
|
];
|
|
|
|
];
|
|
|
|
@ -52,7 +53,6 @@ function IDEContainer() {
|
|
|
|
// 当selected.currentPath变化时,添加到已打开的tab集合中
|
|
|
|
// 当selected.currentPath变化时,添加到已打开的tab集合中
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
if (selected.currentPath) {
|
|
|
|
if (selected.currentPath) {
|
|
|
|
console.log(1);
|
|
|
|
|
|
|
|
setOpenedTabs(prev => new Set(prev).add(selected.currentPath!));
|
|
|
|
setOpenedTabs(prev => new Set(prev).add(selected.currentPath!));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, [selected.currentPath]);
|
|
|
|
}, [selected.currentPath]);
|
|
|
|
@ -92,8 +92,10 @@ function IDEContainer() {
|
|
|
|
// 根据路径获取对应的组件
|
|
|
|
// 根据路径获取对应的组件
|
|
|
|
const getContentByPath = (path: string) => {
|
|
|
|
const getContentByPath = (path: string) => {
|
|
|
|
switch (path) {
|
|
|
|
switch (path) {
|
|
|
|
case 'appFlow':
|
|
|
|
case 'compFlow':
|
|
|
|
return <ProjectContainer />;
|
|
|
|
return <ProjectContainer />;
|
|
|
|
|
|
|
|
case 'appFlow':
|
|
|
|
|
|
|
|
return <ApplicationContainer />;
|
|
|
|
case 'compList':
|
|
|
|
case 'compList':
|
|
|
|
return <CompListComponent />;
|
|
|
|
return <CompListComponent />;
|
|
|
|
case 'appInstance':
|
|
|
|
case 'appInstance':
|
|
|
|
|