Created
February 19, 2013 09:51
-
-
Save cburgdorf/4984503 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//<debug> | |
Ext.Loader.setPath({ | |
'Ext':'../sencha/src', | |
'Ext.ux': 'libs/ux', | |
'CouchCommerce':'app' | |
}); | |
Ext.Loader.setConfig('disableCaching', false); | |
//</debug> | |
Ext.require([ | |
'CouchCommerce.Config', | |
'CouchCommerce.helper.SenchaLanguageOverwrites', | |
'CouchCommerce.helper.TemplateSnippets', | |
'CouchCommerce.helper.Formatter', | |
'CouchCommerce.helper.CTemplate', | |
'CouchCommerce.helper.Fixes', | |
'CouchCommerce.infrastructure.SharedState', | |
'CouchCommerce.infrastructure.ViewStore', | |
'CouchCommerce.infrastructure.ViewCache', | |
'CouchCommerce.services.NavigationService', | |
'CouchCommerce.services.UIService' | |
]); | |
//we need to have those two as early as possible in order to have | |
//them available on Controller.init() | |
CouchCommerce.SharedState = Ext.create('CouchCommerce.infrastructure.SharedState'); | |
CouchCommerce.ViewStore = Ext.create('CouchCommerce.infrastructure.ViewStore'); | |
CouchCommerce.ViewCache = Ext.create('CouchCommerce.infrastructure.ViewCache'); | |
CouchCommerce.NavigationService = Ext.create('CouchCommerce.services.NavigationService'); | |
CouchCommerce.UIService = Ext.create('CouchCommerce.services.UIService'); | |
//that's a temporally fix for the new checkout! | |
Ext.create('CouchCommerce.helper.Fixes').fixupPaymentOptions(); | |
Ext.application({ | |
name:'CouchCommerce', | |
profiles:['Tablet', 'Phone'], | |
stores:['Categories', 'Quote'], | |
models:['QuoteItem'], | |
phoneStartupScreen:'resources/loading/Default.png', | |
tabletStartupScreen:'resources/loading/Default~ipad.png', | |
icon:{ | |
57:'resources/icons/icon.png', | |
72:'resources/icons/icon-72.png', | |
114:'resources/icons/icon-114.png' | |
}, | |
launch: function() { | |
Ext.Viewport.setPreventZooming(true); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment