mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-30 08:04:23 +00:00
113 lines
2.1 KiB
TypeScript
113 lines
2.1 KiB
TypeScript
import { User, Customer, Invoice, Revenue } from './definitions';
|
|
|
|
// This file contains dummy data that you'll be replacing with real data in Chapter 7.
|
|
export const users: User[] = [
|
|
{
|
|
id: 1,
|
|
name: 'User',
|
|
email: 'user@nextmail.com',
|
|
password: '123456',
|
|
},
|
|
];
|
|
|
|
export const customers: Customer[] = [
|
|
{
|
|
id: 1,
|
|
name: 'Ada Lovelace',
|
|
email: 'ada@lovelace.com',
|
|
imageUrl: '/customers/ada-lovelace.png',
|
|
},
|
|
{
|
|
id: 2,
|
|
name: 'Grace Hopper',
|
|
email: 'grace@hopper.com',
|
|
imageUrl: '/customers/grace-hopper.png',
|
|
},
|
|
{
|
|
id: 3,
|
|
name: 'Hedy Lammar',
|
|
email: 'hedy@lammar.com',
|
|
imageUrl: '/customers/hedy-lammar.png',
|
|
},
|
|
{
|
|
id: 4,
|
|
name: 'Margaret Hamilton',
|
|
email: 'margaret@hamilton.com',
|
|
imageUrl: '/customers/margaret-hamilton.png',
|
|
},
|
|
];
|
|
|
|
export const invoices: Invoice[] = [
|
|
{
|
|
id: 1,
|
|
customerId: 1,
|
|
amount: 15795,
|
|
status: 'pending',
|
|
date: '2023-12-01',
|
|
},
|
|
{
|
|
id: 2,
|
|
customerId: 2,
|
|
amount: 20348,
|
|
status: 'pending',
|
|
date: '2023-11-01',
|
|
},
|
|
{
|
|
id: 3,
|
|
customerId: 3,
|
|
amount: 3040,
|
|
status: 'paid',
|
|
date: '2023-10-01',
|
|
},
|
|
{
|
|
id: 4,
|
|
customerId: 4,
|
|
amount: 44800,
|
|
status: 'paid',
|
|
date: '2023-09-01',
|
|
},
|
|
{
|
|
id: 5,
|
|
customerId: 1,
|
|
amount: 34577,
|
|
status: 'pending',
|
|
date: '2023-08-01',
|
|
},
|
|
{
|
|
id: 6,
|
|
customerId: 2,
|
|
amount: 54246,
|
|
status: 'pending',
|
|
date: '2023-07-01',
|
|
},
|
|
{
|
|
id: 7,
|
|
customerId: 3,
|
|
amount: 8945,
|
|
status: 'pending',
|
|
date: '2023-06-01',
|
|
},
|
|
{
|
|
id: 8,
|
|
customerId: 4,
|
|
amount: 32545,
|
|
status: 'paid',
|
|
date: '2023-06-01',
|
|
},
|
|
];
|
|
|
|
export const revenue: Revenue[] = [
|
|
{ month: 'Jan', revenue: 2000 },
|
|
{ month: 'Feb', revenue: 1800 },
|
|
{ month: 'Mar', revenue: 2200 },
|
|
{ month: 'Apr', revenue: 2500 },
|
|
{ month: 'May', revenue: 2300 },
|
|
{ month: 'Jun', revenue: 3200 },
|
|
{ month: 'Jul', revenue: 3500 },
|
|
{ month: 'Aug', revenue: 3700 },
|
|
{ month: 'Sep', revenue: 2500 },
|
|
{ month: 'Oct', revenue: 2800 },
|
|
{ month: 'Nov', revenue: 3000 },
|
|
{ month: 'Dec', revenue: 4800 },
|
|
];
|