Add foundational API client, UI components, and state management setup
- Created `generate-api-client.sh` for OpenAPI-based TypeScript client generation. - Added `src/lib/api` with Axios-based API client, error handling utilities, and placeholder for generated types. - Implemented Zustand-based `authStore` for user authentication and token management. - Integrated reusable UI components (e.g., `Dialog`, `Select`, `Textarea`, `Sheet`, `Separator`, `Checkbox`) using Radix UI and utility functions. - Established groundwork for client-server integration, state management, and modular UI development.
This commit is contained in:
6
frontend/src/lib/utils/cn.ts
Executable file
6
frontend/src/lib/utils/cn.ts
Executable file
@@ -0,0 +1,6 @@
|
||||
import { clsx, type ClassValue } from 'clsx';
|
||||
import { twMerge } from 'tailwind-merge';
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
4
frontend/src/lib/utils/index.ts
Executable file
4
frontend/src/lib/utils/index.ts
Executable file
@@ -0,0 +1,4 @@
|
||||
// General utility functions
|
||||
// Re-export cn utility and other helpers
|
||||
|
||||
export { cn } from './cn';
|
||||
Reference in New Issue
Block a user