Modules

The business screens of the template. Each page lists its files, data, permissions, configuration and rules, and how to connect it to your API.

Modules are the screens around the apps: dashboards, commerce, billing, learning, the account area and the public pages. They share a few rules:

  • Data lives in one composable per module (useOrders, useProducts, useCustomers, useInvoices, useLearning, useAccount…) over shared state, so the list, the quick view and the detail page show the same record. Orders, products, customers, invoices and learning load it through a provider: write one for your API and make it the default, as in Connect your API.
  • Statuses are derived. Overdue invoices, late orders, at-risk customers and students are computed by pure functions in utils/, never stored.
  • Operational screens have no KPI cards. They show a warning BaseAlert only when something needs attention, and views as a BaseToggleGroup compact fit in the table toolbar.
  • Records open in a quick view (BaseQuickView) and link to a detail page (<list>/[id].vue) that throws a 404 when the record is missing.
  • Pages are protected by permission with definePageMeta({ permission }), and the menu item uses the same permission.

Modules

© 2026 melsami UI.
Developer documentation for melsami UI.