notifications.ts
5.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
import { sub } from 'date-fns'
const notifications = [{
id: 1,
unread: true,
sender: {
name: 'Jordan Brown',
email: 'jordan.brown@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=2'
}
},
body: 'sent you a message',
date: sub(new Date(), { minutes: 7 }).toISOString()
}, {
id: 2,
sender: {
name: 'Lindsay Walton'
},
body: 'subscribed to your email list',
date: sub(new Date(), { hours: 1 }).toISOString()
}, {
id: 3,
unread: true,
sender: {
name: 'Taylor Green',
email: 'taylor.green@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=3'
}
},
body: 'sent you a message',
date: sub(new Date(), { hours: 3 }).toISOString()
}, {
id: 4,
sender: {
name: 'Courtney Henry',
avatar: {
src: 'https://i.pravatar.cc/128?u=4'
}
},
body: 'added you to a project',
date: sub(new Date(), { hours: 3 }).toISOString()
}, {
id: 5,
sender: {
name: 'Tom Cook',
avatar: {
src: 'https://i.pravatar.cc/128?u=5'
}
},
body: 'abandonned cart',
date: sub(new Date(), { hours: 7 }).toISOString()
}, {
id: 6,
sender: {
name: 'Casey Thomas',
avatar: {
src: 'https://i.pravatar.cc/128?u=6'
}
},
body: 'purchased your product',
date: sub(new Date(), { days: 1, hours: 3 }).toISOString()
}, {
id: 7,
unread: true,
sender: {
name: 'Kelly Wilson',
email: 'kelly.wilson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=8'
}
},
body: 'sent you a message',
date: sub(new Date(), { days: 2 }).toISOString()
}, {
id: 8,
sender: {
name: 'Jamie Johnson',
email: 'jamie.johnson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=9'
}
},
body: 'requested a refund',
date: sub(new Date(), { days: 5, hours: 4 }).toISOString()
}, {
id: 9,
unread: true,
sender: {
name: 'Morgan Anderson',
email: 'morgan.anderson@example.com'
},
body: 'sent you a message',
date: sub(new Date(), { days: 6 }).toISOString()
}, {
id: 10,
sender: {
name: 'Drew Moore'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 6 }).toISOString()
}, {
id: 11,
sender: {
name: 'Riley Davis'
},
body: 'abandonned cart',
date: sub(new Date(), { days: 7 }).toISOString()
}, {
id: 12,
sender: {
name: 'Jordan Taylor'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 9 }).toISOString()
}, {
id: 13,
sender: {
name: 'Kelly Wilson',
email: 'kelly.wilson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=8'
}
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 10 }).toISOString()
}, {
id: 14,
sender: {
name: 'Jamie Johnson',
email: 'jamie.johnson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=9'
}
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 11 }).toISOString()
}, {
id: 15,
sender: {
name: 'Morgan Anderson'
},
body: 'purchased your product',
date: sub(new Date(), { days: 12 }).toISOString()
}, {
id: 16,
sender: {
name: 'Drew Moore',
avatar: {
src: 'https://i.pravatar.cc/128?u=16'
}
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 13 }).toISOString()
}, {
id: 17,
sender: {
name: 'Riley Davis'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 14 }).toISOString()
}, {
id: 18,
sender: {
name: 'Jordan Taylor'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 15 }).toISOString()
}, {
id: 19,
sender: {
name: 'Kelly Wilson',
email: 'kelly.wilson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=8'
}
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 16 }).toISOString()
}, {
id: 20,
sender: {
name: 'Jamie Johnson',
email: 'jamie.johnson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=9'
}
},
body: 'purchased your product',
date: sub(new Date(), { days: 17 }).toISOString()
}, {
id: 21,
sender: {
name: 'Morgan Anderson'
},
body: 'abandonned cart',
date: sub(new Date(), { days: 17 }).toISOString()
}, {
id: 22,
sender: {
name: 'Drew Moore'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 18 }).toISOString()
}, {
id: 23,
sender: {
name: 'Riley Davis'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 19 }).toISOString()
}, {
id: 24,
sender: {
name: 'Jordan Taylor',
avatar: {
src: 'https://i.pravatar.cc/128?u=24'
}
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 20 }).toISOString()
}, {
id: 25,
sender: {
name: 'Kelly Wilson',
email: 'kelly.wilson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=8'
}
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 20 }).toISOString()
}, {
id: 26,
sender: {
name: 'Jamie Johnson',
email: 'jamie.johnson@example.com',
avatar: {
src: 'https://i.pravatar.cc/128?u=9'
}
},
body: 'abandonned cart',
date: sub(new Date(), { days: 21 }).toISOString()
}, {
id: 27,
sender: {
name: 'Morgan Anderson'
},
body: 'subscribed to your email list',
date: sub(new Date(), { days: 22 }).toISOString()
}]
export default eventHandler(async () => {
return notifications
})