181 lines
4.3 KiB
TypeScript
181 lines
4.3 KiB
TypeScript
import type { DashboardData } from "@/types/dashboard"
|
|
|
|
export function getDashboardData(): DashboardData {
|
|
return {
|
|
metrics: [
|
|
{
|
|
id: "1",
|
|
title: "New Subscriptions",
|
|
value: "4,682",
|
|
change: 15.54,
|
|
changeLabel: "from last month",
|
|
icon: "Users",
|
|
},
|
|
{
|
|
id: "2",
|
|
title: "New Orders",
|
|
value: "1,226",
|
|
change: 40.2,
|
|
changeLabel: "from last month",
|
|
icon: "ShoppingCart",
|
|
},
|
|
{
|
|
id: "3",
|
|
title: "Avg Order Revenue",
|
|
value: "$1,080",
|
|
change: 10.8,
|
|
changeLabel: "from last month",
|
|
icon: "DollarSign",
|
|
},
|
|
{
|
|
id: "4",
|
|
title: "Total Revenue",
|
|
value: "$15,231.89",
|
|
change: 20.1,
|
|
changeLabel: "from last month",
|
|
icon: "CreditCard",
|
|
},
|
|
],
|
|
revenueData: [
|
|
{ label: "Jan", value: 4200, secondaryValue: 2400 },
|
|
{ label: "Feb", value: 3800, secondaryValue: 2200 },
|
|
{ label: "Mar", value: 5200, secondaryValue: 2800 },
|
|
{ label: "Apr", value: 4600, secondaryValue: 2600 },
|
|
{ label: "May", value: 6100, secondaryValue: 3200 },
|
|
{ label: "Jun", value: 5800, secondaryValue: 3100 },
|
|
],
|
|
salesData: [
|
|
{ label: "Jan", value: 1200 },
|
|
{ label: "Feb", value: 1900 },
|
|
{ label: "Mar", value: 1600 },
|
|
{ label: "Apr", value: 2100 },
|
|
{ label: "May", value: 1800 },
|
|
{ label: "Jun", value: 2400 },
|
|
{ label: "Jul", value: 2200 },
|
|
{ label: "Aug", value: 2600 },
|
|
{ label: "Sep", value: 2300 },
|
|
{ label: "Oct", value: 2800 },
|
|
{ label: "Nov", value: 2500 },
|
|
{ label: "Dec", value: 3100 },
|
|
],
|
|
payments: [
|
|
{
|
|
id: "1",
|
|
status: "success",
|
|
email: "olivia.martin@email.com",
|
|
amount: 316.0,
|
|
},
|
|
{
|
|
id: "2",
|
|
status: "processing",
|
|
email: "jackson.lee@email.com",
|
|
amount: 242.0,
|
|
},
|
|
{
|
|
id: "3",
|
|
status: "success",
|
|
email: "isabella.nguyen@email.com",
|
|
amount: 837.0,
|
|
},
|
|
{
|
|
id: "4",
|
|
status: "failed",
|
|
email: "william.kim@email.com",
|
|
amount: 874.0,
|
|
},
|
|
{
|
|
id: "5",
|
|
status: "success",
|
|
email: "sofia.davis@email.com",
|
|
amount: 721.0,
|
|
},
|
|
{
|
|
id: "6",
|
|
status: "processing",
|
|
email: "alexander.chen@email.com",
|
|
amount: 456.0,
|
|
},
|
|
{
|
|
id: "7",
|
|
status: "success",
|
|
email: "emily.wilson@email.com",
|
|
amount: 592.0,
|
|
},
|
|
{
|
|
id: "8",
|
|
status: "success",
|
|
email: "michael.brown@email.com",
|
|
amount: 389.0,
|
|
},
|
|
{
|
|
id: "9",
|
|
status: "failed",
|
|
email: "sarah.johnson@email.com",
|
|
amount: 1250.0,
|
|
},
|
|
{
|
|
id: "10",
|
|
status: "success",
|
|
email: "daniel.garcia@email.com",
|
|
amount: 675.0,
|
|
},
|
|
{
|
|
id: "11",
|
|
status: "processing",
|
|
email: "jessica.martinez@email.com",
|
|
amount: 943.0,
|
|
},
|
|
{
|
|
id: "12",
|
|
status: "success",
|
|
email: "james.rodriguez@email.com",
|
|
amount: 528.0,
|
|
},
|
|
],
|
|
team: [
|
|
{
|
|
id: "1",
|
|
name: "Sofia Davis",
|
|
email: "sofia.davis@email.com",
|
|
role: "Product Designer",
|
|
avatar: "https://i.pravatar.cc/300?img=1",
|
|
},
|
|
{
|
|
id: "2",
|
|
name: "Jackson Lee",
|
|
email: "jackson.lee@email.com",
|
|
role: "Frontend Developer",
|
|
avatar: "https://i.pravatar.cc/300?img=12",
|
|
},
|
|
{
|
|
id: "3",
|
|
name: "Isabella Nguyen",
|
|
email: "isabella.nguyen@email.com",
|
|
role: "Backend Developer",
|
|
avatar: "https://i.pravatar.cc/300?img=5",
|
|
},
|
|
{
|
|
id: "4",
|
|
name: "William Kim",
|
|
email: "william.kim@email.com",
|
|
role: "UX Researcher",
|
|
avatar: "https://i.pravatar.cc/300?img=15",
|
|
},
|
|
{
|
|
id: "5",
|
|
name: "Emily Wilson",
|
|
email: "emily.wilson@email.com",
|
|
role: "Marketing Manager",
|
|
avatar: "https://i.pravatar.cc/300?img=20",
|
|
},
|
|
{
|
|
id: "6",
|
|
name: "Michael Brown",
|
|
email: "michael.brown@email.com",
|
|
role: "DevOps Engineer",
|
|
avatar: "https://i.pravatar.cc/300?img=33",
|
|
},
|
|
],
|
|
}
|
|
}
|