mirror of
https://gitee.com/xmz7891/ykxmz.git
synced 2026-10-18 11:20:43 +00:00
修官网 .lead 的文字色
那一处还是深色主题配的浅灰(#c9d1d9),白底上几乎看不见。 上一版脚本没改成功,因为判断条件写成了新值已存在就跳过, 而 color:#1f2328 在别处已经出现过,导致整个替换被跳过。
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
修官网 .lead 的文字色
|
||||
|
||||
那一处还是深色主题配的浅灰(#c9d1d9),白底上几乎看不见。
|
||||
上一版脚本没改成功,因为判断条件写成了新值已存在就跳过,
|
||||
而 color:#1f2328 在别处已经出现过,导致整个替换被跳过。
|
||||
@@ -0,0 +1,32 @@
|
||||
#!/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/")"
|
||||
+1
-1
@@ -842,7 +842,7 @@ h1{font-size:34px;margin:0 0 10px;letter-spacing:-.5px}
|
||||
.ver{display:inline-block;background:#1f6feb22;color:#0969da;
|
||||
border:1px solid #1f6feb55;border-radius:20px;
|
||||
padding:2px 12px;font-size:13px;margin-bottom:34px}
|
||||
.lead{font-size:16px;color:#c9d1d9;margin:0 0 14px}
|
||||
.lead{font-size:16px;color:#1f2328;margin:0 0 14px}
|
||||
ul{color:#656d76;padding-left:22px;margin:0 0 40px}
|
||||
li{margin:4px 0}
|
||||
.cards{display:grid;gap:14px;grid-template-columns:1fr}
|
||||
|
||||
Reference in New Issue
Block a user