From d0f9e65ad1d86c2048e52fe73508692b9aff29ee Mon Sep 17 00:00:00 2001 From: Kaku Date: Thu, 10 Jul 2025 23:50:19 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=92=8C=E5=B8=83=E5=B1=80=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 +- templates/book.html.j2 | 137 ++++++++++++-- templates/login.html | 68 +++++-- templates/overview.html.j2 | 97 +++++++--- templates/upload.html | 79 +++++++- templates/view.html.j2 | 374 ++++++++++++++++++++++++++++++++----- 6 files changed, 644 insertions(+), 115 deletions(-) diff --git a/main.py b/main.py index ce271de..65adb65 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ import app_conf import db.util import db.file, file -from flask import * +from flask import Flask from router.api_Img import api_Img_bp from router.page import page_bp @@ -28,6 +28,6 @@ if __name__ == "__main__": app.run( debug=conf.getboolean("server", "debug"), host=conf.get("server", "host"), - port=conf.get("server", "port"), + port=int(conf.get("server", "port")), threaded=conf.getboolean("server", "threaded"), ) diff --git a/templates/book.html.j2 b/templates/book.html.j2 index 1088e1c..18be80e 100644 --- a/templates/book.html.j2 +++ b/templates/book.html.j2 @@ -7,37 +7,55 @@ ComiPy-详情页面 diff --git a/templates/login.html b/templates/login.html index 4c13a96..de2784e 100644 --- a/templates/login.html +++ b/templates/login.html @@ -5,50 +5,84 @@ ComiPy-登录 + .form-group button:hover { background-color: #4cae4c; } diff --git a/templates/overview.html.j2 b/templates/overview.html.j2 index d2cdea7..0613727 100644 --- a/templates/overview.html.j2 +++ b/templates/overview.html.j2 @@ -7,26 +7,38 @@ ComiPy-概览 diff --git a/templates/view.html.j2 b/templates/view.html.j2 index ec2d2ab..4769058 100644 --- a/templates/view.html.j2 +++ b/templates/view.html.j2 @@ -6,82 +6,229 @@ ComiPy-漫画详情页 -
- + + +
+
+
+
+