refactor(webui): remove obsolete workspace picker code

This commit is contained in:
chengyongru authored and chengyongru committed 2026-10-08 20:33:15 +08:00
1 parent d5dc59ea76
commit 024d181013
17 files changed
+31 -109

No files matched your search

-7
View File
@@ -16,13 +16,6 @@ export function projectNameFromPath(path: string): string {
return normalized.split("/").filter(Boolean).pop() || path;
}
export function shortWorkspacePath(path: string): string {
const normalized = path.replace(/\\/g, "/");
const parts = normalized.split("/").filter(Boolean);
if (parts.length <= 3) return path;
return `.../${parts.slice(-3).join("/")}`;
}
export function isAbsoluteWorkspacePath(path: string): boolean {
const trimmed = path.trim();
return (