v2.2+v2.3: 前端增强与 UI 去 AI 味重构

v2.2 前端增强:
- 站内 HLS 收听页 (#pageLive),hls.js 本地化 vendor/hls.min.js
- 设置页 (缓存/配置/日志)
- 上传进度百分比 (XHR upload.onprogress)
- 资源列表排序 (时间/热度/名称 ×升降)
- 面板正在播放实时化 (接 playlist-update/song-finished,删死监听)
- 死代码清理 + forgetSong 内存泄漏修复 + CORS 非法头移除
- start.cmd 托管启动脚本 (set "VAR=val" 避免尾部空格)

v2.3 UI 去 AI 味 (依据 ibelick/ui-skills baseline-ui):
- 频道管理+切换合并为单一入口 #btnStreamMgr.channel-btn
  (删除 header 的 #streamSelect 下拉,弹窗内统一切换/删除/新建)
- 清除全部 CSS 渐变与 glow: 橙红 #ff5f6d→#ffc371、紫 #8b5cf6、
  径向光晕、缓存条渐变 → 全部改为 accent/token 纯色
- live 区、modal 区硬编码色统一归 CSS 变量 token

测试: api 16/16, e2e 17/17, write 5/5 全绿
This commit is contained in:
Xiao-no-love committed 2026-09-24 21:55:23 +08:00
1 parent 4510d697f0
commit 5d5d5cce19
17 files changed
+956 -127

No files matched your search

+7 -2
View File
@@ -21,6 +21,11 @@ def check(name, cond, extra=""):
# 登录
call("/api/auth/login", "POST", {"password": "test123"})
# ---------- 读基线资源数 ----------
st, body0 = call("/api/resources")
BASE_N = len(json.loads(body0)["list"])
print(" 基线资源数:", BASE_N)
# ---------- 导入测试 ----------
tmp_file = r"F:\music_online\demo\tmp\test_import.mp3"
boundary = "----test" + uuid.uuid4().hex
@@ -63,7 +68,7 @@ except urllib.error.HTTPError as e:
# 确认资源数增加
st, body = call("/api/resources")
d = json.loads(body)
check("资源数变为6", len(d["list"]) == 6, f"{len(d['list'])}")
check(f"资源数变为{BASE_N+1}", len(d["list"]) == BASE_N + 1, f"{len(d['list'])}")
# ---------- 删除测试 ----------
if imported_file:
@@ -77,7 +82,7 @@ if imported_file:
# 确认资源数恢复
st, body = call("/api/resources")
d = json.loads(body)
check("资源数恢复为5", len(d["list"]) == 5, f"{len(d['list'])}")
check(f"资源数恢复为{BASE_N}", len(d["list"]) == BASE_N, f"{len(d['list'])}")
else:
check("删除音频", False, "无导入文件")