Reference
Types
Where the TypeScript types live: data models, component props and layout.
Types are in types/, split by what they describe. Import them with import type from ~/types/....
Data models
types/models/ holds the records the screens work with. Each app model also declares its provider interface, the contract your backend implements.
File | Main types | Used by |
|---|---|---|
user.ts | UserModel | Authentication |
permissions.ts | Permission, PermissionModule, PermissionAction, RoleModel, TeamMember | Roles and permissions |
account.ts | ProfileDetails, UserSession, Subscription, SecuritySettings | Account |
notification.ts | Notification | AppNotificationMenu |
forms.ts | Demo form values | Form examples |
email.ts | EmailMessage, EmailConversation, EmailProvider | |
chat.ts | ChatState, ChatThread, ChatMessage, ChatProvider | Chat |
calendar.ts | CalendarEvent, CalendarView, CalendarProvider | Calendar |
kanban.ts | KanbanBoard, KanbanColumn, KanbanCard, KanbanProvider | Kanban |
todo.ts | TodoTask, TodoQuickAdd, TodoProvider | Tasks |
files.ts | FileEntry, FileFolder, FileManagerState, FilesProvider | File manager |
orders.ts | Order, OrderStatus, OrderTotals | Orders |
products.ts | Product, ProductVariant | Products |
customers.ts | Customer, CustomerNote | Customers |
invoices.ts | Invoice, InvoiceLine, InvoicePayment | Invoices |
learning.ts | Course, CourseModule, CourseLesson, Student, Enrollment, Instructor, LearningState | Courses |
Component types
types/components/ holds the shapes components accept when a prop is more than a primitive: chart series, table headers and filters, form schemas, menu items, timeline items, plan cards, stat tiles and so on. landing.ts holds LandingPageContent, the LandingBlock union and every block’s props. The API table of each component page shows these types.
types/layout/ holds the customizer and sidebar option types, and types/page-meta.d.ts adds permission to definePageMeta.
Page options
Option | Effect |
|---|---|
layout | default, auth, blank or landing-page. |
breadcrumb | The breadcrumb items; app.vue also builds the <title> from them. |
permission | A module.action permission. Without it the user gets a 403. |
public | The page needs no session. |
fluid | Drops the 1000px container (only the full-height apps). |
hideBreadcrumbs | Hides the breadcrumb row. |