Skip to content

Commit

Permalink
feat(explorer): init file explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 4, 2021
1 parent d9b6c64 commit 55a3f44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 76 deletions.
75 changes: 0 additions & 75 deletions web/fake/pipeline.json

This file was deleted.

5 changes: 4 additions & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ <h3>Commit Contributions</h3>
<div id="commit-contributions"></div>
<h3>Line History</h3>
<div id="line-history"></div>
<h2>Commit Calendar</h2>
<h2>Code Explorer</h2>
<div id="file-explorer"></div>

<h1>Deploy Design</h1>
<h2>Commit Calendar</h2>
<div id="commit-calendar"></div>
<h2>Branches History</h2>
<div id="branch-timeline"></div>
Expand Down Expand Up @@ -170,6 +172,7 @@ <h2>Commits Tree</h2>
<script src="public/js/graph/git/commit-calendar.js"></script>
<script src="public/js/graph/git/commit-code-frequency.js"></script>
<script src="public/js/graph/git/time-interactive-line.js"></script>
<script src="public/js/graph/git/file-explorer.js"></script>

<script src="public/js/graph/plugins/struct-visual.js"></script>
<script src="public/js/graph/plugins/pipeline-visual.js"></script>
Expand Down
3 changes: 3 additions & 0 deletions web/public/js/graph/git/file-explorer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function renderCodeExplorer(data, elementId) {
console.log(data);
}
4 changes: 4 additions & 0 deletions web/public/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ d3.json("data/struct.json").then(function (data) {
visualizationStruct(data);
});

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

d3.json("data/pipeline.json").then(function (data) {
if (!!data) {
let pipeline = [];
Expand Down

0 comments on commit 55a3f44

Please sign in to comment.