Skip to content

Instantly share code, notes, and snippets.

@moduscreate
Created May 7, 2013 14:19
Show Gist options
  • Save moduscreate/5532905 to your computer and use it in GitHub Desktop.
Save moduscreate/5532905 to your computer and use it in GitHub Desktop.
/*
This file is generated and updated by Sencha Cmd. You can edit this file as
needed for your application, but these edits will have to be merged by
Sencha Cmd when it performs code generation tasks such as generating new
models, controllers or views and when running "sencha app upgrade".
Ideally changes to this file would be limited and most work would be done
in other places (such as Controllers). If Sencha Cmd cannot merge your
changes and its generated code, it will produce a "merge conflict" that you
will need to resolve manually.
*/
// DO NOT DELETE - this directive is required for Sencha Cmd packages to work.
//@require @packageOverrides
//<debug>
Ext.Loader.setPath({
<<<<<<< Generated
'Ext': 'touch/src',
=======
<<<<<<< Generated
'Ext': '../../touch/touch2/src',
>>>>>>> Custom
'tt': 'app'
=======
'Ext' : 'touch/src',
'tt' : 'app'
>>>>>>> Custom
});
//</debug>
Ext.application({
name : 'tt',
requires : [
'Ext.MessageBox',
'Ext.util.JSONP'
],
<<<<<<< Generated
models:[
'MovieResult',
'Url'
],
views: [
'AbstractCarousel',
'Main',
'TrailerSummary',
'TrailersCarousel',
'YoutubeCarousel',
'phone.Trailer',
'phone.TrailerSummary',
'tablet.Trailer',
'tablet.TrailerSummary'
],
stores: [
'MovieResults',
'Urls'
],
controllers: [
'Main',
'Trailer',
'TrailerSummary',
'TrailersCarousel',
'phone.Trailer',
'phone.TrailerSummary',
'tablet.Trailer',
'tablet.TrailerSummary'
],
=======
<<<<<<< Generated
>>>>>>> Custom
icon: {
'57': 'resources/icons/Icon.png',
'72': 'resources/icons/Icon~ipad.png',
'114': 'resources/icons/[email protected]',
'144': 'resources/icons/[email protected]'
=======
controllers : [
'Main',
'TrailersCarousel'
],
profiles : [
'Phone',
'Tablet'
],
icon : {
'57' : 'resources/icons/Icon.png',
'72' : 'resources/icons/Icon~ipad.png',
'114' : 'resources/icons/[email protected]',
'144' : 'resources/icons/[email protected]'
>>>>>>> Custom
},
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();
this.PROXY_URL = 'http://tt.moduscreate.com/?uri=';
// this.PROXY_URL = 'http://localhost:9090/?uri=';
this.profileName = this.getCurrentProfile().getName();
// console.log(this.getCurrentProfile().getName())
},
onUpdated : function() {
Ext.Msg.confirm(
"Application Update",
"This application has just successfully been updated to the latest version. Reload now?",
function() {
window.location.reload();
}
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment