feat: 接入授权中心(安装/在线统计、公告推送、版本更新提示)+ 修复弹窗遮罩点击失效
This commit is contained in:
1 parent
4ba470fc49
commit
192fe596d4
13 files changed
+510
-17
No files matched your search
+197
-5
@@ -1163,10 +1163,10 @@ async function renderImages() {
|
||||
nets = ns.filter(n => n.driver === 'bridge').map(n => ({ name: n.name, label: n.name }));
|
||||
} catch (e) {}
|
||||
const overlay = document.createElement('div');
|
||||
overlay.className = 'modal-mask';
|
||||
overlay.innerHTML = `<div class="modal-card">
|
||||
<div class="modal-head"><b>从 ${list.length} 个镜像启动容器</b><span class="modal-x" id="mClose">✕</span></div>
|
||||
<div class="modal-body">
|
||||
overlay.className = 'ov-mask';
|
||||
overlay.innerHTML = `<div class="ov-card">
|
||||
<div class="ov-head"><b>从 ${list.length} 个镜像启动容器</b><span class="ov-x" id="mClose">✕</span></div>
|
||||
<div class="ov-body">
|
||||
<label class="m-row">重启策略 <select id="mRestart">
|
||||
<option value="unless-stopped">unless-stopped(推荐)</option>
|
||||
<option value="always">always</option>
|
||||
@@ -1178,7 +1178,7 @@ async function renderImages() {
|
||||
<label class="m-row col">环境变量 <textarea id="mEnv" placeholder="TZ=Asia/Shanghai OTHER=1"></textarea></label>
|
||||
<div class="muted" style="font-size:11.5px;margin-top:6px">容器名 = 镜像名 + 随机后缀;无 CMD/ENTRYPOINT 的镜像会自动用保活命令,避免启动即退出。</div>
|
||||
</div>
|
||||
<div class="modal-foot"><button class="btn ghost" id="mCancel">取消</button><button class="btn primary" id="mGo">启动</button></div>
|
||||
<div class="ov-foot"><button class="btn ghost" id="mCancel">取消</button><button class="btn primary" id="mGo">启动</button></div>
|
||||
</div>`;
|
||||
document.body.appendChild(overlay);
|
||||
const close = () => overlay.remove();
|
||||
@@ -1500,6 +1500,16 @@ async function renderSettings() {
|
||||
<button class="btn ghost" id="eventBtn">查看事件</button>
|
||||
</div>
|
||||
<div class="code" id="setLog" style="margin-top:12px;max-height:260px">—</div>
|
||||
</div>
|
||||
<div class="card" style="max-width:720px;margin-top:14px">
|
||||
<h3>授权与统计</h3>
|
||||
<div id="verBox" class="muted" style="line-height:1.9">读取中…</div>
|
||||
<div class="form-row" style="margin-top:8px"><label>上报安装 / 在线心跳</label><input id="th_telemetry" type="checkbox" ${s.telemetry !== false ? 'checked' : ''} style="width:auto" /></div>
|
||||
<div class="muted" style="margin-top:4px">仅上报机器码、版本号与运行平台,用于统计安装量和在线数;不含容器名、日志或任何业务数据。关闭后不再上报,面板功能不受影响。</div>
|
||||
<div style="display:flex;gap:8px;margin-top:12px">
|
||||
<button class="btn ghost" id="verCheckBtn">立即检查更新</button>
|
||||
<button class="btn ghost" id="annRefreshBtn">刷新公告</button>
|
||||
</div>
|
||||
</div>`;
|
||||
$('#saveBtn').onclick = async () => {
|
||||
try {
|
||||
@@ -1511,11 +1521,37 @@ async function renderSettings() {
|
||||
webhook: $('#th_webhook').value,
|
||||
links: { repo: $('#th_repo') ? $('#th_repo').value.trim() : '', nav: $('#th_nav') ? $('#th_nav').value.trim() : '' },
|
||||
notify: $('#th_notify').checked,
|
||||
telemetry: $('#th_telemetry') ? $('#th_telemetry').checked : true,
|
||||
}),
|
||||
});
|
||||
toast('已保存');
|
||||
if ($('#th_telemetry')) fetchVersion(true).then(paintVerBox);
|
||||
} catch (e) { toast(e.message, true); }
|
||||
};
|
||||
const paintVerBox = () => {
|
||||
const v = verInfo || {};
|
||||
const box = $('#verBox');
|
||||
if (!box) return;
|
||||
box.innerHTML = `当前版本 <b>v${esc(v.current || '—')}</b> · 最新版本 <b>${v.latest ? 'v' + esc(v.latest) : '—'}</b>`
|
||||
+ (v.update_available ? ' · <span style="color:#a2560b;font-weight:700">有新版本可升级</span>' : '')
|
||||
+ `<br/>授权中心:${v.online ? '已连接' : (v.enabled === false ? '上报已关闭' : '不可达(不影响使用)')}`
|
||||
+ ` · 安装编号 ${v.install_id ? '#' + esc(String(v.install_id)) : '未登记'}`
|
||||
+ `<br/>机器码 <span style="font-variant-numeric:tabular-nums">${esc(v.machine_id || '—')}</span>`
|
||||
+ (v.last_heartbeat ? ` · 上次心跳 ${esc(timeStr(v.last_heartbeat))}` : '')
|
||||
+ (v.error ? `<br/><span style="color:#a2560b">最近一次上报失败:${esc(v.error)}</span>` : '');
|
||||
};
|
||||
fetchVersion(false).then(paintVerBox);
|
||||
if ($('#verCheckBtn')) $('#verCheckBtn').onclick = async () => {
|
||||
$('#verCheckBtn').disabled = true;
|
||||
await fetchVersion(true);
|
||||
paintVerBox();
|
||||
$('#verCheckBtn').disabled = false;
|
||||
toast(verInfo && verInfo.update_available ? `发现新版本 v${verInfo.latest}` : '已是最新版本');
|
||||
};
|
||||
if ($('#annRefreshBtn')) $('#annRefreshBtn').onclick = async () => {
|
||||
await fetchVersion(true);
|
||||
toast(`公告 ${(verInfo && verInfo.announcements || []).length} 条`);
|
||||
};
|
||||
$('#testBtn').onclick = async () => {
|
||||
try { await api('/api/settings/test', { method: 'POST' }); $('#setLog').textContent = '测试推送已发送'; toast('已发送'); }
|
||||
catch (e) { $('#setLog').textContent = '推送失败:' + e.message; toast(e.message, true); }
|
||||
@@ -1633,3 +1669,159 @@ document.addEventListener('keydown', e => { if (e.key === 'Escape') { $('#modal'
|
||||
paintIcons();
|
||||
renderExtLinks();
|
||||
go('apps');
|
||||
|
||||
/* ---------------- 版本 / 更新 / 公告(授权中心) ---------------- */
|
||||
let verInfo = null;
|
||||
let verTimer = null;
|
||||
|
||||
async function fetchVersion(force) {
|
||||
try {
|
||||
verInfo = force
|
||||
? await api('/api/version/check', { method: 'POST' })
|
||||
: await api('/api/version');
|
||||
} catch (e) {
|
||||
verInfo = verInfo || { current: '', update_available: false, announcements: [], popup: [] };
|
||||
}
|
||||
renderVerChip();
|
||||
renderAnnDot();
|
||||
return verInfo;
|
||||
}
|
||||
|
||||
function renderVerChip() {
|
||||
const el = $('#verChip');
|
||||
if (!el || !verInfo) return;
|
||||
const cur = verInfo.current || '—';
|
||||
const has = !!verInfo.update_available && !!verInfo.latest;
|
||||
el.classList.toggle('has-update', has);
|
||||
if (has) {
|
||||
el.innerHTML = `<span class="up-dot"></span>v${esc(cur)} → <b>v${esc(verInfo.latest)}</b>`;
|
||||
el.title = `有新版本 v${verInfo.latest},点此查看更新说明${verInfo.is_force ? '(重要更新)' : ''}`;
|
||||
} else {
|
||||
el.textContent = `v${cur}`;
|
||||
el.title = verInfo.online === false
|
||||
? `当前版本 v${cur}(授权中心暂时不可达,不影响使用)`
|
||||
: `当前版本 v${cur},已是最新${verInfo.checked_at ? '(检查于 ' + timeStr(Date.parse(verInfo.checked_at)) + ')' : ''}`;
|
||||
}
|
||||
}
|
||||
|
||||
function renderAnnDot() {
|
||||
const dot = $('#annDot');
|
||||
if (!dot || !verInfo) return;
|
||||
const n = (verInfo.announcements || []).length;
|
||||
const seenKey = 'dc.ann.seen';
|
||||
let seen = [];
|
||||
try { seen = JSON.parse(localStorage.getItem(seenKey) || '[]'); } catch { seen = []; }
|
||||
const unread = (verInfo.announcements || []).filter(a => !seen.includes(a.id)).length;
|
||||
dot.classList.toggle('hidden', unread === 0);
|
||||
$('#annBtn').title = n ? `公告 ${n} 条${unread ? `(${unread} 条未读)` : ''}` : '暂无公告';
|
||||
}
|
||||
|
||||
function openVersionModal() {
|
||||
const v = verInfo || {};
|
||||
const has = !!v.update_available && !!v.latest;
|
||||
$('#modalTitle').textContent = has ? `发现新版本 v${v.latest}` : '关于与更新';
|
||||
$('#modalBody').innerHTML = `
|
||||
<div class="ver-modal">
|
||||
<div class="vm-row"><span class="k">当前版本</span><span><b>v${esc(v.current || '—')}</b></span></div>
|
||||
<div class="vm-row"><span class="k">最新版本</span><span>${v.latest ? 'v' + esc(v.latest) : '未获取到'}</span></div>
|
||||
<div class="vm-row"><span class="k">授权中心</span><span>${v.online ? '已连接' : (v.enabled === false ? '上报已关闭' : '不可达(不影响使用)')}</span></div>
|
||||
<div class="vm-row"><span class="k">安装编号</span><span>${v.install_id ? '#' + esc(String(v.install_id)) : '未登记'}</span></div>
|
||||
${has ? `<div class="vm-log">${esc(v.changelog || '(该版本未填写更新说明)')}</div>` : '<div class="vm-tip">当前已是最新版本。</div>'}
|
||||
${has && v.is_force ? '<div class="vm-tip warn">这是一个重要更新,建议尽快升级。</div>' : ''}
|
||||
<div class="vm-tip">升级方式:重新拉取镜像后重建容器(数据卷与设置会保留)。${v.download_url ? `<br/>发布页:<a href="${esc(v.download_url)}" target="_blank" rel="noopener">${esc(v.download_url)}</a>` : ''}</div>
|
||||
</div>`;
|
||||
$('#modal').classList.remove('hidden');
|
||||
const ok = $('#modalOk');
|
||||
if (has && v.download_url) {
|
||||
ok.textContent = '打开发布页';
|
||||
ok.onclick = () => { window.open(v.download_url, '_blank', 'noopener'); $('#modal').classList.add('hidden'); };
|
||||
} else {
|
||||
ok.textContent = '检查更新';
|
||||
ok.onclick = async () => {
|
||||
ok.disabled = true; ok.textContent = '检查中…';
|
||||
await fetchVersion(true);
|
||||
ok.disabled = false; ok.textContent = '检查更新';
|
||||
openVersionModal();
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
function annTag(t) {
|
||||
const map = { update: ['更新', 'update'], promo: ['活动', 'promo'], system: ['系统', ''] };
|
||||
const [label, cls] = map[t] || ['公告', ''];
|
||||
return `<span class="tag ${cls}">${label}</span>`;
|
||||
}
|
||||
|
||||
function toggleAnnPanel(force) {
|
||||
let p = $('#annPanel');
|
||||
if (p && !force) { p.remove(); return; }
|
||||
if (p) p.remove();
|
||||
const list = (verInfo && verInfo.announcements) || [];
|
||||
p = document.createElement('div');
|
||||
p.id = 'annPanel';
|
||||
p.className = 'ann-panel';
|
||||
p.innerHTML = `<div class="ap-head"><b>公告</b><span>${list.length} 条</span></div>` + (list.length
|
||||
? list.map(a => `<a class="ann-item" href="${a.link_url ? esc(a.link_url) : 'javascript:void(0)'}" ${a.link_url ? 'target="_blank" rel="noopener"' : ''} data-ann="${a.id}">
|
||||
<div class="ai-t">${a.is_top ? '📌' : ''}${annTag(a.type)}${esc(a.title || '')}</div>
|
||||
<div class="ai-c">${esc((a.content || '').slice(0, 260))}</div>
|
||||
<div class="ai-d">${a.created_at ? esc(String(a.created_at).slice(0, 16)) : ''}</div>
|
||||
</a>`).join('')
|
||||
: '<div class="ann-empty">暂无公告</div>');
|
||||
document.body.appendChild(p);
|
||||
p.addEventListener('click', e => {
|
||||
const a = e.target.closest('.ann-item');
|
||||
if (a) markAnnSeen(Number(a.dataset.ann));
|
||||
});
|
||||
const close = (ev) => {
|
||||
if (!p.contains(ev.target) && !ev.target.closest('#annBtn')) {
|
||||
p.remove(); document.removeEventListener('pointerdown', close);
|
||||
}
|
||||
};
|
||||
setTimeout(() => document.addEventListener('pointerdown', close), 0);
|
||||
}
|
||||
|
||||
function markAnnSeen(id) {
|
||||
if (!id) return;
|
||||
const key = 'dc.ann.seen';
|
||||
let seen = [];
|
||||
try { seen = JSON.parse(localStorage.getItem(key) || '[]'); } catch { seen = []; }
|
||||
if (!seen.includes(id)) {
|
||||
seen.push(id);
|
||||
localStorage.setItem(key, JSON.stringify(seen.slice(-200)));
|
||||
renderAnnDot();
|
||||
}
|
||||
}
|
||||
|
||||
function showPopupAnnouncements() {
|
||||
const pops = (verInfo && verInfo.popup) || [];
|
||||
if (!pops.length) return;
|
||||
const key = 'dc.ann.popup';
|
||||
let done = [];
|
||||
try { done = JSON.parse(localStorage.getItem(key) || '[]'); } catch { done = []; }
|
||||
const next = pops.find(a => !done.includes(a.id));
|
||||
if (!next) return;
|
||||
$('#modalTitle').textContent = next.title || '公告';
|
||||
$('#modalBody').innerHTML = `<div class="ver-modal"><div class="vm-log" style="max-height:320px">${esc(next.content || '')}</div>
|
||||
${next.link_url ? `<div class="vm-tip"><a href="${esc(next.link_url)}" target="_blank" rel="noopener">查看详情</a></div>` : ''}</div>`;
|
||||
$('#modal').classList.remove('hidden');
|
||||
$('#modalOk').textContent = '我知道了';
|
||||
$('#modalOk').onclick = () => {
|
||||
done.push(next.id);
|
||||
localStorage.setItem(key, JSON.stringify(done.slice(-200)));
|
||||
markAnnSeen(next.id);
|
||||
$('#modal').classList.add('hidden');
|
||||
};
|
||||
}
|
||||
|
||||
function initVersionUI() {
|
||||
const chip = $('#verChip');
|
||||
const bell = $('#annBtn');
|
||||
if (chip) chip.addEventListener('click', () => { fetchVersion(true).then(openVersionModal); });
|
||||
if (bell) bell.addEventListener('click', e => { e.stopPropagation(); toggleAnnPanel(); });
|
||||
fetchVersion(false).then(() => showPopupAnnouncements());
|
||||
clearInterval(verTimer);
|
||||
// 后端每 5 分钟刷新一次,前端 2 分钟取一次缓存
|
||||
verTimer = setInterval(() => { if (!document.hidden) fetchVersion(false); }, 120000);
|
||||
}
|
||||
|
||||
initVersionUI();
|
||||
@@ -64,6 +64,10 @@
|
||||
<button id="pauseBtn" class="btn ghost" title="暂停 / 继续自动刷新">⏸ 暂停</button>
|
||||
<button id="refreshBtn" class="btn ghost"><i data-ico="refresh"></i>刷新</button>
|
||||
<button id="addBtn" class="btn primary"><i data-ico="plus"></i>添加容器</button>
|
||||
<button id="annBtn" class="ver-bell" title="公告">
|
||||
<i data-ico="bell"></i><span id="annDot" class="ann-dot hidden"></span>
|
||||
</button>
|
||||
<button id="verChip" class="ver-chip" title="点此检查更新">v—</button>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
+43
-9
@@ -135,8 +135,8 @@ table.tb th.num{text-align:right}
|
||||
/* 弹窗 */
|
||||
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center}
|
||||
.modal.hidden{display:none}
|
||||
.modal-mask{position:absolute;inset:0;background:rgba(16,24,40,.32)}
|
||||
.modal-box{position:relative;background:#fff;border-radius:12px;width:min(560px,94vw);max-height:88vh;overflow:auto;padding:18px 20px;box-shadow:0 20px 50px rgba(16,24,40,.2)}
|
||||
.modal-mask{position:absolute;inset:0;background:rgba(16,24,40,.32);z-index:1}
|
||||
.modal-box{position:relative;z-index:2;background:#fff;border-radius:12px;width:min(560px,94vw);max-height:88vh;overflow:auto;padding:18px 20px;box-shadow:0 20px 50px rgba(16,24,40,.2)}
|
||||
.modal-box h2{margin:0 0 14px;font-size:16px}
|
||||
.modal-box label{display:block;font-size:12px;color:var(--muted);margin:10px 0 4px}
|
||||
.modal-box input,.modal-box textarea{width:100%;padding:8px 10px;border:1px solid var(--line);border-radius:8px;font-size:13px;outline:none;font-family:inherit}
|
||||
@@ -391,17 +391,17 @@ table.tb th.num{text-align:right}
|
||||
.lim-chip{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:999px;background:#fff1f0;border:1px solid #ffd6d2;color:#c0392b;font-size:10.5px;font-weight:600;vertical-align:middle}
|
||||
|
||||
/* 通用弹窗 */
|
||||
.modal-mask{position:fixed;inset:0;background:rgba(18,24,34,.42);display:flex;align-items:center;justify-content:center;z-index:9998}
|
||||
.modal-card{background:#fff;border-radius:14px;width:min(460px,92vw);box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden}
|
||||
.modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eef2f7;font-size:14px}
|
||||
.modal-x{cursor:pointer;color:#93a0b4;font-size:13px}
|
||||
.modal-x:hover{color:#26303f}
|
||||
.modal-body{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
|
||||
.ov-mask{position:fixed;inset:0;background:rgba(18,24,34,.42);display:flex;align-items:center;justify-content:center;z-index:90}
|
||||
.ov-card{background:#fff;border-radius:14px;width:min(460px,92vw);box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden}
|
||||
.ov-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eef2f7;font-size:14px}
|
||||
.ov-x{cursor:pointer;color:#93a0b4;font-size:13px}
|
||||
.ov-x:hover{color:#26303f}
|
||||
.ov-body{padding:14px 16px;display:flex;flex-direction:column;gap:10px}
|
||||
.m-row{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#5a6b82}
|
||||
.m-row.col{flex-direction:column;align-items:stretch;gap:6px}
|
||||
.m-row select,.m-row input{height:30px;padding:0 9px;border:1px solid #dfe6ef;border-radius:8px;font-size:12.5px;flex:1}
|
||||
.m-row textarea{min-height:74px;padding:8px;border:1px solid #dfe6ef;border-radius:8px;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;resize:vertical}
|
||||
.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #eef2f7;background:#fbfdff}
|
||||
.ov-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #eef2f7;background:#fbfdff}
|
||||
|
||||
/* 容器行:安装时间 */
|
||||
.row .inst{flex-shrink:0;width:76px;text-align:right;line-height:1.3}
|
||||
@@ -433,3 +433,37 @@ table.tb th.num{text-align:right}
|
||||
.promo-card .pc-btn{display:inline-flex;align-items:center;height:36px;padding:0 18px;border-radius:999px;font-size:13px;font-weight:700;color:#fff;background:#1a73e8;box-shadow:0 3px 10px rgba(26,115,232,.26)}
|
||||
.promo-card .pc-btn:hover{text-decoration:none;color:#fff;transform:translateY(-1px)}
|
||||
.promo-card .pc-btn.green{background:#0f9d58;box-shadow:0 3px 10px rgba(15,157,88,.24)}
|
||||
|
||||
/* 顶栏:公告铃铛 + 版本号 */
|
||||
.ver-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:28px;border:1px solid #dfe6ef;border-radius:8px;background:#fff;color:#5a6b82;cursor:pointer}
|
||||
.ver-bell:hover{border-color:#c9d5e4;background:#f5f8fc;color:#1a5fbf}
|
||||
.ver-bell svg{width:14px;height:14px}
|
||||
.ver-bell .ann-dot{position:absolute;top:3px;right:4px;min-width:7px;height:7px;border-radius:999px;background:#e5484d;box-shadow:0 0 0 2px #fff}
|
||||
.ver-chip{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 10px;border:1px solid #dfe6ef;border-radius:8px;background:#fff;color:#5a6b82;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;white-space:nowrap}
|
||||
.ver-chip:hover{border-color:#c9d5e4;background:#f5f8fc;color:#1a5fbf}
|
||||
.ver-chip.has-update{border-color:#f0b37e;background:linear-gradient(95deg,#fff7ec,#ffeccd);color:#a2560b;box-shadow:0 2px 8px rgba(242,153,74,.22)}
|
||||
.ver-chip.has-update b{font-weight:800}
|
||||
.ver-chip .up-dot{width:7px;height:7px;border-radius:999px;background:#f2994a;box-shadow:0 0 0 2px #fff}
|
||||
|
||||
/* 公告面板 */
|
||||
.ann-panel{position:fixed;top:56px;right:16px;z-index:60;width:340px;max-height:64vh;overflow:auto;background:#fff;border:1px solid #dfe6ef;border-radius:12px;box-shadow:0 12px 34px rgba(18,38,63,.16);padding:6px}
|
||||
.ann-panel.hidden{display:none}
|
||||
.ann-panel .ap-head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 6px;font-size:12.5px;color:#8b98a9}
|
||||
.ann-panel .ap-head b{color:#1f2a3a;font-size:13px}
|
||||
.ann-item{display:block;padding:9px 10px;border-radius:8px;color:#2b3a4d}
|
||||
.ann-item:hover{background:#f3f7fd;text-decoration:none}
|
||||
.ann-item .ai-t{font-size:13px;font-weight:700;color:#1f2a3a;display:flex;align-items:center;gap:6px}
|
||||
.ann-item .ai-t .tag{font-size:10.5px;font-weight:700;padding:1px 6px;border-radius:999px;background:#eaf1fb;color:#1a5fbf}
|
||||
.ann-item .ai-t .tag.update{background:#e8f5ec;color:#0f7f47}
|
||||
.ann-item .ai-t .tag.promo{background:#fff2e3;color:#a2560b}
|
||||
.ann-item .ai-c{font-size:12px;color:#5a6b82;line-height:1.6;margin-top:3px;white-space:pre-wrap}
|
||||
.ann-item .ai-d{font-size:11px;color:#9aa4b5;margin-top:4px}
|
||||
.ann-empty{padding:22px 10px;text-align:center;color:#9aa4b5;font-size:12.5px}
|
||||
|
||||
/* 版本 / 更新弹窗内容 */
|
||||
.ver-modal .vm-row{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px dashed #eef2f7;font-size:12.5px;color:#2b3a4d}
|
||||
.ver-modal .vm-row:last-child{border-bottom:0}
|
||||
.ver-modal .vm-row .k{color:#8b98a9}
|
||||
.ver-modal .vm-log{margin-top:10px;padding:10px 12px;border-radius:10px;background:#f7f9fc;border:1px solid #e8eef6;font-size:12.5px;color:#3d4859;line-height:1.75;white-space:pre-wrap;max-height:220px;overflow:auto}
|
||||
.ver-modal .vm-tip{margin-top:10px;font-size:12px;color:#8b98a9;line-height:1.7}
|
||||
.ver-modal .vm-tip.warn{color:#a2560b}
|
||||
Reference in new issue
Block a user