106 lines
2.3 KiB
TypeScript
106 lines
2.3 KiB
TypeScript
export type HomeItem = {
|
|
id: number;
|
|
title: string;
|
|
type: string;
|
|
text: string;
|
|
author: string;
|
|
authorAvatar: string;
|
|
image: string;
|
|
};
|
|
|
|
export const homeItems: HomeItem[] = [
|
|
{
|
|
id: 1,
|
|
title: 'Exploring Maui',
|
|
type: 'Blog',
|
|
text: 'We just got back from a trip to Maui, and we had a great time...',
|
|
author: 'Max Lynch',
|
|
authorAvatar: '/img/max.jpg',
|
|
image: '/img/c1.avif',
|
|
},
|
|
{
|
|
id: 2,
|
|
title: 'Arctic Adventures',
|
|
type: 'Blog',
|
|
text: 'Last month we took a trek to the Arctic Circle. The isolation was just what we needed after...',
|
|
author: 'Nathan Chapman',
|
|
authorAvatar: '/img/nathan.jpg',
|
|
image: '/img/c2.avif',
|
|
},
|
|
{
|
|
id: 3,
|
|
title: 'Frolicking in the Faroe Islands',
|
|
type: 'Blog',
|
|
text: 'The Faroe Islands are a North Atlantic archipelago located 320 kilometres (200 mi) north-northwest of Scotland...',
|
|
author: 'Leo Giovanetti',
|
|
authorAvatar: '/img/leo.jpg',
|
|
image: '/img/c3.avif',
|
|
},
|
|
];
|
|
|
|
export type NotificationItem = {
|
|
id: number;
|
|
title: string;
|
|
when: string;
|
|
};
|
|
|
|
export const notifications: NotificationItem[] = [
|
|
{ id: 1, title: 'New friend request', when: '6 hr' },
|
|
{ id: 2, title: 'Please change your password', when: '1 day' },
|
|
{ id: 3, title: 'You have a new message', when: '2 weeks' },
|
|
{ id: 4, title: 'Welcome to the app!', when: '1 month' },
|
|
];
|
|
|
|
export type ListItem = {
|
|
name: string;
|
|
done?: boolean;
|
|
};
|
|
|
|
export type TodoListItem = {
|
|
name: string;
|
|
id: string;
|
|
items?: ListItem[];
|
|
};
|
|
|
|
// Some fake lists
|
|
export const lists: TodoListItem[] = [
|
|
{
|
|
name: 'Groceries',
|
|
id: '01HRCYTYED31N83MJ0WK97WC02',
|
|
items: [
|
|
{ name: 'Apples' },
|
|
{ name: 'Bananas' },
|
|
{ name: 'Milk' },
|
|
{ name: 'Ice Cream' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Hardware Store',
|
|
id: '01HRCYV2KPNJQJ43Y7X526BHVX',
|
|
items: [
|
|
{ name: 'Circular Saw' },
|
|
{ name: 'Tack Cloth' },
|
|
{ name: 'Drywall' },
|
|
{ name: 'Router' },
|
|
],
|
|
},
|
|
{
|
|
name: 'Work',
|
|
id: '01HRCYV6C3YWAJRF2ZE7AZ17K7',
|
|
items: [{ name: 'TPS Report' }, { name: 'Set up email' }],
|
|
},
|
|
{
|
|
name: 'Reminders',
|
|
id: '01HRCYVADRPCM5SYV5BH98C7HS',
|
|
items: [{ name: 'Get car inspection', done: true }],
|
|
},
|
|
];
|
|
|
|
export type Settings = {
|
|
enableNotifications: boolean;
|
|
};
|
|
|
|
export const settings: Settings = {
|
|
enableNotifications: true,
|
|
};
|