fixFilePaths() — ui Function Reference
Architecture documentation for the fixFilePaths() function in registry.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 9048841a_f467_e053_7d9c_7b747f2eff93["fixFilePaths()"] c2827044_b928_a1b2_3033_3282c0588350["registry.ts"] 9048841a_f467_e053_7d9c_7b747f2eff93 -->|defined in| c2827044_b928_a1b2_3033_3282c0588350 9ad02a82_006c_477a_ceba_832cde81fa46["getRegistryItem()"] 9ad02a82_006c_477a_ceba_832cde81fa46 -->|calls| 9048841a_f467_e053_7d9c_7b747f2eff93 fe88349e_c88d_cdd1_747a_8d44286b2b18["getFileTarget()"] 9048841a_f467_e053_7d9c_7b747f2eff93 -->|calls| fe88349e_c88d_cdd1_747a_8d44286b2b18 style 9048841a_f467_e053_7d9c_7b747f2eff93 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
deprecated/www/lib/registry.ts lines 187–203
function fixFilePaths(files: z.infer<typeof registryItemSchema>["files"]) {
if (!files) {
return []
}
// Resolve all paths relative to the first file's directory.
const firstFilePath = files[0].path
const firstFilePathDir = path.dirname(firstFilePath)
return files.map((file) => {
return {
...file,
path: path.relative(firstFilePathDir, file.path),
target: getFileTarget(file),
}
})
}
Domain
Subdomains
Defined In
Calls
Called By
Source
Frequently Asked Questions
What does fixFilePaths() do?
fixFilePaths() is a function in the ui codebase, defined in deprecated/www/lib/registry.ts.
Where is fixFilePaths() defined?
fixFilePaths() is defined in deprecated/www/lib/registry.ts at line 187.
What does fixFilePaths() call?
fixFilePaths() calls 1 function(s): getFileTarget.
What calls fixFilePaths()?
fixFilePaths() is called by 1 function(s): getRegistryItem.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free