diff --git a/web/js/app.js b/web/js/app.js index 779eeab..b4ffa63 100644 --- a/web/js/app.js +++ b/web/js/app.js @@ -314,11 +314,11 @@ function renderSSL(){ const cls = c.expire_days<=0? 'err': c.expire_days<=7? 'warn':'ok'; const status = c.expire_days<=0? '已过期': c.expire_days<=7? '将到期':'正常'; const dt = c.expire_ts? new Date(c.expire_ts*1000).toISOString().replace('T',' ').replace(/\.\d+Z/,''):'-'; - // 当证书进入警告/错误状态时,高亮域名列底色(与高负载相同的底色) - const domainCellCls = (cls !== 'ok') ? 'alert-domain' : ''; - html += ` + // 当证书进入警告/错误状态时,高亮整行底色(复用 high-load 行样式) + const rowCls = (cls !== 'ok') ? 'high-load' : ''; + html += ` ${c.name||'-'} - ${(c.domain||'').replace(/^https?:\/\//,'')} + ${(c.domain||'').replace(/^https?:\/\//,'')} ${c.port||443} ${c.expire_days??'-'} ${dt} @@ -337,11 +337,11 @@ function renderSSLCards(){ const cls = c.expire_days<=0? 'err': c.expire_days<=7? 'warn':'ok'; const status = c.expire_days<=0? '已过期': c.expire_days<=7? '将到期':'正常'; const dt = c.expire_ts? new Date(c.expire_ts*1000).toISOString().replace('T',' ').replace(/\.\d+Z/,''):'-'; - const domainRowCls = (cls !== 'ok') ? 'alert-domain' : ''; - html += `
+ const cardHigh = (cls !== 'ok') ? ' high-load' : ''; + html += `
${c.name||'-'}
${status}
-
域名${(c.domain||'').replace(/^https?:\/\//,'')}
+
域名${(c.domain||'').replace(/^https?:\/\//,'')}
端口${c.port||443}
剩余(天)${c.expire_days??'-'}
到期${dt.split(' ')[0]||dt}