API reference
The shared logic of the template. Signatures and return values are read from the TypeScript source at build time, so they never go out of date.
The template keeps logic out of components. What a screen does lives in three places, and this section documents each of them:
- Composables (
composables/) hold state and side effects: navigation, theme, toasts, forms, tables and one composable per app or module. They are auto-imported. - Utilities (
utils/) are pure functions: business rules, formatting and chart options. They take data and return data, so they are unit tested and safe on the server. - Stores and middleware (
stores/,middleware/) keep the session and the preferences and guard the routes.
Generated signatures
Every code box on these pages comes from the source: the docs read the exported functions with the TypeScript compiler when they build. If you change a signature, rebuild the docs and the page follows. Returns lists the keys of the object a composable returns.
Sections
Composables
App shell, auth and data, feedback, forms, tables, apps, modules, dashboards and landing.
Open : ComposablesStores and middleware
The session and preferences stores and the two global route guards.
Open : Stores and middleware