Update console header link to new nacos.io. (#12177)

This commit is contained in:
杨翊 SionYang 2024-06-05 10:45:24 +08:00 committed by GitHub
parent 8a03485fa8
commit d68b904f93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 14 deletions

View File

@ -32,17 +32,17 @@ module.exports = {
{ {
key: 'docs', key: 'docs',
text: 'DOCS', text: 'DOCS',
link: 'https://nacos.io/en-us/docs/v2/quickstart/quick-start.html', link: 'https://nacos.io/en/docs/latest/what-is-nacos/',
}, },
{ {
key: 'blog', key: 'blog',
text: 'BLOG', text: 'BLOG',
link: 'https://nacos.io/en-us/blog', link: 'https://nacos.io/en/blog/',
}, },
{ {
key: 'community', key: 'community',
text: 'COMMUNITY', text: 'COMMUNITY',
link: 'https://nacos.io/en-us/community', link: 'https://nacos.io/en/news/',
}, },
{ {
key: 'enterprise', key: 'enterprise',
@ -97,17 +97,17 @@ module.exports = {
{ {
key: 'docs', key: 'docs',
text: '文档', text: '文档',
link: 'https://nacos.io/zh-cn/docs/v2/what-is-nacos.html', link: 'https://nacos.io/docs/latest/what-is-nacos/',
}, },
{ {
key: 'blog', key: 'blog',
text: '博客', text: '博客',
link: 'https://nacos.io/zh-cn/blog/index.html', link: 'https://nacos.io/blog/',
}, },
{ {
key: 'community', key: 'community',
text: '社区', text: '社区',
link: 'https://nacos.io/zh-cn/community/index.html', link: 'https://nacos.io/news/',
}, },
{ {
key: 'enterprise', key: 'enterprise',

View File

@ -88,12 +88,13 @@ class Header extends React.Component {
} = this.props; } = this.props;
const { home, docs, blog, community, enterprise, languageSwitchButton } = locale; const { home, docs, blog, community, enterprise, languageSwitchButton } = locale;
const { passwordResetUser = '', passwordResetUserVisible = false } = this.state; const { passwordResetUser = '', passwordResetUserVisible = false } = this.state;
const BASE_URL = `https://nacos.io/${language.toLocaleLowerCase()}/`; const BASE_URL =
language.toLocaleLowerCase() === 'en-us' ? 'https://nacos.io/en/' : 'https://nacos.io/';
const NAV_MENU = [ const NAV_MENU = [
{ id: 1, title: home, link: BASE_URL }, { id: 1, title: home, link: BASE_URL },
{ id: 2, title: docs, link: `${BASE_URL}docs/v2/what-is-nacos.html` }, { id: 2, title: docs, link: `${BASE_URL}docs/latest/what-is-nacos/` },
{ id: 3, title: blog, link: `${BASE_URL}blog/index.html` }, { id: 3, title: blog, link: `${BASE_URL}blog/` },
{ id: 4, title: community, link: `${BASE_URL}community/index.html` }, { id: 4, title: community, link: `${BASE_URL}news/` },
{ {
id: 5, id: 5,
title: enterprise, title: enterprise,

View File

@ -35,7 +35,7 @@
<link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css"> <link rel="stylesheet" type="text/css" href="console-ui/public/css/icon.css">
<link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css"> <link rel="stylesheet" type="text/css" href="console-ui/public/css/font-awesome.css">
<!-- 第三方css结束 --> <!-- 第三方css结束 -->
<link href="./css/main.css?5b2657aaac80512bd557" rel="stylesheet"></head> <link href="./css/main.css?d71f900fb2dcffde12ce" rel="stylesheet"></head>
<body> <body>
<div id="root" style="overflow:hidden"></div> <div id="root" style="overflow:hidden"></div>
@ -56,6 +56,6 @@
<script src="console-ui/public/js/merge.js"></script> <script src="console-ui/public/js/merge.js"></script>
<script src="console-ui/public/js/loader.js"></script> <script src="console-ui/public/js/loader.js"></script>
<!-- 第三方js结束 --> <!-- 第三方js结束 -->
<script type="text/javascript" src="./js/main.js?5b2657aaac80512bd557"></script></body> <script type="text/javascript" src="./js/main.js?d71f900fb2dcffde12ce"></script></body>
</html> </html>

File diff suppressed because one or more lines are too long