This commit is contained in:
ryan
2026-07-13 15:44:03 +08:00
parent 0548a8a5d4
commit 26be762c3a
102 changed files with 909 additions and 490 deletions
@@ -1,8 +1,8 @@
'use client';
import {useEffect, useState} from 'react';
import { useEffect, useState } from 'react';
import {Button} from '@/components/ui/button';
import { Button } from '@/components/ui/button';
import {
Dialog,
DialogContent,
@@ -11,9 +11,9 @@ import {
DialogHeader,
DialogTitle,
} from '@/components/ui/dialog';
import {Field, FieldGroup, FieldLabel} from '@/components/ui/field';
import {Input} from '@/components/ui/input';
import {Spinner} from '@/components/ui/spinner';
import { Field, FieldGroup, FieldLabel } from '@/components/ui/field';
import { Input } from '@/components/ui/input';
import { Spinner } from '@/components/ui/spinner';
interface CreateRuleDialogProps {
open: boolean;
@@ -1,6 +1,6 @@
import {describe, expect, it} from 'vitest';
import { describe, expect, it } from 'vitest';
import type {WAFRuleGraph} from '@/lib/services/openflare';
import type { WAFRuleGraph } from '@/lib/services/openflare';
import {
acceptedNodeChanges,
@@ -1,7 +1,7 @@
import type {EdgeChange, Node, NodeChange} from '@xyflow/react';
import type {WAFRuleGraph, WAFRuleNode} from '@/lib/services/openflare';
import type { EdgeChange, Node, NodeChange } from '@xyflow/react';
import type { WAFRuleGraph, WAFRuleNode } from '@/lib/services/openflare';
import {wouldCreateCycle} from './graph-validation';
import { wouldCreateCycle } from './graph-validation';
export type GraphErrorTarget = { kind: 'node' | 'edge'; id: string };