Created
September 6, 2011 10:44
-
-
Save kwk/1197242 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Ext.require("Ext.app.Application"); | |
Ext.application({ | |
name: 'MyApp', | |
launch: function() { | |
Ext.create('Ext.container.Viewport', { | |
items: { | |
html: 'My App' | |
} | |
}); | |
} | |
}); |
This file contains hidden or 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
Failed to load resource: the server responded with a status of 404 (Not Found) | |
Ext-more.js:788Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.Application | |
Ext-more.js:794 | |
Object | |
Ext-more.js:800console.trace() | |
Ext.apply.logExt-more.js:800 | |
Ext.Error.Ext.extend.statics.raiseError.js:183 | |
Loader.Ext.Loader.requireLoader.js:700 | |
(anonymous function)Function.js:159 | |
(anonymous function)app.js:1 | |
Error.js:190Uncaught Ext.Error: Ext.Loader is not enabled, so dependencies cannot be resolved dynamically. Missing required class: Ext.Application |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en_US"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title></title> | |
<style type="text/css"> | |
.sprite { | |
-one-sprite-selector-for-group: sprite; | |
/* The below statement will run the sprite through some post-processing tools */ | |
/*-one-image-postprocess: pngquant(256) pngcrush(-rem alla) optipng;*/ | |
} | |
</style> | |
</head> | |
<body> | |
<script> | |
one.include('Ext:../resources/css/ext-all.css'); | |
one.include('extsdk:Foundation'); | |
one.include('extsdk:Extras'); | |
one.include('extsdk:DOM'); | |
one.include('Ext:app/Application.js'); | |
</script> | |
<script> | |
/* Set loader to false when switching to production build */ | |
Ext.Loader.setConfig({ | |
enabled: false, | |
paths: { | |
Ext: '3rdparty/ExtJS/src' | |
} | |
}); | |
Ext.BLANK_IMAGE_URL = one.getStaticUrl('3rdparty/ExtJS/resources/themes/images/access/tree/s.gif'); | |
</script> | |
<script src="js/YourApp/app.js"></script> | |
</body> | |
</html> |
This file contains hidden or 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
kleine@mrburns:~/public_html/webapp-skel$ make development | |
buildDevelopment \ | |
--cssimports \ | |
--root=http-pub \ | |
--label Ext:extJs4Dir=http-pub/3rdparty/ExtJS/src --label extsdk=http-pub/3rdparty/ExtJS/build/sdk.jsb3 \ | |
http-pub/index.html.template | |
0.008 secs: registerLabelsAsCustomProtocols | |
0.004 secs: loadAssets | |
0.000 secs: moveAssets | |
resolvers.extJS4Dir: Skipping core/Element.js (not found) | |
resolvers.extJS4Dir: Skipping core/Element.js (not found) | |
resolvers.extJS4Dir: Skipping core/Element.js (not found) | |
2.075 secs: populate | |
0.011 secs: injectOneBootstrapper | |
0.102 secs: flattenStaticIncludes | |
0.406 secs: removeAssets | |
0.000 secs: inlineRelations | |
0.003 secs: convertHtmlStylesToInlineCssImports | |
0.000 secs: inlineRelations | |
0.004 secs: prettyPrintAssets | |
0.000 secs: prettyPrintAssets | |
0.011 secs: runJavaScriptConditionalBlocks | |
0.002 secs: prettyPrintAssets | |
0.012 secs: writeAssetsToDisc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment