Skip to content

Commit

Permalink
feat(explorer): make data works
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 4, 2021
1 parent 4575270 commit 3a2f3e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/app/visual/local_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ fn lookup_coco_reporter(req: HttpRequest, project: &str) -> HttpResponse {
} else if coco_type.ends_with("-tags") {
coco_type = "git".to_string();
project_file = format!("{}-tags.json", project);
} else if coco_type.ends_with("-file-history") {
coco_type = "git".to_string();
project_file = format!("{}-file-history.json", project);
}

let output_path = Settings::reporter(Some(coco_type.as_str())).join(project_file);
Expand Down
1 change: 0 additions & 1 deletion web/public/js/graph/cloc/code-flower.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ function renderCodeFlower(originData, selector) {
}
}

console.log(dMap);
let jdata = Object.values(dMap)
let data = CodeSupport.hierarchy(jdata);

Expand Down
2 changes: 1 addition & 1 deletion web/public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ d3.json("data/struct.json").then(function (data) {
visualizationStruct(data);
});

d3.json("data/file-history.json").then(function (data) {
d3.json("data/git-file-history.json").then(function (data) {
renderCodeExplorer(data, '#file-history');
});

Expand Down

0 comments on commit 3a2f3e6

Please sign in to comment.