Files
ykxmz/_build/final_web_check.sh
T
xmz7891 caf774791f 修官网 .lead 的文字色
那一处还是深色主题配的浅灰(#c9d1d9),白底上几乎看不见。
上一版脚本没改成功,因为判断条件写成了新值已存在就跳过,
而 color:#1f2328 在别处已经出现过,导致整个替换被跳过。
2026-10-06 23:10:49 +08:00

33 lines
1.4 KiB
Bash

#!/bin/bash
# 官网最终验收
set -u
BASE=http://127.0.0.1:8080
PUB=https://relay.xxmxxs.top
echo " 官网 /"
curl -s --max-time 15 "$BASE/" -o /tmp/s.html 2>/dev/null
echo " HTTP $(curl -s -o /dev/null -w '%{http_code}' --max-time 10 "$BASE/") $(wc -c < /tmp/s.html) 字节"
echo " 管理入口: $(grep -o 'href="[^"]*"[^>]*管理入口' /tmp/s.html | head -1)"
echo " 残留浅灰 #c9d1d9: $(grep -c 'c9d1d9' /tmp/s.html) 处"
echo " 主文字色: $(grep -o 'color:#1f2328' /tmp/s.html | head -1)"
echo " 底色: $(grep -o 'background:#ffffff' /tmp/s.html | head -1)"
echo
echo " 管理页 /zhingzhuanzhan"
curl -s --max-time 15 "$BASE/zhingzhuanzhan" -o /tmp/l.html 2>/dev/null
echo " 登录框: $(grep -c 'name=username' /tmp/l.html) 个账号框"
echo " 底色: $(grep -o 'background:#ffffff' /tmp/l.html | head -1)"
echo
echo " 登录后管理页"
KEY=$(cat /root/lanremote-relay/data/admin_key.txt 2>/dev/null)
curl -s --max-time 15 -H "X-Admin: $KEY" "$BASE/zhingzhuanzhan" -o /tmp/a.html 2>/dev/null
echo " 下载区: $(grep -c 'dlPanel' /tmp/a.html)"
echo " 深色值残留: $(grep -c '0d1117' /tmp/a.html) 处"
echo " 白色底色: $(grep -o '\-\-bg:#ffffff' /tmp/a.html | head -1)"
echo
echo " 公网官网"
echo " HTTP $(curl -s -o /dev/null -w '%{http_code}' --max-time 40 -H 'User-Agent: LanRemote/1.4.0' "$PUB/")"