-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
53 lines (42 loc) · 1.74 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
Ext.Loader.setPath({
'Ext': 'sdk/src'
});
/**
* Ext.application is the heart of your app. It sets the application name, can specify the icon and startup images to
* use when your app is added to the home screen, and sets up your application's dependencies - usually the models,
* views and controllers that your app uses.
*/
Ext.application({
name: 'Kitchensink',
requires: ['Ext.data.Store'],
//sets up the icon and startup screens for when the app is added to a phone/tablet home screen
glossOnIcon: false,
icon: {
57: 'resources/icons/icon.png',
72: 'resources/icons/[email protected]',
114: 'resources/icons/[email protected]',
144: 'resources/icons/[email protected]'
},
phoneStartupScreen: 'resources/loading/Homescreen.jpg',
tabletStartupScreen: 'resources/loading/Homescreen~ipad.jpg',
//loads the views used by the app from the app/view folder
views: [
//component demos
'NestedList', 'List', 'SourceOverlay', 'Buttons',
'Forms', 'Icons', 'BottomTabs',
'Map', 'Overlays', 'Tabs','Toolbars',
'Video', 'Audio', 'Carousel', 'TouchEvents',
//data and utility demos
'JSONP', 'YQL', 'Ajax', 'NestedLoading',
//card transition animation demos
'SlideLeft', 'SlideRight', 'SlideUp', 'SlideDown',
'CoverLeft', 'CoverRight', 'CoverUp', 'CoverDown',
'RevealLeft', 'RevealRight', 'RevealUp', 'RevealDown',
'Pop', 'Fade', 'Flip','Cube'
],
//loads app/store/Demos.js, which contains the tree data for our main navigation NestedList
stores: ['Demos'],
//the Kitchen Sink has Phone and Tablet modes, which rearrange the screen based on the type
//of device detected
profiles: ['Tablet', 'Phone']
});