refactor(web): 界面工具 - 代码优化,替换重复的复制、打包、项目选择和主题切换实现

删除未再引用的文字扫光组件。复制提示、压缩包读写、项目多选和主题揭示的对外行为保持不变。
This commit is contained in:
ddcat666
2026-10-01 11:40:08 +08:00
parent 12125e18f6
commit 6195d8d4f7
7 changed files with 264 additions and 425 deletions

View File

@@ -1,6 +1,11 @@
import { clsx, type ClassValue } from "clsx";
import { type ClassValue, clsx } from "clsx";
import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
function joinClassNames(parts: ClassValue[]): string {
const resolved = twMerge(clsx(parts));
return resolved.length > 0 ? resolved : "";
}
export function cn(...values: ClassValue[]): string {
return joinClassNames(values);
}