mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-03-01 15:03:57 +08:00
feat: implement FlowExecutor for executing flow definitions with DAG traversal and node execution
This commit is contained in:
17
ccw/frontend/src/lib/utils.ts
Normal file
17
ccw/frontend/src/lib/utils.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import { type ClassValue, clsx } from "clsx";
|
||||
import { twMerge } from "tailwind-merge";
|
||||
|
||||
/**
|
||||
* Merges class names using clsx and tailwind-merge.
|
||||
* This utility combines Tailwind CSS classes intelligently,
|
||||
* handling conflicts and deduplication.
|
||||
*
|
||||
* @example
|
||||
* cn("px-2 py-1", "px-4") // => "py-1 px-4"
|
||||
* cn("bg-primary", condition && "bg-secondary") // conditional classes
|
||||
*/
|
||||
export function cn(...inputs: ClassValue[]): string {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
|
||||
export type { ClassValue };
|
||||
Reference in New Issue
Block a user