GitHub user kingnebby opened a pull request:
https://github.com/apache/cordova-js/pull/70
Add platform 'web server' to cordova
[CB-661](https://issues.apache.org/jira/browse/CB-6661)
My team and I are finding it very useful to have a web server set up as a
native platform. This is not just used for testing but also as a production
front end for our application. This allows the same UI across all clients of
the app and gives inspiring features to a native web server.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/CollinearGroup/cordova-js master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-js/pull/70.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #70
----
commit b8fe599281427340a73807bf19ada427f6c55575
Author: kingnebby <[email protected]>
Date: 2014-05-08T21:23:23Z
Update references in the README.md
commit bd5941fcdcf9b83a8f627fd97a4de31019625ee5
Author: kingnebby <[email protected]>
Date: 2014-05-09T22:57:24Z
Add ignore for sublime editor
commit 5e815256692130964d97a64f90135c49405dedb6
Author: kingnebby <[email protected]>
Date: 2014-05-12T20:56:57Z
Add the platform to the gruntfile to be built.
Update the readme to contain accurate information about files and locations
Add the web-server exec and platform files. They are minimal right now and
have not been tested.
commit 46dc87e777908a62fad7af1a478ebc62b8e070c9
Author: kingnebby <[email protected]>
Date: 2014-05-12T21:06:14Z
Fix the cordova.js description
commit 16f1e0ea663e15628f067d5799bcbb94bbe97839
Author: kingnebby <[email protected]>
Date: 2014-05-15T22:39:08Z
Add comment to exec.js
commit 2315f113b1780f160ba798c13ad388b34c5be698
Author: kingnebby <[email protected]>
Date: 2014-05-20T00:19:25Z
Update grunt file to take updated web_server ref. Rename folders.
commit 0de4834a0a8ea5fbab2c5d97b5ca6052d1cf3aaf
Author: kingnebby <[email protected]>
Date: 2014-05-20T19:07:41Z
Fix some old references in the README.md
Add gitignore lines to disregard sublietext project files.
commit 2b85c62d995405925237984debf6c6f17b27582d
Author: kingnebby <[email protected]>
Date: 2014-05-22T17:28:15Z
Add exec body to do a XHR request to a localhost server.
Add ability to send JSON args in the form of the request body.
Change platform description to be more accurate.
commit a7d46268244433f35b873aa5193a3e8eb3b1ec67
Author: kingnebby <[email protected]>
Date: 2014-05-22T22:35:24Z
Update the request to send all args, not just first one.
Add log statement for verifcation of server response.
commit 65f30f8ef23e4ce927e4f201213e2cafc71cad95
Author: kingnebby <[email protected]>
Date: 2014-05-23T16:31:18Z
Revert .gitignore to one previous commit.
commit 2de21bdde8ab494ba2d09f8cee0c147252a63c20
Author: kingnebby <[email protected]>
Date: 2014-05-23T23:14:08Z
q.js
Add promise library to we can be awesomely asychronous.
exec.js
Add support for asychronous XHR calls to the server. Use Q to make a
promise and resolve it with the text of the XHR response.
platform.js
Override the setItem method of localStorage since it can be easily
written as an asynchronous method. Still under development.
commit b8d8eaba3602eb9a6df131796d9ad9dd11a19207
Author: kingnebby <[email protected]>
Date: 2014-05-27T19:34:53Z
exec.js
Add feature to exec method to allow for both (a)synchronous types of
calls. Return type is a hash that accomodates either one based on the new param
isAsync.
Add error checking for potential callbacks.
platform.js
Add method override of getItem. This is a synchronous call that will
wait for a response from the server.
Make use of the new exec return type, and add some console logs for
catching when an item my not exist.
commit af9b36d1ed4af6c490f73de89b3ddb1995f74003
Author: kingnebby <[email protected]>
Date: 2014-05-27T20:03:47Z
Add window overrides in bootstrap method to ensure proper setup before use.
commit ab9f646411e05f431f1b8f993837dcd6a3c2e700
Author: kingnebby <[email protected]>
Date: 2014-05-28T20:00:16Z
exec.js
Updated then and fail calls for when the promise finishes. This is not
only proper but allows for async calls if the user uses our augmented window
APIs.
Fix a bug that was making us stringify data twice. Instead we want to
return JSON objects for calling methods to use.
platform.js
Update getItem to accept callback as part of the method signature. This
will not change existing functionality but provide a way for users to make
async calls.
commit da5e7dd52e4524068ed04c38a5a578753f5a5168
Author: kingnebby <[email protected]>
Date: 2014-05-28T21:34:21Z
Fix the bug of not calling the success/error methods as expected.
Make the return data convention to be the response text of the server.
commit 3641a97327b56f69525c1279d8f31975d8a4e5e2
Author: kingnebby <[email protected]>
Date: 2014-06-02T21:19:34Z
Merge remote-tracking branch 'upstream/master' into web_server
commit b68f20282e83067b6a1710be69a38c3dffd9ce46
Author: kingnebby <[email protected]>
Date: 2014-05-09T22:57:24Z
Add ignore for sublime editor
commit d82c13a6972f85976d22b71f4bcdea430dc27038
Author: kingnebby <[email protected]>
Date: 2014-05-12T20:56:57Z
Add the platform to the gruntfile to be built.
Update the readme to contain accurate information about files and locations
Add the web-server exec and platform files. They are minimal right now and
have not been tested.
commit 52ad934cb15987e05169897c4046ccd0b828ba39
Author: Anis Kadri <[email protected]>
Date: 2014-05-14T21:55:37Z
moving to TreeTransformer and adding a quick substitution for Android
navigator.app clobber
commit 37e743187fe62fb97b946338d88b6a7436f3496b
Author: Anis Kadri <[email protected]>
Date: 2014-05-14T22:57:24Z
updating version
commit f2596abd10c4939327ec8eac82aff793b49b923a
Author: kingnebby <[email protected]>
Date: 2014-05-15T22:39:08Z
Add comment to exec.js
commit ffa67b0a022c9f054bc7dc614c6aae5c7c283b74
Author: kingnebby <[email protected]>
Date: 2014-05-20T00:19:25Z
Update grunt file to take updated web_server ref. Rename folders.
commit a6a11c36a0044a64cdfb429ad7f266cb9aeb97d8
Author: Anis Kadri <[email protected]>
Date: 2014-05-21T01:07:53Z
updating transform for ios contacts
commit 21735854155b4141ef43a66c531a35c9747da8f1
Author: kingnebby <[email protected]>
Date: 2014-05-22T17:28:15Z
Add exec body to do a XHR request to a localhost server.
Add ability to send JSON args in the form of the request body.
Change platform description to be more accurate.
commit d71c02bad0af02083226d3a7a4d6f5a4e787393b
Author: kingnebby <[email protected]>
Date: 2014-05-22T22:35:24Z
Update the request to send all args, not just first one.
Add log statement for verifcation of server response.
commit 129955fa8f90125bfc7d8765b5962a561269ec4c
Author: Anis Kadri <[email protected]>
Date: 2014-05-23T01:22:15Z
updating transform to support bs paths
commit 7c2226bdfaaa70589d52b39470a1c1466ac780fb
Author: kingnebby <[email protected]>
Date: 2014-05-23T23:14:08Z
q.js
Add promise library to we can be awesomely asychronous.
exec.js
Add support for asychronous XHR calls to the server. Use Q to make a
promise and resolve it with the text of the XHR response.
platform.js
Override the setItem method of localStorage since it can be easily
written as an asynchronous method. Still under development.
commit 258a9cbdf73f0771dbfb915eda39bfb2060f01d4
Author: kingnebby <[email protected]>
Date: 2014-05-27T19:34:53Z
exec.js
Add feature to exec method to allow for both (a)synchronous types of
calls. Return type is a hash that accomodates either one based on the new param
isAsync.
Add error checking for potential callbacks.
platform.js
Add method override of getItem. This is a synchronous call that will
wait for a response from the server.
Make use of the new exec return type, and add some console logs for
catching when an item my not exist.
commit d32c0d8247382137ee07032528469c56c6952898
Author: kingnebby <[email protected]>
Date: 2014-05-27T20:03:47Z
Add window overrides in bootstrap method to ensure proper setup before use.
commit ee5a9a47b1674930bc2c8f71e750c39d6feadbdd
Author: kingnebby <[email protected]>
Date: 2014-05-28T20:00:16Z
exec.js
Updated then and fail calls for when the promise finishes. This is not
only proper but allows for async calls if the user uses our augmented window
APIs.
Fix a bug that was making us stringify data twice. Instead we want to
return JSON objects for calling methods to use.
platform.js
Update getItem to accept callback as part of the method signature. This
will not change existing functionality but provide a way for users to make
async calls.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---