feat: overhaul UI styling, improve templates, enhance services and tests

This commit is contained in:
2026-06-06 00:38:56 +08:00
parent f7f1a4c0cb
commit 904eec392e
38 changed files with 1471 additions and 795 deletions
+3
View File
@@ -31,6 +31,7 @@ def crawl(
# 确保数据库和表存在
import os
os.makedirs(settings.db_path.parent, exist_ok=True)
_init(engine)
typer.echo(f"📡 开始抓取 {target} ...")
@@ -63,6 +64,7 @@ def summarize(
from app.services.summarizer import summarize_batch, summarize_single
import os
os.makedirs(settings.db_path.parent, exist_ok=True)
_init(engine)
@@ -97,6 +99,7 @@ def init_db():
from app.models import init_db as _init
import os
os.makedirs(settings.db_path.parent, exist_ok=True)
_init(engine)
typer.echo(f"✅ 数据库已初始化:{settings.db_path}")