diff options
Diffstat (limited to 'fg21sim')
-rw-r--r-- | fg21sim/webui/static/js/websocket.js | 2 | ||||
-rw-r--r-- | fg21sim/webui/templates/index.html | 4 | ||||
-rw-r--r-- | fg21sim/webui/templates/products.html | 13 | ||||
-rw-r--r-- | fg21sim/webui/templates/results.html | 13 |
4 files changed, 16 insertions, 16 deletions
diff --git a/fg21sim/webui/static/js/websocket.js b/fg21sim/webui/static/js/websocket.js index 2fa26d8..4cd8b8d 100644 --- a/fg21sim/webui/static/js/websocket.js +++ b/fg21sim/webui/static/js/websocket.js @@ -133,7 +133,7 @@ var connectWebSocket = function (url) { handleWebSocketMsgConfigs(msg); } else if (msg.type === "console") { handleWebSocketMsgConsole(msg); - } else if (msg.type === "results") { + } else if (msg.type === "products") { console.error("NotImplementedError"); } else { // Unknown/unsupported message type diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index 27fac3d..9cdccf4 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -17,14 +17,14 @@ <ul class="navigation-list float-right"> <li class="navigation-item"><a class="navigation-link button button-outline" href="#configs" title="Configurations"><span class="fa fa-wrench" aria-hidden="true"></span> Configurations</a></li> <li class="navigation-item"><a class="navigation-link button button-outline" href="#console" title="Console"><span class="fa fa-gamepad" aria-hidden="true"></span> Console</a></li> - <li class="navigation-item"><a class="navigation-link button button-outline" href="#results" title="Results"><span class="fa fa-files-o" aria-hidden="true"></span> Results</a></li> + <li class="navigation-item"><a class="navigation-link button button-outline" href="#products" title="Products"><span class="fa fa-files-o" aria-hidden="true"></span> Products</a></li> </ul> {% end %} {# block header_contents #} {% block main %} {% include "configs.html" %} {% include "console.html" %} - {% include "results.html" %} + {% include "products.html" %} {% end %} {% block extra_script %} diff --git a/fg21sim/webui/templates/products.html b/fg21sim/webui/templates/products.html new file mode 100644 index 0000000..18f245c --- /dev/null +++ b/fg21sim/webui/templates/products.html @@ -0,0 +1,13 @@ +{# + # Copyright (c) 2016 Weitian LI <liweitianux@live.com> + # MIT license + # + # Products part + #} +<section id="products"> + <h2><span class="fa fa-files-o" aria-hidden="true"></span> Products</h2> + <hr /> + + <p>Simulation products go here :)</p> + <p>TODO :(</p> +</section> diff --git a/fg21sim/webui/templates/results.html b/fg21sim/webui/templates/results.html deleted file mode 100644 index 80e025a..0000000 --- a/fg21sim/webui/templates/results.html +++ /dev/null @@ -1,13 +0,0 @@ -{# - # Copyright (c) 2016 Weitian LI <liweitianux@live.com> - # MIT license - # - # Results part - #} -<section id="results"> - <h2><span class="fa fa-files-o" aria-hidden="true"></span> Results</h2> - <hr /> - - <p>Simulation results go here :)</p> - <p>TODO :(</p> -</section> |