Commit a1e86f9a authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in app/assets/javascripts/graphs/stat_graph_contributors.js

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent adec483e
/* 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 */ /* 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 _ from 'underscore'; import _ from 'underscore';
<<<<<<< HEAD
=======
import { timeFormat } from 'd3-time-format';
>>>>>>> origin/master
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';
import { n__, s__, createDateTimeFormat, sprintf } from '../locale'; import { n__, s__, createDateTimeFormat, sprintf } from '../locale';
const d3 = { timeFormat };
export default (function() { export default (function() {
function ContributorsStatGraph() { function ContributorsStatGraph() {
this.dateFormat = createDateTimeFormat({ year: 'numeric', month: 'long', day: 'numeric' }); this.dateFormat = createDateTimeFormat({ year: 'numeric', month: 'long', day: 'numeric' });
...@@ -105,7 +99,6 @@ export default (function() { ...@@ -105,7 +99,6 @@ export default (function() {
}; };
ContributorsStatGraph.prototype.change_date_header = function() { ContributorsStatGraph.prototype.change_date_header = function() {
<<<<<<< HEAD
const x_domain = ContributorsGraph.prototype.x_domain; const x_domain = ContributorsGraph.prototype.x_domain;
const formattedDateRange = sprintf( const formattedDateRange = sprintf(
s__('ContributorsPage|%{startDate} – %{endDate}'), s__('ContributorsPage|%{startDate} – %{endDate}'),
...@@ -115,13 +108,6 @@ export default (function() { ...@@ -115,13 +108,6 @@ export default (function() {
}, },
); );
return $('#date_header').text(formattedDateRange); return $('#date_header').text(formattedDateRange);
=======
var print, print_date_format, x_domain;
x_domain = ContributorsGraph.prototype.x_domain;
print_date_format = d3.timeFormat("%B %e %Y");
print = print_date_format(x_domain[0]) + " - " + print_date_format(x_domain[1]);
return $("#date_header").text(print);
>>>>>>> origin/master
}; };
ContributorsStatGraph.prototype.redraw_author_commit_info = function(author) { ContributorsStatGraph.prototype.redraw_author_commit_info = function(author) {
......
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