Some general refactors and compaction

Made a distinction from the "core" ui vs the rest of the ui that composes from there.
This commit is contained in:
2024-05-16 11:21:07 -04:00
parent 7250456db5
commit 5ceef39410
25 changed files with 258 additions and 321 deletions

View File

@ -38,12 +38,16 @@ foreach ($file in $files)
}
else
{
# For files without a namespace, create a symbolic link in the root of the original code's path in virtual view
$linkPath = Join-Path $path_virtual_view $fileName
if (-not (Test-Path $linkPath)) {
New-Item -ItemType SymbolicLink -Path $linkPath -Value $file.FullName
}
}
# For files without a namespace, maintain the directory structure in the virtual view
$relativePath = $file.FullName.Substring($path_code.Length + 1)
$linkPath = Join-Path $path_virtual_view $relativePath
$linkDir = Split-Path -Parent $linkPath
if (-not (Test-Path $linkDir)) {
New-Item -ItemType Directory -Path $linkDir -Force
}
New-Item -ItemType SymbolicLink -Path $linkPath -Value $file.FullName
}
}
Write-Host "Virtual view created successfully."