]> git.proxmox.com Git - extjs.git/blob - extjs/examples/kitchensink/modern/src/Application.js
add extjs 6.0.1 sources
[extjs.git] / extjs / examples / kitchensink / modern / src / Application.js
1 Ext.define('KitchenSink.Application', {
2 extend: 'Ext.app.Application',
3 namespace: 'KitchenSink',
4
5 requires: [
6 'KitchenSink.*'
7 ],
8
9 //sets up the icon and startup screens for when the app is added to a phone/tablet home screen
10 startupImage: {
11 '320x460': 'resources/startup/Default.jpg', // Non-retina iPhone, iPod touch, and all Android devices
12 '640x920': 'resources/startup/640x920.png', // Retina iPhone and iPod touch
13 '640x1096': 'resources/startup/640x1096.png', // iPhone 5 and iPod touch (fifth generation)
14 '768x1004': 'resources/startup/768x1004.png', // Non-retina iPad (first and second generation) in portrait orientation
15 '748x1024': 'resources/startup/748x1024.png', // Non-retina iPad (first and second generation) in landscape orientation
16 '1536x2008': 'resources/startup/1536x2008.png', // : Retina iPad (third generation) in portrait orientation
17 '1496x2048': 'resources/startup/1496x2048.png' // : Retina iPad (third generation) in landscape orientation
18 },
19
20 isIconPrecomposed: false,
21 icon: {
22 57: 'resources/icons/icon.png',
23 72: 'resources/icons/icon@72.png',
24 114: 'resources/icons/icon@2x.png',
25 144: 'resources/icons/icon@144.png'
26 },
27
28 //loads app/store/Demos.js, which contains the tree data for our main navigation NestedList
29 stores: ['Demos', 'USD2EUR', 'OrderItems', 'StockPrice', 'List', 'Pie', 'Speakers'],
30
31 //the Kitchen Sink has Phone and Tablet modes, which rearrange the screen based on the type
32 //of device detected
33 profiles: ['KitchenSink.profile.Tablet', 'KitchenSink.profile.Phone'],
34
35 init: function() {
36 var profile = location.href.match(/profile=([\w\-]+)/),
37 locale = location.href.match(/locale=([\w\-]+)/),
38 m;
39
40 profile = (profile && profile[1]) || 'modern-neptune';
41 locale = locale && locale[1] || 'en';
42
43 m = profile.match(/^([\w\-]+)-(?:he)$/);
44 KitchenSink.profileName = m ? m[1] : profile;
45 KitchenSink.locale = locale;
46 },
47
48 launch: function() {
49 Ext.create('KitchenSink.store.Speakers', { id: 'Speakers' });
50 KitchenSink.util.Proxy.process('data/feed.js');
51 }
52 });