casbin / casbin.js

An authorization library that supports access control models like ACL, RBAC, ABAC in Frontend Javascript
https://casbin.org/docs/en/frontend
Apache License 2.0
165 stars 37 forks source link

A simple and easy to use casbin.js library for Vue based #181

Closed Gabriel-403 closed 2 years ago

Gabriel-403 commented 3 years ago

Recently, I will package a Vue plug-in library that simply uses casbin. The design and use will refer to the implementation method of Vue router. We need a more concise, convenient and user-friendly parameter transmission method. I hope to listen to your opinions. These are some simple designs, which will be supplemented later

`import Vue from 'vue' import { VueCasbin } from 'vue-casbin-v2.x'

Vue.use(VueCasbin, { })

new Vue({ methods: { async vcasbin () { //todo } }, template: '<button @click="vcasbin">Execute use vue-casbin-v2.x' })`

casbin-bot commented 3 years ago

@nodece @Zxilly @Gabriel-403

Zxilly commented 3 years ago

You can rewrite https://github.com/casbin-js/vue-authz.

Gabriel-403 commented 3 years ago

@Zxilly I know this, and I understand what you mean, but at present, its design idea is different from mine. However, it can indeed be used as a template, but I will roughly make many new things and functions. I also want to know the needs of users. We need to brainstorm.I'd like to hear from you,thanks!!!❤

Gabriel-403 commented 3 years ago

@Zxilly I will develop on the vue-casbin-v2. X branch and support vue3 in the future,Refactoring adapts to the current new Casbin.js

hsluoyz commented 2 years ago

Closed as stale.