Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.js « show « network « projects « pages « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e7dfd2d01280c6901e316f6a181ba7704db8b2bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import ShortcutsNetwork from '../../../../shortcuts_network';
import Network from '../network';

document.addEventListener('DOMContentLoaded', () => {
  if (!$('.network-graph').length) return;

  const networkGraph = new Network({
    url: $('.network-graph').attr('data-url'),
    commit_url: $('.network-graph').attr('data-commit-url'),
    ref: $('.network-graph').attr('data-ref'),
    commit_id: $('.network-graph').attr('data-commit-id'),
  });

  // eslint-disable-next-line no-new
  new ShortcutsNetwork(networkGraph.branch_graph);
});