feat: 版本改为 1.0.3,浏览器标题改为干扰数据处理
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
__version__ = "1.0.0"
|
||||
__version__ = "1.0.3"
|
||||
|
||||
+3
-3
@@ -15,9 +15,9 @@ from .data import DataQuery
|
||||
from .service import EtlService
|
||||
|
||||
LANDING_HTML = """<!doctype html>
|
||||
<html><head><meta charset="utf-8"><title>InterferenceETL</title>
|
||||
<html><head><meta charset="utf-8"><title>干扰数据处理</title>
|
||||
<script>location.replace(location.pathname.replace(/\\/?$/, '/') + 'admin');</script>
|
||||
</head><body><a href="admin">InterferenceETL</a></body></html>
|
||||
</head><body><a href="admin">干扰数据处理</a></body></html>
|
||||
"""
|
||||
|
||||
|
||||
@@ -118,7 +118,7 @@ def create_app() -> FastAPI:
|
||||
register(service)
|
||||
ui.run_with(
|
||||
api,
|
||||
title="InterferenceETL",
|
||||
title="干扰数据处理",
|
||||
favicon=ICON_PATH,
|
||||
dark=None,
|
||||
language="zh-CN",
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ LOG_TAIL_LINES = 300
|
||||
|
||||
|
||||
def register(service: EtlService) -> None:
|
||||
@ui.page("/admin", title="InterferenceETL", response_timeout=10)
|
||||
@ui.page("/admin", title="干扰数据处理", response_timeout=10)
|
||||
async def admin_page(request: Request, client: Client) -> None:
|
||||
ui.add_head_html(STYLE)
|
||||
identity = identify(request.headers)
|
||||
|
||||
@@ -60,6 +60,10 @@ def manifest(image: str, release: str) -> dict:
|
||||
"slug": SLUG,
|
||||
"name": NAME,
|
||||
"version": release,
|
||||
"description": {
|
||||
"zh-CN": "从 SFTP 读取小时干扰指标,汇总后写入数据库,并按日期归档历史结果。",
|
||||
"en-US": "Reads hourly interference metrics from SFTP, writes the summary to the database, and archives history by date.",
|
||||
},
|
||||
"user_auth": "metrix",
|
||||
"admin_auth": "metrix",
|
||||
"admin_path": "/admin",
|
||||
|
||||
Reference in New Issue
Block a user