Skip to content

Commit

Permalink
Merge pull request #1675 from milvus-io/preview
Browse files Browse the repository at this point in the history
Preview
  • Loading branch information
shanghaikid authored Oct 24, 2024
2 parents bed47d4 + fbb13c3 commit 57d5133
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/components/header/DescktopHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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' },
Expand Down
18 changes: 15 additions & 3 deletions src/components/header/mobileHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -149,7 +154,7 @@ export default function MobileHeader(props) {
classes={{ root: classes.subMenuList }}
>
<a
href="https://github.com/zilliztech/attu"
href={GITHUB_ATTU_LINK}
target="_blank"
rel="noopener noreferrer"
className={classes.externalLinkButton}
Expand All @@ -158,7 +163,7 @@ export default function MobileHeader(props) {
<RightTopArrowIcon />
</a>
<a
href="https://github.com/zilliztech/milvus_cli"
href={GITHUB_MILVUS_CLI_LINK}
target="_blank"
rel="noopener noreferrer"
className={classes.externalLinkButton}
Expand All @@ -172,6 +177,13 @@ export default function MobileHeader(props) {
>
Sizing Tool <RightTopArrowIcon />
</a>

<a
href={GITHUB_VTS_LINK}
className={classes.externalLinkButton}
>
VTS <RightTopArrowIcon />
</a>
</List>
</Collapse>

Expand Down
1 change: 1 addition & 0 deletions src/consts/links.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down
3 changes: 2 additions & 1 deletion src/i18n/en/header.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"attu": "Attu",
"cli": "Milvus CLI",
"sizing": "Sizing Tool",
"backup": "Milvus Backup"
"backup": "Milvus Backup",
"vts": "VTS"
},
"blog": "Blog",
"community": "Community",
Expand Down

0 comments on commit 57d5133

Please sign in to comment.