${domainInfo ? `
${domainInfo.icon ? `

` : ''}
@@ -1866,11 +1866,11 @@ async function showLogDetailModal(log) {
- 类别:
+ 类别:
${domainInfo.categoryName || '未知'}
- 所属单位/公司:
+ 所属单位/公司:
${domainInfo.company || '未知'}
@@ -1880,11 +1880,11 @@ async function showLogDetailModal(log) {
// 构建跟踪器浮窗内容
const trackerTooltip = isTracker ? `
-
+
已知跟踪器
名称: ${trackerInfo.name || '未知'}
类别: ${trackerInfo.categoryId && trackersDatabase && trackersDatabase.categories ? trackersDatabase.categories[trackerInfo.categoryId] : '未知'}
- ${trackerInfo.url ? `
` : ''}
+ ${trackerInfo.url ? `
` : ''}
${trackerInfo.source ? `
源: ${trackerInfo.source}
` : ''}
` : '';
@@ -1893,12 +1893,12 @@ async function showLogDetailModal(log) {
const trackerDiv = document.createElement('div');
trackerDiv.className = 'col-span-1 md:col-span-2 space-y-1';
trackerDiv.innerHTML = `
-
跟踪器信息
-
+
跟踪器信息
+
${isTracker ? `
-
+
${trackerTooltip}
${trackerInfo.name} (${trackerInfo.categoryId && trackersDatabase && trackersDatabase.categories ? trackersDatabase.categories[trackerInfo.categoryId] : '未知'})
@@ -1929,24 +1929,24 @@ async function showLogDetailModal(log) {
const recordsDiv = document.createElement('div');
recordsDiv.className = 'col-span-1 md:col-span-2 space-y-1';
recordsDiv.innerHTML = `
-
解析记录
-
${dnsRecords}
+
解析记录
+
${dnsRecords}
`;
// DNS服务器
const dnsServerDiv = document.createElement('div');
dnsServerDiv.className = 'col-span-1 md:col-span-2 space-y-1';
dnsServerDiv.innerHTML = `
-
DNS服务器
-
${dnsServer}
+
DNS服务器
+
${dnsServer}
`;
// DNSSEC专用服务器
const dnssecServerDiv = document.createElement('div');
dnssecServerDiv.className = 'col-span-1 md:col-span-2 space-y-1';
dnssecServerDiv.innerHTML = `
-
DNSSEC专用服务器
-
${dnssecServer}
+
DNSSEC专用服务器
+
${dnssecServer}
`;
basicInfoGrid.appendChild(dnsFeatures);
@@ -1961,25 +1961,25 @@ async function showLogDetailModal(log) {
// 响应细节部分
const responseDetails = document.createElement('div');
- responseDetails.className = 'space-y-4 pt-4 border-t border-gray-200';
+ responseDetails.className = 'space-y-4 pt-4 border-t border-gray-200 dark:border-gray-700';
const responseDetailsTitle = document.createElement('h4');
- responseDetailsTitle.className = 'text-sm font-medium text-gray-700 uppercase tracking-wider';
+ responseDetailsTitle.className = 'text-sm font-medium text-gray-700 dark:text-gray-300 uppercase tracking-wider';
responseDetailsTitle.textContent = '响应细节';
// 准备响应细节内容,根据条件添加规则信息
let responseDetailsHTML = `
-
响应时间
-
${responseTime}毫秒
+
响应时间
+
${responseTime}毫秒
-
响应代码
-
${getResponseCodeText(log.responseCode)}
+
响应代码
+
${getResponseCodeText(log.responseCode)}
-
缓存状态
-
+
缓存状态
+
${fromCache ? '缓存' : '非缓存'}
@@ -1989,8 +1989,8 @@ async function showLogDetailModal(log) {
if (result === 'blocked') {
responseDetailsHTML += `
-
规则
-
${blockRule || '-'}
+
规则
+
${blockRule || '-'}
`;
}
@@ -2004,21 +2004,21 @@ async function showLogDetailModal(log) {
// 客户端详情部分
const clientDetails = document.createElement('div');
- clientDetails.className = 'space-y-4 pt-4 border-t border-gray-200';
+ clientDetails.className = 'space-y-4 pt-4 border-t border-gray-200 dark:border-gray-700';
const clientDetailsTitle = document.createElement('h4');
- clientDetailsTitle.className = 'text-sm font-medium text-gray-700 uppercase tracking-wider';
+ clientDetailsTitle.className = 'text-sm font-medium text-gray-700 dark:text-gray-300 uppercase tracking-wider';
clientDetailsTitle.textContent = '客户端详情';
// 创建客户端IP容器,为后续更新地理位置做准备
const clientIPContainer = document.createElement('div');
- clientIPContainer.className = 'text-sm font-medium text-gray-900';
+ clientIPContainer.className = 'text-sm font-medium text-gray-900 dark:text-gray-100';
clientIPContainer.innerHTML = `${clientIP}
(${location})`;
const clientIPDiv = document.createElement('div');
clientIPDiv.className = 'space-y-1';
clientIPDiv.innerHTML = `
-
IP地址
+
IP地址
`;
clientIPDiv.appendChild(clientIPContainer);
@@ -2035,7 +2035,7 @@ async function showLogDetailModal(log) {
// 操作按钮区域
const actionButtons = document.createElement('div');
- actionButtons.className = 'pt-4 border-t border-gray-200 flex justify-end space-x-2';
+ actionButtons.className = 'pt-4 border-t border-gray-200 dark:border-gray-700 flex justify-end space-x-2';
// 根据域名状态显示不同的操作按钮
if (result === 'blocked') {
@@ -2125,16 +2125,16 @@ async function showLogDetailModal(log) {
errorModal.style.zIndex = '9999';
const errorContent = document.createElement('div');
- errorContent.className = 'bg-white rounded-xl shadow-2xl p-6 w-full max-w-md animate-slide-in';
+ errorContent.className = 'bg-white dark:bg-gray-800 dark:text-gray-100 rounded-xl shadow-2xl p-6 w-full max-w-md animate-slide-in';
errorContent.innerHTML = `
-
错误
-
-
+
加载日志详情失败: ${error.message}
`;