-
Notifications
You must be signed in to change notification settings - Fork 1
/
app.js
120 lines (107 loc) · 3.67 KB
/
app.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
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
/*
Author : Nataraj Boina
*/
Ext.application({
name: 'EventReminder',
requires : [
'Ext.MessageBox', 'Ext.field.DatePicker', 'Ext.dataview.List', 'EventReminder.view.Recurrence', 'EventReminder.view.People', 'EventReminder.view.Event'
],
views: [
'Main', 'Upcoming', 'Past', 'NewEvent', 'People', 'EditEvent', 'Event', 'Recurrence', 'Category', 'Activity'
],
controllers: [
'Main', 'Upcoming', 'Past', 'NewEvent', 'Strings', 'People', 'DatabaseController', 'EditEvent', 'DateFilter', 'Category', 'Event', 'Recurrence', 'PriorityCoder', 'Activity'
],
models: [
'Event', 'Person', 'Category', 'CategoryOptions', 'Recurrence', 'Activity', 'Dnd'
],
stores: [
'Upcoming', 'NewEventPerson', 'AdhocPeople', 'Category', 'CategoryOptions', 'Recurrence', 'Activity', 'Dnd'
],
icon: {
'57': 'resources/icons/Icon.png',
'72': 'resources/icons/Icon~ipad.png',
'114': 'resources/icons/Icon@2x.png',
'144': 'resources/icons/Icon~ipad@2x.png'
},
isIconPrecomposed: true,
startupImage: {
'320x460': 'resources/startup/320x460.jpg',
'640x920': 'resources/startup/640x920.png',
'768x1004': 'resources/startup/768x1004.png',
'748x1024': 'resources/startup/748x1024.png',
'1536x2008': 'resources/startup/1536x2008.png',
'1496x2048': 'resources/startup/1496x2048.png'
},
launch: function() {
// Destroy the #appLoadingIndicator element
Ext.fly('appLoadingIndicator').destroy();
/*var titleBar = {
xtype: 'titlebar',
title: 'Event Reminder',
docked: 'top'
};
var bottomBar = {
xtype: 'titlebar',
docked: 'bottom'
};
*/
/*
//Creating objects for some views
var EventReminderMain = Ext.create('EventReminder.view.Main');
var Upcoming = Ext.create('EventReminder.view.Upcoming');
var Past = Ext.create('EventReminder.view.Past');
var newEvent = Ext.create('EventReminder.view.NewEvent');
var EditEvent = Ext.create('EventReminder.view.EditEvent');
var peoplePopup = Ext.create('EventReminder.view.People');
var category = Ext.create('EventReminder.view.Category');
var event = Ext.create('EventReminder.view.Event');
var recurrence = Ext.create('EventReminder.view.Recurrence');
var activity = Ext.create('EventReminder.view.Activity');
*/
//Creating objects for some views
var EventReminderMain = {
xtype: 'main'
};
var Upcoming = {
xtype: 'upcoming'
};
var Past = {
xtype: 'past'
};
var newEvent = {
xtype: 'newEvent'
};
var EditEvent = {
xtype: 'editevent'
};
var peoplePopup = {
xtype: 'people'
};
var category = {
xtype: 'category'
};
var event = {
xtype: 'event'
};
var recurrence = {
xtype: 'recurrence'
};
var activity = {
xtype: 'activity'
};
//Initialize the main view
Ext.Viewport.add([EventReminderMain, Upcoming, Past, newEvent, EditEvent, peoplePopup, category, event, recurrence, activity]);
},
onUpdated: function() {
Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
function(buttonId) {
if (buttonId === 'yes') {
window.location.reload();
}
}
);
}
});