ember-can:适用于Ember应用程序的简单授权插件

时间:2021-02-04 21:14:59
【文件属性】:
文件名称:ember-can:适用于Ember应用程序的简单授权插件
文件大小:204KB
文件格式:ZIP
更新时间:2021-02-04 21:14:59
ember addon authorization EmberJavaScript 灰烬罐 Ember的简单授权插件。 安装 通过ember-cli安装此插件: ember install ember-can 兼容性 Ember.js v3.8或以上 Ember CLI v2.13或更高版本 Node.js v10或更高版本 快速范例 您希望有条件地允许创建新的博客文章: {{ #if ( can " create post " ) }} Type post content here... {{ else }} You can't write a new post! {{ /if }} 我们在/app/abilities/post.js为Post模型定义一个功
【文件预览】:
ember-can-master
----.gitignore(369B)
----app()
--------.gitkeep(1B)
--------services()
--------helpers()
--------initializers()
----package.json(3KB)
----jsconfig.json(203B)
----package-lock.json(713KB)
----LICENSE.md(1KB)
----.watchmanconfig(37B)
----.travis.yml(1KB)
----CONTRIBUTING.md(664B)
----index.js(71B)
----CHANGELOG.md(14KB)
----addon()
--------ability.js(907B)
--------.gitkeep(1B)
--------services()
--------index.js(62B)
--------helpers()
--------utils()
--------computed.js(384B)
--------initializers()
----testem.js(556B)
----.eslintrc.js(1KB)
----README.md(11KB)
----vendor()
--------.gitkeep(1B)
----tests()
--------dummy()
--------integration()
--------unit()
--------helpers()
--------index.html(1KB)
--------test-helper.js(228B)
----config()
--------ember-try.js(2KB)
--------environment.js(90B)
----.eslintignore(240B)
----.ember-cli(280B)
----ember-cli-build.js(494B)
----.npmignore(411B)
----blueprints()
--------ability-test()
--------ability()
----UPGRADING.md(4KB)
----.editorconfig(367B)
----.template-lintrc.js(57B)

网友评论