Add `glAbilities` for frontend
* So that we can check for abilities in the frontend rather than relying on license or feature flag checks.
显示
- app/assets/javascripts/commons/vue.js 2 个添加, 0 个删除app/assets/javascripts/commons/vue.js
- app/assets/javascripts/vue_shared/gl_abilities_plugin.js 11 个添加, 0 个删除app/assets/javascripts/vue_shared/gl_abilities_plugin.js
- app/assets/javascripts/vue_shared/mixins/gl_abilities_mixin.js 8 个添加, 0 个删除...ssets/javascripts/vue_shared/mixins/gl_abilities_mixin.js
- app/controllers/application_controller.rb 2 个添加, 2 个删除app/controllers/application_controller.rb
- doc/development/fe_guide/vue.md 25 个添加, 0 个删除doc/development/fe_guide/vue.md
- doc/development/permissions/authorizations.md 33 个添加, 0 个删除doc/development/permissions/authorizations.md
- ee/app/assets/javascripts/vulnerabilities/components/header.vue 7 个添加, 2 个删除.../assets/javascripts/vulnerabilities/components/header.vue
- ee/app/controllers/projects/security/vulnerabilities_controller.rb 1 个添加, 0 个删除...ntrollers/projects/security/vulnerabilities_controller.rb
- ee/spec/frontend/vulnerabilities/header_spec.js 11 个添加, 11 个删除ee/spec/frontend/vulnerabilities/header_spec.js
- lib/gitlab/gon_helper.rb 8 个添加, 0 个删除lib/gitlab/gon_helper.rb
- spec/frontend/vue_shared/gl_abilities_plugin_spec.js 28 个添加, 0 个删除spec/frontend/vue_shared/gl_abilities_plugin_spec.js
- spec/frontend/vue_shared/mixins/gl_abilities_mixin_spec.js 33 个添加, 0 个删除spec/frontend/vue_shared/mixins/gl_abilities_mixin_spec.js
- spec/lib/gitlab/gon_helper_spec.rb 16 个添加, 0 个删除spec/lib/gitlab/gon_helper_spec.rb
加载中
想要评论请 注册 或 登录