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,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 };