aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Containerfile1
-rw-r--r--app.py6
-rw-r--r--favicon.icobin0 -> 9662 bytes
-rw-r--r--index.html1
4 files changed, 8 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile
index 83b0637..5d27003 100644
--- a/Containerfile
+++ b/Containerfile
@@ -24,6 +24,7 @@ COPY app.py .
24COPY index.html . 24COPY index.html .
25COPY script.js . 25COPY script.js .
26COPY logo.png . 26COPY logo.png .
27COPY favicon.ico .
27 28
28# Expose the port 29# Expose the port
29EXPOSE 5000 30EXPOSE 5000
diff --git a/app.py b/app.py
index 002957a..121fc10 100644
--- a/app.py
+++ b/app.py
@@ -28,6 +28,12 @@ def script():
28 return send_from_directory(".", "script.js") 28 return send_from_directory(".", "script.js")
29 29
30 30
31@app.route("/favicon.ico")
32def favicon():
33 """Serve the favicon."""
34 return send_from_directory(".", "favicon.ico")
35
36
31@app.route("/", methods=["POST"]) 37@app.route("/", methods=["POST"])
32def generate_files(): 38def generate_files():
33 """Handle configuration submission and execute bonsai.""" 39 """Handle configuration submission and execute bonsai."""
diff --git a/favicon.ico b/favicon.ico
new file mode 100644
index 0000000..849b0f4
--- /dev/null
+++ b/favicon.ico
Binary files differ
diff --git a/index.html b/index.html
index fff715a..d1ed677 100644
--- a/index.html
+++ b/index.html
@@ -5,6 +5,7 @@
5 <meta charset="UTF-8"> 5 <meta charset="UTF-8">
6 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7 <title>Bonsai - Network Latency Graph Generator</title> 7 <title>Bonsai - Network Latency Graph Generator</title>
8 <link rel="icon" type="image/x-icon" href="favicon.ico">
8 <link rel="stylesheet" href="https://unpkg.com/@picocss/[email protected]/css/pico.min.css"> 9 <link rel="stylesheet" href="https://unpkg.com/@picocss/[email protected]/css/pico.min.css">
9 <style> 10 <style>
10 .logo-container { 11 .logo-container {