diff --git a/my_modules/app/setup.py b/my_modules/app/setup.py index 5010450..dfb9800 100644 --- a/my_modules/app/setup.py +++ b/my_modules/app/setup.py @@ -11,7 +11,7 @@ import redis.asyncio as aioredis from quart import Quart import os -app = Quart(__name__, template_folder="../../templates/side", static_folder="../../templates/files") +app = Quart(__name__, template_folder="../../templates/side", static_folder="../../templates/static") app.config['MAX_CONTENT_LENGTH'] = 1024 * 1024 * 1024 app.secret_key = SECRET_KEY diff --git a/my_modules/middleware.py b/my_modules/middleware.py index 1a5465d..5619d30 100644 --- a/my_modules/middleware.py +++ b/my_modules/middleware.py @@ -17,7 +17,7 @@ async def custom_middleware(): # Skip allowed IPs or non-critical assets if ( "favicon" in path - or "files" in path + or "static" in path ): return diff --git a/templates/files/css/error.css b/templates/static/css/error.css similarity index 100% rename from templates/files/css/error.css rename to templates/static/css/error.css diff --git a/templates/files/css/fontawesome.all.min.css b/templates/static/css/fontawesome.all.min.css similarity index 100% rename from templates/files/css/fontawesome.all.min.css rename to templates/static/css/fontawesome.all.min.css diff --git a/templates/files/css/fonts/PressStart2P.css b/templates/static/css/fonts/PressStart2P.css similarity index 100% rename from templates/files/css/fonts/PressStart2P.css rename to templates/static/css/fonts/PressStart2P.css diff --git a/templates/files/css/style.css b/templates/static/css/style.css similarity index 100% rename from templates/files/css/style.css rename to templates/static/css/style.css diff --git a/templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 b/templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 similarity index 100% rename from templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 rename to templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nRivN04w.woff2 diff --git a/templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 b/templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 similarity index 100% rename from templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 rename to templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nVivM.woff2 diff --git a/templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 b/templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 similarity index 100% rename from templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 rename to templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nWivN04w.woff2 diff --git a/templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 b/templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 similarity index 100% rename from templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 rename to templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nYivN04w.woff2 diff --git a/templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 b/templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 similarity index 100% rename from templates/files/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 rename to templates/static/fonts/e3t4euO8T-267oIAQAu6jDQyK3nbivN04w.woff2 diff --git a/templates/files/images/error/401.gif b/templates/static/images/error/401.gif similarity index 100% rename from templates/files/images/error/401.gif rename to templates/static/images/error/401.gif diff --git a/templates/files/images/error/404.webp b/templates/static/images/error/404.webp similarity index 100% rename from templates/files/images/error/404.webp rename to templates/static/images/error/404.webp diff --git a/templates/files/images/error/429_JimCarrey.gif b/templates/static/images/error/429_JimCarrey.gif similarity index 100% rename from templates/files/images/error/429_JimCarrey.gif rename to templates/static/images/error/429_JimCarrey.gif diff --git a/templates/files/images/error/500.webp b/templates/static/images/error/500.webp similarity index 100% rename from templates/files/images/error/500.webp rename to templates/static/images/error/500.webp diff --git a/templates/files/images/error/504.gif b/templates/static/images/error/504.gif similarity index 100% rename from templates/files/images/error/504.gif rename to templates/static/images/error/504.gif diff --git a/templates/files/images/favicons/0. default.svg b/templates/static/images/favicons/0. default.svg similarity index 100% rename from templates/files/images/favicons/0. default.svg rename to templates/static/images/favicons/0. default.svg diff --git a/templates/files/images/favicons/1. autumn.gif b/templates/static/images/favicons/1. autumn.gif similarity index 100% rename from templates/files/images/favicons/1. autumn.gif rename to templates/static/images/favicons/1. autumn.gif diff --git a/templates/files/images/favicons/2. winter.png b/templates/static/images/favicons/2. winter.png similarity index 100% rename from templates/files/images/favicons/2. winter.png rename to templates/static/images/favicons/2. winter.png diff --git a/templates/files/webfonts/fa-brands-400.ttf b/templates/static/webfonts/fa-brands-400.ttf similarity index 100% rename from templates/files/webfonts/fa-brands-400.ttf rename to templates/static/webfonts/fa-brands-400.ttf diff --git a/templates/files/webfonts/fa-brands-400.woff2 b/templates/static/webfonts/fa-brands-400.woff2 similarity index 100% rename from templates/files/webfonts/fa-brands-400.woff2 rename to templates/static/webfonts/fa-brands-400.woff2 diff --git a/templates/files/webfonts/fa-regular-400.ttf b/templates/static/webfonts/fa-regular-400.ttf similarity index 100% rename from templates/files/webfonts/fa-regular-400.ttf rename to templates/static/webfonts/fa-regular-400.ttf diff --git a/templates/files/webfonts/fa-regular-400.woff2 b/templates/static/webfonts/fa-regular-400.woff2 similarity index 100% rename from templates/files/webfonts/fa-regular-400.woff2 rename to templates/static/webfonts/fa-regular-400.woff2 diff --git a/templates/files/webfonts/fa-solid-900.ttf b/templates/static/webfonts/fa-solid-900.ttf similarity index 100% rename from templates/files/webfonts/fa-solid-900.ttf rename to templates/static/webfonts/fa-solid-900.ttf diff --git a/templates/files/webfonts/fa-solid-900.woff2 b/templates/static/webfonts/fa-solid-900.woff2 similarity index 100% rename from templates/files/webfonts/fa-solid-900.woff2 rename to templates/static/webfonts/fa-solid-900.woff2 diff --git a/templates/files/webfonts/fa-v4compatibility.ttf b/templates/static/webfonts/fa-v4compatibility.ttf similarity index 100% rename from templates/files/webfonts/fa-v4compatibility.ttf rename to templates/static/webfonts/fa-v4compatibility.ttf diff --git a/templates/files/webfonts/fa-v4compatibility.woff2 b/templates/static/webfonts/fa-v4compatibility.woff2 similarity index 100% rename from templates/files/webfonts/fa-v4compatibility.woff2 rename to templates/static/webfonts/fa-v4compatibility.woff2