feat: register Shareit IDs with QR

This commit is contained in:
王源
2026-10-20 17:03:12 +08:00
parent 58f33f94cc
commit bc575812cb
9 changed files with 140 additions and 81 deletions
+2 -2
View File
@@ -68,8 +68,8 @@
clearTimeout(showToast.timer); showToast.timer = setTimeout(() => toast.classList.remove('show'), 1800);
}
$('currentUser').innerHTML = `<b>${escapeHtml(current.username)}</b><small>${current.role === 'admin' ? '管理员' : '普通用户'}</small>`;
$('historyScope').textContent = current.role === 'admin' ? '管理员可查看当前浏览器内全部用户的记录。' : '普通用户仅可查看当前浏览器内自己的记录。';
$('currentUser').textContent = current.username;
$('historyScope').textContent = '查看当前浏览器内你有权限访问的链接记录。';
$('logoutBtn').addEventListener('click', () => { auth.logout(); location.href = 'login.html'; });
$('historySearch').addEventListener('input', render);
$('clearHistory').addEventListener('click', () => {