From 88a26a2db0fb47d66ec89433793fcf6d268047b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=9D=92=E6=B9=9B?= <0x1304570@gmail.com>
Date: Tue, 8 Oct 2024 22:35:31 +1300
Subject: [PATCH] feat: adjust the menu (#8133)
---
config-ui/src/app/routrer.tsx | 23 ++---------------------
config-ui/src/routes/layout/config.tsx | 12 +++---------
2 files changed, 5 insertions(+), 30 deletions(-)
diff --git a/config-ui/src/app/routrer.tsx b/config-ui/src/app/routrer.tsx
index f59b0a58a97..2ee79bfb919 100644
--- a/config-ui/src/app/routrer.tsx
+++ b/config-ui/src/app/routrer.tsx
@@ -30,11 +30,8 @@ import {
ProjectGeneralSettings,
ProjectWebhook,
ProjectAdditionalSettings,
- BlueprintHomePage,
- BlueprintDetailPage,
BlueprintConnectionDetailPage,
Pipelines,
- Pipeline,
ApiKeys,
NotFound,
} from '@/routes';
@@ -112,31 +109,15 @@ export const router = createBrowserRouter(
path: 'advanced',
children: [
{
- path: 'blueprints',
- element: ,
- },
- {
- path: 'blueprints/:id',
- element: ,
- },
- {
- path: 'blueprints/:bid/:unique',
- element: ,
+ path: 'keys',
+ element: ,
},
{
path: 'pipelines',
element: ,
},
- {
- path: 'pipeline/:id',
- element: ,
- },
],
},
- {
- path: 'keys',
- element: ,
- },
],
},
],
diff --git a/config-ui/src/routes/layout/config.tsx b/config-ui/src/routes/layout/config.tsx
index 8e2b9a6d247..069798c1dcb 100644
--- a/config-ui/src/routes/layout/config.tsx
+++ b/config-ui/src/routes/layout/config.tsx
@@ -20,7 +20,6 @@ import {
AppstoreOutlined,
ProjectOutlined,
ExperimentOutlined,
- KeyOutlined,
DashboardOutlined,
FileSearchOutlined,
ApiOutlined,
@@ -54,20 +53,15 @@ export const menuItems: MenuItem[] = [
icon: ,
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: ,
- },
];
const getMenuMatchs = (items: MenuItem[], parentKey?: string) => {