From e0379f5b2f817821d5c0f0ae0c33bac06c87e5eb Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Thu, 29 Feb 2024 11:19:14 +0000 Subject: [PATCH] =?UTF-8?q?uploader=E3=81=AE=E3=82=B9=E3=82=BF=E3=82=A4?= =?UTF-8?q?=E3=83=AB=E3=82=92=E8=8B=A5=E5=B9=B2=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 7 ++----- public/upload/index.html | 6 ++---- public/upload/style.css | 5 +++++ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/app.py b/app.py index 6273837..4d29071 100644 --- a/app.py +++ b/app.py @@ -761,12 +761,9 @@ def send_songs(ref): def send_manifest(): return cache_wrap(flask.send_from_directory("public", "manifest.json"), 3600) -@app.route("/upload/") -def send_upload(): - return cache_wrap(flask.send_from_directory("public/upload", "index.html"), 3600) - +@app.route("/upload/", defaults={"ref": "index.html"}) @app.route("/upload/") -def send_upload_sub(ref): +def send_upload(ref): return cache_wrap(flask.send_from_directory("public/upload", ref), 3600) @app.route("/upload", methods=["POST"]) diff --git a/public/upload/index.html b/public/upload/index.html index c48ff29..f0432e2 100644 --- a/public/upload/index.html +++ b/public/upload/index.html @@ -16,12 +16,10 @@
- -
- -
+ +
diff --git a/public/upload/style.css b/public/upload/style.css index 89b8d63..e885faf 100644 --- a/public/upload/style.css +++ b/public/upload/style.css @@ -1,3 +1,8 @@ +body > *:not(:last-child) { + margin-bottom: 3rem; +} + #error-view { + word-break: break-word; white-space: pre-line; }