PDA

View Full Version : Behind a user login



flashgordon
8 Sep 2011, 9:09 AM
How do I create a jsb3 file for a url behind a user login??

pef
12 Sep 2011, 7:30 AM
+1 : any idea on this ?

@flashgordon : did you find a solution (or a workaround) since your post ?

flashgordon
12 Sep 2011, 7:41 AM
I did not find a solution yet. In addition, my work insists on having a separate repository for 3rd party assets so the ext library is not even in the actual location that the manifest states. It is via apache, but not locally. So I think I have a problem there as well. I'll have to experiment a little today.

pef
12 Sep 2011, 7:57 AM
I may have an idea but it's far from ideal : it's dirty, imprecise and not fully scriptable.

As a test, I put this code at the end of my Ext.Application.launch() :


for (var i = 0; i < Ext.Loader.history.length; i++){ console.log(Ext.Loader.history[i]);}

Of course, it only captures what's been loaded until after launch.

To really capture everything I need, I will have to :
- manually play with the app until I "visited" everything
- put this code somewhere in a controller so that I can trigger it when I'm finished

Currently, I'm trying to find a way to transform this output into a suitable jsb3 file.

But the thing is, I'm not even sure it's the right solution...
... well, actually, I'm pretty sure it's *not* :-(

HyGy
13 Oct 2011, 12:58 AM
How about this story? Was successful to find a good solution?

bas_tzx
31 Oct 2011, 8:06 AM
Just use a static HTML file with the included JS files and use this file to generate the JSB3 file.


<script src="js/ext/4.0.7/ext-debug.js"></script>
<script src="js/app/app.js"></script>


You can call it either thru your webserver or directly from the file system:


sencha create jsb -a http://localhost/app/static.html -p app.jsb3
or
sencha create jsb -a static.html -p app.jsb3

wemerson.januario
2 May 2012, 9:16 PM
disable user login while deployment or create a static html page