Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamcruzme/vue-gates
🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
https://github.com/williamcruzme/vue-gates
directives gates laravel middleware nuxt permissions role roles ssr vue2 vue3 vuejs vuex
Last synced: 4 days ago
JSON representation
🔒 A Vue.js & Nuxt.js plugin that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
- Host: GitHub
- URL: https://github.com/williamcruzme/vue-gates
- Owner: williamcruzme
- License: mit
- Created: 2019-04-14T16:11:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T01:47:56.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T19:54:35.146Z (13 days ago)
- Topics: directives, gates, laravel, middleware, nuxt, permissions, role, roles, ssr, vue2, vue3, vuejs, vuex
- Language: JavaScript
- Homepage: https://williamcruzme.github.io/vue-gates/
- Size: 301 KB
- Stars: 264
- Watchers: 8
- Forks: 31
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Vue Gates - Protecting every thing
vue-gates is a plugin for [Vue.js](https://vuejs.org/) & [Nuxt.js](https://nuxtjs.org/) that allows you to use roles and permissions in your components or DOM elements, also compatible as middleware and methods.
See the [full documentation](https://williamcruzme.github.io/vue-gates/#/)
## Features
- Persistent roles/permissions
- Super role avoids all role and permission validations
- Directives
- Middlewares
- Methods
- Wildcard support
- Support server-side rendering (Nuxt.js)
- TypeScript support
- Compatible with IE11## ✅ Examples
See the [examples and instructions](examples) with Laravel.
## 🚸 Contributing
You are welcome to contribute to this project, but before you do, please make sure you read the [contribution guide](CONTRIBUTING.md).
## 🙈 Credits
- Inspired by Laravel Permission [syntax](https://github.com/spatie/laravel-permission#using-blade-directives).
## 🔒 License
MIT