summaryrefslogtreecommitdiffstats
path: root/web_src/js/gitGraphLoader.js
blob: f2687fa2709b827610c0d91d637d1e063f56fd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$(async () => {
  const graphCanvas = document.getElementById('graph-canvas');
  if (!graphCanvas) return;

  const { default: gitGraph } = await import(/* webpackChunkName: "gitgraph" */'./gitGraph.js');

  const graphList = [];
  $('#graph-raw-list li span.node-relation').each(function () {
    graphList.push($(this).text());
  });

  gitGraph(graphCanvas, graphList);
});