-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"name":"CASL","updateAvailable":"An update is available, <strong>click here to refresh</strong>.","slogan":"Isomorphic Authorization\nJavaScript library\n","copyright":"Released under the <a href=\"https://opensource.org/licenses/MIT\" rel=\"noopener nofollow\" target=\"_blank\"><strong>MIT License</strong></a>\nCopyright © 2017-%{year} <a href=\"https://www.linkedin.com/in/sergii-stotskyi-b747ba23/\" target=\"_blank\" rel=\"noopener nofollow\">Sergii Stotskyi</a>","oldVersionAlert":"<p>This is documentation for CASL <strong>%{currentVersion}</strong>, which is no longer actively maintained.</p>\n<p>For up-to-date documentation, see <a href=\"%{latestVersionUrl}\"><strong>the latest version (%{latestVersion})</strong></a></p>","menu":{"root":"Menu","api":"API","learn":"Learn","docs":"Documentation","guide":"Guide","examples":"Examples","cookbook":"Cookbook","ecosystem":"Ecosystem","packages":"Official packages","pkg-prisma":"CASL Prisma","pkg-mongoose":"CASL Mongoose","pkg-angular":"CASL Angular","pkg-react":"CASL React","pkg-vue":"CASL Vue","pkg-aurelia":"CASL Aurelia","help":"Help","questions":"Ask a question","chat":"Discussions","news":"News","blog":"Blog","support":"Support CASL"},"buttons":{"start":"Get Started","source":"Source code"},"exampleCode":"<pre><code class=\"hljs language-js\"><span class=\"hljs-keyword\">import</span> { createMongoAbility, AbilityBuilder } <span class=\"hljs-keyword\">from</span> <span class=\"hljs-string\">'@casl/ability'</span>;\n\n<span class=\"hljs-comment\">// define abilities</span>\n<span class=\"hljs-keyword\">const</span> { can, cannot, build } = <span class=\"hljs-keyword\">new</span> AbilityBuilder(createMongoAbility);\n\ncan(<span class=\"hljs-string\">'read'</span>, [<span class=\"hljs-string\">'Post'</span>, <span class=\"hljs-string\">'Comment'</span>]);\ncan(<span class=\"hljs-string\">'manage'</span>, <span class=\"hljs-string\">'Post'</span>, { <span class=\"hljs-attr\">author</span>: <span class=\"hljs-string\">'me'</span> });\ncan(<span class=\"hljs-string\">'create'</span>, <span class=\"hljs-string\">'Comment'</span>);\n\n<span class=\"hljs-comment\">// check abilities</span>\n<span class=\"hljs-keyword\">const</span> ability = build();\n\nability.can(<span class=\"hljs-string\">'read'</span>, <span class=\"hljs-string\">'Post'</span>) <span class=\"hljs-comment\">// true</span>\n</code></pre>","features":{"isomorphic":{"title":"Isomorphic","description":"Complementary packages make integration with major Frontend Frameworks and Backend ORMs effortless"},"versatile":{"title":"Versatile","description":"Easily scales between a claim based and subject/attribute based authorization."},"typesafe":{"title":"TypeSafe","description":"Written in TypeScript, that makes your apps safer and developer experience more enjoyable"},"treeshakable":{"title":"Tree shakable","description":"The core is only 6KB mingzipped and can be even smaller!"},"declarative":{"title":"Serializable","description":"Allows to share permissions between UI, API and microservices"}},"search":{"placeholder":"Search","noMatch":"No information found for your query"},"categories":{"guide":"Guide","example":"Examples","package":"Official Packages","cookbook":"Cookbook","advanced":"Advanced","api":"API documentation"},"payment":{"liqpay":"Liqpay"},"meta":{"keywords":"roles, permissions, permission management, ACL, ABAC, RBAC, CASL, javascript","description":"CASL (pronounced /ˈkæsəl/, like castle) is an isomorphic authorization JavaScript library which restricts what resources a given user is allowed to access. It's designed to be incrementally adoptable and can easily scale between a simple claim based and fully featured subject and attribute based authorization. It makes it easy to manage and share permissions across UI components, API services, and database queries.\n"},"id":"default"} |