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
c0c8dccf
Commit
c0c8dccf
authored
Oct 20, 2014
by
Ciro Santilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Export all coffee classes with @
parent
72abe9f6
Changes
27
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
29 additions
and
84 deletions
+29
-84
app/assets/javascripts/activities.js.coffee
app/assets/javascripts/activities.js.coffee
+1
-3
app/assets/javascripts/admin.js.coffee
app/assets/javascripts/admin.js.coffee
+1
-3
app/assets/javascripts/blob.js.coffee
app/assets/javascripts/blob.js.coffee
+1
-4
app/assets/javascripts/commit.js.coffee
app/assets/javascripts/commit.js.coffee
+1
-3
app/assets/javascripts/commit/file.js.coffee
app/assets/javascripts/commit/file.js.coffee
+1
-3
app/assets/javascripts/commit/image-file.js.coffee
app/assets/javascripts/commit/image-file.js.coffee
+1
-3
app/assets/javascripts/commits.js.coffee
app/assets/javascripts/commits.js.coffee
+1
-3
app/assets/javascripts/confirm_danger_modal.js.coffee
app/assets/javascripts/confirm_danger_modal.js.coffee
+1
-3
app/assets/javascripts/dashboard.js.coffee
app/assets/javascripts/dashboard.js.coffee
+1
-4
app/assets/javascripts/diff.js.coffee
app/assets/javascripts/diff.js.coffee
+1
-4
app/assets/javascripts/flash.js.coffee
app/assets/javascripts/flash.js.coffee
+1
-3
app/assets/javascripts/groups.js.coffee
app/assets/javascripts/groups.js.coffee
+1
-3
app/assets/javascripts/issue.js.coffee
app/assets/javascripts/issue.js.coffee
+1
-3
app/assets/javascripts/labels.js.coffee
app/assets/javascripts/labels.js.coffee
+1
-3
app/assets/javascripts/merge_request.js.coffee
app/assets/javascripts/merge_request.js.coffee
+1
-3
app/assets/javascripts/milestone.js.coffee
app/assets/javascripts/milestone.js.coffee
+1
-3
app/assets/javascripts/notes.js.coffee
app/assets/javascripts/notes.js.coffee
+1
-5
app/assets/javascripts/notes_votes.js.coffee
app/assets/javascripts/notes_votes.js.coffee
+1
-3
app/assets/javascripts/project.js.coffee
app/assets/javascripts/project.js.coffee
+1
-4
app/assets/javascripts/project_import.js.coffee
app/assets/javascripts/project_import.js.coffee
+1
-3
app/assets/javascripts/search_autocomplete.js.coffee
app/assets/javascripts/search_autocomplete.js.coffee
+1
-3
app/assets/javascripts/stat_graph.js.coffee
app/assets/javascripts/stat_graph.js.coffee
+1
-1
app/assets/javascripts/stat_graph_contributors.js.coffee
app/assets/javascripts/stat_graph_contributors.js.coffee
+1
-1
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
...ssets/javascripts/stat_graph_contributors_graph.js.coffee
+3
-3
app/assets/javascripts/team_members.js.coffee
app/assets/javascripts/team_members.js.coffee
+1
-3
app/assets/javascripts/tree.js.coffee
app/assets/javascripts/tree.js.coffee
+1
-3
app/assets/javascripts/wikis.js.coffee
app/assets/javascripts/wikis.js.coffee
+1
-4
No files found.
app/assets/javascripts/activities.js.coffee
View file @
c0c8dccf
class
Activities
class
@
Activities
constructor
:
->
constructor
:
->
Pager
.
init
20
,
true
Pager
.
init
20
,
true
$
(
".event_filter_link"
).
bind
"click"
,
(
event
)
=>
$
(
".event_filter_link"
).
bind
"click"
,
(
event
)
=>
...
@@ -27,5 +27,3 @@ class Activities
...
@@ -27,5 +27,3 @@ class Activities
event_filters
.
splice
index
,
1
event_filters
.
splice
index
,
1
$
.
cookie
"event_filter"
,
event_filters
.
join
(
","
),
{
path
:
'/'
}
$
.
cookie
"event_filter"
,
event_filters
.
join
(
","
),
{
path
:
'/'
}
@
Activities
=
Activities
app/assets/javascripts/admin.js.coffee
View file @
c0c8dccf
class
Admin
class
@
Admin
constructor
:
->
constructor
:
->
$
(
'input#user_force_random_password'
).
on
'change'
,
(
elem
)
->
$
(
'input#user_force_random_password'
).
on
'change'
,
(
elem
)
->
elems
=
$
(
'#user_password, #user_password_confirmation'
)
elems
=
$
(
'#user_password, #user_password_confirmation'
)
...
@@ -51,5 +51,3 @@ class Admin
...
@@ -51,5 +51,3 @@ class Admin
$
(
'li.group_member'
).
bind
'ajax:success'
,
->
$
(
'li.group_member'
).
bind
'ajax:success'
,
->
Turbolinks
.
visit
(
location
.
href
)
Turbolinks
.
visit
(
location
.
href
)
@
Admin
=
Admin
app/assets/javascripts/blob.js.coffee
View file @
c0c8dccf
class
BlobView
class
@
BlobView
constructor
:
->
constructor
:
->
# handle multi-line select
# handle multi-line select
handleMultiSelect
=
(
e
)
->
handleMultiSelect
=
(
e
)
->
...
@@ -71,6 +71,3 @@ class BlobView
...
@@ -71,6 +71,3 @@ class BlobView
# Highlight the correct lines when the hash part of the URL changes
# Highlight the correct lines when the hash part of the URL changes
$
(
window
).
on
(
"hashchange"
,
highlightBlobLines
)
$
(
window
).
on
(
"hashchange"
,
highlightBlobLines
)
@
BlobView
=
BlobView
app/assets/javascripts/commit.js.coffee
View file @
c0c8dccf
class
Commit
class
@
Commit
constructor
:
->
constructor
:
->
$
(
'.files .diff-file'
).
each
->
$
(
'.files .diff-file'
).
each
->
new
CommitFile
(
this
)
new
CommitFile
(
this
)
@
Commit
=
Commit
app/assets/javascripts/commit/file.js.coffee
View file @
c0c8dccf
class
CommitFile
class
@
CommitFile
constructor
:
(
file
)
->
constructor
:
(
file
)
->
if
$
(
'.image'
,
file
).
length
if
$
(
'.image'
,
file
).
length
new
ImageFile
(
file
)
new
ImageFile
(
file
)
@
CommitFile
=
CommitFile
app/assets/javascripts/commit/image-file.js.coffee
View file @
c0c8dccf
class
ImageFile
class
@
ImageFile
# Width where images must fits in, for 2-up this gets divided by 2
# Width where images must fits in, for 2-up this gets divided by 2
@
availWidth
=
900
@
availWidth
=
900
...
@@ -124,5 +124,3 @@ class ImageFile
...
@@ -124,5 +124,3 @@ class ImageFile
else
else
img
.
on
'load'
,
=>
img
.
on
'load'
,
=>
callback
.
call
(
this
,
domImg
.
naturalWidth
,
domImg
.
naturalHeight
)
callback
.
call
(
this
,
domImg
.
naturalWidth
,
domImg
.
naturalHeight
)
@
ImageFile
=
ImageFile
app/assets/javascripts/commits.js.coffee
View file @
c0c8dccf
class
CommitsList
class
@
CommitsList
@
data
=
@
data
=
ref
:
null
ref
:
null
limit
:
0
limit
:
0
...
@@ -53,5 +53,3 @@ class CommitsList
...
@@ -53,5 +53,3 @@ class CommitsList
@
disable
@
disable
callback
:
=>
callback
:
=>
this
.
getOld
()
this
.
getOld
()
this
.
CommitsList
=
CommitsList
app/assets/javascripts/confirm_danger_modal.js.coffee
View file @
c0c8dccf
class
ConfirmDangerModal
class
@
ConfirmDangerModal
constructor
:
(
form
,
text
)
->
constructor
:
(
form
,
text
)
->
@
form
=
form
@
form
=
form
$
(
'.js-confirm-text'
).
text
(
text
||
''
)
$
(
'.js-confirm-text'
).
text
(
text
||
''
)
...
@@ -16,5 +16,3 @@ class ConfirmDangerModal
...
@@ -16,5 +16,3 @@ class ConfirmDangerModal
$
(
'.js-confirm-danger-submit'
).
on
'click'
,
=>
$
(
'.js-confirm-danger-submit'
).
on
'click'
,
=>
@
form
.
submit
()
@
form
.
submit
()
@
ConfirmDangerModal
=
ConfirmDangerModal
app/assets/javascripts/dashboard.js.coffee
View file @
c0c8dccf
class
Dashboard
class
@
Dashboard
constructor
:
->
constructor
:
->
@
initSidebarTab
()
@
initSidebarTab
()
...
@@ -28,6 +28,3 @@ class Dashboard
...
@@ -28,6 +28,3 @@ class Dashboard
# show tab from cookie
# show tab from cookie
sidebar_filter
=
$
.
cookie
(
key
)
sidebar_filter
=
$
.
cookie
(
key
)
$
(
"#"
+
sidebar_filter
).
tab
(
'show'
)
if
sidebar_filter
$
(
"#"
+
sidebar_filter
).
tab
(
'show'
)
if
sidebar_filter
@
Dashboard
=
Dashboard
app/assets/javascripts/diff.js.coffee
View file @
c0c8dccf
class
Diff
class
@
Diff
UNFOLD_COUNT
=
20
UNFOLD_COUNT
=
20
constructor
:
->
constructor
:
->
$
(
document
).
on
(
'click'
,
'.js-unfold'
,
(
event
)
=>
$
(
document
).
on
(
'click'
,
'.js-unfold'
,
(
event
)
=>
...
@@ -41,6 +41,3 @@ class Diff
...
@@ -41,6 +41,3 @@ class Diff
lines
=
line
.
children
().
slice
(
0
,
2
)
lines
=
line
.
children
().
slice
(
0
,
2
)
line_numbers
=
(
$
(
l
).
attr
(
'data-linenumber'
)
for
l
in
lines
)
line_numbers
=
(
$
(
l
).
attr
(
'data-linenumber'
)
for
l
in
lines
)
(
parseInt
(
line_number
)
for
line_number
in
line_numbers
)
(
parseInt
(
line_number
)
for
line_number
in
line_numbers
)
@
Diff
=
Diff
app/assets/javascripts/flash.js.coffee
View file @
c0c8dccf
class
Flash
class
@
Flash
constructor
:
(
message
,
type
)
->
constructor
:
(
message
,
type
)
->
flash
=
$
(
".flash-container"
)
flash
=
$
(
".flash-container"
)
flash
.
html
(
""
)
flash
.
html
(
""
)
...
@@ -10,5 +10,3 @@ class Flash
...
@@ -10,5 +10,3 @@ class Flash
flash
.
click
->
$
(
@
).
fadeOut
()
flash
.
click
->
$
(
@
).
fadeOut
()
flash
.
show
()
flash
.
show
()
@
Flash
=
Flash
app/assets/javascripts/groups.js.coffee
View file @
c0c8dccf
class
GroupMembers
class
@
GroupMembers
constructor
:
->
constructor
:
->
$
(
'li.group_member'
).
bind
'ajax:success'
,
->
$
(
'li.group_member'
).
bind
'ajax:success'
,
->
$
(
this
).
fadeOut
()
$
(
this
).
fadeOut
()
@
GroupMembers
=
GroupMembers
$
->
$
->
# avatar
# avatar
$
(
'.js-choose-group-avatar-button'
).
bind
"click"
,
->
$
(
'.js-choose-group-avatar-button'
).
bind
"click"
,
->
...
...
app/assets/javascripts/issue.js.coffee
View file @
c0c8dccf
class
Issue
class
@
Issue
constructor
:
->
constructor
:
->
$
(
'.edit-issue.inline-update input[type="submit"]'
).
hide
()
$
(
'.edit-issue.inline-update input[type="submit"]'
).
hide
()
$
(
".issue-box .inline-update"
).
on
"change"
,
"select"
,
->
$
(
".issue-box .inline-update"
).
on
"change"
,
"select"
,
->
...
@@ -15,5 +15,3 @@ class Issue
...
@@ -15,5 +15,3 @@ class Issue
"issue"
"issue"
updateTaskState
updateTaskState
)
)
@
Issue
=
Issue
app/assets/javascripts/labels.js.coffee
View file @
c0c8dccf
class
Labels
class
@
Labels
constructor
:
->
constructor
:
->
form
=
$
(
'.label-form'
)
form
=
$
(
'.label-form'
)
@
setupLabelForm
(
form
)
@
setupLabelForm
(
form
)
...
@@ -31,5 +31,3 @@ class Labels
...
@@ -31,5 +31,3 @@ class Labels
# Notify the form, that color has changed
# Notify the form, that color has changed
$
(
'.label-form'
).
trigger
(
'keyup'
)
$
(
'.label-form'
).
trigger
(
'keyup'
)
e
.
preventDefault
()
e
.
preventDefault
()
@
Labels
=
Labels
app/assets/javascripts/merge_request.js.coffee
View file @
c0c8dccf
class
MergeRequest
class
@
MergeRequest
constructor
:
(
@
opts
)
->
constructor
:
(
@
opts
)
->
@
initContextWidget
()
@
initContextWidget
()
this
.
$el
=
$
(
'.merge-request'
)
this
.
$el
=
$
(
'.merge-request'
)
...
@@ -132,5 +132,3 @@ class MergeRequest
...
@@ -132,5 +132,3 @@ class MergeRequest
this
.
$
(
'.automerge_widget'
).
hide
()
this
.
$
(
'.automerge_widget'
).
hide
()
this
.
$
(
'.merge-in-progress'
).
hide
()
this
.
$
(
'.merge-in-progress'
).
hide
()
this
.
$
(
'.automerge_widget.already_cannot_be_merged'
).
show
()
this
.
$
(
'.automerge_widget.already_cannot_be_merged'
).
show
()
this
.
MergeRequest
=
MergeRequest
app/assets/javascripts/milestone.js.coffee
View file @
c0c8dccf
class
Milestone
class
@
Milestone
@
updateIssue
:
(
li
,
issue_url
,
data
)
->
@
updateIssue
:
(
li
,
issue_url
,
data
)
->
$
.
ajax
$
.
ajax
type
:
"PUT"
type
:
"PUT"
...
@@ -115,5 +115,3 @@ class Milestone
...
@@ -115,5 +115,3 @@ class Milestone
Milestone
.
updateMergeRequest
(
ui
.
item
,
merge_request_url
,
data
)
Milestone
.
updateMergeRequest
(
ui
.
item
,
merge_request_url
,
data
)
).
disableSelection
()
).
disableSelection
()
@
Milestone
=
Milestone
app/assets/javascripts/notes.js.coffee
View file @
c0c8dccf
class
Notes
class
@
Notes
@
interval
:
null
@
interval
:
null
constructor
:
(
notes_url
,
note_ids
,
last_fetched_at
)
->
constructor
:
(
notes_url
,
note_ids
,
last_fetched_at
)
->
...
@@ -514,7 +514,3 @@ class Notes
...
@@ -514,7 +514,3 @@ class Notes
else
else
form
.
find
(
'.js-note-target-reopen'
).
text
(
'Reopen'
)
form
.
find
(
'.js-note-target-reopen'
).
text
(
'Reopen'
)
form
.
find
(
'.js-note-target-close'
).
text
(
'Close'
)
form
.
find
(
'.js-note-target-close'
).
text
(
'Close'
)
@
Notes
=
Notes
app/assets/javascripts/notes_votes.js.coffee
View file @
c0c8dccf
class
NotesVotes
class
@
NotesVotes
updateVotes
:
->
updateVotes
:
->
votes
=
$
(
"#votes .votes"
)
votes
=
$
(
"#votes .votes"
)
notes
=
$
(
"#notes-list .note .vote"
)
notes
=
$
(
"#notes-list .note .vote"
)
...
@@ -18,5 +18,3 @@ class NotesVotes
...
@@ -18,5 +18,3 @@ class NotesVotes
# replace vote numbers
# replace vote numbers
votes
.
find
(
".upvotes"
).
text
votes
.
find
(
".upvotes"
).
text
().
replace
(
/\d+/
,
upvotes
)
votes
.
find
(
".upvotes"
).
text
votes
.
find
(
".upvotes"
).
text
().
replace
(
/\d+/
,
upvotes
)
votes
.
find
(
".downvotes"
).
text
votes
.
find
(
".downvotes"
).
text
().
replace
(
/\d+/
,
downvotes
)
votes
.
find
(
".downvotes"
).
text
votes
.
find
(
".downvotes"
).
text
().
replace
(
/\d+/
,
downvotes
)
@
NotesVotes
=
NotesVotes
app/assets/javascripts/project.js.coffee
View file @
c0c8dccf
class
Project
class
@
Project
constructor
:
->
constructor
:
->
$
(
'.project-edit-container'
).
on
'ajax:before'
,
=>
$
(
'.project-edit-container'
).
on
'ajax:before'
,
=>
$
(
'.project-edit-container'
).
hide
()
$
(
'.project-edit-container'
).
hide
()
...
@@ -24,9 +24,6 @@ class Project
...
@@ -24,9 +24,6 @@ class Project
else
else
$
(
'#project_issues_tracker_id'
).
removeAttr
(
'disabled'
)
$
(
'#project_issues_tracker_id'
).
removeAttr
(
'disabled'
)
@
Project
=
Project
$
->
$
->
# Git clone panel switcher
# Git clone panel switcher
scope
=
$
'.git-clone-holder'
scope
=
$
'.git-clone-holder'
...
...
app/assets/javascripts/project_import.js.coffee
View file @
c0c8dccf
class
ProjectImport
class
@
ProjectImport
constructor
:
->
constructor
:
->
setTimeout
->
setTimeout
->
Turbolinks
.
visit
(
location
.
href
)
Turbolinks
.
visit
(
location
.
href
)
,
5000
,
5000
@
ProjectImport
=
ProjectImport
app/assets/javascripts/search_autocomplete.js.coffee
View file @
c0c8dccf
class
SearchAutocomplete
class
@
SearchAutocomplete
constructor
:
(
search_autocomplete_path
,
project_id
,
project_ref
)
->
constructor
:
(
search_autocomplete_path
,
project_id
,
project_ref
)
->
project_id
=
''
unless
project_id
project_id
=
''
unless
project_id
project_ref
=
''
unless
project_ref
project_ref
=
''
unless
project_ref
...
@@ -9,5 +9,3 @@ class SearchAutocomplete
...
@@ -9,5 +9,3 @@ class SearchAutocomplete
minLength
:
1
minLength
:
1
select
:
(
event
,
ui
)
->
select
:
(
event
,
ui
)
->
location
.
href
=
ui
.
item
.
url
location
.
href
=
ui
.
item
.
url
@
SearchAutocomplete
=
SearchAutocomplete
app/assets/javascripts/stat_graph.js.coffee
View file @
c0c8dccf
class
window
.
StatGraph
class
@
StatGraph
@
log
:
{}
@
log
:
{}
@
get_log
:
->
@
get_log
:
->
@
log
@
log
...
...
app/assets/javascripts/stat_graph_contributors.js.coffee
View file @
c0c8dccf
class
window
.
ContributorsStatGraph
class
@
ContributorsStatGraph
init
:
(
log
)
->
init
:
(
log
)
->
@
parsed_log
=
ContributorsStatGraphUtil
.
parse_log
(
log
)
@
parsed_log
=
ContributorsStatGraphUtil
.
parse_log
(
log
)
@
set_current_field
(
"commits"
)
@
set_current_field
(
"commits"
)
...
...
app/assets/javascripts/stat_graph_contributors_graph.js.coffee
View file @
c0c8dccf
class
window
.
ContributorsGraph
class
@
ContributorsGraph
MARGIN
:
MARGIN
:
top
:
20
top
:
20
right
:
20
right
:
20
...
@@ -44,7 +44,7 @@ class window.ContributorsGraph
...
@@ -44,7 +44,7 @@ class window.ContributorsGraph
set_data
:
(
data
)
->
set_data
:
(
data
)
->
@
data
=
data
@
data
=
data
class
window
.
ContributorsMasterGraph
extends
ContributorsGraph
class
@
ContributorsMasterGraph
extends
ContributorsGraph
constructor
:
(
@
data
)
->
constructor
:
(
@
data
)
->
@
width
=
$
(
'.container'
).
width
()
-
70
@
width
=
$
(
'.container'
).
width
()
-
70
@
height
=
200
@
height
=
200
...
@@ -117,7 +117,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph
...
@@ -117,7 +117,7 @@ class window.ContributorsMasterGraph extends ContributorsGraph
@
svg
.
select
(
"path"
).
attr
(
"d"
,
@
area
)
@
svg
.
select
(
"path"
).
attr
(
"d"
,
@
area
)
@
svg
.
select
(
".y.axis"
).
call
(
@
y_axis
)
@
svg
.
select
(
".y.axis"
).
call
(
@
y_axis
)
class
window
.
ContributorsAuthorGraph
extends
ContributorsGraph
class
@
ContributorsAuthorGraph
extends
ContributorsGraph
constructor
:
(
@
data
)
->
constructor
:
(
@
data
)
->
@
width
=
$
(
'.container'
).
width
()
/
2
-
100
@
width
=
$
(
'.container'
).
width
()
/
2
-
100
@
height
=
200
@
height
=
200
...
...
app/assets/javascripts/team_members.js.coffee
View file @
c0c8dccf
class
TeamMembers
class
@
TeamMembers
constructor
:
->
constructor
:
->
$
(
'.team-members .project-access-select'
).
on
"change"
,
->
$
(
'.team-members .project-access-select'
).
on
"change"
,
->
$
(
this
.
form
).
submit
()
$
(
this
.
form
).
submit
()
@
TeamMembers
=
TeamMembers
app/assets/javascripts/tree.js.coffee
View file @
c0c8dccf
class
TreeView
class
@
TreeView
constructor
:
->
constructor
:
->
@
initKeyNav
()
@
initKeyNav
()
...
@@ -39,5 +39,3 @@ class TreeView
...
@@ -39,5 +39,3 @@ class TreeView
else
if
e
.
which
is
13
else
if
e
.
which
is
13
path
=
$
(
'.tree-item.selected .tree-item-file-name a'
).
attr
(
'href'
)
path
=
$
(
'.tree-item.selected .tree-item-file-name a'
).
attr
(
'href'
)
Turbolinks
.
visit
(
path
)
Turbolinks
.
visit
(
path
)
@
TreeView
=
TreeView
app/assets/javascripts/wikis.js.coffee
View file @
c0c8dccf
class
Wikis
class
@
Wikis
constructor
:
->
constructor
:
->
$
(
'.build-new-wiki'
).
bind
"click"
,
->
$
(
'.build-new-wiki'
).
bind
"click"
,
->
field
=
$
(
'#new_wiki_path'
)
field
=
$
(
'#new_wiki_path'
)
...
@@ -7,6 +7,3 @@ class Wikis
...
@@ -7,6 +7,3 @@ class Wikis
if
(
slug
.
length
>
0
)
if
(
slug
.
length
>
0
)
location
.
href
=
path
+
"/"
+
slug
location
.
href
=
path
+
"/"
+
slug
@
Wikis
=
Wikis
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