Commit 52426c65 authored by Mike Greiling's avatar Mike Greiling

refactor stat_graph_contributors to es6 module syntax

parent 2d2e0b7d
require('./stat_graph_contributors'); import ContributorsStatGraph from './stat_graph_contributors';
// export to global scope
window.ContributorsStatGraph = ContributorsStatGraph;
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, camelcase, one-var-declaration-per-line, quotes, no-param-reassign, quote-props, comma-dangle, prefer-template, max-len, no-return-assign */ /* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, camelcase, one-var-declaration-per-line, quotes, no-param-reassign, quote-props, comma-dangle, prefer-template, max-len, no-return-assign, no-shadow */
import d3 from 'd3';
import { ContributorsGraph, ContributorsAuthorGraph, ContributorsMasterGraph } from './stat_graph_contributors_graph'; import { ContributorsGraph, ContributorsAuthorGraph, ContributorsMasterGraph } from './stat_graph_contributors_graph';
import ContributorsStatGraphUtil from './stat_graph_contributors_util'; import ContributorsStatGraphUtil from './stat_graph_contributors_util';
/* global d3 */ export default (function() {
window.d3 = require('d3');
(function() {
this.ContributorsStatGraph = (function() {
function ContributorsStatGraph() {} function ContributorsStatGraph() {}
ContributorsStatGraph.prototype.init = function(log) { ContributorsStatGraph.prototype.init = function(log) {
...@@ -112,5 +108,4 @@ window.d3 = require('d3'); ...@@ -112,5 +108,4 @@ window.d3 = require('d3');
}; };
return ContributorsStatGraph; return ContributorsStatGraph;
})(); })();
}).call(window);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment