refactor stat_graph_contributors to es6 module syntax
This commit is contained in:
parent
2d2e0b7de8
commit
52426c65ac
2 changed files with 100 additions and 102 deletions
|
@ -1 +1,4 @@
|
|||
require('./stat_graph_contributors');
|
||||
import ContributorsStatGraph from './stat_graph_contributors';
|
||||
|
||||
// export to global scope
|
||||
window.ContributorsStatGraph = ContributorsStatGraph;
|
||||
|
|
|
@ -1,14 +1,10 @@
|
|||
/* 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 ContributorsStatGraphUtil from './stat_graph_contributors_util';
|
||||
|
||||
/* global d3 */
|
||||
|
||||
window.d3 = require('d3');
|
||||
|
||||
(function() {
|
||||
this.ContributorsStatGraph = (function() {
|
||||
export default (function() {
|
||||
function ContributorsStatGraph() {}
|
||||
|
||||
ContributorsStatGraph.prototype.init = function(log) {
|
||||
|
@ -113,4 +109,3 @@ window.d3 = require('d3');
|
|||
|
||||
return ContributorsStatGraph;
|
||||
})();
|
||||
}).call(window);
|
||||
|
|
Loading…
Reference in a new issue