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
| Ext.define('Ext.calendar.data.Events', {
|
| statics: {
| getData: function() {
| var today = Ext.Date.clearTime(new Date()),
| makeDate = function(d, h, m, s) {
| d = d * 86400;
| h = (h || 0) * 3600;
| m = (m || 0) * 60;
| s = (s || 0);
| return Ext.Date.add(today, Ext.Date.SECOND, d + h + m + s);
| };
|
| return {
| "evts": [{
| "id": 1001,
| "cid": 1,
| "title": "Vacation",
| "start": makeDate(-20, 10),
| "end": makeDate(-10, 15),
| "notes": "Have fun"
| }, {
| "id": 1002,
| "cid": 2,
| "title": "Lunch with Matt",
| "start": makeDate(0, 11, 30),
| "end": makeDate(0, 13),
| "loc": "Chuy's!",
| "url": "http://chuys.com",
| "notes": "Order the queso",
| "rem": "15"
| }, {
| "id": 1003,
| "cid": 3,
| "title": "Project due",
| "start": makeDate(0, 15),
| "end": makeDate(0, 15)
| }, {
| "id": 1004,
| "cid": 1,
| "title": "Sarah's birthday",
| "start": today,
| "end": today,
| "notes": "Need to get a gift",
| "ad": true
| }, {
| "id": 1005,
| "cid": 2,
| "title": "A long one...",
| "start": makeDate(-12),
| "end": makeDate(10, 0, 0, -1),
| "ad": true
| }, {
| "id": 1006,
| "cid": 3,
| "title": "School holiday",
| "start": makeDate(5),
| "end": makeDate(7, 0, 0, -1),
| "ad": true,
| "rem": "2880"
| }, {
| "id": 1007,
| "cid": 1,
| "title": "Haircut",
| "start": makeDate(0, 9),
| "end": makeDate(0, 9, 30),
| "notes": "Get cash on the way"
| }, {
| "id": 1008,
| "cid": 3,
| "title": "An old event",
| "start": makeDate(-30),
| "end": makeDate(-28),
| "ad": true
| }, {
| "id": 1009,
| "cid": 2,
| "title": "Board meeting",
| "start": makeDate(-2, 13),
| "end": makeDate(-2, 18),
| "loc": "ABC Inc.",
| "rem": "60"
| }, {
| "id": 1010,
| "cid": 3,
| "title": "Jenny's final exams",
| "start": makeDate(-2),
| "end": makeDate(3, 0, 0, -1),
| "ad": true
| }, {
| "id": 1011,
| "cid": 1,
| "title": "Movie night",
| "start": makeDate(2, 19),
| "end": makeDate(2, 23),
| "notes": "Don't forget the tickets!",
| "rem": "60"
| }]
| }
| }
| }
| });
|
|