forked from WinmezzZ/react-antd-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Winme
committed
Feb 6, 2020
1 parent
b93dde9
commit 3ca4d48
Showing
14 changed files
with
175 additions
and
7 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
export const en_US_documentation = { | ||
'app.documentation.introduction.title': 'Introduction', | ||
'app.documentation.introduction.description': ` | ||
react-antd-admin is an enterprise - level background management system template based on react and ant-design. | ||
Use the latest React Hooks API instead of the traditional class API, | ||
Typescript was also used to standardize code readability and maintainability, enhancing development efficiency, | ||
Use redux as the global state management library. | ||
This project allows you to quickly develop a new project template and remove some of the code according to your needs. | ||
If you don't have a need to use templates, | ||
This project will also be a good resource for learning react and typescript. | ||
In addition, if you think this project is worth optimizing or modifying, | ||
please feel free to ask, my contact information will be shown at the bottom of the article. | ||
`, | ||
'app.documentation.catalogue.title': 'Catalogue', | ||
'app.documentation.catalogue.description': 'Click the catalogue to quickly reach the specified content', | ||
'app.documentation.catalogue.list.layout': 'Layout', | ||
'app.documentation.catalogue.list.routes': 'Routes', | ||
'app.documentation.catalogue.list.request': 'HTTP Request', | ||
'app.documentation.catalogue.list.theme': 'Theme', | ||
'app.documentation.catalogue.list.typescript': 'Typescript', | ||
'app.documentation.catalogue.list.international': 'International' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export const zhCN_documentation = { | ||
'app.documentation.introduction.title': '介绍', | ||
'app.documentation.introduction.description': ` | ||
react-antd-admin是一个基于react和ant-design开发的企业级中后台管理系统模板。 | ||
使用了最新的React Hooks API代替了传统的class API, | ||
并且使用了typescript来规范代码的可读性和维护性,增强开发效率, | ||
使用redux作为全局的状态管理库。 | ||
此项目可以你的新项目模板快速开发,根据自己的需求删除掉部分代码。如果你没有使用模板的需求, | ||
此项目也会是一个学习react和typescript的好的资料。 | ||
此外,如果你觉得此项目有值得优化或修改的地方,也欢迎提出,我的联系方式将会显示在文章底部。 | ||
`, | ||
'app.documentation.catalogue.title': '目录', | ||
'app.documentation.catalogue.description': '点击目录到达指定内容', | ||
'app.documentation.catalogue.list.layout': '布局', | ||
'app.documentation.catalogue.list.routes': '路由', | ||
'app.documentation.catalogue.list.request': '网络请求', | ||
'app.documentation.catalogue.list.theme': '主题', | ||
'app.documentation.catalogue.list.typescript': 'Typescript', | ||
'app.documentation.catalogue.list.international': '国际化' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import React, { FC } from 'react' | ||
import { Typography } from 'antd' | ||
|
||
const { Title, Paragraph } = Typography | ||
import { LocaleFormatter } from '~/locales' | ||
|
||
const div = <div style={{ height: 200 }}>2333</div> | ||
|
||
const DocumentationPage: FC = () => { | ||
return ( | ||
<div> | ||
<Typography> | ||
<Title> | ||
<LocaleFormatter id="app.documentation.introduction.title" /> | ||
</Title> | ||
<Paragraph> | ||
<LocaleFormatter id="app.documentation.introduction.description" /> | ||
</Paragraph> | ||
<Title> | ||
<LocaleFormatter id="app.documentation.catalogue.title" /> | ||
</Title> | ||
<Paragraph> | ||
<LocaleFormatter id="app.documentation.catalogue.description" /> | ||
</Paragraph> | ||
<Paragraph> | ||
<ul> | ||
<li> | ||
<a href="#layout"> | ||
<LocaleFormatter id="app.documentation.catalogue.list.layout" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#routes"> | ||
<LocaleFormatter id="app.documentation.catalogue.list.routes" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#request"> | ||
<LocaleFormatter id="app.documentation.catalogue.list.request" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#theme"> | ||
<LocaleFormatter id="app.documentation.catalogue.list.theme" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#typescript"> | ||
<LocaleFormatter id="app.documentation.catalogue.list.typescript" /> | ||
</a> | ||
</li> | ||
<li> | ||
<a href="#international"> | ||
<LocaleFormatter id="app.documentation.catalogue.list.international" /> | ||
</a> | ||
</li> | ||
</ul> | ||
</Paragraph> | ||
<Title id="layout" level={2}> | ||
<LocaleFormatter id="app.documentation.catalogue.list.layout" /> | ||
</Title> | ||
<Paragraph>{div}</Paragraph> | ||
<Title id="routes" level={2}> | ||
<LocaleFormatter id="app.documentation.catalogue.list.routes" /> | ||
</Title> | ||
<Paragraph>{div}</Paragraph> | ||
<Title id="request" level={2}> | ||
<LocaleFormatter id="app.documentation.catalogue.list.request" /> | ||
</Title> | ||
<Paragraph>{div}</Paragraph> | ||
<Title id="theme" level={2}> | ||
<LocaleFormatter id="app.documentation.catalogue.list.theme" /> | ||
</Title> | ||
<Paragraph>{div}</Paragraph> | ||
<Title id="typescript" level={2}> | ||
<LocaleFormatter id="app.documentation.catalogue.list.typescript" /> | ||
</Title> | ||
<Paragraph>{div}</Paragraph> | ||
<Title id="international" level={2}> | ||
<LocaleFormatter id="app.documentation.catalogue.list.international" /> | ||
</Title> | ||
<Paragraph>{div}</Paragraph> | ||
</Typography> | ||
</div> | ||
) | ||
} | ||
|
||
export default DocumentationPage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters