From 2bb0aaf5d44503a47d08d4490f5c62036afadfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=96=E5=AE=B6?= <576679268@qq.com> Date: Wed, 19 Feb 2020 16:21:26 +0800 Subject: [PATCH] feat: add umi hooks (#21460) --- docs/react/recommendation.en-US.md | 1 + docs/react/recommendation.zh-CN.md | 1 + site/theme/en-US.js | 1 + site/theme/template/Layout/Footer.tsx | 6 ++++++ site/theme/zh-CN.js | 1 + 5 files changed, 10 insertions(+) diff --git a/docs/react/recommendation.en-US.md b/docs/react/recommendation.en-US.md index bd2620c434..b2a0ab58b0 100644 --- a/docs/react/recommendation.en-US.md +++ b/docs/react/recommendation.en-US.md @@ -8,6 +8,7 @@ title: Third-Party Libraries | Category | Recommended Components | | --- | --- | | Visualization and charts | [AntV Data Visualization](https://antv.vision/en) [🔥 AntV Charting Library](https://g2plot.antv.vision/en) [BizCharts](https://github.com/alibaba/BizCharts) [recharts](https://github.com/recharts/recharts/) [viser](https://viserjs.github.io/) | +| React Hooks Library | [umi-hooks](https://github.com/umijs/hooks) | | Router | [react-router](https://github.com/ReactTraining/react-router) | | Layout | [@rebass/grid](https://github.com/rebassjs/grid) [react-blocks](http://whoisandy.github.io/react-blocks/) [react-flexbox-grid](https://github.com/roylee0704/react-flexbox-grid) | | Drag and drop | [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd/) [react-dnd](https://github.com/gaearon/react-dnd) [react-sortable-hoc](https://github.com/clauderic/react-sortable-hoc) | diff --git a/docs/react/recommendation.zh-CN.md b/docs/react/recommendation.zh-CN.md index a198a92f3f..54bb290415 100644 --- a/docs/react/recommendation.zh-CN.md +++ b/docs/react/recommendation.zh-CN.md @@ -8,6 +8,7 @@ title: 社区精选组件 | 类型 | 推荐组件 | | --- | --- | | 可视化图表 | [AntV 数据可视化解决方案](https://antv.vision/zh) [🔥 AntV 图表库](https://g2plot.antv.vision/zh) [BizCharts](https://github.com/alibaba/BizCharts) [recharts](https://github.com/recharts/recharts/) [viser](https://viserjs.github.io/) | +| React Hooks 库 | [umi-hooks](https://github.com/umijs/hooks) | | 路由 | [react-router](https://github.com/ReactTraining/react-router) | | 布局 | [@rebass/grid](https://github.com/rebassjs/grid) [react-blocks](https://github.com/whoisandy/react-blocks) [react-flexbox-grid](https://github.com/roylee0704/react-flexbox-grid) | | 拖拽 | [react-beautiful-dnd](https://github.com/atlassian/react-beautiful-dnd/) [react-dnd](https://github.com/gaearon/react-dnd) [react-sortable-hoc](https://github.com/clauderic/react-sortable-hoc) | diff --git a/site/theme/en-US.js b/site/theme/en-US.js index 06f6868813..f1743a9f6a 100644 --- a/site/theme/en-US.js +++ b/site/theme/en-US.js @@ -74,6 +74,7 @@ module.exports = { 'app.footer.umi': 'React Application Framework', 'app.footer.dva': 'Data Flow Framework', 'app.footer.remax': 'Mini Program Framework', + 'app.footer.hooks': 'React Hooks Library', 'app.footer.resources': 'Resources', 'app.footer.data-vis': 'Data Visualization', 'app.footer.eggjs': 'Enterprise Node Framework', diff --git a/site/theme/template/Layout/Footer.tsx b/site/theme/template/Layout/Footer.tsx index 92891a824a..9bff49f9fb 100644 --- a/site/theme/template/Layout/Footer.tsx +++ b/site/theme/template/Layout/Footer.tsx @@ -109,6 +109,12 @@ class Footer extends React.Component { url: 'https://remaxjs.org/', openExternal: true, }, + { + title: 'Umi Hooks', + description: , + url: 'https://github.com/umijs/hooks', + openExternal: true, + }, { title: 'Ant Motion', description: , diff --git a/site/theme/zh-CN.js b/site/theme/zh-CN.js index 84db01b39f..a5be6a912f 100644 --- a/site/theme/zh-CN.js +++ b/site/theme/zh-CN.js @@ -73,6 +73,7 @@ module.exports = { 'app.footer.umi': 'React 应用开发框架', 'app.footer.dva': '数据流前端框架', 'app.footer.remax': '全新的小程序开发体验', + 'app.footer.hooks': 'React Hooks 库', 'app.footer.resources': '相关资源', 'app.footer.data-vis': '数据可视化', 'app.footer.eggjs': '企业级 Node 开发框架',