Skip to content

Commit

Permalink
feat(site): rename site title
Browse files Browse the repository at this point in the history
  • Loading branch information
hankliu62 committed Apr 24, 2024
1 parent adc01a1 commit c11bbdc
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 42 deletions.
16 changes: 8 additions & 8 deletions site/theme/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ module.exports = {
'app.header.menu.resource': 'Resources',
'app.header.menu.more': 'More',
'app.header.menu.mobile': 'Mobile',
'app.header.menu.pro.v4': 'Ant Design Pro',
'app.header.menu.pro.components': 'Ant Design Pro Components',
'app.header.menu.charts': 'Ant Design Charts',
'app.header.menu.pro.v4': 'HankLiu UI Pro',
'app.header.menu.pro.components': 'HankLiu UI Pro Components',
'app.header.menu.charts': 'HankLiu UI Charts',
'app.header.menu.ecosystem': 'Ecosystem',
'app.header.lang': '中文',
'app.content.edit-page': 'Edit this page on GitHub!',
Expand All @@ -41,7 +41,7 @@ module.exports = {
'app.home.design-and-framework': 'Design language and framework',
'app.home.design-values': 'Design values',
'app.home.design-values-description':
'This is Ant Design\'s internal standard for evaluating design quality. Based on the assumption that "everyone is pursuing happiness at work", we have added the two values of "Meaningfulness" and "Growth" on the basis of "Certainty" and "Naturalness" to guide each designer towards better judgment and decision-making.',
'This is HankLiu UI\'s internal standard for evaluating design quality. Based on the assumption that "everyone is pursuing happiness at work", we have added the two values of "Meaningfulness" and "Growth" on the basis of "Certainty" and "Naturalness" to guide each designer towards better judgment and decision-making.',
'app.home.certainty': 'Certainty',
'app.home.meaningful': 'Meaningfulness',
'app.home.growth': 'Growth',
Expand All @@ -59,15 +59,15 @@ module.exports = {
'app.home.design-language': 'Design Language',
'app.home.product-antv-slogan': 'A new way to do data visualization',
'app.home.product-pro-slogan': 'Out-of-the-box UI solution for enterprise applications',
'app.home.product-mobile-slogan': 'Mobile UI components with Ant Design',
'app.home.product-mobile-slogan': 'Mobile UI components with HankLiu UI',
'app.home.product-hitu': 'HiTu',
'app.home.product-hitu-slogan': 'A new generation of graphical solutions',
'app.home.product-kitchen-slogan': 'A Sketch plugin to enhance designers',
'app.home.product-icons-slogan': 'A set of premium icons',
'app.home.view-more': 'More',
'app.footer.repo': 'GitHub Repository',
'app.footer.awesome': 'Awesome Ant Design',
'app.footer.course': 'Ant Design Practical Tutorial',
'app.footer.awesome': 'Awesome HankLiu UI',
'app.footer.course': 'HankLiu UI Practical Tutorial',
'app.footer.chinamirror': 'China Mirror 🇨🇳',
'app.footer.primary-color-changing': 'Changing primary color...',
'app.footer.primary-color-changed': 'Changed primary color successfully!',
Expand Down Expand Up @@ -107,7 +107,7 @@ module.exports = {
'app.footer.yuque.slogan': 'Write your document as a team',
'app.footer.antv.slogan': 'Data Visualization',
'app.footer.egg.slogan': 'Enterprise Node.js Framework',
'app.footer.zhihu': 'Ant Design Blog',
'app.footer.zhihu': 'HankLiu UI Blog',
'app.footer.zhihu.xtech': 'Experience Cloud Blog',
'app.footer.seeconf': 'Experience Tech Conference',
'app.footer.xtech': 'Ant Financial Experience Tech',
Expand Down
2 changes: 1 addition & 1 deletion site/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const appShellTmpl = './template/AppShell';

function pickerGenerator(module) {
const tester = new RegExp(`^docs/${module}`);
return markdownData => {
return (markdownData) => {
const { filename } = markdownData.meta;
if (tester.test(filename) && !/\/demo$/.test(path.dirname(filename))) {
return {
Expand Down
2 changes: 1 addition & 1 deletion site/theme/template/Content/Article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class Article extends React.Component<ArticleProps> {
const { meta, description } = content;
const { title, subtitle, filename } = meta;
const isNotTranslated = locale === 'en-US' && typeof title === 'object';
const helmetTitle = `${(title as LocaleString)?.[locale] || title} - Ant Design`;
const helmetTitle = `${(title as LocaleString)?.[locale] || title} - HankLiu UI`;
const helmetDesc = getMetaDescription(description);
const contentChild = getMetaDescription(getChildren(content.content));
const metaDesc = helmetDesc || contentChild;
Expand Down
16 changes: 8 additions & 8 deletions site/theme/template/Content/ComponentDoc.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class ComponentDoc extends React.Component {
this.setState({ visibleAll: true });
}
}
this.pingTimer = ping(status => {
this.pingTimer = ping((status) => {
if (status !== 'timeout' && status !== 'error') {
this.setState({
showRiddleButton: true,
Expand Down Expand Up @@ -90,16 +90,16 @@ class ComponentDoc extends React.Component {
demos,
} = this.props;
const { content, meta } = doc;
const demoValues = Object.keys(demos).map(key => demos[key]);
const demoValues = Object.keys(demos).map((key) => demos[key]);
const { expandAll, visibleAll, showRiddleButton } = this.state;
const isSingleCol = meta.cols === 1;
const leftChildren = [];
const rightChildren = [];
let showedDemo = demoValues.some(demo => demo.meta.only)
? demoValues.filter(demo => demo.meta.only)
: demoValues.filter(demo => demo.preview);
let showedDemo = demoValues.some((demo) => demo.meta.only)
? demoValues.filter((demo) => demo.meta.only)
: demoValues.filter((demo) => demo.preview);
if (!visibleAll) {
showedDemo = showedDemo.filter(item => !item.meta.debug);
showedDemo = showedDemo.filter((item) => !item.meta.debug);
}
showedDemo
.sort((a, b) => a.meta.order - b.meta.order)
Expand All @@ -126,7 +126,7 @@ class ComponentDoc extends React.Component {
'code-box-expand-trigger-active': expandAll,
});

const jumper = showedDemo.map(demo => {
const jumper = showedDemo.map((demo) => {
const { title } = demo.meta;
const localizeTitle = title[locale] || title;
return (
Expand All @@ -143,7 +143,7 @@ class ComponentDoc extends React.Component {
});

const { title, subtitle, filename } = meta;
const helmetTitle = `${subtitle || ''} ${title[locale] || title} - Ant Design`;
const helmetTitle = `${subtitle || ''} ${title[locale] || title} - HankLiu UI`;
const contentChild = getMetaDescription(getChildren(content));
return (
<article>
Expand Down
10 changes: 5 additions & 5 deletions site/theme/template/Home/Page2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ import svgBgToParallax from './util';
const page2Data = [
{
img: 'https://gw.alipayobjects.com/zos/rmsportal/eYNnmGagLWdrkdMHVUuA.svg',
name: 'Ant Design Components',
name: 'HankLiu UI Components',
},
{
img: 'https://gw.alipayobjects.com/zos/rmsportal/EPaPtDVGnJhyqyBAUZMl.svg',
name: 'Ant Design Pro',
name: 'HankLiu UI Pro',
slogan: <FormattedMessage id="app.home.product-pro-slogan" />,
link: 'https://pro.ant.design/index-cn',
},
{
img: 'https://gw.alipayobjects.com/zos/rmsportal/GobRAKexhfTSJdLFzDFY.svg',
name: 'Ant Design Mobile',
name: 'HankLiu UI Mobile',
slogan: <FormattedMessage id="app.home.product-mobile-slogan" />,
},
{
Expand All @@ -32,7 +32,7 @@ const page2Data = [
},
{
img: 'https://gw.alipayobjects.com/zos/rmsportal/EAHlyTmYeDtTkZIPbUnP.svg',
name: 'Ant Design Landing',
name: 'HankLiu UI Landing',
slogan: <FormattedMessage id="app.home.product-landing-slogan" />,
link: 'https://landing.ant.design',
new: true,
Expand Down Expand Up @@ -197,7 +197,7 @@ export default function Page2({ isMobile, locale }) {
type="bottom"
leaveReverse
>
<h3 key="h1">Ant Design Components</h3>
<h3 key="h1">HankLiu UI Components</h3>
<p key="p">
<FormattedMessage id="app.home.components-explain" />
</p>
Expand Down
14 changes: 6 additions & 8 deletions site/theme/template/Layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,27 +56,27 @@ class Footer extends React.Component<WrappedComponentProps & { location: any }>
title: <FormattedMessage id="app.footer.resources" />,
items: [
{
title: 'Ant Design Charts',
title: 'HankLiu UI Charts',
url: 'https://charts.ant.design',
openExternal: true,
},
{
title: 'Ant Design Pro',
title: 'HankLiu UI Pro',
url: 'https://pro.ant.design',
openExternal: true,
},
{
title: 'Ant Design Pro Components',
title: 'HankLiu UI Pro Components',
url: 'https://procomponents.ant.design',
openExternal: true,
},
{
title: 'Ant Design Mobile',
title: 'HankLiu UI Mobile',
url: 'https://mobile.ant.design',
openExternal: true,
},
{
title: 'Ant Design Landing',
title: 'HankLiu UI Landing',
description: <FormattedMessage id="app.footer.landing" />,
url: 'https://landing.ant.design',
openExternal: true,
Expand Down Expand Up @@ -383,9 +383,7 @@ class Footer extends React.Component<WrappedComponentProps & { location: any }>
render() {
return (
<section className="footer-bottom">
<div className="footer-bottom-container">
HankLiu 前端 & 设计团队倾情奉献
</div>
<div className="footer-bottom-container">HankLiu 前端 & 设计团队倾情奉献</div>
</section>
);
}
Expand Down
4 changes: 2 additions & 2 deletions site/theme/template/Layout/Header/More.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ export function getEcosystemGroup(): React.ReactNode {
target="_blank"
rel="noopener noreferrer"
>
Ant Design of Angular
HankLiu UI of Angular
<span style={smallStyle}>
(<FormattedMessage id="app.implementation.community" />)
</span>
</a>
</Menu.Item>,
<Menu.Item key="vue">
<a href="http://antdv.com" className="header-link" target="_blank" rel="noopener noreferrer">
Ant Design of Vue
HankLiu UI of Vue
<span style={smallStyle}>
(<FormattedMessage id="app.implementation.community" />)
</span>
Expand Down
2 changes: 1 addition & 1 deletion site/theme/template/Layout/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export default class Layout extends React.Component {
: "HankLiu UI - The world's second most popular React UI framework";
const description =
appLocale.locale === 'zh-CN'
? '基于 Ant Design 设计体系的 React UI 组件库,用于研发企业级中后台产品。'
? '基于 HankLiu UI 设计体系的 React UI 组件库,用于研发企业级中后台产品。'
: 'An enterprise-class UI design language and React UI library with a set of high-quality React components, one of best React UI library for enterprises';
return (
<SiteContext.Provider value={{ isMobile, direction, theme, setTheme, setIframeTheme }}>
Expand Down
2 changes: 1 addition & 1 deletion site/theme/template/NotFound.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default function NotFound(props: NotFoundProps) {
extra={
<Link to={utils.getLocalizedPathname('/', isZhCN)}>
<Button type="primary" icon={<HomeOutlined />}>
{isZhCN ? '返回 Ant Design 首页' : 'Back to home page'}
{isZhCN ? '返回 HankLiu UI 首页' : 'Back to home page'}
</Button>
</Link>
}
Expand Down
12 changes: 6 additions & 6 deletions site/theme/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ module.exports = {
'app.header.menu.resource': '资源',
'app.header.menu.more': '更多',
'app.header.menu.mobile': '移动版',
'app.header.menu.pro.v4': 'Ant Design Pro',
'app.header.menu.pro.components': 'Ant Design Pro Components',
'app.header.menu.charts': 'Ant Design Charts',
'app.header.menu.pro.v4': 'HankLiu UI Pro',
'app.header.menu.pro.components': 'HankLiu UI Pro Components',
'app.header.menu.charts': 'HankLiu UI Charts',
'app.header.menu.ecosystem': '生态',
'app.header.lang': 'English',
'app.content.edit-page': '在 GitHub 上编辑此页!',
Expand All @@ -40,7 +40,7 @@ module.exports = {
'app.home.design-and-framework': '设计语言与研发框架',
'app.home.design-values': '设计价值观',
'app.home.design-values-description':
'这是 Ant Design 评价设计好坏的内在标准。基于「每个人都追求快乐工作」这一假定,我们在「确定性」和「自然」的基础上,新增「意义感」和「生长性」两个价值观,指引每个设计者做更好地判断和决策。',
'这是 HankLiu UI 评价设计好坏的内在标准。基于「每个人都追求快乐工作」这一假定,我们在「确定性」和「自然」的基础上,新增「意义感」和「生长性」两个价值观,指引每个设计者做更好地判断和决策。',
'app.home.certainty': '确定性',
'app.home.meaningful': '意义感',
'app.home.growth': '生长性',
Expand All @@ -65,7 +65,7 @@ module.exports = {
'app.home.product-icons-slogan': '一整套优质的图标集',
'app.home.view-more': '查看全部',
'app.footer.repo': 'GitHub 仓库',
'app.footer.awesome': 'Awesome Ant Design',
'app.footer.awesome': 'Awesome HankLiu UI',
'app.footer.chinamirror': '国内镜像站点 🇨🇳',
'app.footer.primary-color-changing': '正在修改主题色...',
'app.footer.primary-color-changed': '修改主题色成功!',
Expand Down Expand Up @@ -105,7 +105,7 @@ module.exports = {
'app.footer.yuque.slogan': '专业的云端知识库',
'app.footer.antv.slogan': '数据可视化解决方案',
'app.footer.egg.slogan': '企业级 Node.js 框架',
'app.footer.zhihu': 'Ant Design 专栏',
'app.footer.zhihu': 'HankLiu UI 专栏',
'app.footer.zhihu.xtech': '体验科技专栏',
'app.footer.seeconf': '蚂蚁体验科技大会',
'app.footer.xtech': '蚂蚁体验科技',
Expand Down
2 changes: 1 addition & 1 deletion site/themeConfig.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
categoryOrder: {
'Ant Design': 0,
'HankLiu UI': 0,
全局样式: 1,
'Global Styles': 1,
设计模式: 2,
Expand Down

0 comments on commit c11bbdc

Please sign in to comment.