BigW Consortium Gitlab

Commit 2f09c23c by Mike Greiling

refactor stat_graph_contributors_util to es6 module syntax

parent c2497d8b
require('./stat_graph_contributors_graph'); require('./stat_graph_contributors_graph');
require('./stat_graph_contributors_util');
require('./stat_graph_contributors'); require('./stat_graph_contributors');
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
/* global ContributorsGraph */ /* global ContributorsGraph */
/* global ContributorsAuthorGraph */ /* global ContributorsAuthorGraph */
/* global ContributorsMasterGraph */ /* global ContributorsMasterGraph */
/* global ContributorsStatGraphUtil */ import ContributorsStatGraphUtil from './stat_graph_contributors_util';
/* global d3 */ /* global d3 */
window.d3 = require('d3'); window.d3 = require('d3');
......
/* eslint-disable func-names, space-before-function-paren, object-shorthand, no-var, one-var, camelcase, one-var-declaration-per-line, comma-dangle, no-param-reassign, no-return-assign, quotes, prefer-arrow-callback, wrap-iife, consistent-return, no-unused-vars, max-len, no-cond-assign, no-else-return, max-len */ /* eslint-disable func-names, space-before-function-paren, object-shorthand, no-var, one-var, camelcase, one-var-declaration-per-line, comma-dangle, no-param-reassign, no-return-assign, quotes, prefer-arrow-callback, wrap-iife, consistent-return, no-unused-vars, max-len, no-cond-assign, no-else-return, max-len */
(function() {
window.ContributorsStatGraphUtil = { export default {
parse_log: function(log) { parse_log: function(log) {
var by_author, by_email, data, entry, i, len, total, normalized_email; var by_author, by_email, data, entry, i, len, total, normalized_email;
total = {}; total = {};
...@@ -134,5 +134,4 @@ ...@@ -134,5 +134,4 @@
return false; return false;
} }
} }
}; };
}).call(window);
/* eslint-disable quotes, no-var, camelcase, object-property-newline, comma-dangle, max-len, vars-on-top, quote-props */ /* eslint-disable quotes, no-var, camelcase, object-property-newline, comma-dangle, max-len, vars-on-top, quote-props */
/* global ContributorsStatGraphUtil */
require('~/graphs/stat_graph_contributors_util'); import ContributorsStatGraphUtil from '~/graphs/stat_graph_contributors_util';
describe("ContributorsStatGraphUtil", function () { describe("ContributorsStatGraphUtil", function () {
describe("#parse_log", function () { describe("#parse_log", function () {
......
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