feat(waf): 规则组新建/编辑改用右侧 Sheet 抽屉

将 RuleGroupDialog 替换为 RuleGroupSheet,使用 shadcn Sheet 侧栏交互,
与站点绑定等操作保持一致;添加规则条目仍保留弹窗。
This commit is contained in:
ryan
2026-06-18 20:23:56 +08:00
parent 89b3f5d843
commit a2f838605c
4 changed files with 402 additions and 401 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ import type {WAFRuleGroup, WAFRuleGroupPayload} from '@/lib/services/openflare';
import {ProxyRouteService, WafService} from '@/lib/services/openflare';
import {getErrorMessage} from './components/helpers';
import {RuleGroupDialog} from './components/rule-group-dialog';
import {RuleGroupSheet} from './components/rule-group-sheet';
import {RuleGroupsTable} from './components/rule-groups-table';
import {SiteBindingSheet} from './components/site-binding-sheet';
@@ -204,7 +204,7 @@ export default function WafPage() {
</CardContent>
</Card>
<RuleGroupDialog
<RuleGroupSheet
open={editorOpen}
group={editingGroup}
ipGroups={ipGroupsQuery.data ?? []}