Permissions
Description
Permissions provides the administration pages used to list, create, and edit permission records in Enso UI.
Installation
Install the package:
yarn add @enso-ui/permissions
The package is usually consumed from the full enso-ui workspace inside an Enso application.
Features
- registers the
/system/permissionsroute group - ships
index,create, andeditpage modules - includes a small helper for mapping permission types to Bulma color classes
- pairs with the backend permissions package for forms, tables, and policy data
Usage
import systemRoutes from '@enso-ui/permissions/src/bulma/routes/system.js';
import permissionCssClass from '@enso-ui/permissions/src/bulma/modules/permission';
API
Route modules
Common imports:
src/bulma/routes/system.jssrc/bulma/routes/system/permissions.js
Page modules
src/bulma/pages/permissions/Index.vuesrc/bulma/pages/permissions/Create.vuesrc/bulma/pages/permissions/Edit.vue
Helper module
src/bulma/modules/permission.js
- maps permission enum members such as read, write, delete, link, and menu to Bulma color classes
Routes
/system/permissions
system.permissions.indexsystem.permissions.createsystem.permissions.edit
Companion Backend Package
Depends On
Contributions
are welcome. Pull requests are great, but issues are good too.
Thank you to all the people who already contributed to Enso!