Skip to content

Commit

Permalink
fix: git url
Browse files Browse the repository at this point in the history
  • Loading branch information
思忠 committed Jun 7, 2020
1 parent 1f81d75 commit 6609b47
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .umirc.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ export default {
navs: {
'zh-CN': [
null,
{ title: 'GitHub', path: 'https://github.com/ice-lab/ahooks' },
{ title: '更新日志', path: 'https://github.com/ice-lab/ahooks/releases' },
{ title: 'GitHub', path: 'https://github.com/alibaba/hooks' },
{ title: '更新日志', path: 'https://github.com/alibaba/hooks/releases' },
],
'en-US': [
null,
{ title: 'GitHub', path: 'https://github.com/ice-lab/ahooks' },
{ title: 'Changelog', path: 'https://github.com/ice-lab/ahooks/releases' },
{ title: 'GitHub', path: 'https://github.com/alibaba/hooks' },
{ title: 'Changelog', path: 'https://github.com/alibaba/hooks/releases' },
],
},
headScripts: [
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

## 透明的开发

我们所有的工作都会放在 [GitHub](https://github.com/ice-lab/ahooks) 上。不管是核心团队的成员还是外部贡献者的 pull request 都需要经过同样流程的 review。
我们所有的工作都会放在 [GitHub](https://github.com/alibaba/hooks) 上。不管是核心团队的成员还是外部贡献者的 pull request 都需要经过同样流程的 review。

## 分支管理

我们长期维护两个分支 master 和 feature。如果你要修一个 bug,那么请发 pull request 到 master;如果你要提一个增加新功能的 pull request,那么请基于 feature 分支来做。

## 新增功能

如果你想新增一个 Hooks,我们建议你先建立一个 issue,说明该 Hook 的应用场景及用法,参考 [useToggle RFC](https://github.com/ice-lab/ahooks/issues/9)
如果你想新增一个 Hooks,我们建议你先建立一个 issue,说明该 Hook 的应用场景及用法,参考 [useToggle RFC](https://github.com/alibaba/hooks/issues/9)

然后你可以基于已有 Hook 来初始化一个新的 Hook。

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
English | [简体中文](https://github.com/ice-lab/ahooks/blob/master/README.zh-CN.md)
English | [简体中文](https://github.com/alibaba/hooks/blob/master/README.zh-CN.md)

# ahooks

Expand Down Expand Up @@ -42,15 +42,15 @@ Open your browser and visit http://127.0.0.1:8001 , see more at Development.

## 🤝 Contributing

We welcome all contributions, please read our [CONTRIBUTING.MD](https://github.com/ice-lab/ahooks/blob/master/CONTRIBUTING.MD) first, let's build a better hooks library together.
We welcome all contributions, please read our [CONTRIBUTING.MD](https://github.com/alibaba/hooks/blob/master/CONTRIBUTING.MD) first, let's build a better hooks library together.

## 👥 Discuss

<img src="https://raw.githubusercontent.com/ice-lab/ahooks/master/dingtalk.jpg" width="300" />

## ✅ License

[MIT](https://github.com/ice-lab/ahooks/blob/master/LICENSE)
[MIT](https://github.com/alibaba/hooks/blob/master/LICENSE)


[1]: https://www.npmjs.com/package/ahooks
Expand Down
6 changes: 3 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[English](https://github.com/ice-lab/ahooks/blob/master/README.md) | 简体中文
[English](https://github.com/alibaba/hooks/blob/master/README.md) | 简体中文

# ahooks

Expand Down Expand Up @@ -42,15 +42,15 @@ $ npm start

## 🤝 贡献

我们欢迎所有人参与共建,请参考[CONTRIBUTING.MD](https://github.com/ice-lab/ahooks/blob/master/CONTRIBUTING.MD)
我们欢迎所有人参与共建,请参考[CONTRIBUTING.MD](https://github.com/alibaba/hooks/blob/master/CONTRIBUTING.MD)

## 👥 讨论

<img src="https://raw.githubusercontent.com/umijs/hooks/master/dingtalk.jpg" width="300" />

## ✅ License

[MIT](https://github.com/ice-lab/ahooks/blob/master/LICENSE)
[MIT](https://github.com/alibaba/hooks/blob/master/LICENSE)

[1]: https://www.npmjs.com/package/ahooks
[2]: https://npmjs.org/package/ahooks
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/ice-lab/ahooks.git"
"url": "git+https://github.com/alibaba/hooks.git"
},
"scripts": {
"init": "rm -rf node_modules && npm install && npm run clean && npm run bootstrap && npm run build",
Expand Down
4 changes: 2 additions & 2 deletions packages/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"publishConfig": {
"registry": "https://registry.npmjs.com/"
},
"repository": "https://github.com/ice-lab/ahooks",
"homepage": "https://github.com/ice-lab/ahooks",
"repository": "https://github.com/alibaba/hooks",
"homepage": "https://github.com/alibaba/hooks",
"scripts": {
"build:declaration": "tsc --declarationDir lib && tsc --declarationDir es",
"build:umd": "webpack-cli"
Expand Down
4 changes: 2 additions & 2 deletions packages/hooks/src/useAntdTable/demo/demo1.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* title: Form and Table data binding
* desc: useAntdTable returns a search object after receiving a form instance. This is an example of antd v3, see [link](https://github.com/ice-lab/ahooks/blob/master/packages/hooks/src/useAntdTable/demo/demo3.tsx) for an example of antd v4.
* desc: useAntdTable returns a search object after receiving a form instance. This is an example of antd v3, see [link](https://github.com/alibaba/hooks/blob/master/packages/hooks/src/useAntdTable/demo/demo3.tsx) for an example of antd v4.
*
* title.zh-CN: Form 与 Table 联动
* desc.zh-CN: useAntdTable 接收 form 实例后,会返回 search 对象。这是一个 antd v3 示例,antd v4 示例见 [链接](https://github.com/ice-lab/ahooks/blob/master/packages/hooks/src/useAntdTable/demo/demo3.tsx)。
* desc.zh-CN: useAntdTable 接收 form 实例后,会返回 search 对象。这是一个 antd v3 示例,antd v4 示例见 [链接](https://github.com/alibaba/hooks/blob/master/packages/hooks/src/useAntdTable/demo/demo3.tsx)。
*/

import React from 'react';
Expand Down
4 changes: 2 additions & 2 deletions packages/hooks/src/useAntdTable/demo/demo2.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* title: Data caching
* desc: Form and Table data cache through cacheKey. This is an example of antd v3, see [link](https://github.com/ice-lab/ahooks/blob/master/packages/hooks/src/useAntdTable/demo/demo4.tsx) for an example of antd v4.
* desc: Form and Table data cache through cacheKey. This is an example of antd v3, see [link](https://github.com/alibaba/hooks/blob/master/packages/hooks/src/useAntdTable/demo/demo4.tsx) for an example of antd v4.
*
* title.zh-CN: 数据缓存
* desc.zh-CN: 通过 cacheKey 可以实现 Form 和 Table 数据缓存。这是一个 antd v3 示例,antd v4 示例见 [链接](https://github.com/ice-lab/ahooks/blob/master/packages/hooks/src/useAntdTable/demo/demo4.tsx)。
* desc.zh-CN: 通过 cacheKey 可以实现 Form 和 Table 数据缓存。这是一个 antd v3 示例,antd v4 示例见 [链接](https://github.com/alibaba/hooks/blob/master/packages/hooks/src/useAntdTable/demo/demo4.tsx)。
*/

import { Button, Form, Input, Table } from 'antd';
Expand Down
2 changes: 1 addition & 1 deletion packages/use-request/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const {
| ready | 只有当 ready 为 `true` 时,才会发起请求 | `boolean` | `true` |
## 扩展用法

基于基础的 useRequest,我们可以进一步封装,实现更高级的定制需求。当前 useRequest 内置了 `集成请求库``分页``加载更多` 三种场景。你可以参考代码,实现自己的封装。参考 [useRequest](https://github.com/ice-lab/ahooks/blob/master/packages/use-request/src/useRequest.ts)[usePaginated](https://github.com/ice-lab/ahooks/blob/master/packages/use-request/src/usePaginated.ts)[useLoadMore](https://github.com/ice-lab/ahooks/blob/master/packages/use-request/src/useLoadMore.ts) 的实现。
基于基础的 useRequest,我们可以进一步封装,实现更高级的定制需求。当前 useRequest 内置了 `集成请求库``分页``加载更多` 三种场景。你可以参考代码,实现自己的封装。参考 [useRequest](https://github.com/alibaba/hooks/blob/master/packages/use-request/src/useRequest.ts)[usePaginated](https://github.com/alibaba/hooks/blob/master/packages/use-request/src/usePaginated.ts)[useLoadMore](https://github.com/alibaba/hooks/blob/master/packages/use-request/src/useLoadMore.ts) 的实现。

### 集成请求库

Expand Down
6 changes: 3 additions & 3 deletions packages/use-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/ice-lab/ahooks.git"
"url": "git+https://github.com/alibaba/hooks.git"
},
"scripts": {
"build:declaration": "tsc --declarationDir ./lib && tsc --declarationDir ./es && webpack-cli",
Expand All @@ -25,9 +25,9 @@
},
"license": "MIT",
"bugs": {
"url": "https://github.com/ice-lab/ahooks/issues"
"url": "https://github.com/alibaba/hooks/issues"
},
"homepage": "https://github.com/ice-lab/ahooks",
"homepage": "https://github.com/alibaba/hooks",
"peerDependencies": {
"react": "^16.8.6"
},
Expand Down

0 comments on commit 6609b47

Please sign in to comment.