From 8e8bce4d9a287937e594c7e9ab0f0f2a42498599 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 2 Aug 2020 19:10:42 -0400 Subject: [PATCH] Update directory structure in WebHostLib --- WebHostLib/__init__.py | 2 +- WebHostLib/static/{ => assets}/generate.js | 0 .../static/{ => assets}/jquery.scrollsync.js | 0 WebHostLib/static/{ => assets}/layout.js | 0 WebHostLib/static/{ => assets}/tracker.js | 0 WebHostLib/static/{ => assets}/tutorial.js | 0 WebHostLib/static/{ => assets}/uploads.js | 0 WebHostLib/static/{ => assets}/view_seed.js | 0 WebHostLib/static/{ => static}/favicon.ico | Bin WebHostLib/static/{ => styles}/host_room.css | 0 WebHostLib/static/{ => styles}/landing.css | 0 WebHostLib/static/{ => styles}/layout.css | 0 WebHostLib/static/{ => styles}/tablepage.css | 0 WebHostLib/static/{ => styles}/tooltip.css | 0 WebHostLib/static/{ => styles}/tracker.css | 0 WebHostLib/static/{ => styles}/tutorial.css | 0 WebHostLib/static/{ => styles}/tutorial.md | 0 WebHostLib/static/{ => styles}/uploads.css | 0 WebHostLib/static/{ => styles}/view_seed.css | 0 WebHostLib/templates/check.html | 4 ++-- WebHostLib/templates/generate.html | 4 ++-- WebHostLib/templates/host_room.html | 2 +- WebHostLib/templates/landing.html | 6 +++--- WebHostLib/templates/layout.html | 6 +++--- WebHostLib/templates/tablepage.html | 2 +- WebHostLib/templates/tracker.html | 18 +++++++++++------- WebHostLib/templates/tutorial.html | 4 ++-- WebHostLib/templates/uploads.html | 4 ++-- WebHostLib/templates/view_seed.html | 4 ++-- 29 files changed, 30 insertions(+), 26 deletions(-) rename WebHostLib/static/{ => assets}/generate.js (100%) rename WebHostLib/static/{ => assets}/jquery.scrollsync.js (100%) rename WebHostLib/static/{ => assets}/layout.js (100%) rename WebHostLib/static/{ => assets}/tracker.js (100%) rename WebHostLib/static/{ => assets}/tutorial.js (100%) rename WebHostLib/static/{ => assets}/uploads.js (100%) rename WebHostLib/static/{ => assets}/view_seed.js (100%) rename WebHostLib/static/{ => static}/favicon.ico (100%) rename WebHostLib/static/{ => styles}/host_room.css (100%) rename WebHostLib/static/{ => styles}/landing.css (100%) rename WebHostLib/static/{ => styles}/layout.css (100%) rename WebHostLib/static/{ => styles}/tablepage.css (100%) rename WebHostLib/static/{ => styles}/tooltip.css (100%) rename WebHostLib/static/{ => styles}/tracker.css (100%) rename WebHostLib/static/{ => styles}/tutorial.css (100%) rename WebHostLib/static/{ => styles}/tutorial.md (100%) rename WebHostLib/static/{ => styles}/uploads.css (100%) rename WebHostLib/static/{ => styles}/view_seed.css (100%) diff --git a/WebHostLib/__init__.py b/WebHostLib/__init__.py index 2c0bb9c5..d6d05064 100644 --- a/WebHostLib/__init__.py +++ b/WebHostLib/__init__.py @@ -131,7 +131,7 @@ def host_room(room: UUID): @app.route('/favicon.ico') def favicon(): - return send_from_directory(os.path.join(app.root_path, 'static'), + return send_from_directory(os.path.join(app.root_path, 'static/static'), 'favicon.ico', mimetype='image/vnd.microsoft.icon') diff --git a/WebHostLib/static/generate.js b/WebHostLib/static/assets/generate.js similarity index 100% rename from WebHostLib/static/generate.js rename to WebHostLib/static/assets/generate.js diff --git a/WebHostLib/static/jquery.scrollsync.js b/WebHostLib/static/assets/jquery.scrollsync.js similarity index 100% rename from WebHostLib/static/jquery.scrollsync.js rename to WebHostLib/static/assets/jquery.scrollsync.js diff --git a/WebHostLib/static/layout.js b/WebHostLib/static/assets/layout.js similarity index 100% rename from WebHostLib/static/layout.js rename to WebHostLib/static/assets/layout.js diff --git a/WebHostLib/static/tracker.js b/WebHostLib/static/assets/tracker.js similarity index 100% rename from WebHostLib/static/tracker.js rename to WebHostLib/static/assets/tracker.js diff --git a/WebHostLib/static/tutorial.js b/WebHostLib/static/assets/tutorial.js similarity index 100% rename from WebHostLib/static/tutorial.js rename to WebHostLib/static/assets/tutorial.js diff --git a/WebHostLib/static/uploads.js b/WebHostLib/static/assets/uploads.js similarity index 100% rename from WebHostLib/static/uploads.js rename to WebHostLib/static/assets/uploads.js diff --git a/WebHostLib/static/view_seed.js b/WebHostLib/static/assets/view_seed.js similarity index 100% rename from WebHostLib/static/view_seed.js rename to WebHostLib/static/assets/view_seed.js diff --git a/WebHostLib/static/favicon.ico b/WebHostLib/static/static/favicon.ico similarity index 100% rename from WebHostLib/static/favicon.ico rename to WebHostLib/static/static/favicon.ico diff --git a/WebHostLib/static/host_room.css b/WebHostLib/static/styles/host_room.css similarity index 100% rename from WebHostLib/static/host_room.css rename to WebHostLib/static/styles/host_room.css diff --git a/WebHostLib/static/landing.css b/WebHostLib/static/styles/landing.css similarity index 100% rename from WebHostLib/static/landing.css rename to WebHostLib/static/styles/landing.css diff --git a/WebHostLib/static/layout.css b/WebHostLib/static/styles/layout.css similarity index 100% rename from WebHostLib/static/layout.css rename to WebHostLib/static/styles/layout.css diff --git a/WebHostLib/static/tablepage.css b/WebHostLib/static/styles/tablepage.css similarity index 100% rename from WebHostLib/static/tablepage.css rename to WebHostLib/static/styles/tablepage.css diff --git a/WebHostLib/static/tooltip.css b/WebHostLib/static/styles/tooltip.css similarity index 100% rename from WebHostLib/static/tooltip.css rename to WebHostLib/static/styles/tooltip.css diff --git a/WebHostLib/static/tracker.css b/WebHostLib/static/styles/tracker.css similarity index 100% rename from WebHostLib/static/tracker.css rename to WebHostLib/static/styles/tracker.css diff --git a/WebHostLib/static/tutorial.css b/WebHostLib/static/styles/tutorial.css similarity index 100% rename from WebHostLib/static/tutorial.css rename to WebHostLib/static/styles/tutorial.css diff --git a/WebHostLib/static/tutorial.md b/WebHostLib/static/styles/tutorial.md similarity index 100% rename from WebHostLib/static/tutorial.md rename to WebHostLib/static/styles/tutorial.md diff --git a/WebHostLib/static/uploads.css b/WebHostLib/static/styles/uploads.css similarity index 100% rename from WebHostLib/static/uploads.css rename to WebHostLib/static/styles/uploads.css diff --git a/WebHostLib/static/view_seed.css b/WebHostLib/static/styles/view_seed.css similarity index 100% rename from WebHostLib/static/view_seed.css rename to WebHostLib/static/styles/view_seed.css diff --git a/WebHostLib/templates/check.html b/WebHostLib/templates/check.html index 923db891..511bb13f 100644 --- a/WebHostLib/templates/check.html +++ b/WebHostLib/templates/check.html @@ -3,8 +3,8 @@ {% block head %} {{ super() }} Mystery Check Result - - + + {% endblock %} {% block body %} diff --git a/WebHostLib/templates/generate.html b/WebHostLib/templates/generate.html index a2532f5f..e7835482 100644 --- a/WebHostLib/templates/generate.html +++ b/WebHostLib/templates/generate.html @@ -3,8 +3,8 @@ {% block head %} {{ super() }} Generate Game - - + + {% endblock %} {% block body %} diff --git a/WebHostLib/templates/host_room.html b/WebHostLib/templates/host_room.html index ef80b455..a519fde1 100644 --- a/WebHostLib/templates/host_room.html +++ b/WebHostLib/templates/host_room.html @@ -2,7 +2,7 @@ {% import "macros.html" as macros %} {% block head %} Multiworld {{ room.id|suuid }} - + {% endblock %} {% block body %} diff --git a/WebHostLib/templates/landing.html b/WebHostLib/templates/landing.html index fa714ad9..65a977e6 100644 --- a/WebHostLib/templates/landing.html +++ b/WebHostLib/templates/landing.html @@ -2,7 +2,7 @@ {% block head %} Berserker's Multiworld - + {% endblock %} {% block body %} @@ -20,10 +20,10 @@
- + - + diff --git a/WebHostLib/templates/layout.html b/WebHostLib/templates/layout.html index b2630a11..4118ec9e 100644 --- a/WebHostLib/templates/layout.html +++ b/WebHostLib/templates/layout.html @@ -2,9 +2,9 @@ - - - + + + {% block head %} Berserker's Multiworld {% endblock %} diff --git a/WebHostLib/templates/tablepage.html b/WebHostLib/templates/tablepage.html index 12dd4ddf..0867b2f7 100644 --- a/WebHostLib/templates/tablepage.html +++ b/WebHostLib/templates/tablepage.html @@ -7,5 +7,5 @@ - + {% endblock %} diff --git a/WebHostLib/templates/tracker.html b/WebHostLib/templates/tracker.html index 569ad7f5..1d92e512 100644 --- a/WebHostLib/templates/tracker.html +++ b/WebHostLib/templates/tracker.html @@ -2,18 +2,22 @@ {% block head %} {{ super() }} Multiworld Tracker for Room {{ room.id }} - - - + + + {% endblock %} {% block body %}
- Multistream + + + Multistream + + This tracker will automatically update itself periodically.
diff --git a/WebHostLib/templates/tutorial.html b/WebHostLib/templates/tutorial.html index 2bbd8307..4e80206d 100644 --- a/WebHostLib/templates/tutorial.html +++ b/WebHostLib/templates/tutorial.html @@ -2,9 +2,9 @@ {% block head %} Setup Tutorial - + - + {% endblock %} {% block body %} diff --git a/WebHostLib/templates/uploads.html b/WebHostLib/templates/uploads.html index 40f4362f..5e36507f 100644 --- a/WebHostLib/templates/uploads.html +++ b/WebHostLib/templates/uploads.html @@ -3,8 +3,8 @@ {% block head %} {{ super() }} Upload Multidata - - + + {% endblock %} {% block body %} diff --git a/WebHostLib/templates/view_seed.html b/WebHostLib/templates/view_seed.html index 5dd85018..0db581ee 100644 --- a/WebHostLib/templates/view_seed.html +++ b/WebHostLib/templates/view_seed.html @@ -3,8 +3,8 @@ {% block head %} Multiworld Seed {{ seed.id|suuid }} - - + + {% endblock %} {% block body %}