Categories
Description
Categories administration pages for Enso UI.
Installation
Install the package:
yarn add @enso-ui/categories
This package is also available through the full enso-ui workspace bundle.
Features
- exports the categories index page used by the administration router
- ships the route modules for category listing, creation, and edit flows
- combines Enso table slots with a dedicated level filter
- renders picture previews and flattened parent labels through table slots
Usage
import CategoriesIndex from '@enso-ui/categories';
import CategoryCreate from '@enso-ui/categories/src/bulma/pages/administration/categories/Create.vue';
import CategoryEdit from '@enso-ui/categories/src/bulma/pages/administration/categories/Edit.vue';
API
Index
Default export for the categories administration index page.
Import: @enso-ui/categories
Props:
- No public props.
Events:
- No public emits.
Create
Create page for a category record.
Import: @enso-ui/categories/src/bulma/pages/administration/categories/Create.vue
Edit
Edit page for an existing category record.
Import: @enso-ui/categories/src/bulma/pages/administration/categories/Edit.vue
Routes
administration/categories
Route group:
administration.categories.indexadministration.categories.createadministration.categories.edit
Pages:
src/bulma/pages/administration/categories/Index.vuesrc/bulma/pages/administration/categories/Create.vuesrc/bulma/pages/administration/categories/Edit.vue
The package ships a nested administration route group that exposes the full list/create/edit workflow for categories.
Companion Backend Package
The backend companion provides the category table definition, form contracts, image handling, and CRUD endpoints used by these pages.
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!