|
@@ -9,6 +9,7 @@ import HeaderBillingBtn from '../billing/header-billing-btn'
|
|
import AccountDropdown from './account-dropdown'
|
|
import AccountDropdown from './account-dropdown'
|
|
import AppNav from './app-nav'
|
|
import AppNav from './app-nav'
|
|
import DatasetNav from './dataset-nav'
|
|
import DatasetNav from './dataset-nav'
|
|
|
|
+import DatabaseNav from './database-nav'
|
|
import EnvNav from './env-nav'
|
|
import EnvNav from './env-nav'
|
|
import ExploreNav from './explore-nav'
|
|
import ExploreNav from './explore-nav'
|
|
import ToolsNav from './tools-nav'
|
|
import ToolsNav from './tools-nav'
|
|
@@ -50,6 +51,7 @@ const Header = () => {
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
}, [selectedSegment])
|
|
}, [selectedSegment])
|
|
return (
|
|
return (
|
|
|
|
+ //首页顶部导航栏nav 云脑
|
|
<div className='flex flex-1 items-center justify-between px-4'>
|
|
<div className='flex flex-1 items-center justify-between px-4'>
|
|
<div className='flex items-center'>
|
|
<div className='flex items-center'>
|
|
{isMobile && <div
|
|
{isMobile && <div
|
|
@@ -75,10 +77,12 @@ const Header = () => {
|
|
)}
|
|
)}
|
|
{!isMobile && (
|
|
{!isMobile && (
|
|
<div className='flex items-center'>
|
|
<div className='flex items-center'>
|
|
- {!isCurrentWorkspaceDatasetOperator && <ExploreNav className={navClassName} />}
|
|
|
|
|
|
+ {/* {!isCurrentWorkspaceDatasetOperator && <ExploreNav className={navClassName} />} */}
|
|
|
|
+ {/* 工作室nav */}
|
|
{!isCurrentWorkspaceDatasetOperator && <AppNav />}
|
|
{!isCurrentWorkspaceDatasetOperator && <AppNav />}
|
|
|
|
+ {(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatabaseNav />}
|
|
{(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatasetNav />}
|
|
{(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatasetNav />}
|
|
- {!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />}
|
|
|
|
|
|
+ {/* {!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />} */}
|
|
</div>
|
|
</div>
|
|
)}
|
|
)}
|
|
<div className='flex items-center flex-shrink-0'>
|
|
<div className='flex items-center flex-shrink-0'>
|
|
@@ -95,10 +99,11 @@ const Header = () => {
|
|
</div>
|
|
</div>
|
|
{(isMobile && isShowNavMenu) && (
|
|
{(isMobile && isShowNavMenu) && (
|
|
<div className='w-full flex flex-col p-2 gap-y-1'>
|
|
<div className='w-full flex flex-col p-2 gap-y-1'>
|
|
- {!isCurrentWorkspaceDatasetOperator && <ExploreNav className={navClassName} />}
|
|
|
|
|
|
+ {/* {!isCurrentWorkspaceDatasetOperator && <ExploreNav className={navClassName} />} */}
|
|
{!isCurrentWorkspaceDatasetOperator && <AppNav />}
|
|
{!isCurrentWorkspaceDatasetOperator && <AppNav />}
|
|
|
|
+ {(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatabaseNav />}
|
|
{(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatasetNav />}
|
|
{(isCurrentWorkspaceEditor || isCurrentWorkspaceDatasetOperator) && <DatasetNav />}
|
|
- {!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />}
|
|
|
|
|
|
+ {/* {!isCurrentWorkspaceDatasetOperator && <ToolsNav className={navClassName} />} */}
|
|
</div>
|
|
</div>
|
|
)}
|
|
)}
|
|
</div>
|
|
</div>
|