Skip to content

Commit fbfcdf5

Browse files
authored
Merge pull request #2089 from milvus-io/mark-1987
update navigator and footer
2 parents d5c2307 + 625edf1 commit fbfcdf5

File tree

6 files changed

+48
-5
lines changed

6 files changed

+48
-5
lines changed

i18n-watcher/changes/header.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"added": {
3+
"tools.claudeContext": "Claude Context"
4+
},
5+
"modified": {},
6+
"deleted": {}
7+
}

src/components/footer/index.tsx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import {
1212
CLOUD_SIGNUP_LINK,
1313
GITHUB_MILVUS_BACKUP_LINK,
1414
GITHUB_VTS_LINK,
15+
GITHUB_DEEP_SEARCHER_LINK,
16+
GITHUB_CLAUDE_CONTEXT_LINK,
1517
} from '@/consts/links';
1618
import { RightTopArrowIcon } from '@/components/icons';
1719
import { SocialMedias, SocialMediasCN } from '../socialMedias';
@@ -100,6 +102,14 @@ const Footer = (props: Props) => {
100102
name: t('header:footer.tools.vts'),
101103
to: GITHUB_VTS_LINK,
102104
},
105+
{
106+
name: t('header:tools.deepSearcher'),
107+
to: GITHUB_DEEP_SEARCHER_LINK,
108+
},
109+
{
110+
name: t('header:tools.claudeContext'),
111+
to: GITHUB_CLAUDE_CONTEXT_LINK,
112+
},
103113
],
104114
},
105115
{
@@ -236,7 +246,9 @@ const Footer = (props: Props) => {
236246
rel="noopener noreferrer"
237247
>
238248
{child.name}
239-
{child.isExternal && <RightTopArrowIcon />}
249+
<span className="grow-0 shrink-0 basis-[14px] h-[14px]">
250+
<RightTopArrowIcon />
251+
</span>
240252
</a>
241253
</li>
242254
);

src/components/header/DescktopHeader.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
GITHUB_DEEP_SEARCHER_LINK,
1919
DISCORD_INVITE_URL,
2020
GITHUB_MILVUS_COMMUNITY_LINK,
21+
GITHUB_CLAUDE_CONTEXT_LINK,
2122
} from '@/consts/links';
2223
import { MILVUS_OFFICE_HOURS_URL } from '@/consts/externalLinks';
2324
import { LanguageSelector } from '@/components/language-selector';
@@ -112,6 +113,11 @@ export default function DesktopHeader(props: Props) {
112113
link: GITHUB_DEEP_SEARCHER_LINK,
113114
rel: 'noopener noreferrer',
114115
},
116+
{
117+
label: t('tools.claudeContext'),
118+
link: GITHUB_CLAUDE_CONTEXT_LINK,
119+
rel: 'noopener noreferrer',
120+
},
115121
],
116122
},
117123
{ label: t('blog'), link: getLocalePath('/blog') },

src/components/header/mobileHeader.tsx

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
GITHUB_MILVUS_LINK,
2525
DISCORD_INVITE_URL,
2626
GITHUB_MILVUS_COMMUNITY_LINK,
27+
GITHUB_CLAUDE_CONTEXT_LINK,
2728
} from '@/consts/links';
2829
import { MILVUS_OFFICE_HOURS_URL } from '@/consts/externalLinks';
2930
import { RightTopArrowIcon } from '../icons';
@@ -204,30 +205,44 @@ export default function MobileHeader(props: {
204205
{t('tools.cli')}
205206
<RightTopArrowIcon />
206207
</a>
207-
<a
208+
<Link
208209
href="/tools/sizing"
209210
className={classes.externalLinkButton}
210211
>
211-
{t('tools.sizing')} <RightTopArrowIcon />
212-
</a>
212+
{t('tools.sizing')}
213+
</Link>
213214
<a
214215
href={GITHUB_MILVUS_BACKUP_LINK}
215216
className={classes.externalLinkButton}
217+
target="_blank"
218+
rel="noopener noreferrer"
216219
>
217220
{t('tools.backup')} <RightTopArrowIcon />
218221
</a>
219222
<a
220223
href={GITHUB_VTS_LINK}
221224
className={classes.externalLinkButton}
225+
target="_blank"
226+
rel="noopener noreferrer"
222227
>
223228
{t('tools.vts')} <RightTopArrowIcon />
224229
</a>
225230
<a
226231
href={GITHUB_DEEP_SEARCHER_LINK}
227232
className={classes.externalLinkButton}
233+
target="_blank"
234+
rel="noopener noreferrer"
228235
>
229236
{t('tools.deepSearcher')} <RightTopArrowIcon />
230237
</a>
238+
<a
239+
href={GITHUB_CLAUDE_CONTEXT_LINK}
240+
className={classes.externalLinkButton}
241+
target="_blank"
242+
rel="noopener noreferrer"
243+
>
244+
{t('tools.claudeContext')} <RightTopArrowIcon />
245+
</a>
231246
</List>
232247
</Collapse>
233248

src/consts/links.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ export const GITHUB_ATTU_LINK = 'https://github.com/zilliztech/attu';
1414
export const GITHUB_VTS_LINK = 'https://github.com/zilliztech/vts';
1515
export const GITHUB_DEEP_SEARCHER_LINK =
1616
'https://github.com/zilliztech/deep-searcher';
17+
export const GITHUB_CLAUDE_CONTEXT_LINK =
18+
'https://github.com/zilliztech/claude-context';
1719
export const GITHUB_MILVUS_CLI_LINK =
1820
'https://github.com/zilliztech/milvus_cli';
1921
export const GITHUB_MILVUS_BACKUP_LINK =

src/i18n/en/header.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"sizing": "Sizing Tool",
2020
"backup": "Milvus Backup",
2121
"vts": "VTS",
22-
"deepSearcher": "Deep Searcher"
22+
"deepSearcher": "Deep Searcher",
23+
"claudeContext": "Claude Context"
2324
},
2425
"blog": "Blog",
2526
"community": {

0 commit comments

Comments
 (0)