first commit

This commit is contained in:
Beyhan Oğur
2026-04-26 21:52:23 +03:00
commit 880f412e2c
2662 changed files with 866266 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import { RoutingRule } from "@/lib/types/routingRules";
export const POSITIONS_COOKIE = "bf-routing-tree-positions";
export interface PositionCookie {
fingerprint: string;
positions: Record<string, { x: number; y: number }>;
viewport?: { x: number; y: number; zoom: number };
}
/** Changes whenever any rule is added, edited, or deleted. */
export function computeFingerprint(rules: RoutingRule[]): string {
return rules
.map((r) => `${r.id}:${r.updated_at}`)
.sort()
.join("|");
}