数据分析ui补充完善,接入数据库

This commit is contained in:
comlibmb
2026-01-31 21:47:42 +08:00
parent 8f181b2b6a
commit 6716398175
71 changed files with 6501 additions and 10593 deletions

View File

@@ -0,0 +1,38 @@
// types/analytics/profile.uts
export type ReportStatus = 'pending' | 'ready' | 'failed' | 'scheduled' | 'shared' | string
export type RecentReport = {
id: string
title: string
description: string
status: ReportStatus
created_at: string
}
export type OverviewData = {
totalSales: string
salesGrowth: number
totalUsers: string
userGrowth: number
totalOrders: string
orderGrowth: number
conversionRate: number
conversionGrowth: number
}
export type ReportCounts = {
total: number
pending: number
scheduled: number
shared: number
}
export type TodayInsights = {
hotProduct: string
peakTraffic: string
conversionAnomaly: string
mobileRatio: number
}
export type TrendDatum = { label: string; sales: number; orders: number }