Index: work/remote/web/LICENSE =================================================================== --- work/remote/web/LICENSE (revision 5526) +++ work/remote/web/LICENSE (revision 5527) @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2016 Kalman Keri - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2016 Kalman Keri + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. Property changes on: work/remote/web/LICENSE ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/Makefile =================================================================== --- work/remote/web/Makefile (revision 5526) +++ work/remote/web/Makefile (revision 5527) @@ -1,7 +1,7 @@ - -all: testclient - -testclient: phony - cd testclient && npm run build - -phony: + +all: testclient + +testclient: phony + cd testclient && npm run build + +phony: Property changes on: work/remote/web/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/README =================================================================== --- work/remote/web/README (revision 5526) +++ work/remote/web/README (revision 5527) @@ -1,39 +1,39 @@ - -Prerequisites -------------- - -Install node.js v4.x.x or higher (v6.x.x is recommended). -Install the npm package manager. - -Make sure that node.js can be invoked by the name 'node'. - -On Debian-based distributions you can install the `nodejs-legacy` package -that symlinks `nodejs` to `node`. - -Run the ./configure script. It is totally different from a usual configure -script but its role is similar: prepares for build. - - -Running the testserver ----------------------- - -make -cd testserver -npm start - -Open your browser and enter the following url: - -http://localhost:3000/test - - -Drawing Test - -Currently test files for the remote protocol (the ones with .remote -extension) are loaded from ./testdata. gzipped files are not supported. - -To specify another test file for the drawing test you should edit -testclient/draw.js. Change the following function call near line 7: - -drawRemoteFile("../testdata/netlist.pcb.remote"); - -For more info read testserver/README and testclient/README. + +Prerequisites +------------- + +Install node.js v4.x.x or higher (v6.x.x is recommended). +Install the npm package manager. + +Make sure that node.js can be invoked by the name 'node'. + +On Debian-based distributions you can install the `nodejs-legacy` package +that symlinks `nodejs` to `node`. + +Run the ./configure script. It is totally different from a usual configure +script but its role is similar: prepares for build. + + +Running the testserver +---------------------- + +make +cd testserver +npm start + +Open your browser and enter the following url: + +http://localhost:3000/test + + +Drawing Test + +Currently test files for the remote protocol (the ones with .remote +extension) are loaded from ./testdata. gzipped files are not supported. + +To specify another test file for the drawing test you should edit +testclient/draw.js. Change the following function call near line 7: + +drawRemoteFile("../testdata/netlist.pcb.remote"); + +For more info read testserver/README and testclient/README. Property changes on: work/remote/web/README ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/protocol/LICENSE =================================================================== --- work/remote/web/protocol/LICENSE (revision 5526) +++ work/remote/web/protocol/LICENSE (revision 5527) @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2016 Kalman Keri - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2016 Kalman Keri + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. Property changes on: work/remote/web/protocol/LICENSE ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/protocol/README =================================================================== --- work/remote/web/protocol/README (revision 5526) +++ work/remote/web/protocol/README (revision 5527) @@ -1,32 +1,32 @@ - -Running unit tests manually ---------------------------- - -Preconditions: -- node.js v4.x.x or higher (v6.x.x is recommended) -- npm package manager - -On Debian-based distributions you may want to install the `nodejs-legacy` -package that symlinks `nodejs` to its more common name `node`. - -The next step is the installation of package dependencies. -Go to the protocol directory and execute the following command: - -npm install - -This will download and install all normal and dev dependencies as they are -defined in package.json. -All dependencies are installed into the node_modules subdirectory. -After successful installation you can run unit tests by typing: - -npm test - -This will perform some checking on the source code and if everything is ok -test/test.js will be run. - - -Manual clean up ---------------- - -The node_modules subdirectory can be deleted manually. -No other artifacts are created. + +Running unit tests manually +--------------------------- + +Preconditions: +- node.js v4.x.x or higher (v6.x.x is recommended) +- npm package manager + +On Debian-based distributions you may want to install the `nodejs-legacy` +package that symlinks `nodejs` to its more common name `node`. + +The next step is the installation of package dependencies. +Go to the protocol directory and execute the following command: + +npm install + +This will download and install all normal and dev dependencies as they are +defined in package.json. +All dependencies are installed into the node_modules subdirectory. +After successful installation you can run unit tests by typing: + +npm test + +This will perform some checking on the source code and if everything is ok +test/test.js will be run. + + +Manual clean up +--------------- + +The node_modules subdirectory can be deleted manually. +No other artifacts are created. Property changes on: work/remote/web/protocol/README ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/protocol/package.json =================================================================== --- work/remote/web/protocol/package.json (revision 5526) +++ work/remote/web/protocol/package.json (revision 5527) @@ -18,6 +18,6 @@ }, "scripts": { "build": "browserify protocol.js > bundle.js", - "test": "jshint protocol.js test/test.js && node ./test/test.js" + "test": "jshint protocol.js test/test.js && nodejs ./test/test.js" } } Index: work/remote/web/testclient/README =================================================================== --- work/remote/web/testclient/README (revision 5526) +++ work/remote/web/testclient/README (revision 5527) @@ -1,37 +1,37 @@ -testclient -========== - -Client side files for testing the remote protocol. -These files should be served by the tested webserver. - -The client is logging to the javascript console, so it's advisable to open it -by pressing Ctrl-Shift-C in the browser. - - -draw.html - this page is for canvas drawing tests. -sockets.html - websocket test. -index.html - links for all test pages. - - -Note: if you are using the node.js test server (../testserver) these files -can be found in the `/test` directory. - - -The server echo socket ----------------------- - -The client assumes that there is a websocket server listening at the -`/serverecho` route that accepts free text messages. -The client attempts to open the socket on startup. - -The user can send a message to the server echo socket by typing it into the -'message' text box and clicking the 'send' button. -Echoes are displayed in the 'response' text box. - - -The client echo socket ----------------------- - -On startup the client opens another socket named `/clientecho`. -When the server sends a message on this socket, the client will faithfully -echo it to the server. +testclient +========== + +Client side files for testing the remote protocol. +These files should be served by the tested webserver. + +The client is logging to the javascript console, so it's advisable to open it +by pressing Ctrl-Shift-C in the browser. + + +draw.html - this page is for canvas drawing tests. +sockets.html - websocket test. +index.html - links for all test pages. + + +Note: if you are using the node.js test server (../testserver) these files +can be found in the `/test` directory. + + +The server echo socket +---------------------- + +The client assumes that there is a websocket server listening at the +`/serverecho` route that accepts free text messages. +The client attempts to open the socket on startup. + +The user can send a message to the server echo socket by typing it into the +'message' text box and clicking the 'send' button. +Echoes are displayed in the 'response' text box. + + +The client echo socket +---------------------- + +On startup the client opens another socket named `/clientecho`. +When the server sends a message on this socket, the client will faithfully +echo it to the server. Property changes on: work/remote/web/testclient/README ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/testserver/LICENSE =================================================================== --- work/remote/web/testserver/LICENSE (revision 5526) +++ work/remote/web/testserver/LICENSE (revision 5527) @@ -1,21 +1,21 @@ -MIT License - -Copyright (c) 2016 Kalman Keri - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +MIT License + +Copyright (c) 2016 Kalman Keri + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. Property changes on: work/remote/web/testserver/LICENSE ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Index: work/remote/web/testserver/README =================================================================== --- work/remote/web/testserver/README (revision 5526) +++ work/remote/web/testserver/README (revision 5527) @@ -1,46 +1,46 @@ -testserver -========== - -Simple node.js webserver for web client testing. - - -Starting the server -------------------- -To start the server enter the `testserver` directory and use the `npm start` -command, provided node.js can be invoked as `node` on your machine. -Alternatively you can use the following command. - - app.js - -The server is listening on port 3000 by default. -The port can be overridden by setting the `port` environment variable. - - -Static files ------------- -Static files are served from the following directories. - -/ -> client -/test -> ../testclient -/protocol -> ../protocol -/testdata -> ../testdata - - -Websockets ----------- - -There is a websocket server listening at `/serverecho`, -which simply echoes received messages. - -There is another websocket server listening at `/clientecho`. -When the client connects to the socket, the server side user may send text -messages to the client from stdin. -Client responses are logged by the server to stdout together with other -events. - - -Manual clean up ---------------- - -The node_modules subdirectory can be deleted manually. -No other artifacts are created. +testserver +========== + +Simple node.js webserver for web client testing. + + +Starting the server +------------------- +To start the server enter the `testserver` directory and use the `npm start` +command, provided node.js can be invoked as `node` on your machine. +Alternatively you can use the following command. + + app.js + +The server is listening on port 3000 by default. +The port can be overridden by setting the `port` environment variable. + + +Static files +------------ +Static files are served from the following directories. + +/ -> client +/test -> ../testclient +/protocol -> ../protocol +/testdata -> ../testdata + + +Websockets +---------- + +There is a websocket server listening at `/serverecho`, +which simply echoes received messages. + +There is another websocket server listening at `/clientecho`. +When the client connects to the socket, the server side user may send text +messages to the client from stdin. +Client responses are logged by the server to stdout together with other +events. + + +Manual clean up +--------------- + +The node_modules subdirectory can be deleted manually. +No other artifacts are created. Property changes on: work/remote/web/testserver/README ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property