Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | webui: websocket.py: Make the response message more consistent | Aaron LI | 2016-11-04 | 1 | -11/+24 |
| | | | | | | | | All response message has a "success" item indicating whether the request be successfully handled. If anything unexpected happens, "success" is False, and an additional "error" item presents recording the detail. Also add some more stubs which are necessary for the Web UI. | ||||
* | webui: websocket.py: Implement "set" action for "_handle_configs()" | Aaron LI | 2016-11-04 | 1 | -11/+34 |
| | | | | | | | Finish the "_set_configs()" function to implement the "set" action for "_handle_configs()". Also change the "status" keyword to "success" to be more intuitive. | ||||
* | webui: websocket.py: Implement the "get" part of "_handle_configs()" | Aaron LI | 2016-11-04 | 1 | -5/+118 |
| | | | | | | | Add internal method "_get_configs()" which implement the "get" action part of the "_handle_configs()" method. TODO: implement the "set" action part. | ||||
* | webui: websocket.py: Fix wrong exception handling | Aaron LI | 2016-11-04 | 1 | -19/+17 |
| | |||||
* | webui: Update server & client sides WebSocket handlers | Aaron LI | 2016-11-04 | 2 | -24/+104 |
| | | | | | | | | | | | | * Server side: + Update the "on_message()" method to support 3 types of message requests (i.e., "configs", "console", and "results"); + Add messages stub handlers: "_handle_{configs,console,results}()"; + Reorder the methods + Client side: + Change timeout before reconnection to 3000 ms; + Parse the received JSON message to JS object; | ||||
* | webui: Add a manual reconnection button to the header banner | Aaron LI | 2016-11-03 | 3 | -6/+60 |
| | | | | | Also add a global variable "ws_reconnect" to control the timeout between reconnection and the maximum reconnection times (default: 100). | ||||
* | webui: Add "utils.py" to get the IP address | Aaron LI | 2016-11-03 | 2 | -11/+85 |
| | | | | | | | FIXME/TODO: How to determine the WebSocket origin is in the same subnet as the server? An additional network mask required to determine this. How does this additional mask passed? | ||||
* | webui: Rewrite "websocket.py" with "FG21simWSHandler" | Aaron LI | 2016-11-02 | 2 | -12/+88 |
| | | | | | | NOTE: This "FG21simWSHandler" is still very preliminary, and there are a lot of necessary functions need to be implemented. | ||||
* | webui: Rewrite and reconnect to WebSocket when closed | Aaron LI | 2016-11-02 | 1 | -32/+97 |
| | |||||
* | webui: Add preliminary WebSocket support to front-end UI | Aaron LI | 2016-11-02 | 4 | -0/+65 |
| | | | | | Add a label to the header banner to show the WebSocket support status and connection status. | ||||
* | webui: Add FA icons for sections/headers; Adjust header styles | Aaron LI | 2016-11-02 | 5 | -24/+22 |
| | |||||
* | webui: fonts.css: Avoid space in font-family name; Some cleanup | Aaron LI | 2016-11-01 | 1 | -10/+11 |
| | |||||
* | webui: font-awesome: Only keep the WOFF format | Aaron LI | 2016-11-01 | 2 | -2/+1 |
| | |||||
* | webui: milligram.css: Fix font-weight to use "bold" and "normal" | Aaron LI | 2016-11-01 | 1 | -5/+5 |
| | |||||
* | webui: fonts.css: Use semibold instead of bold for Source Sans Pro | Aaron LI | 2016-11-01 | 1 | -8/+8 |
| | |||||
* | webui: Update header and configs templates | Aaron LI | 2016-11-01 | 2 | -6/+6 |
| | |||||
* | webui: Update index template; Add console and results templates | Aaron LI | 2016-11-01 | 3 | -10/+43 |
| | |||||
* | webui: Add new style rules (Thanks Bootstrap!) | Aaron LI | 2016-11-01 | 1 | -5/+125 |
| | |||||
* | webui: Add the main CSS and JavaScript | Aaron LI | 2016-11-01 | 2 | -0/+287 |
| | | | | The js code still misses many necessary functions. | ||||
* | webui: Add the index and configs templates | Aaron LI | 2016-11-01 | 2 | -0/+489 |
| | |||||
* | webui: Add header and footer templates | Aaron LI | 2016-11-01 | 2 | -0/+42 |
| | |||||
* | webui: Add favicon and logo (nyan ~~~) | Aaron LI | 2016-11-01 | 3 | -0/+151 |
| | |||||
* | webui: Add fonts.css (Source Sans Pro & Source Code Pro) | Aaron LI | 2016-11-01 | 1 | -0/+63 |
| | |||||
* | Serve jQuery locally (use jqyeru-3.1.1.js) | Aaron LI | 2016-11-01 | 2 | -1/+10222 |
| | |||||
* | webui: Rearrange structures of the base template | Aaron LI | 2016-10-31 | 1 | -4/+14 |
| | |||||
* | webui: Add the base template | Aaron LI | 2016-10-30 | 1 | -0/+37 |
| | | | | Tornado template: http://www.tornadoweb.org/en/stable/guide/templates.html | ||||
* | webui: Import Milligram v1.1.0 | Aaron LI | 2016-10-30 | 1 | -0/+628 |
| | | | | | Milligram is a minimalist CSS framework (only CSS). https://milligram.github.io/ | ||||
* | webui: Import normalize.css v5.0.0 | Aaron LI | 2016-10-30 | 1 | -0/+461 |
| | | | | normalize.css: https://github.com/necolas/normalize.css | ||||
* | webui: Import FontAwesome v4.7.0 | Aaron LI | 2016-10-30 | 3 | -0/+2337 |
| | | | | FontAwesome: http://fontawesome.io/ | ||||
* | webui: Build the Web UI using Tornado with WebSocket | Aaron LI | 2016-10-30 | 3 | -0/+68 |
Tornado: http://www.tornadoweb.org/ |