Skip to content

Commit

Permalink
chore :: route 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Sep 26, 2024
1 parent 1889cb8 commit f8e83d6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/components/common/sidebar/menus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const deploy = {
menu: [
{ icon: 'ph:circles-four-light', name: '팀 관리', link: '/team/-team-/manage' },
{ icon: 'f7:shippingbox', name: '배포', link: `/team/-team-/deploy` },
{ icon: 'ph:monitor', name: 'APM', link: `/team/-team-/apm` },
],
};

Expand All @@ -32,6 +33,22 @@ const deploy_inside = {
],
};

const apm = {
back: '/team/-team-/manage',
menu: [
{
icon: 'ic:outline-cloud',
name: 'Traces',
link: `/team/-team-/apm`,
},
{
icon: 'ph:share-network',
name: 'Service Map',
link: `/team/-team-/apm/service`,
},
],
};

const container_inside = {
back: '/team/-team-/deploy/-deploy-/container',
menu: [
Expand Down Expand Up @@ -75,6 +92,8 @@ export const menu: MenusType = {
'/team/:id/deploy': deploy,
'/team/:id/deploy/create': deploy,
// '/team/:id/container': deploy,
'/team/:id/apm': apm,
'/team/:id/apm/service': apm,
'/team/:id/deploy/:id': deploy_inside,
'/team/:id/deploy/:id/container': deploy_inside,
'/team/:id/deploy/:id/container/:env': container_inside,
Expand Down
7 changes: 7 additions & 0 deletions src/router/router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export const Router = createBrowserRouter([
children: [
{ index: true, element: <Error /> },
{ path: 'manage', element: <TeamManage /> },
{
path: 'apm',
children: [
{ index: true, element: <>개발 중</> },
{ path: 'service', element: <>개발 중</> },
],
},
{
path: 'deploy',
children: [
Expand Down

0 comments on commit f8e83d6

Please sign in to comment.