BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
dc835fcc
Commit
dc835fcc
authored
Feb 20, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'remove-chart-show-bundle' into 'master'
Remove graphs_show.js webpack bundle See merge request gitlab-org/gitlab-ce!17194
parents
b44b4d4d
91bbd80f
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
9 additions
and
29 deletions
+9
-29
index.js
app/assets/javascripts/pages/projects/graphs/show/index.js
+3
-3
stat_graph_contributors.js
...pts/pages/projects/graphs/show/stat_graph_contributors.js
+1
-1
stat_graph_contributors_graph.js
...ges/projects/graphs/show/stat_graph_contributors_graph.js
+1
-1
stat_graph_contributors_util.js
...ages/projects/graphs/show/stat_graph_contributors_util.js
+0
-0
metrics.html.haml
app/views/projects/environments/metrics.html.haml
+0
-1
charts.html.haml
app/views/projects/graphs/charts.html.haml
+0
-2
show.html.haml
app/views/projects/graphs/show.html.haml
+0
-3
webpack.config.js
config/webpack.config.js
+0
-14
stat_graph_contributors_graph_spec.js
.../javascripts/graphs/stat_graph_contributors_graph_spec.js
+1
-1
stat_graph_contributors_spec.js
spec/javascripts/graphs/stat_graph_contributors_spec.js
+2
-2
stat_graph_contributors_util_spec.js
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
+1
-1
No files found.
app/assets/javascripts/
graphs/graphs_show
.js
→
app/assets/javascripts/
pages/projects/graphs/show/index
.js
View file @
dc835fcc
import
flash
from
'
..
/flash'
;
import
flash
from
'
~
/flash'
;
import
{
__
}
from
'
..
/locale'
;
import
{
__
}
from
'
~
/locale'
;
import
axios
from
'
..
/lib/utils/axios_utils'
;
import
axios
from
'
~
/lib/utils/axios_utils'
;
import
ContributorsStatGraph
from
'./stat_graph_contributors'
;
import
ContributorsStatGraph
from
'./stat_graph_contributors'
;
document
.
addEventListener
(
'DOMContentLoaded'
,
()
=>
{
document
.
addEventListener
(
'DOMContentLoaded'
,
()
=>
{
...
...
app/assets/javascripts/
graphs
/stat_graph_contributors.js
→
app/assets/javascripts/
pages/projects/graphs/show
/stat_graph_contributors.js
View file @
dc835fcc
/* 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'
;
import
{
n__
,
s__
,
createDateTimeFormat
,
sprintf
}
from
'~/locale'
;
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'
;
export
default
(
function
()
{
export
default
(
function
()
{
function
ContributorsStatGraph
()
{
function
ContributorsStatGraph
()
{
...
...
app/assets/javascripts/
graphs
/stat_graph_contributors_graph.js
→
app/assets/javascripts/
pages/projects/graphs/show
/stat_graph_contributors_graph.js
View file @
dc835fcc
...
@@ -7,7 +7,7 @@ import { axisLeft, axisBottom } from 'd3-axis';
...
@@ -7,7 +7,7 @@ import { axisLeft, axisBottom } from 'd3-axis';
import
{
area
}
from
'd3-shape'
;
import
{
area
}
from
'd3-shape'
;
import
{
brushX
}
from
'd3-brush'
;
import
{
brushX
}
from
'd3-brush'
;
import
{
timeParse
}
from
'd3-time-format'
;
import
{
timeParse
}
from
'd3-time-format'
;
import
{
dateTickFormat
}
from
'
..
/lib/utils/tick_formats'
;
import
{
dateTickFormat
}
from
'
~
/lib/utils/tick_formats'
;
const
d3
=
{
extent
,
max
,
select
,
scaleTime
,
scaleLinear
,
axisLeft
,
axisBottom
,
area
,
brushX
,
timeParse
};
const
d3
=
{
extent
,
max
,
select
,
scaleTime
,
scaleLinear
,
axisLeft
,
axisBottom
,
area
,
brushX
,
timeParse
};
...
...
app/assets/javascripts/
graphs
/stat_graph_contributors_util.js
→
app/assets/javascripts/
pages/projects/graphs/show
/stat_graph_contributors_util.js
View file @
dc835fcc
File moved
app/views/projects/environments/metrics.html.haml
View file @
dc835fcc
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
-
page_title
"Metrics for environment"
,
@environment
.
name
-
page_title
"Metrics for environment"
,
@environment
.
name
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'common_vue'
=
webpack_bundle_tag
'common_d3'
.prometheus-container
{
class:
container_class
}
.prometheus-container
{
class:
container_class
}
.top-area
.top-area
...
...
app/views/projects/graphs/charts.html.haml
View file @
dc835fcc
-
@no_container
=
true
-
@no_container
=
true
-
page_title
"Charts"
-
page_title
"Charts"
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_d3'
)
.repo-charts
{
class:
container_class
}
.repo-charts
{
class:
container_class
}
%h4
.sub-header
%h4
.sub-header
...
...
app/views/projects/graphs/show.html.haml
View file @
dc835fcc
-
@no_container
=
true
-
@no_container
=
true
-
page_title
_
(
'Contributors'
)
-
page_title
_
(
'Contributors'
)
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_d3'
)
=
webpack_bundle_tag
(
'graphs_show'
)
.js-graphs-show
{
class:
container_class
,
'data-project-graph-path'
:
project_graph_path
(
@project
,
current_ref
,
format: :json
)
}
.js-graphs-show
{
class:
container_class
,
'data-project-graph-path'
:
project_graph_path
(
@project
,
current_ref
,
format: :json
)
}
.sub-header-block
.sub-header-block
...
...
config/webpack.config.js
View file @
dc835fcc
...
@@ -62,7 +62,6 @@ var config = {
...
@@ -62,7 +62,6 @@ var config = {
environments
:
'./environments/environments_bundle.js'
,
environments
:
'./environments/environments_bundle.js'
,
environments_folder
:
'./environments/folder/environments_folder_bundle.js'
,
environments_folder
:
'./environments/folder/environments_folder_bundle.js'
,
filtered_search
:
'./filtered_search/filtered_search_bundle.js'
,
filtered_search
:
'./filtered_search/filtered_search_bundle.js'
,
graphs_show
:
'./graphs/graphs_show.js'
,
help
:
'./help/help.js'
,
help
:
'./help/help.js'
,
how_to_merge
:
'./how_to_merge.js'
,
how_to_merge
:
'./how_to_merge.js'
,
issue_show
:
'./issue_show/index.js'
,
issue_show
:
'./issue_show/index.js'
,
...
@@ -277,19 +276,6 @@ var config = {
...
@@ -277,19 +276,6 @@ var config = {
},
},
}),
}),
// create cacheable common library bundle for all d3 chunks
new
webpack
.
optimize
.
CommonsChunkPlugin
({
name
:
'common_d3'
,
chunks
:
[
'graphs_show'
,
'monitoring'
,
'users'
,
],
minChunks
:
function
(
module
,
count
)
{
return
module
.
resource
&&
/d3-/
.
test
(
module
.
resource
);
},
}),
// create cacheable common library bundles
// create cacheable common library bundles
new
webpack
.
optimize
.
CommonsChunkPlugin
({
new
webpack
.
optimize
.
CommonsChunkPlugin
({
names
:
[
'main'
,
'common'
,
'webpack_runtime'
],
names
:
[
'main'
,
'common'
,
'webpack_runtime'
],
...
...
spec/javascripts/graphs/stat_graph_contributors_graph_spec.js
View file @
dc835fcc
/* eslint-disable quotes, jasmine/no-suite-dupes, vars-on-top, no-var */
/* eslint-disable quotes, jasmine/no-suite-dupes, vars-on-top, no-var */
import
{
scaleLinear
,
scaleTime
}
from
'd3-scale'
;
import
{
scaleLinear
,
scaleTime
}
from
'd3-scale'
;
import
{
timeParse
}
from
'd3-time-format'
;
import
{
timeParse
}
from
'd3-time-format'
;
import
{
ContributorsGraph
,
ContributorsMasterGraph
}
from
'~/
graphs
/stat_graph_contributors_graph'
;
import
{
ContributorsGraph
,
ContributorsMasterGraph
}
from
'~/
pages/projects/graphs/show
/stat_graph_contributors_graph'
;
const
d3
=
{
scaleLinear
,
scaleTime
,
timeParse
};
const
d3
=
{
scaleLinear
,
scaleTime
,
timeParse
};
...
...
spec/javascripts/graphs/stat_graph_contributors_spec.js
View file @
dc835fcc
import
ContributorsStatGraph
from
'~/
graphs
/stat_graph_contributors'
;
import
ContributorsStatGraph
from
'~/
pages/projects/graphs/show
/stat_graph_contributors'
;
import
{
ContributorsGraph
}
from
'~/
graphs
/stat_graph_contributors_graph'
;
import
{
ContributorsGraph
}
from
'~/
pages/projects/graphs/show
/stat_graph_contributors_graph'
;
import
{
setLanguage
}
from
'../helpers/locale_helper'
;
import
{
setLanguage
}
from
'../helpers/locale_helper'
;
...
...
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
View file @
dc835fcc
/* 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 */
import
ContributorsStatGraphUtil
from
'~/
graphs
/stat_graph_contributors_util'
;
import
ContributorsStatGraphUtil
from
'~/
pages/projects/graphs/show
/stat_graph_contributors_util'
;
describe
(
"ContributorsStatGraphUtil"
,
function
()
{
describe
(
"ContributorsStatGraphUtil"
,
function
()
{
describe
(
"#parse_log"
,
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