4
1
mirror of https://github.com/Qortal/qortal-ui.git synced 2025-02-11 17:55:51 +00:00
AlphaX-Projects fa29ff4c43 Update UI
Refactor and added new functioms
2024-05-08 13:16:23 +02:00

16 lines
313 B
JavaScript

const path = require('path')
const makeSourceAbsolute = (dir, tree) => {
for (const component of Object.values(tree)) {
component.source = path.join(dir, component.file)
if (component.children) {
makeSourceAbsolute(dir, component.children)
}
}
return tree
}
module.exports = {
makeSourceAbsolute
}