forked from mikemimik/flutter-calendar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmock-data.js
38 lines (35 loc) · 790 Bytes
/
mock-data.js
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
'use strict';
const mockData = [];
for (let i = 1; i <= 16; i++) {
if (i <= 5) {
mockData.push({
id: i,
title: `Event ${i}`,
url: `/events/${i}`,
date_start: '2016-12-25 12:00:00.000',
date_end: '2016-12-25 13:00:00.000',
details: 'anything'
});
} else if (i <= 13) {
mockData.push({
id: i,
title: `Event ${i}`,
url: `/events/${i}`,
date_start: '2016-12-21 12:00:00.000',
date_end: '2016-12-21 13:00:00.000',
details: {
foo: 'bar'
}
});
} else {
mockData.push({
id: i,
title: `Event ${i}`,
url: `/events/${i}`,
date_start: '2016-12-23 12:00:00.000',
date_end: '2016-12-23 13:00:00.000',
details: 10
})
}
}
module.exports = mockData;