API reference
Dashboards
The data of the four dashboards and the label helpers they use.
Mocks store semantic ids; these composables turn them into translated labels.
useAnalyticsKpis()
kpiById(id) returns the props of an analytics KPI card.
useAnalyticsKpis(): { kpiById: (id: KpiId) => { label: any; icon: string | undefined; value: number; previousValue: number | undefined; format: KpiValueFormat | undefined; series: { name: any; data: …Returns
kpiByIduseAnalyticsLabels()
Translates the ids of the mocks: KPIs, devices, plans, weekdays, months and categories.
useAnalyticsLabels(): { kpiLabel: (id: KpiId) => any; deviceLabel: (id: DeviceId) => any; planLabel: (id: PlanId) => any; weekdayLabel: (id: WeekdayId) => any; monthLabel: (id: MonthId) => any; finance…Returns
kpiLabeldeviceLabelplanLabelweekdayLabelmonthLabelfinanceSeriesLabelkpiCategoryLabeluseAnalyticsActivity()
The recent activity of the analytics dashboard.
useAnalyticsActivity(): { activity: any; }Returns
activityuseEcommerceDashboard()
Data, KPIs and chart series of the store dashboard.
useEcommerceDashboard(): { data: any; kpi: (id: EcommerceKpiId) => { label: any; icon: any; value: any; format: any; series: { name: any; data: any; }[]; previousSeries: any; categories: any; change: any;…Returns
datakpitopProductslowStocksalesSeriessalesCategorieschannelCategoriesuseFinanceDashboard()
Data, KPIs and chart series of the finance dashboard.
useFinanceDashboard(): { data: any; kpi: (id: FinanceKpiId) => { label: any; icon: any; value: any; format: any; series: { name: any; data: any; }[] | undefined; previousSeries: any; categories: any; ch…Returns
datakpicashFlowSeriescashFlowCategoriesexpenseCategoriesuseSaasDashboard()
MRR, movements, plans and funnel of the SaaS dashboard.
useSaasDashboard(): { data: any; kpi: (id: SaasKpiId) => { label: any; icon: any; value: any; format: any; series: { name: any; data: any; }[]; previousSeries: any; categories: any; change: any; }; m…Returns
datakpimrrSeriesmrrCategoriesmovementSeriesmovementCategoriesplanCategoriesfunneloverallConversionuseFormPlayground()
The schema-driven playground of the forms overview.
useFormPlayground(): { isOpen: any; layout: any; stepsOrientation: any; values: any; sections: any; open: (next?: FormLayout, orientation?: FormStepsOrientation) => void; close: () => void; }Returns
isOpenlayoutstepsOrientationvaluessectionsopenclose