From e513b94169374749f3848a7111300689c1733c74 Mon Sep 17 00:00:00 2001 From: ryjiang Date: Thu, 24 Oct 2024 15:07:49 +0800 Subject: [PATCH] add VTS link Signed-off-by: ryjiang --- src/components/header/DescktopHeader.tsx | 6 ++++++ src/components/header/mobileHeader.jsx | 18 +++++++++++++++--- src/consts/links.ts | 1 + src/i18n/en/header.json | 3 ++- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/src/components/header/DescktopHeader.tsx b/src/components/header/DescktopHeader.tsx index 3c8f136e7..b2e6795ab 100644 --- a/src/components/header/DescktopHeader.tsx +++ b/src/components/header/DescktopHeader.tsx @@ -9,6 +9,7 @@ import { GITHUB_MILVUS_BACKUP_LINK, GET_START_LINK, GITHUB_MILVUS_LINK, + GITHUB_VTS_LINK, } from '@/consts/links'; import { DownArrowIcon, GitHubIcon } from '@/components/icons'; import { LogoSection } from './Logos'; @@ -65,6 +66,11 @@ export default function DesktopHeader(props: Props) { link: GITHUB_MILVUS_BACKUP_LINK, rel: 'noopener noreferrer', }, + { + label: t('tools.vts'), + link: GITHUB_VTS_LINK, + rel: 'noopener noreferrer', + } ], }, { label: t('blog'), link: '/blog' }, diff --git a/src/components/header/mobileHeader.jsx b/src/components/header/mobileHeader.jsx index a5870a8c2..df116752e 100644 --- a/src/components/header/mobileHeader.jsx +++ b/src/components/header/mobileHeader.jsx @@ -14,7 +14,12 @@ import { LogoSection } from './Logos'; import { CloseIcon, MenuIcon } from '../icons'; import { useWindowSize } from '@/http/hooks'; import { Button } from '@/components/ui/button'; -import { GET_START_LINK } from '@/consts/links'; +import { + GET_START_LINK, + GITHUB_ATTU_LINK, + GITHUB_VTS_LINK, + GITHUB_MILVUS_CLI_LINK, +} from '@/consts/links'; import { RightTopArrowIcon } from '../icons'; export default function MobileHeader(props) { @@ -149,7 +154,7 @@ export default function MobileHeader(props) { classes={{ root: classes.subMenuList }} > Sizing Tool + + + VTS + diff --git a/src/consts/links.ts b/src/consts/links.ts index dc8c3833d..96be398ac 100644 --- a/src/consts/links.ts +++ b/src/consts/links.ts @@ -11,6 +11,7 @@ export const MILVUS_YOUTUBE_CHANNEL_LINK = 'https://www.youtube.com/channel/UCMCo_F7pKjMHBlfyxwOPw-g'; export const GITHUB_ATTU_LINK = 'https://github.com/zilliztech/attu'; +export const GITHUB_VTS_LINK = 'https://github.com/zilliztech/vts'; export const GITHUB_MILVUS_CLI_LINK = 'https://github.com/zilliztech/milvus_cli'; export const GITHUB_MILVUS_BACKUP_LINK = diff --git a/src/i18n/en/header.json b/src/i18n/en/header.json index e0ff32787..57bb1c6d1 100644 --- a/src/i18n/en/header.json +++ b/src/i18n/en/header.json @@ -17,7 +17,8 @@ "attu": "Attu", "cli": "Milvus CLI", "sizing": "Sizing Tool", - "backup": "Milvus Backup" + "backup": "Milvus Backup", + "vts": "VTS" }, "blog": "Blog", "community": "Community",