summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/graphs/graphs_show.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/graphs/graphs_show.js')
-rw-r--r--app/assets/javascripts/graphs/graphs_show.js23
1 files changed, 0 insertions, 23 deletions
diff --git a/app/assets/javascripts/graphs/graphs_show.js b/app/assets/javascripts/graphs/graphs_show.js
deleted file mode 100644
index b670e907a5c..00000000000
--- a/app/assets/javascripts/graphs/graphs_show.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import flash from '../flash';
-import { __ } from '../locale';
-import axios from '../lib/utils/axios_utils';
-import ContributorsStatGraph from './stat_graph_contributors';
-
-document.addEventListener('DOMContentLoaded', () => {
- const url = document.querySelector('.js-graphs-show').dataset.projectGraphPath;
-
- axios.get(url)
- .then(({ data }) => {
- const graph = new ContributorsStatGraph();
- graph.init(data);
-
- $('#brush_change').change(() => {
- graph.change_date_header();
- graph.redraw_authors();
- });
-
- $('.stat-graph').fadeIn();
- $('.loading-graph').hide();
- })
- .catch(() => flash(__('Error fetching contributors data.')));
-});