refactor(webui): remove obsolete workspace picker code
This commit is contained in:
1 parent
d5dc59ea76
commit
024d181013
17 files changed
+31
-109
No files matched your search
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user