Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
2f09c23c
Commit
2f09c23c
authored
Feb 23, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor stat_graph_contributors_util to es6 module syntax
parent
c2497d8b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
135 additions
and
137 deletions
+135
-137
app/assets/javascripts/graphs/graphs_bundle.js
app/assets/javascripts/graphs/graphs_bundle.js
+0
-1
app/assets/javascripts/graphs/stat_graph_contributors.js
app/assets/javascripts/graphs/stat_graph_contributors.js
+2
-1
app/assets/javascripts/graphs/stat_graph_contributors_util.js
...assets/javascripts/graphs/stat_graph_contributors_util.js
+132
-133
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
+1
-2
No files found.
app/assets/javascripts/graphs/graphs_bundle.js
View file @
2f09c23c
require
(
'
./stat_graph_contributors_graph
'
);
require
(
'
./stat_graph_contributors_util
'
);
require
(
'
./stat_graph_contributors
'
);
app/assets/javascripts/graphs/stat_graph_contributors.js
View file @
2f09c23c
...
...
@@ -2,7 +2,8 @@
/* global ContributorsGraph */
/* global ContributorsAuthorGraph */
/* global ContributorsMasterGraph */
/* global ContributorsStatGraphUtil */
import
ContributorsStatGraphUtil
from
'
./stat_graph_contributors_util
'
;
/* global d3 */
window
.
d3
=
require
(
'
d3
'
);
...
...
app/assets/javascripts/graphs/stat_graph_contributors_util.js
View file @
2f09c23c
/* 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
)
{
var
by_author
,
by_email
,
data
,
entry
,
i
,
len
,
total
,
normalized_email
;
total
=
{};
...
...
@@ -134,5 +134,4 @@
return
false
;
}
}
};
}).
call
(
window
);
};
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
View file @
2f09c23c
/* 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
(
"
#parse_log
"
,
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment