增加web功能
This commit is contained in:
@@ -687,23 +687,15 @@
|
||||
|
||||
<!-- 本地规则管理 -->
|
||||
<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">本地规则管理</h3>
|
||||
<button id="add-rule-btn" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
|
||||
<i class="fa fa-plus mr-2"></i>添加规则
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="text-lg font-semibold mb-6">本地规则管理</h3>
|
||||
|
||||
<!-- 添加规则表单 -->
|
||||
<div id="add-rule-form" class="mb-6 bg-gray-50 p-4 rounded-lg hidden">
|
||||
<div id="add-rule-form" class="mb-6 bg-gray-50 p-4 rounded-lg">
|
||||
<div class="flex items-center space-x-4">
|
||||
<input type="text" id="new-rule" placeholder="输入规则(例如:example.com 或 regex:/example\.com/)" class="flex-1 px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
||||
<button id="save-rule-btn" class="px-4 py-2 bg-success text-white rounded-md hover:bg-success/90 transition-colors">
|
||||
保存
|
||||
</button>
|
||||
<button id="cancel-rule-btn" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors">
|
||||
取消
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -727,15 +719,10 @@
|
||||
|
||||
<!-- 远程黑名单管理 -->
|
||||
<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">远程黑名单管理</h3>
|
||||
<button id="add-blacklist-btn" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
|
||||
<i class="fa fa-plus mr-2"></i>添加黑名单
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="text-lg font-semibold mb-6">远程黑名单管理</h3>
|
||||
|
||||
<!-- 添加黑名单表单 -->
|
||||
<div id="add-blacklist-form" class="mb-6 bg-gray-50 p-4 rounded-lg hidden">
|
||||
<div id="add-blacklist-form" class="mb-6 bg-gray-50 p-4 rounded-lg">
|
||||
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
||||
<div>
|
||||
<label for="blacklist-name" class="block text-sm font-medium text-gray-700 mb-1">名称</label>
|
||||
@@ -745,13 +732,10 @@
|
||||
<label for="blacklist-url" class="block text-sm font-medium text-gray-700 mb-1">URL</label>
|
||||
<input type="text" id="blacklist-url" placeholder="输入黑名单URL" class="w-full px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
||||
</div>
|
||||
<div class="flex items-end space-x-4">
|
||||
<div class="flex items-end">
|
||||
<button id="save-blacklist-btn" class="px-4 py-2 bg-success text-white rounded-md hover:bg-success/90 transition-colors">
|
||||
保存
|
||||
</button>
|
||||
<button id="cancel-blacklist-btn" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors">
|
||||
取消
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -776,26 +760,22 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hosts条目管理 -->
|
||||
|
||||
</div>
|
||||
|
||||
<div id="hosts-content" class="hidden space-y-6">
|
||||
<!-- Hosts管理页面内容 -->
|
||||
<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">Hosts条目管理</h3>
|
||||
<button id="add-hosts-btn" class="px-4 py-2 bg-primary text-white rounded-md hover:bg-primary/90 transition-colors">
|
||||
<i class="fa fa-plus mr-2"></i>添加条目
|
||||
</button>
|
||||
</div>
|
||||
<h3 class="text-lg font-semibold mb-6">Hosts条目管理</h3>
|
||||
|
||||
<!-- 添加hosts条目表单 -->
|
||||
<div id="add-hosts-form" class="mb-6 bg-gray-50 p-4 rounded-lg hidden">
|
||||
<div id="add-hosts-form" class="mb-6 bg-gray-50 p-4 rounded-lg">
|
||||
<div class="flex items-center space-x-4">
|
||||
<input type="text" id="hosts-ip" placeholder="IP地址" class="w-32 px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
||||
<input type="text" id="hosts-domain" placeholder="域名" class="flex-1 px-4 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-primary focus:border-transparent">
|
||||
<button id="save-hosts-btn" class="px-4 py-2 bg-success text-white rounded-md hover:bg-success/90 transition-colors">
|
||||
保存
|
||||
</button>
|
||||
<button id="cancel-hosts-btn" class="px-4 py-2 border border-gray-300 rounded-md text-gray-700 hover:bg-gray-50 transition-colors">
|
||||
取消
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -819,15 +799,6 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="hosts-content" class="hidden">
|
||||
<!-- Hosts管理页面内容 -->
|
||||
<div class="bg-white rounded-lg p-6 card-shadow">
|
||||
<h3 class="text-lg font-semibold mb-6">Hosts管理</h3>
|
||||
<!-- 这里将添加Hosts管理相关内容 -->
|
||||
<p>Hosts管理页面内容待实现</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="blacklists-content" class="hidden">
|
||||
<!-- 黑名单管理页面内容 -->
|
||||
<div class="bg-white rounded-lg p-6 card-shadow">
|
||||
|
||||
Reference in New Issue
Block a user