mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-25 13:46:10 +00:00
152 lines
2.9 KiB
JavaScript
152 lines
2.9 KiB
JavaScript
// This file contains dummy data that you'll be replacing with real data in Chapter 7.
|
|
const users = [
|
|
{
|
|
id: 1,
|
|
name: 'User',
|
|
email: 'user@nextmail.com',
|
|
password: '123456',
|
|
},
|
|
];
|
|
|
|
const customers = [
|
|
{
|
|
id: '93980f8c-a5e4-484c-a469-2d12ca8fdde3',
|
|
name: 'Ada Lovelace',
|
|
email: 'ada@lovelace.com',
|
|
image_url: '/customers/ada-lovelace.png',
|
|
},
|
|
{
|
|
id: 'e53120f8-0301-437b-924a-0288f4ec6040',
|
|
name: 'Grace Hopper',
|
|
email: 'grace@hopper.com',
|
|
image_url: '/customers/grace-hopper.png',
|
|
},
|
|
{
|
|
id: '030fab4c-18d7-4ed2-814c-4171cc67bca8',
|
|
name: 'Hedy Lammar',
|
|
email: 'hedy@lammar.com',
|
|
image_url: '/customers/hedy-lammar.png',
|
|
},
|
|
{
|
|
id: '3958dc9e-737f-4377-85e9-fec4b6a6442a',
|
|
name: 'Margaret Hamilton',
|
|
email: 'margaret@hamilton.com',
|
|
image_url: '/customers/margaret-hamilton.png',
|
|
},
|
|
];
|
|
|
|
const invoices = [
|
|
{
|
|
customer_id: customers[0].id,
|
|
amount: 15795,
|
|
status: 'pending',
|
|
date: '2022-12-06',
|
|
},
|
|
{
|
|
customer_id: customers[1].id,
|
|
amount: 20348,
|
|
status: 'pending',
|
|
date: '2022-11-14',
|
|
},
|
|
{
|
|
customer_id: customers[2].id,
|
|
amount: 3040,
|
|
status: 'paid',
|
|
date: '2022-10-29',
|
|
},
|
|
{
|
|
customer_id: customers[3].id,
|
|
amount: 44800,
|
|
status: 'paid',
|
|
date: '2023-09-10',
|
|
},
|
|
{
|
|
customer_id: customers[0].id,
|
|
amount: 34577,
|
|
status: 'pending',
|
|
date: '2023-08-05',
|
|
},
|
|
{
|
|
customer_id: customers[1].id,
|
|
amount: 54246,
|
|
status: 'pending',
|
|
date: '2023-07-16',
|
|
},
|
|
{
|
|
customer_id: customers[2].id,
|
|
amount: 8945,
|
|
status: 'pending',
|
|
date: '2023-06-27',
|
|
},
|
|
{
|
|
customer_id: customers[3].id,
|
|
amount: 32545,
|
|
status: 'paid',
|
|
date: '2023-06-09',
|
|
},
|
|
{
|
|
customer_id: customers[2].id,
|
|
amount: 1250,
|
|
status: 'paid',
|
|
date: '2023-06-17',
|
|
},
|
|
{
|
|
customer_id: customers[0].id,
|
|
amount: 8945,
|
|
status: 'paid',
|
|
date: '2023-06-07',
|
|
},
|
|
{
|
|
customer_id: customers[1].id,
|
|
amount: 500,
|
|
status: 'paid',
|
|
date: '2023-08-19',
|
|
},
|
|
{
|
|
customer_id: customers[2].id,
|
|
amount: 8945,
|
|
status: 'paid',
|
|
date: '2023-06-03',
|
|
},
|
|
{
|
|
customer_id: customers[2].id,
|
|
amount: 8945,
|
|
status: 'paid',
|
|
date: '2023-06-18',
|
|
},
|
|
{
|
|
customer_id: customers[3].id,
|
|
amount: 8945,
|
|
status: 'paid',
|
|
date: '2023-10-04',
|
|
},
|
|
{
|
|
customer_id: customers[2].id,
|
|
amount: 1000,
|
|
status: 'paid',
|
|
date: '2022-06-05',
|
|
},
|
|
];
|
|
|
|
const 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 },
|
|
];
|
|
|
|
module.exports = {
|
|
users,
|
|
customers,
|
|
invoices,
|
|
revenue,
|
|
};
|