Apps
Six full-height apps built on one architecture. Swap the mock provider for your API and the screens keep working.
The apps (/email, /chat, /calendar, /kanban, /todo, /file-manager) are complete screens, not mockups: they filter, sort, drag, undo and remember the user's view. They all share one structure, so learning one teaches you the rest.
The pattern
Layer | Where | What it does |
|---|---|---|
| Model | types/models/<app>.ts | The types and the **provider** interface: the operations the app needs from a backend. |
| Demo data | mocks/<app>.mock.ts | Built from new Date() inside useState, so the server and the client share the same data. Exports create<App>MockProvider(). |
| Composable | composables/apps/use<App>.ts | Loads the provider with useAsyncData, holds the state and applies changes optimistically. |
| Config | config/<app>.config.ts | Folders, labels, colours and defaults as data. |
| Rules | utils/<app>.ts | Pure functions with unit tests. |
| Components | components/pages/<app>/ | Page-only components, prefixed with the app name. |
| Copy | locales/<code>/apps.json | UI strings under apps.<app>. |
Page conventions
- Pages set
definePageMeta({ fluid: true, hideBreadcrumbs: true })to drop the 1000px container and the breadcrumb row. Keepbreadcrumb:app.vuebuilds the<title>from it. - Full-height panes live inside
.app-panel. List and detail apps render aBaseSplitViewwith thenav,list,detailandasideslots. - Create and edit dialogs are
BaseFormPanel+BaseForm. A delete action in an edit form goes in#actions-startas aBaseButton button-type="danger". - Destructive actions confirm with
useConfirm(); actions that need a backend calluseToast().show(t('apps.common.demoAction'))until you connect one. - Each app's view (reading pane, month or week, board or list…) persists in a cookie, so the server renders the view the user chose.
Plug in your API
Every app page has a Connect your backend section with a ready provider. Write it in
providers/<app>.ts, pass it to the composable in the page and you are done. The general guide is Connect your API.