Skip to content

Commit

Permalink
feat(useDrauu): New function (vitest-dev#744)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
  • Loading branch information
wheatjs and antfu committed Sep 17, 2021
1 parent 4a33eb4 commit 4440b7c
Show file tree
Hide file tree
Showing 11 changed files with 859 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -7,7 +7,7 @@ Collection of essential Vue Composition Utilities
<a href="https://www.npmjs.com/package/@vueuse/core" target="__blank"><img src="https://img.shields.io/npm/v/@vueuse/core?color=a1b858&label=" alt="NPM version"></a>
<a href="https://www.npmjs.com/package/@vueuse/core" target="__blank"><img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@vueuse/core?color=50a36f&label="></a>
<a href="https://vueuse.org" target="__blank"><img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20demos&color=1e8a7a" alt="Docs & Demos"></a>
<img alt="Function Count" src="https://img.shields.io/badge/-144%20functions-13708a">
<img alt="Function Count" src="https://img.shields.io/badge/-145%20functions-13708a">
<br>
<a href="https://github.com/vueuse/vueuse" target="__blank"><img alt="GitHub stars" src="https://img.shields.io/github/stars/vueuse/vueuse?style=social"></a>
</p>
Expand Down
7 changes: 7 additions & 0 deletions indexes.json
Expand Up @@ -1060,6 +1060,13 @@
"category": "@Integrations",
"description": "wrapper for [`universal-cookie`](https://www.npmjs.com/package/universal-cookie)"
},
{
"name": "useDrauu",
"package": "integrations",
"docs": "https://vueuse.org/integrations/useDrauu/",
"category": "@Integrations",
"description": "reactive instance for [drauu](https://github.com/antfu/drauu)"
},
{
"name": "useFocusTrap",
"package": "integrations",
Expand Down
1 change: 1 addition & 0 deletions packages/add-ons.md
Expand Up @@ -58,6 +58,7 @@ Utilities for vue-router
Integration wrappers for utility libraries
- [`useAxios`](https://vueuse.org/integrations/useAxios/) — wrapper for [`axios`](https://github.com/axios/axios)
- [`useCookies`](https://vueuse.org/integrations/useCookies/) — wrapper for [`universal-cookie`](https://www.npmjs.com/package/universal-cookie)
- [`useDrauu`](https://vueuse.org/integrations/useDrauu/) — reactive instance for [drauu](https://github.com/antfu/drauu)
- [`useFocusTrap`](https://vueuse.org/integrations/useFocusTrap/) — reactive wrapper for [`focus-trap`](https://github.com/focus-trap/focus-trap)
- [`useJwt`](https://vueuse.org/integrations/useJwt/) — wrapper for [`jwt-decode`](https://github.com/auth0/jwt-decode)
- [`useNProgress`](https://vueuse.org/integrations/useNProgress/) — reactive wrapper for [`nprogress`](https://github.com/rstacruz/nprogress)
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/README.md
Expand Up @@ -16,6 +16,7 @@ npm i <b>@vueuse/integrations</b>
<!--FUNCTIONS_LIST_STARTS-->
- [`useAxios`](https://vueuse.org/integrations/useAxios/) — wrapper for [`axios`](https://github.com/axios/axios)
- [`useCookies`](https://vueuse.org/integrations/useCookies/) — wrapper for [`universal-cookie`](https://www.npmjs.com/package/universal-cookie)
- [`useDrauu`](https://vueuse.org/integrations/useDrauu/) — reactive instance for [drauu](https://github.com/antfu/drauu)
- [`useFocusTrap`](https://vueuse.org/integrations/useFocusTrap/) — reactive wrapper for [`focus-trap`](https://github.com/focus-trap/focus-trap)
- [`useJwt`](https://vueuse.org/integrations/useJwt/) — wrapper for [`jwt-decode`](https://github.com/auth0/jwt-decode)
- [`useNProgress`](https://vueuse.org/integrations/useNProgress/) — reactive wrapper for [`nprogress`](https://github.com/rstacruz/nprogress)
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/index.ts
@@ -1,5 +1,6 @@
export * from './useAxios'
export * from './useCookies'
export * from './useDrauu'
export * from './useFocusTrap'
export * from './useJwt'
export * from './useNProgress'
Expand Down
5 changes: 5 additions & 0 deletions packages/integrations/package.json
Expand Up @@ -28,6 +28,10 @@
"import": "./useCookies.mjs",
"require": "./useCookies.cjs"
},
"./useDrauu": {
"import": "./useDrauu.mjs",
"require": "./useDrauu.cjs"
},
"./useFocusTrap": {
"import": "./useFocusTrap.mjs",
"require": "./useFocusTrap.cjs"
Expand Down Expand Up @@ -61,6 +65,7 @@
},
"optionalDependencies": {
"axios": "^0.21.4",
"drauu": "^0.1.0",
"focus-trap": "^6.6.1",
"jwt-decode": "^3.1.2",
"nprogress": "^0.2.0",
Expand Down

0 comments on commit 4440b7c

Please sign in to comment.