Skip to content

Commit

Permalink
feat: adjust the menu (#8133)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintsweet authored Oct 8, 2024
1 parent 94fb75f commit 88a26a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 30 deletions.
23 changes: 2 additions & 21 deletions config-ui/src/app/routrer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ import {
ProjectGeneralSettings,
ProjectWebhook,
ProjectAdditionalSettings,
BlueprintHomePage,
BlueprintDetailPage,
BlueprintConnectionDetailPage,
Pipelines,
Pipeline,
ApiKeys,
NotFound,
} from '@/routes';
Expand Down Expand Up @@ -112,31 +109,15 @@ export const router = createBrowserRouter(
path: 'advanced',
children: [
{
path: 'blueprints',
element: <BlueprintHomePage />,
},
{
path: 'blueprints/:id',
element: <BlueprintDetailPage />,
},
{
path: 'blueprints/:bid/:unique',
element: <BlueprintConnectionDetailPage />,
path: 'keys',
element: <ApiKeys />,
},
{
path: 'pipelines',
element: <Pipelines />,
},
{
path: 'pipeline/:id',
element: <Pipeline />,
},
],
},
{
path: 'keys',
element: <ApiKeys />,
},
],
},
],
Expand Down
12 changes: 3 additions & 9 deletions config-ui/src/routes/layout/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
AppstoreOutlined,
ProjectOutlined,
ExperimentOutlined,
KeyOutlined,
DashboardOutlined,
FileSearchOutlined,
ApiOutlined,
Expand Down Expand Up @@ -54,20 +53,15 @@ export const menuItems: MenuItem[] = [
icon: <ExperimentOutlined />,
children: [
{
key: '/advanced/blueprints',
label: 'Blueprints',
key: '/advanced/keys',
label: 'API Keys',
},
{
key: '/advanced/pipelines',
label: 'Pipelines',
label: 'Pipeline Results',
},
],
},
{
key: '/keys',
label: 'API Keys',
icon: <KeyOutlined />,
},
];

const getMenuMatchs = (items: MenuItem[], parentKey?: string) => {
Expand Down

0 comments on commit 88a26a2

Please sign in to comment.