Skip to content

enso-ui/categories

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

110 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Categories

License Stable Downloads Vue JavaScript npm Issues Merge Requests

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.index
  • administration.categories.create
  • administration.categories.edit

Pages:

  • src/bulma/pages/administration/categories/Index.vue
  • src/bulma/pages/administration/categories/Create.vue
  • src/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!

License

MIT

About

No description or website provided.

Topics

Resources

License

Stars

0 stars

Watchers

3 watching

Forks

Packages

 
 
 

Contributors