# wquser

> Module with CRUD for users, and profile admin.

Latest version **1.0.0** (published 2018-11-12) · ISC license · 0 weekly downloads

## Install

```sh
npm install wquser
pnpm add wquser
yarn add wquser
bun add wquser
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-11-12 |
| First published | 2018-11-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 190.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Wegoo |
| Maintainers | msoupnpm |

## Links

- npm: https://www.npmjs.com/package/wquser
- Repository: https://github.com/MichaelSoup/wquser
- Homepage: https://github.com/MichaelSoup/wquser#readme
- Issues: https://github.com/MichaelSoup/wquser/issues
- npm.io page: https://npm.io/package/wquser

## Recent versions

- 1.0.0 (latest) — 2018-11-12

## README

##Module User
Module with CRUD for users, and profile admin.

##Required

####Plugins
- helper
- vuelidate
- axios


##Usage

####Routes and Middleware

In file `src/router/routes` add:
```js
import user from '@wegoo/quser/_router/routes' //Routes module
import auth from '@wegoo/quser/_router/middlewares/auth' //Middleware auth
import access from '@wegoo/quser/_router/middlewares/access' //Middleware access
```

####Stores

In file `src/store/index` add:
```js
import auth from '@wegoo/quser/_store/auth/index'; //Import this file //Import this file
Vue.use(Vuex)
const store = new Vuex.Store({
  modules: {
    auth //Add authStore
  }
});
```

####Config

In file `src/config/index` add:
```js
import auth from '@wegoo/quser/_config/auth'; //Import this file
```
####Sidebar
in file `src/config/slidebar` add:
```js
/*User*/
user: {
  title: 'Users',
  icon: 'fas fa-users',
  children: [
    {
      title: 'Create',
      icon: 'fas fa-user-plus',
      to: 'user.users.create',
      can:'user.users.create'
    },
    {
      title: 'List/Search',
      icon: 'fas fa-list-alt',
      to: 'user.users.index',
      can:'user.users.index'
    },
    {
      title: 'My profile',
      icon: 'fas fa-user-tie',
      to: 'user.profile.me'
    },
    {
      title: 'Departments',
      icon: 'fas fa-cube',
      to: 'user.department'
    }
  ]
},
/*logout*/
logout: {
  title: 'Sign out',
  icon: 'fas fa-sign-out-alt',
  to: 'auth.logout'
}
```

##Components
- widget-use: component with route to my profile and sign out:

`import WidgetUser from "@wegoo/quser/_components/widget-user";`

##Plugins
- auth: plugin with method `hasAccess` for validate user permisions
`import {authPlugin} from "@wegoo/quser/_plugins/auth";` or define it in data like`auth: require('@wegoo/quser/_plugins/auth').default`

---
_Source: https://npm.io/package/wquser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
