移除废案只修复请求域名排行显示

This commit is contained in:
Alex Yang
2025-11-28 17:08:34 +08:00
parent 25a21e284b
commit bc912056cd
28 changed files with 119596 additions and 109 deletions

View File

@@ -536,9 +536,9 @@
<!-- 最近活动表格 -->
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<!-- 最常屏蔽域名 -->
<!-- 被拦截域名排行 -->
<div class="bg-white rounded-lg p-6 card-shadow">
<h3 class="text-lg font-semibold mb-4">最常屏蔽域名</h3>
<h3 class="text-lg font-semibold mb-4">被拦截域名排行</h3>
<div class="h-64 overflow-y-auto pr-2 scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent">
<div class="space-y-3" id="top-blocked-table">
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-danger">
@@ -590,45 +590,19 @@
</div>
</div>
<!-- 最近屏蔽域名 -->
<!-- 请求域名排行 -->
<div class="bg-white rounded-lg p-6 card-shadow">
<h3 class="text-lg font-semibold mb-4">最近屏蔽域名</h3>
<h3 class="text-lg font-semibold mb-4">请求域名排行</h3>
<div class="h-64 overflow-y-auto pr-2 scrollbar-thin scrollbar-thumb-gray-300 scrollbar-track-transparent">
<div class="space-y-3" id="recent-blocked-table">
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-warning">
<div class="space-y-3" id="top-domains-table">
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-success">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">recent1.com</div>
<div class="text-sm text-gray-500 mt-1">2024-01-01 10:00:00</div>
<div class="flex items-center">
<span class="w-6 h-6 flex items-center justify-center rounded-full bg-success/10 text-success text-xs font-medium mr-3">1</span>
<span class="font-medium truncate">example.com</span>
</div>
</div>
<span class="ml-4 flex-shrink-0 text-sm text-gray-500">广告</span>
</div>
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-warning">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">recent2.com</div>
<div class="text-sm text-gray-500 mt-1">2024-01-01 10:01:00</div>
</div>
<span class="ml-4 flex-shrink-0 text-sm text-gray-500">恶意</span>
</div>
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-warning">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">recent3.com</div>
<div class="text-sm text-gray-500 mt-1">2024-01-01 10:02:00</div>
</div>
<span class="ml-4 flex-shrink-0 text-sm text-gray-500">广告</span>
</div>
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-warning">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">recent4.com</div>
<div class="text-sm text-gray-500 mt-1">2024-01-01 10:03:00</div>
</div>
<span class="ml-4 flex-shrink-0 text-sm text-gray-500">追踪</span>
</div>
<div class="flex items-center justify-between p-3 rounded-md hover:bg-gray-50 transition-colors border-l-4 border-warning">
<div class="flex-1 min-w-0">
<div class="font-medium truncate">recent5.com</div>
<div class="text-sm text-gray-500 mt-1">2024-01-01 10:04:00</div>
</div>
<span class="ml-4 flex-shrink-0 text-sm text-gray-500">恶意</span>
<span class="ml-4 flex-shrink-0 font-semibold text-success">50</span>
</div>
</div>
</div>
@@ -701,37 +675,6 @@
</div>
</div>
</div>
<!-- TOP域名 -->
<div class="bg-white rounded-lg p-6 card-shadow">
<div class="flex items-center justify-between mb-6">
<h3 class="text-lg font-semibold">TOP域名</h3>
<div id="top-domains-loading" class="flex items-center text-sm text-gray-500">
<i class="fa fa-spinner fa-spin mr-2"></i>
<span>加载中...</span>
</div>
<div id="top-domains-error" class="flex items-center text-sm text-danger hidden">
<i class="fa fa-exclamation-circle mr-2"></i>
<span>加载失败</span>
<button id="retry-top-domains" class="ml-2 text-primary hover:underline">重试</button>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full">
<thead>
<tr class="border-b border-gray-200">
<th class="text-left py-3 px-4 text-sm font-medium text-gray-500">域名</th>
<th class="text-right py-3 px-4 text-sm font-medium text-gray-500">请求次数</th>
</tr>
</thead>
<tbody id="top-domains-table">
<tr>
<td colspan="2" class="py-4 text-center text-gray-500">加载中...</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>