@atomist/org-visualizer
Version:
Organization Visualizer using Atomist project scanning
31 lines • 1.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
function ProjectExplorer(props) {
return React.createElement("div", null,
React.createElement("h1", null,
"Project ",
props.analysisResult.repoRef.owner,
":",
props.analysisResult.repoRef.repo),
React.createElement("a", { href: props.analysisResult.repoRef.url }, "Source"),
React.createElement("h2", null, "Architectural Concerns"),
props.aspects.map(displayFeature));
}
exports.ProjectExplorer = ProjectExplorer;
function displayFeature(feature) {
return React.createElement("div", null,
React.createElement("h3", null, feature.aspect.displayName),
React.createElement("ul", null, feature.fingerprints.map(displayFingerprint)));
}
function displayFingerprint(fingerprint) {
return React.createElement("li", { style: fingerprint.style, key: fingerprint.displayName },
React.createElement("i", null, fingerprint.displayName),
": ",
fingerprint.displayValue,
" ",
" (Ideal: ",
fingerprint.idealDisplayString || "none",
")");
}
//# sourceMappingURL=project.js.map