diagram.lib.config.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of common-base Show documentation
Show all versions of common-base Show documentation
DSL based modeling framework - facilities common base
function composeControllerUrl(componentNamespace, componentName, controller) {
if (controller) {
const lastDotIndex = controller.lastIndexOf('.')
const controllerShortName = lastDotIndex > 0 ? controller.substring(lastDotIndex + 1 ) : controller
const controllerFolder = lastDotIndex > 0 ? controller.substring(0, lastDotIndex ).split(".").join("/") : ""
return 'controllers/' + componentNamespace + '/' + controllerFolder + '/' + controllerShortName
}
return "controllers/default"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy