diff --git a/docs/getting_started/installing.md b/docs/getting_started/installing.md index b488ac7..f19706e 100644 --- a/docs/getting_started/installing.md +++ b/docs/getting_started/installing.md @@ -2,13 +2,21 @@ ### Windows +* [Download ZeroBundle package](https://github.com/HelloZeroNet/ZeroBundle/releases/download/0.1.0/ZeroBundle-v0.1.0.zip) that includes Python 2.7.9 and all required library +* Unpack to any directory +* Run `zeronet.cmd` + +It downloads the latest version of ZeroNet then starts it automatically. + +#### Alternative method for Windows by installing Python + * [Install Python 2.7](https://www.python.org/ftp/python/2.7.9/python-2.7.9.msi) * [Install Python ZeroMQ](http://zeronet.io/files/windows/pyzmq-14.4.1.win32-py2.7.exe) * [Install Python Greenlet](http://zeronet.io/files/windows/greenlet-0.4.5.win32-py2.7.exe) * [Install Python Gevent](http://zeronet.io/files/windows/gevent-1.0.1.win32-py2.7.exe) * [Install Python MsgPack](http://zeronet.io/files/windows/msgpack-python-0.4.2.win32-py2.7.exe) * [Download and extract ZeroNet](https://codeload.github.com/HelloZeroNet/ZeroNet/zip/master) to any directory -* Start `start.py` +* Run `start.py` ### Linux diff --git a/example/ZeroFrame/index.html b/example/ZeroFrame/index.html index 94358e3..57d2c90 100644 --- a/example/ZeroFrame/index.html +++ b/example/ZeroFrame/index.html @@ -2,7 +2,19 @@

ZeroFrame API example

-Check your javascript console for log messages + +

Notification examples

+ + + + + +

File write example

+ + + +

Output

+ diff --git a/example/ZeroFrame/js/MySite.coffee b/example/ZeroFrame/js/MySite.coffee index 541a436..0915e61 100644 --- a/example/ZeroFrame/js/MySite.coffee +++ b/example/ZeroFrame/js/MySite.coffee @@ -8,7 +8,6 @@ class MySite extends ZeroFrame @log "mysite serverInfo response", serverInfo @cmd "siteInfo", {}, (siteInfo) => @log "mysite siteInfo response", siteInfo - @cmd "wrapperNotification", ["done", "Hello World!", 10000] -window.my_site = new MySite() \ No newline at end of file +window.my_site = new MySite() diff --git a/example/ZeroFrame/js/all.js b/example/ZeroFrame/js/all.js index c687905..ff50e4a 100644 --- a/example/ZeroFrame/js/all.js +++ b/example/ZeroFrame/js/all.js @@ -1,6 +1,6 @@ -/* ---- data/1PkBs1yrWupYbugp4NU7K6enMqF4JWwDqJ/js/lib/ZeroFrame.coffee ---- */ +/* ---- data/1QWU6APGTFRynSmNA53qgCaVAxpVA9nYa/js/lib/ZeroFrame.coffee ---- */ (function() { @@ -114,14 +114,14 @@ }).call(this); -/* ---- data/1PkBs1yrWupYbugp4NU7K6enMqF4JWwDqJ/js/MySite.coffee ---- */ +/* ---- data/1QWU6APGTFRynSmNA53qgCaVAxpVA9nYa/js/MySite.coffee ---- */ (function() { var MySite, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, - __hasProp = {}.hasOwnProperty, - __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; + __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, + __hasProp = {}.hasOwnProperty; MySite = (function(_super) { __extends(MySite, _super); @@ -141,12 +141,11 @@ return _this.log("mysite serverInfo response", serverInfo); }; })(this)); - this.cmd("siteInfo", {}, (function(_this) { + return this.cmd("siteInfo", {}, (function(_this) { return function(siteInfo) { return _this.log("mysite siteInfo response", siteInfo); }; })(this)); - return this.cmd("wrapperNotification", ["done", "Hello World!", 10000]); }; return MySite;