From 49ecc0032f7d5afaec79ea931e624d2bdcd832db Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 19 Nov 2016 12:15:40 +0800 Subject: webui: Rename "Results" to "Products" --- fg21sim/webui/static/js/websocket.js | 2 +- fg21sim/webui/templates/index.html | 4 ++-- fg21sim/webui/templates/products.html | 13 +++++++++++++ fg21sim/webui/templates/results.html | 13 ------------- 4 files changed, 16 insertions(+), 16 deletions(-) create mode 100644 fg21sim/webui/templates/products.html delete mode 100644 fg21sim/webui/templates/results.html 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 @@ {% 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 + # MIT license + # + # Products part + #} +
+

Products

+
+ +

Simulation products go here :)

+

TODO :(

+
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 - # MIT license - # - # Results part - #} -
-

Results

-
- -

Simulation results go here :)

-

TODO :(

-
-- cgit v1.2.2