├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .github ├── release-drafter.yml └── workflows │ ├── ci.yml │ ├── codeql-analysis.yml │ ├── rebase.yml │ └── release.yml ├── .gitignore ├── .npmignore ├── .prettierignore ├── .prettierrc ├── .releaserc.js ├── .umirc.js ├── CHANGELOG.md ├── LICENSE ├── README.md ├── __tests__ ├── router.tsx ├── useCount.test.tsx ├── useDownload.test.tsx ├── useLeavePrompt.test.tsx ├── useList.test.tsx ├── useNextTick.test.tsx ├── useSearchParams.test.tsx ├── useTrimInput.test.tsx └── utils.test.ts ├── babel.config.js ├── commitlint.config.js ├── docs ├── index.md ├── useCount.md ├── useDownload.md ├── useLeavePrompt.md ├── useList.md ├── useNextTick.md ├── useSearchParams.md └── useTrimInput.md ├── jest.config.js ├── package.json ├── public └── logo.png ├── setupTests.js ├── src ├── context │ ├── index.tsx │ ├── leavePrompt.tsx │ └── leavePromptContext.provider.tsx ├── hooks │ ├── useCount │ │ └── index.tsx │ ├── useDownload │ │ ├── index.interface.ts │ │ └── index.tsx │ ├── useLeavePrompt │ │ └── index.tsx │ ├── useList │ │ ├── index.interface.ts │ │ └── index.tsx │ ├── useNextTick │ │ ├── index.interface.ts │ │ └── index.ts │ ├── useSearchParams │ │ ├── index.interface.ts │ │ └── index.tsx │ └── useTrimInput │ │ ├── index.interface.ts │ │ └── index.tsx ├── index.tsx └── utils │ ├── function.ts │ ├── string.ts │ └── uuid.ts ├── tsconfig.build.json ├── tsconfig.json ├── webpack.umd.config.js └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/rebase.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.github/workflows/rebase.yml -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.github/workflows/release.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.gitignore -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | ~* 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.prettierrc -------------------------------------------------------------------------------- /.releaserc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.releaserc.js -------------------------------------------------------------------------------- /.umirc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/.umirc.js -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/router.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/router.tsx -------------------------------------------------------------------------------- /__tests__/useCount.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useCount.test.tsx -------------------------------------------------------------------------------- /__tests__/useDownload.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useDownload.test.tsx -------------------------------------------------------------------------------- /__tests__/useLeavePrompt.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useLeavePrompt.test.tsx -------------------------------------------------------------------------------- /__tests__/useList.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useList.test.tsx -------------------------------------------------------------------------------- /__tests__/useNextTick.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useNextTick.test.tsx -------------------------------------------------------------------------------- /__tests__/useSearchParams.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useSearchParams.test.tsx -------------------------------------------------------------------------------- /__tests__/useTrimInput.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/useTrimInput.test.tsx -------------------------------------------------------------------------------- /__tests__/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/__tests__/utils.test.ts -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/babel.config.js -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/useCount.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useCount.md -------------------------------------------------------------------------------- /docs/useDownload.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useDownload.md -------------------------------------------------------------------------------- /docs/useLeavePrompt.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useLeavePrompt.md -------------------------------------------------------------------------------- /docs/useList.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useList.md -------------------------------------------------------------------------------- /docs/useNextTick.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useNextTick.md -------------------------------------------------------------------------------- /docs/useSearchParams.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useSearchParams.md -------------------------------------------------------------------------------- /docs/useTrimInput.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/docs/useTrimInput.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/package.json -------------------------------------------------------------------------------- /public/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/public/logo.png -------------------------------------------------------------------------------- /setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/setupTests.js -------------------------------------------------------------------------------- /src/context/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/context/index.tsx -------------------------------------------------------------------------------- /src/context/leavePrompt.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/context/leavePrompt.tsx -------------------------------------------------------------------------------- /src/context/leavePromptContext.provider.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/context/leavePromptContext.provider.tsx -------------------------------------------------------------------------------- /src/hooks/useCount/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useCount/index.tsx -------------------------------------------------------------------------------- /src/hooks/useDownload/index.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useDownload/index.interface.ts -------------------------------------------------------------------------------- /src/hooks/useDownload/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useDownload/index.tsx -------------------------------------------------------------------------------- /src/hooks/useLeavePrompt/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useLeavePrompt/index.tsx -------------------------------------------------------------------------------- /src/hooks/useList/index.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useList/index.interface.ts -------------------------------------------------------------------------------- /src/hooks/useList/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useList/index.tsx -------------------------------------------------------------------------------- /src/hooks/useNextTick/index.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useNextTick/index.interface.ts -------------------------------------------------------------------------------- /src/hooks/useNextTick/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useNextTick/index.ts -------------------------------------------------------------------------------- /src/hooks/useSearchParams/index.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useSearchParams/index.interface.ts -------------------------------------------------------------------------------- /src/hooks/useSearchParams/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useSearchParams/index.tsx -------------------------------------------------------------------------------- /src/hooks/useTrimInput/index.interface.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useTrimInput/index.interface.ts -------------------------------------------------------------------------------- /src/hooks/useTrimInput/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/hooks/useTrimInput/index.tsx -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/utils/function.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/utils/function.ts -------------------------------------------------------------------------------- /src/utils/string.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/utils/string.ts -------------------------------------------------------------------------------- /src/utils/uuid.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/src/utils/uuid.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/tsconfig.json -------------------------------------------------------------------------------- /webpack.umd.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/webpack.umd.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lijinke666/react-7h-hooks/HEAD/yarn.lock --------------------------------------------------------------------------------