From 0308431f5187f496fb7275ae7fdce2697f2ecbf2 Mon Sep 17 00:00:00 2001 From: dutexion Date: Wed, 31 Jul 2024 14:09:58 +0900 Subject: [PATCH] =?UTF-8?q?chore=20::=20menu=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/sidebar/menus.ts | 70 +++++++++++--------------- 1 file changed, 30 insertions(+), 40 deletions(-) diff --git a/src/components/common/sidebar/menus.ts b/src/components/common/sidebar/menus.ts index 3a33928..2b872dc 100644 --- a/src/components/common/sidebar/menus.ts +++ b/src/components/common/sidebar/menus.ts @@ -32,6 +32,32 @@ const deploy_inside = { ], }; +const container_inside = { + back: '/team/-team-/deploy/-deploy-/container', + menu: [ + { + icon: 'f7:shippingbox', + name: '컨테이너 상태', + link: '/team/-team-/deploy/-deploy-/container/-env-', + }, + { + icon: 'ph:list-bold', + name: '배포 내역', + link: `/team/-team-/deploy/-deploy-/container/-env-/history`, + }, + { + icon: 'ic:outline-cloud', + name: 'Traces', + link: `/team/-team-/deploy/-deploy-/container/-env-/traces`, + }, + { + icon: 'uil:setting', + name: '환경변수', + link: `/team/-team-/deploy/-deploy-/container/-env-/env`, + }, + ], +}; + export const menu: MenusType = { '/team': team, '/team/create': team, @@ -41,44 +67,8 @@ export const menu: MenusType = { // '/team/:id/container': deploy, '/team/:id/deploy/:id': deploy_inside, '/team/:id/deploy/:id/container': deploy_inside, - '/team/:id/deploy/:id/container/:env': { - back: '/team/-team-/deploy/-deploy-/container', - menu: [ - { - icon: 'f7:shippingbox', - name: '컨테이너 상태', - link: '/team/-team-/deploy/-deploy-/container/-env-', - }, - { - icon: 'ph:list-bold', - name: '배포 내역', - link: `/team/-team-/deploy/-deploy-/container/-env-/history`, - }, - { - icon: 'ic:outline-cloud', - name: 'Traces', - link: `/team/-team-/deploy/-deploy-/container/-env-/traces`, - }, - ], - }, - '/team/:id/deploy/:id/container/:env/traces': { - back: '/team/-team-/deploy/-deploy-/container', - menu: [ - { - icon: 'f7:shippingbox', - name: '컨테이너 상태', - link: '/team/-team-/deploy/-deploy-/container/-env-', - }, - { - icon: 'ph:list-bold', - name: '배포 내역', - link: `/team/-team-/deploy/-deploy-/container/-env-/history`, - }, - { - icon: 'ic:outline-cloud', - name: 'Traces', - link: `/team/-team-/deploy/-deploy-/container/-env-/traces`, - }, - ], - }, + '/team/:id/deploy/:id/container/:env': container_inside, + '/team/:id/deploy/:id/container/:env/traces': container_inside, + '/team/:id/deploy/:id/container/:env/env': container_inside, + '/team/:id/deploy/:id/container/:env/history': container_inside, };