chore: rename app to xsk education manager

This commit is contained in:
Codex
2026-06-14 21:14:10 +08:00
parent 6417d2baa9
commit b2913dbd8a
4 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
# 维护手册 # 维护手册
本项目长期维护时,目标是每次更新都能做到可检查、可部署、可回滚,并且不误改业务数据。 新时空教务管家长期维护时,目标是每次更新都能做到可检查、可部署、可回滚,并且不误改业务数据。
## 日常更新流程 ## 日常更新流程
+3 -3
View File
@@ -1,13 +1,13 @@
# 新时空课程记录查询网页 # 新时空教务管家
这是一个课程记录查询和登记工具,用于把本机正式业务源中的 `classnotes.txt``学生课时账户.md` 同步到 VPS,并通过网页查询上课记录、课时账户登记新增记录。 这是一个面向新时空教务业务的综合管理系统,用于把本机正式业务源中的 `classnotes.txt``学生课时账户.md` 同步到 VPS,并通过网页查询上课记录、管理课时账户登记新增记录和审核纠错
## 目录 ## 目录
- `app/`:FastAPI 后端和内置前端页面。 - `app/`:FastAPI 后端和内置前端页面。
- `MAINTENANCE.md`:日常检查、部署、数据保护和回滚流程。 - `MAINTENANCE.md`:日常检查、部署、数据保护和回滚流程。
- `Makefile`:常用维护命令入口。 - `Makefile`:常用维护命令入口。
- `scripts/deploy_to_vps.py`:部署网页服务到 VPS。 - `scripts/deploy_to_vps.py`:部署教务管家服务到 VPS。
- `scripts/sync_to_vps.py`:同步正式数据文件到 VPS。 - `scripts/sync_to_vps.py`:同步正式数据文件到 VPS。
- `scripts/smoke_test.js`:轻量前端行为烟测。 - `scripts/smoke_test.js`:轻量前端行为烟测。
- `scripts/install_gitea_backup_hook.py`:安装提交后自动推送到 Gitea 的 Git hook。 - `scripts/install_gitea_backup_hook.py`:安装提交后自动推送到 Gitea 的 Git hook。
+2 -2
View File
@@ -49,7 +49,7 @@ ACCOUNTS_SESSION_COOKIE = "xsk_accounts_session"
ADMIN_SESSION_COOKIE = "xsk_admin_session" ADMIN_SESSION_COOKIE = "xsk_admin_session"
SESSION_MAX_AGE = 60 * 60 * 24 * 30 SESSION_MAX_AGE = 60 * 60 * 24 * 30
app = FastAPI(title="新时空课程记录查询", version="1.0.0") app = FastAPI(title="新时空教务管家", version="1.0.0")
security = HTTPBasic(auto_error=False) security = HTTPBasic(auto_error=False)
write_lock = threading.Lock() write_lock = threading.Lock()
@@ -477,7 +477,7 @@ def login_page(
return RedirectResponse(url=next_path, status_code=status.HTTP_303_SEE_OTHER) return RedirectResponse(url=next_path, status_code=status.HTTP_303_SEE_OTHER)
return HTMLResponse( return HTMLResponse(
render_login_page( render_login_page(
title="新时空课程记录查询", title="新时空教务管家",
action="/login", action="/login",
next_path=next_path, next_path=next_path,
has_error=has_error, has_error=has_error,
+2 -2
View File
@@ -3,13 +3,13 @@
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<title>新时空课程记录查询</title> <title>新时空教务管家</title>
<link rel="stylesheet" href="/static/styles.css?v=20260613-date-time-sort" /> <link rel="stylesheet" href="/static/styles.css?v=20260613-date-time-sort" />
</head> </head>
<body> <body>
<header class="topbar"> <header class="topbar">
<div> <div>
<h1>新时空课程记录查询</h1> <h1>新时空教务管家</h1>
<p id="healthText">正在读取数据状态</p> <p id="healthText">正在读取数据状态</p>
</div> </div>
<div class="top-actions"> <div class="top-actions">