feat: 全站改版为科技首页风格,重构导航与产品页面
- 品牌更名 Easy Data Collection - 导航重构:前沿技术研究 / 工具开发 / 资源中心 / License / 博客(含下拉菜单) - 新增前沿技术研究聚合页、工具开发产品页与 6 个产品独立介绍页 - License 申请 / 查询下载 / 资源包合并为 License 中心,旧路径保留兼容 - 首页与全站样式升级为科技产品风(Apple/Wise 式) - 博客构建脚本同步更新(新导航 + 新首页)
This commit is contained in:
+84
-1
@@ -279,6 +279,89 @@ def about_page():
|
||||
return FileResponse(STATIC_DIR / "about.html")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 前沿技术研究
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@app.get("/research/")
|
||||
def research_page():
|
||||
return FileResponse(STATIC_DIR / "research.html")
|
||||
|
||||
|
||||
@app.get("/research/neural/")
|
||||
def research_neural():
|
||||
return FileResponse(STATIC_DIR / "neural.html")
|
||||
|
||||
|
||||
@app.get("/research/reslib/")
|
||||
def research_reslib():
|
||||
return FileResponse(STATIC_DIR / "index.html")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 工具开发
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
TOOL_PAGES = {
|
||||
"sequence-diagram": "tool-sequence-diagram.html",
|
||||
"uni-viewer": "tool-uni-viewer.html",
|
||||
"engineer-craft": "tool-engineer-craft.html",
|
||||
"five-phases-observer": "tool-five-phases.html",
|
||||
"unitouch": "tool-unitouch.html",
|
||||
"edc-lite-erp": "tool-edc-lite-erp.html",
|
||||
}
|
||||
|
||||
|
||||
@app.get("/tools/")
|
||||
def tools_page():
|
||||
return FileResponse(STATIC_DIR / "tools.html")
|
||||
|
||||
|
||||
@app.get("/tools/{slug}/")
|
||||
def tool_page(slug: str):
|
||||
filename = TOOL_PAGES.get(slug)
|
||||
if not filename:
|
||||
raise HTTPException(404, "页面不存在")
|
||||
return FileResponse(STATIC_DIR / filename)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# License(申请 / 查询下载 / 资源包)
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@app.get("/license/")
|
||||
def license_page():
|
||||
return FileResponse(STATIC_DIR / "license.html")
|
||||
|
||||
|
||||
@app.get("/license/apply")
|
||||
def license_apply():
|
||||
return FileResponse(STATIC_DIR / "apply.html")
|
||||
|
||||
|
||||
@app.get("/license/status")
|
||||
def license_status():
|
||||
return FileResponse(STATIC_DIR / "status.html")
|
||||
|
||||
|
||||
@app.get("/license/package")
|
||||
def license_package():
|
||||
return FileResponse(STATIC_DIR / "package.html")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 资源中心
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@app.get("/resources/")
|
||||
def resources_page():
|
||||
return FileResponse(STATIC_DIR / "resources.html")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# 兼容旧路径
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
@app.get("/neural/")
|
||||
def neural_page():
|
||||
return FileResponse(STATIC_DIR / "neural.html")
|
||||
@@ -286,7 +369,7 @@ def neural_page():
|
||||
|
||||
@app.get("/links.html")
|
||||
def links_page():
|
||||
return FileResponse(STATIC_DIR / "links.html")
|
||||
return FileResponse(STATIC_DIR / "resources.html")
|
||||
|
||||
|
||||
@app.get("/reslib/")
|
||||
|
||||
Reference in New Issue
Block a user