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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
0256e683
Commit
0256e683
authored
May 31, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove d3 except for on pages where it's necessary.
parent
933a6e0d
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
5 deletions
+26
-5
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+7
-2
app/assets/javascripts/stat_graph/application.js.coffee
app/assets/javascripts/stat_graph/application.js.coffee
+7
-0
app/assets/javascripts/stat_graph/stat_graph.js.coffee
app/assets/javascripts/stat_graph/stat_graph.js.coffee
+0
-0
app/assets/javascripts/stat_graph/stat_graph_contributors.js.coffee
.../javascripts/stat_graph/stat_graph_contributors.js.coffee
+0
-1
app/assets/javascripts/stat_graph/stat_graph_contributors_graph.js.coffee
...cripts/stat_graph/stat_graph_contributors_graph.js.coffee
+0
-2
app/assets/javascripts/stat_graph/stat_graph_contributors_util.js.coffee
...scripts/stat_graph/stat_graph_contributors_util.js.coffee
+0
-0
app/helpers/javascript_helper.rb
app/helpers/javascript_helper.rb
+7
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+3
-0
app/views/projects/graphs/_head.html.haml
app/views/projects/graphs/_head.html.haml
+1
-0
config/application.rb
config/application.rb
+1
-0
No files found.
app/assets/javascripts/application.js.coffee
View file @
0256e683
...
...
@@ -18,7 +18,6 @@
#= require jquery.atwho
#= require jquery.scrollTo
#= require jquery.turbolinks
#= require d3
#= require turbolinks
#= require autosave
#= require bootstrap/affix
...
...
@@ -51,7 +50,13 @@
#= require shortcuts_network
#= require jquery.nicescroll
#= require date.format
#= require_tree .
#= require_directory ./behaviors
#= require_directory ./blob
#= require_directory ./ci
#= require_directory ./commit
#= require_directory ./extensions
#= require_directory ./lib
#= require_directory .
#= require fuzzaldrin-plus
#= require cropper
...
...
app/assets/javascripts/stat_graph/application.js.coffee
0 → 100644
View file @
0256e683
# This is a manifest file that'll be compiled into including all the files listed below.
# Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
# be included in the compiled file accessible from http://example.com/assets/application.js
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
# the compiled file.
#
#= require_tree .
app/assets/javascripts/stat_graph.js.coffee
→
app/assets/javascripts/stat_graph
/stat_graph
.js.coffee
View file @
0256e683
File moved
app/assets/javascripts/stat_graph_contributors.js.coffee
→
app/assets/javascripts/stat_graph
/stat_graph
_contributors.js.coffee
View file @
0256e683
#= require d3
#= require stat_graph_contributors_util
class
@
ContributorsStatGraph
init
:
(
log
)
->
...
...
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
→
app/assets/javascripts/stat_graph
/stat_graph
_contributors_graph.js.coffee
View file @
0256e683
#= require d3
#= require jquery
#= require underscore
class
@
ContributorsGraph
MARGIN
:
...
...
app/assets/javascripts/stat_graph_contributors_util.js.coffee
→
app/assets/javascripts/stat_graph
/stat_graph
_contributors_util.js.coffee
View file @
0256e683
File moved
app/helpers/javascript_helper.rb
0 → 100644
View file @
0256e683
module
JavascriptHelper
def
page_specific_javascripts
(
js
=
nil
)
@page_specific_javascripts
=
js
unless
js
.
nil?
@page_specific_javascripts
end
end
app/views/layouts/_head.html.haml
View file @
0256e683
...
...
@@ -30,6 +30,9 @@
=
javascript_include_tag
"application"
-
if
page_specific_javascripts
=
javascript_include_tag
page_specific_javascripts
,
{
"data-turbolinks-track"
=>
true
}
=
csrf_meta_tags
=
include_gon
...
...
app/views/projects/graphs/_head.html.haml
View file @
0256e683
-
page_specific_javascripts
asset_path
(
"stat_graph/application.js"
)
%ul
.nav-links
=
nav_link
(
action: :show
)
do
=
link_to
'Contributors'
,
namespace_project_graph_path
...
...
config/application.rb
View file @
0256e683
...
...
@@ -81,6 +81,7 @@ module Gitlab
config
.
assets
.
precompile
<<
"print.css"
config
.
assets
.
precompile
<<
"notify.css"
config
.
assets
.
precompile
<<
"mailers/*.css"
config
.
assets
.
precompile
<<
"stat_graph/application.js"
# Version of your assets, change this if you want to expire all your assets
config
.
assets
.
version
=
'1.0'
...
...
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