init: initial commit

This commit is contained in:
Blizzard
2026-02-11 16:08:37 +08:00
commit d948a39ad5
64 changed files with 22049 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { type ClassValue, clsx } from "clsx"
import { twMerge } from "tailwind-merge"
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
export function formatDate(date: string | Date): string {
return new Intl.DateTimeFormat('zh-CN', {
year: 'numeric',
month: '2-digit',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
}).format(new Date(date))
}
export function generateId(): string {
return Math.random().toString(36).substring(2, 11)
}