From ee8e413cf5314477bb8c14acd71ab5e438f6bb47 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sat, 10 Nov 2018 14:52:16 +0800 Subject: [PATCH] :lipstick: upgrade site footer --- docs/react/faq.en-US.md | 2 +- site/theme/en-US.js | 7 ++-- site/theme/template/Layout/Footer.jsx | 60 +++++++++++++-------------- site/theme/zh-CN.js | 9 ++-- 4 files changed, 39 insertions(+), 39 deletions(-) diff --git a/docs/react/faq.en-US.md b/docs/react/faq.en-US.md index 8401921954..f5defad938 100644 --- a/docs/react/faq.en-US.md +++ b/docs/react/faq.en-US.md @@ -3,7 +3,7 @@ order: 9 title: FAQ --- -Search in the questions about React first: https://reactfaq.site . +Here are the frequently asked questions about Ant Design and antd that you should look up before you ask in community or create new issue. We also maintain a [FAQ issues label](https://github.com/ant-design/ant-design/issues?q=label%3AFAQ+is%3Aclosed) for common github issues. --- diff --git a/site/theme/en-US.js b/site/theme/en-US.js index 274f7b3b91..c7509de54d 100644 --- a/site/theme/en-US.js +++ b/site/theme/en-US.js @@ -60,8 +60,8 @@ module.exports = { 'app.footer.data-vis': 'Data Visualization', 'app.footer.eggjs': 'Enterprise Node Framework', 'app.footer.motion': 'Motion Solution', + 'app.footer.design-resources': 'Design Resources', 'app.footer.antd-library': 'Axure library', - 'app.footer.design-platform': 'Ant Financial Design Platform', 'app.footer.antux': 'Sitemap Template', 'app.footer.community': 'Community', 'app.footer.help': 'Help', @@ -84,10 +84,11 @@ module.exports = { 'app.footer.yuque.slogan': 'Write your document as a team', 'app.footer.fengdie': 'FengDie', 'app.footer.fengdie.slogan': 'Mobile web app builder', - 'app.footer.zhihu': 'Zhihu', + 'app.footer.zhihu': 'Ant Design Blog', 'app.footer.zhihu.xtech': 'Experience Cloud Blog', 'app.footer.seeconf': 'Seeking Experience & Engineering Conference', - 'app.footer.xcloud': 'Ant Experience Cloud', + 'app.footer.xtech': 'Ant Financial Experience Tech', + 'app.footer.xtech.slogan': 'Experience The Beauty', 'app.publish.title': 'antd@3.0.0 has been released! 🎉 🎉 🎉', 'app.publish.greeting': 'Hello, ', 'app.publish.intro': ' has been released, and please upgrade. ', diff --git a/site/theme/template/Layout/Footer.jsx b/site/theme/template/Layout/Footer.jsx index 1de9c0ccc4..a15f3b6801 100644 --- a/site/theme/template/Layout/Footer.jsx +++ b/site/theme/template/Layout/Footer.jsx @@ -1,7 +1,8 @@ import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { Modal, message, Row, Col, Badge, Icon } from 'antd'; -import { isLocalStorageNameSupported, loadScript } from '../utils'; +import { Link } from 'bisheng/router'; +import { isLocalStorageNameSupported, loadScript, getLocalizedPathname } from '../utils'; import ColorPicker from '../Color/ColorPicker'; class Footer extends React.Component { @@ -85,7 +86,9 @@ class Footer extends React.Component { } render() { + const { intl = {} } = this.props; const { color } = this.state; + const isZhCN = intl.locale === 'zh-CN'; return (