From 3152285547516c626d48364e7ceb790941b32f56 Mon Sep 17 00:00:00 2001 From: "jie@apache.org" <2732554140@qq.com> Date: Thu, 6 Jun 2024 10:21:48 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E8=A7=A3=E5=86=B3=E5=86=B2=E7=AA=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/routes/Routes.tsx | 71 +++++++++---------- 1 file changed, 33 insertions(+), 38 deletions(-) diff --git a/eventmesh-dashboard-view/src/routes/Routes.tsx b/eventmesh-dashboard-view/src/routes/Routes.tsx index 664080bf..d45927e7 100644 --- a/eventmesh-dashboard-view/src/routes/Routes.tsx +++ b/eventmesh-dashboard-view/src/routes/Routes.tsx @@ -19,55 +19,50 @@ import React from 'react' import { useRoutes, Navigate } from 'react-router-dom' -import RootLayout from './RootLayout' import Home from './home/Home' -import Topic from './topic/Topic' -import Runtime from './runtime/Runtime' -import Connection from './connection/Connection' -import Message from './message/Message' -import Security from './security/Security' +import ClusterOverView from './cluster/overview/Overview' +import ClusterTopic from './cluster/topic/Topic' +import ClusterRuntime from './cluster/runtime/Runtime' +import ClusterConnection from './cluster/connection/Connection' +import ClusterMessage from './cluster/message/Message' +import ClusterSecurity from './cluster/security/Security' import Users from './users/Users' import Logs from './logs/Logs' import Settings from './settings/Settings' - -// 登录,修改修改密码 -// 首页 -// 个人路由 -// 注册中心路由 -// 集群路由 -// 管理路由 - -// 集群 -// 注册中心 -// 1. 注册信息( 增删改查 ) -// 2. 集群列表 -// 3. 空间名 -// k8s 运动 -// 连接器集群 -> k8s -// 设置 +import Clusters from './cluster/Clusters' const AppRoutes = () => { return useRoutes([ { - path: '/cluster/{clusterid}', - element: , + path: '*', + element: + }, + { path: 'home', element: }, + { + path: 'clusters', + element: , children: [ + { path: 'clusters', element: }, { - path: '*', - element: - }, - { path: '', element: }, - { path: 'home', element: }, - { path: 'runtime', element: }, - { path: 'topic', element: }, - { path: 'connection', element: }, - { path: 'message', element: }, - { path: 'security', element: }, - { path: 'settings', element: }, - { path: 'users', element: }, - { path: 'logs', element: } + path: ':clusterId', + children: [ + { + path: '*', + element: + }, + { path: 'overview', element: }, + { path: 'runtime', element: }, + { path: 'topic', element: }, + { path: 'connection', element: }, + { path: 'message', element: }, + { path: 'security', element: } + ] + } ] - } + }, + { path: 'settings', element: }, + { path: 'users', element: }, + { path: 'logs', element: } ]) }