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
8e0e902b
Commit
8e0e902b
authored
Dec 13, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
resolve all instances of no-undef eslint rule violations
parent
23f5865e
Changes
88
Hide whitespace changes
Inline
Side-by-side
Showing
88 changed files
with
295 additions
and
111 deletions
+295
-111
app/assets/javascripts/admin.js
app/assets/javascripts/admin.js
+3
-1
app/assets/javascripts/api.js
app/assets/javascripts/api.js
+4
-2
app/assets/javascripts/application.js
app/assets/javascripts/application.js
+8
-1
app/assets/javascripts/awards_handler.js
app/assets/javascripts/awards_handler.js
+3
-1
app/assets/javascripts/behaviors/autosize.js
app/assets/javascripts/behaviors/autosize.js
+2
-1
app/assets/javascripts/behaviors/quick_submit.js
app/assets/javascripts/behaviors/quick_submit.js
+2
-1
app/assets/javascripts/blob/blob_file_dropzone.js
app/assets/javascripts/blob/blob_file_dropzone.js
+3
-1
app/assets/javascripts/blob/blob_gitignore_selector.js
app/assets/javascripts/blob/blob_gitignore_selector.js
+2
-1
app/assets/javascripts/blob/blob_gitignore_selectors.js
app/assets/javascripts/blob/blob_gitignore_selectors.js
+3
-1
app/assets/javascripts/blob/blob_license_selector.js
app/assets/javascripts/blob/blob_license_selector.js
+2
-1
app/assets/javascripts/blob_edit/blob_edit_bundle.js
app/assets/javascripts/blob_edit/blob_edit_bundle.js
+4
-1
app/assets/javascripts/blob_edit/edit_blob.js
app/assets/javascripts/blob_edit/edit_blob.js
+4
-1
app/assets/javascripts/breakpoints.js
app/assets/javascripts/breakpoints.js
+4
-2
app/assets/javascripts/build.js
app/assets/javascripts/build.js
+5
-1
app/assets/javascripts/commit.js
app/assets/javascripts/commit.js
+3
-1
app/assets/javascripts/commit/file.js
app/assets/javascripts/commit/file.js
+3
-1
app/assets/javascripts/commits.js
app/assets/javascripts/commits.js
+5
-3
app/assets/javascripts/copy_to_clipboard.js
app/assets/javascripts/copy_to_clipboard.js
+2
-1
app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6
...vascripts/diff_notes/components/jump_to_discussion.js.es6
+2
-2
app/assets/javascripts/dropzone_input.js
app/assets/javascripts/dropzone_input.js
+2
-1
app/assets/javascripts/files_comment_button.js
app/assets/javascripts/files_comment_button.js
+3
-1
app/assets/javascripts/gfm_auto_complete.js.es6
app/assets/javascripts/gfm_auto_complete.js.es6
+3
-3
app/assets/javascripts/gl_dropdown.js
app/assets/javascripts/gl_dropdown.js
+5
-2
app/assets/javascripts/gl_form.js
app/assets/javascripts/gl_form.js
+5
-1
app/assets/javascripts/graphs/stat_graph_contributors.js
app/assets/javascripts/graphs/stat_graph_contributors.js
+6
-1
app/assets/javascripts/graphs/stat_graph_contributors_graph.js
...ssets/javascripts/graphs/stat_graph_contributors_graph.js
+3
-1
app/assets/javascripts/groups_select.js
app/assets/javascripts/groups_select.js
+4
-2
app/assets/javascripts/importer_status.js
app/assets/javascripts/importer_status.js
+4
-3
app/assets/javascripts/issuable_context.js
app/assets/javascripts/issuable_context.js
+3
-1
app/assets/javascripts/issuable_form.js
app/assets/javascripts/issuable_form.js
+6
-1
app/assets/javascripts/issue.js
app/assets/javascripts/issue.js
+2
-1
app/assets/javascripts/labels_select.js
app/assets/javascripts/labels_select.js
+4
-1
app/assets/javascripts/lib/utils/notify.js
app/assets/javascripts/lib/utils/notify.js
+2
-1
app/assets/javascripts/line_highlighter.js
app/assets/javascripts/line_highlighter.js
+2
-1
app/assets/javascripts/merge_request.js
app/assets/javascripts/merge_request.js
+2
-1
app/assets/javascripts/merged_buttons.js
app/assets/javascripts/merged_buttons.js
+2
-1
app/assets/javascripts/milestone.js
app/assets/javascripts/milestone.js
+3
-1
app/assets/javascripts/milestone_select.js
app/assets/javascripts/milestone_select.js
+5
-1
app/assets/javascripts/namespace_select.js
app/assets/javascripts/namespace_select.js
+6
-4
app/assets/javascripts/network/branch_graph.js
app/assets/javascripts/network/branch_graph.js
+3
-1
app/assets/javascripts/network/network.js
app/assets/javascripts/network/network.js
+3
-1
app/assets/javascripts/network/network_bundle.js
app/assets/javascripts/network/network_bundle.js
+4
-1
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+6
-2
app/assets/javascripts/notifications_dropdown.js
app/assets/javascripts/notifications_dropdown.js
+3
-1
app/assets/javascripts/preview_markdown.js
app/assets/javascripts/preview_markdown.js
+4
-3
app/assets/javascripts/project.js
app/assets/javascripts/project.js
+5
-1
app/assets/javascripts/project_find_file.js
app/assets/javascripts/project_find_file.js
+3
-1
app/assets/javascripts/project_import.js
app/assets/javascripts/project_import.js
+3
-1
app/assets/javascripts/project_select.js
app/assets/javascripts/project_select.js
+3
-1
app/assets/javascripts/projects_list.js
app/assets/javascripts/projects_list.js
+4
-3
app/assets/javascripts/right_sidebar.js
app/assets/javascripts/right_sidebar.js
+3
-1
app/assets/javascripts/search.js
app/assets/javascripts/search.js
+3
-1
app/assets/javascripts/shortcuts.js
app/assets/javascripts/shortcuts.js
+5
-1
app/assets/javascripts/shortcuts_blob.js
app/assets/javascripts/shortcuts_blob.js
+3
-1
app/assets/javascripts/shortcuts_dashboard_navigation.js
app/assets/javascripts/shortcuts_dashboard_navigation.js
+3
-1
app/assets/javascripts/shortcuts_find_file.js
app/assets/javascripts/shortcuts_find_file.js
+3
-1
app/assets/javascripts/shortcuts_issuable.js
app/assets/javascripts/shortcuts_issuable.js
+5
-1
app/assets/javascripts/shortcuts_navigation.js
app/assets/javascripts/shortcuts_navigation.js
+3
-1
app/assets/javascripts/shortcuts_network.js
app/assets/javascripts/shortcuts_network.js
+3
-1
app/assets/javascripts/single_file_diff.js
app/assets/javascripts/single_file_diff.js
+4
-3
app/assets/javascripts/snippet/snippet_bundle.js
app/assets/javascripts/snippet/snippet_bundle.js
+3
-1
app/assets/javascripts/star.js
app/assets/javascripts/star.js
+3
-1
app/assets/javascripts/syntax_highlight.js
app/assets/javascripts/syntax_highlight.js
+2
-1
app/assets/javascripts/todos.js.es6
app/assets/javascripts/todos.js.es6
+2
-2
app/assets/javascripts/u2f/authenticate.js
app/assets/javascripts/u2f/authenticate.js
+5
-1
app/assets/javascripts/u2f/error.js
app/assets/javascripts/u2f/error.js
+3
-1
app/assets/javascripts/u2f/register.js
app/assets/javascripts/u2f/register.js
+5
-1
app/assets/javascripts/users/calendar.js
app/assets/javascripts/users/calendar.js
+4
-1
app/assets/javascripts/users_select.js
app/assets/javascripts/users_select.js
+5
-1
app/assets/javascripts/zen_mode.js
app/assets/javascripts/zen_mode.js
+4
-1
app/views/shared/issuable/_sidebar.html.haml
app/views/shared/issuable/_sidebar.html.haml
+1
-1
spec/javascripts/awards_handler_spec.js
spec/javascripts/awards_handler_spec.js
+2
-1
spec/javascripts/behaviors/quick_submit_spec.js
spec/javascripts/behaviors/quick_submit_spec.js
+1
-1
spec/javascripts/graphs/stat_graph_contributors_graph_spec.js
.../javascripts/graphs/stat_graph_contributors_graph_spec.js
+5
-1
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
+3
-1
spec/javascripts/graphs/stat_graph_spec.js
spec/javascripts/graphs/stat_graph_spec.js
+3
-1
spec/javascripts/issue_spec.js
spec/javascripts/issue_spec.js
+3
-2
spec/javascripts/labels_issue_sidebar_spec.js.es6
spec/javascripts/labels_issue_sidebar_spec.js.es6
+3
-1
spec/javascripts/line_highlighter_spec.js
spec/javascripts/line_highlighter_spec.js
+2
-1
spec/javascripts/merge_request_spec.js
spec/javascripts/merge_request_spec.js
+2
-1
spec/javascripts/new_branch_spec.js
spec/javascripts/new_branch_spec.js
+2
-1
spec/javascripts/notes_spec.js
spec/javascripts/notes_spec.js
+3
-1
spec/javascripts/project_title_spec.js
spec/javascripts/project_title_spec.js
+3
-1
spec/javascripts/right_sidebar_spec.js
spec/javascripts/right_sidebar_spec.js
+2
-1
spec/javascripts/shortcuts_issuable_spec.js
spec/javascripts/shortcuts_issuable_spec.js
+2
-1
spec/javascripts/u2f/authenticate_spec.js
spec/javascripts/u2f/authenticate_spec.js
+3
-1
spec/javascripts/u2f/register_spec.js
spec/javascripts/u2f/register_spec.js
+3
-1
spec/javascripts/zen_mode_spec.js
spec/javascripts/zen_mode_spec.js
+4
-1
No files found.
app/assets/javascripts/admin.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, no-unused-vars, no-else-return, prefer-arrow-callback, camelcase, quotes, comma-dangle, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, no-unused-vars, no-else-return, prefer-arrow-callback, camelcase, quotes, comma-dangle, padded-blocks, max-len */
/* global Turbolinks */
(
function
()
{
(
function
()
{
this
.
Admin
=
(
function
()
{
this
.
Admin
=
(
function
()
{
function
Admin
()
{
function
Admin
()
{
...
...
app/assets/javascripts/api.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, no-undef, comma-dangle, prefer-arrow-callback, indent, object-curly-spacing, quote-props, no-param-reassign, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, quotes, object-shorthand, camelcase, no-var, comma-dangle, prefer-arrow-callback, indent, object-curly-spacing, quote-props, no-param-reassign, padded-blocks, max-len */
(
function
()
{
(
function
()
{
this
.
Api
=
{
var
Api
=
{
groupsPath
:
"
/api/:version/groups.json
"
,
groupsPath
:
"
/api/:version/groups.json
"
,
groupPath
:
"
/api/:version/groups/:id.json
"
,
groupPath
:
"
/api/:version/groups/:id.json
"
,
namespacesPath
:
"
/api/:version/namespaces.json
"
,
namespacesPath
:
"
/api/:version/namespaces.json
"
,
...
@@ -140,4 +141,5 @@
...
@@ -140,4 +141,5 @@
}
}
};
};
window
.
Api
=
Api
;
}).
call
(
this
);
}).
call
(
this
);
app/assets/javascripts/application.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, no-undef, quotes, consistent-return, prefer-arrow-callback, comma-dangle, object-shorthand, no-new, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, quotes, consistent-return, prefer-arrow-callback, comma-dangle, object-shorthand, no-new, max-len */
/* global bp */
/* global Cookies */
/* global Flash */
/* global ConfirmDangerModal */
/* global AwardsHandler */
/* global Aside */
// This is a manifest file that'll be compiled into including all the files listed below.
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript code in separate files in this directory and they'll automatically
// Add new JavaScript 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
// be included in the compiled file accessible from http://example.com/assets/application.js
...
...
app/assets/javascripts/awards_handler.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, no-var, spaced-comment, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, no-unused-vars, no-else-return, prefer-template, quotes, comma-dangle, no-param-reassign, no-void, radix, keyword-spacing, space-before-blocks, brace-style, no-underscore-dangle, no-undef, no-plusplus, no-return-assign, camelcase, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, no-var, spaced-comment, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, no-unused-vars, no-else-return, prefer-template, quotes, comma-dangle, no-param-reassign, no-void, radix, keyword-spacing, space-before-blocks, brace-style, no-underscore-dangle, no-plusplus, no-return-assign, camelcase, padded-blocks */
/* global Cookies */
(
function
()
{
(
function
()
{
this
.
AwardsHandler
=
(
function
()
{
this
.
AwardsHandler
=
(
function
()
{
var
FROM_SENTENCE_REGEX
=
/
(?:
, and | and |,
)
/
;
//For separating lists produced by ruby's Array#toSentence
var
FROM_SENTENCE_REGEX
=
/
(?:
, and | and |,
)
/
;
//For separating lists produced by ruby's Array#toSentence
...
...
app/assets/javascripts/behaviors/autosize.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, consistent-return, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, consistent-return, padded-blocks, max-len */
/* global autosize */
/*= require jquery.ba-resize */
/*= require jquery.ba-resize */
/*= require autosize */
/*= require autosize */
...
...
app/assets/javascripts/behaviors/quick_submit.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-undef, prefer-arrow-callback, camelcase, max-len, consistent-return, quotes, object-shorthand, comma-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, one-var-declaration-per-line, prefer-arrow-callback, camelcase, consistent-return, quotes, object-shorthand, comma-dangle, padded-blocks, max-len */
// Quick Submit behavior
// Quick Submit behavior
//
//
// When a child field of a form with a `js-quick-submit` class receives a
// When a child field of a form with a `js-quick-submit` class receives a
...
...
app/assets/javascripts/blob/blob_file_dropzone.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, camelcase, no-undef, object-shorthand, quotes, comma-dangle, prefer-arrow-callback, no-unused-vars, prefer-template, no-useless-escape, no-alert, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, camelcase, object-shorthand, quotes, comma-dangle, prefer-arrow-callback, no-unused-vars, prefer-template, no-useless-escape, no-alert, padded-blocks, max-len */
/* global Dropzone */
(
function
()
{
(
function
()
{
this
.
BlobFileDropzone
=
(
function
()
{
this
.
BlobFileDropzone
=
(
function
()
{
function
BlobFileDropzone
(
form
,
method
)
{
function
BlobFileDropzone
(
form
,
method
)
{
...
...
app/assets/javascripts/blob/blob_gitignore_selector.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-rest-params, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-rest-params, padded-blocks */
/* global Api */
/*= require blob/template_selector */
/*= require blob/template_selector */
...
...
app/assets/javascripts/blob/blob_gitignore_selectors.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-unused-expressions, no-cond-assign, no-sequences, no-undef, comma-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-unused-expressions, no-cond-assign, no-sequences, comma-dangle, padded-blocks, max-len */
/* global BlobGitignoreSelector */
(
function
()
{
(
function
()
{
this
.
BlobGitignoreSelectors
=
(
function
()
{
this
.
BlobGitignoreSelectors
=
(
function
()
{
function
BlobGitignoreSelectors
(
opts
)
{
function
BlobGitignoreSelectors
(
opts
)
{
...
...
app/assets/javascripts/blob/blob_license_selector.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-rest-params, comma-dangle, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-rest-params, comma-dangle, padded-blocks */
/* global Api */
/*= require blob/template_selector */
/*= require blob/template_selector */
...
...
app/assets/javascripts/blob_edit/blob_edit_bundle.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, vars-on-top, no-unused-vars, no-undef, no-new, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, vars-on-top, no-unused-vars, no-new, padded-blocks, max-len */
/* global EditBlob */
/* global NewCommitForm */
/*= require_tree . */
/*= require_tree . */
(
function
()
{
(
function
()
{
...
...
app/assets/javascripts/blob_edit/edit_blob.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, camelcase, no-param-reassign, no-undef, quotes, prefer-template, no-new, comma-dangle, one-var, one-var-declaration-per-line, prefer-arrow-callback, no-else-return, no-unused-vars, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, camelcase, no-param-reassign, quotes, prefer-template, no-new, comma-dangle, one-var, one-var-declaration-per-line, prefer-arrow-callback, no-else-return, no-unused-vars, padded-blocks, max-len */
/* global ace */
/* global BlobGitignoreSelectors */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/breakpoints.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, quotes, no-shadow, prefer-arrow-callback, prefer-template, consistent-return, padded-blocks, no-return-assign, new-parens, no-param-reassign, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, quotes, no-shadow, prefer-arrow-callback, prefer-template, consistent-return, padded-blocks, no-return-assign, new-parens, no-param-reassign, max-len */
(
function
()
{
(
function
()
{
this
.
Breakpoints
=
(
function
()
{
var
Breakpoints
=
(
function
()
{
var
BreakpointInstance
,
instance
;
var
BreakpointInstance
,
instance
;
function
Breakpoints
()
{}
function
Breakpoints
()
{}
...
@@ -68,4 +69,5 @@
...
@@ -68,4 +69,5 @@
};
};
})(
this
));
})(
this
));
window
.
Breakpoints
=
Breakpoints
;
}).
call
(
this
);
}).
call
(
this
);
app/assets/javascripts/build.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, no-param-reassign, no-undef, quotes, yoda, no-else-return, consistent-return, comma-dangle, semi, object-shorthand, prefer-template, one-var, one-var-declaration-per-line, no-unused-vars, max-len, vars-on-top, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, no-param-reassign, quotes, yoda, no-else-return, consistent-return, comma-dangle, semi, object-shorthand, prefer-template, one-var, one-var-declaration-per-line, no-unused-vars, max-len, vars-on-top, padded-blocks */
/* global Breakpoints */
/* global Turbolinks */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
@@ -193,6 +196,7 @@
...
@@ -193,6 +196,7 @@
};
};
Build
.
prototype
.
stepTrace
=
function
(
e
)
{
Build
.
prototype
.
stepTrace
=
function
(
e
)
{
var
$currentTarget
;
e
.
preventDefault
();
e
.
preventDefault
();
$currentTarget
=
$
(
e
.
currentTarget
);
$currentTarget
=
$
(
e
.
currentTarget
);
$
.
scrollTo
(
$currentTarget
.
attr
(
'
href
'
),
{
$
.
scrollTo
(
$currentTarget
.
attr
(
'
href
'
),
{
...
...
app/assets/javascripts/commit.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-undef, padded-blocks */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, padded-blocks */
/* global CommitFile */
(
function
()
{
(
function
()
{
this
.
Commit
=
(
function
()
{
this
.
Commit
=
(
function
()
{
function
Commit
()
{
function
Commit
()
{
...
...
app/assets/javascripts/commit/file.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-new, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-new, padded-blocks */
/* global ImageFile */
(
function
()
{
(
function
()
{
this
.
CommitFile
=
(
function
()
{
this
.
CommitFile
=
(
function
()
{
function
CommitFile
(
file
)
{
function
CommitFile
(
file
)
{
...
...
app/assets/javascripts/commits.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, consistent-return, no-undef, no-return-assign, no-param-reassign, one-var, no-var, one-var-declaration-per-line, no-unused-vars, prefer-template, object-shorthand, comma-dangle, padded-blocks, max-len, prefer-arrow-callback */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, consistent-return, no-return-assign, no-param-reassign, one-var, no-var, one-var-declaration-per-line, no-unused-vars, prefer-template, object-shorthand, comma-dangle, padded-blocks, max-len, prefer-arrow-callback */
/* global Pager */
(
function
()
{
(
function
()
{
this
.
CommitsList
=
(
function
()
{
this
.
CommitsList
=
(
function
()
{
function
CommitsList
()
{}
function
CommitsList
()
{}
...
@@ -6,8 +8,8 @@
...
@@ -6,8 +8,8 @@
CommitsList
.
timer
=
null
;
CommitsList
.
timer
=
null
;
CommitsList
.
init
=
function
(
limit
)
{
CommitsList
.
init
=
function
(
limit
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
.day-commits-table li.commit
"
,
function
(
e
vent
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
.day-commits-table li.commit
"
,
function
(
e
)
{
if
(
e
vent
.
target
.
nodeName
!==
"
A
"
)
{
if
(
e
.
target
.
nodeName
!==
"
A
"
)
{
location
.
href
=
$
(
this
).
attr
(
"
url
"
);
location
.
href
=
$
(
this
).
attr
(
"
url
"
);
e
.
stopPropagation
();
e
.
stopPropagation
();
return
false
;
return
false
;
...
...
app/assets/javascripts/copy_to_clipboard.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-undef, prefer-template, quotes, no-unused-vars, prefer-arrow-callback, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, one-var-declaration-per-line, prefer-template, quotes, no-unused-vars, prefer-arrow-callback, padded-blocks, max-len */
/* global Clipboard */
/*= require clipboard */
/*= require clipboard */
...
...
app/assets/javascripts/diff_notes/components/jump_to_discussion.js.es6
View file @
8e0e902b
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, one-var, indent, space-before-function-paren, no-plusplus, no-lonely-if, no-continue, brace-style, max-len, quotes,
no-undef,
semi */
/* eslint-disable comma-dangle, object-shorthand, func-names, no-else-return, guard-for-in, no-restricted-syntax, one-var, indent, space-before-function-paren, no-plusplus, no-lonely-if, no-continue, brace-style, max-len, quotes, semi */
/* global Vue */
/* global Vue */
/* global DiscussionMixins */
/* global DiscussionMixins */
/* global CommentsStore */
/* global CommentsStore */
(() => {
(() => {
JumpToDiscussion = Vue.extend({
const
JumpToDiscussion = Vue.extend({
mixins: [DiscussionMixins],
mixins: [DiscussionMixins],
props: {
props: {
discussionId: String
discussionId: String
...
...
app/assets/javascripts/dropzone_input.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, one-var, no-var, one-var-declaration-per-line, no-unused-vars, camelcase, no-undef, quotes, no-useless-concat, prefer-template, quote-props, comma-dangle, object-shorthand, consistent-return, no-plusplus, prefer-arrow-callback, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, max-len, one-var, no-var, one-var-declaration-per-line, no-unused-vars, camelcase, quotes, no-useless-concat, prefer-template, quote-props, comma-dangle, object-shorthand, consistent-return, no-plusplus, prefer-arrow-callback, padded-blocks */
/* global Dropzone */
/*= require preview_markdown */
/*= require preview_markdown */
...
...
app/assets/javascripts/files_comment_button.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, max-len, one-var, one-var-declaration-per-line, quotes, prefer-template, newline-per-chained-call, comma-dangle, new-cap, no-else-return, padded-blocks, consistent-return, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, max-len, one-var, one-var-declaration-per-line, quotes, prefer-template, newline-per-chained-call, comma-dangle, new-cap, no-else-return, padded-blocks, consistent-return */
/* global FilesCommentButton */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/gfm_auto_complete.js.es6
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-template-curly-in-string, comma-dangle, object-shorthand, quotes, dot-notation, no-else-return, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-param-reassign, no-useless-escape, prefer-template, consistent-return, wrap-iife, prefer-arrow-callback, camelcase, no-unused-vars, no-useless-return, padded-blocks, vars-on-top, indent, no-extra-semi, no-multi-spaces, semi,
no-undef,
max-len */
/* eslint-disable func-names, space-before-function-paren, no-template-curly-in-string, comma-dangle, object-shorthand, quotes, dot-notation, no-else-return, one-var, no-var, no-underscore-dangle, one-var-declaration-per-line, no-param-reassign, no-useless-escape, prefer-template, consistent-return, wrap-iife, prefer-arrow-callback, camelcase, no-unused-vars, no-useless-return, padded-blocks, vars-on-top, indent, no-extra-semi, no-multi-spaces, semi, max-len */
// Creates the variables for setting up GFM auto-completion
// Creates the variables for setting up GFM auto-completion
(function() {
(function() {
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
return str.replace(/<(?:.|\n)*?>/gm, '');
return str.replace(/<(?:.|\n)*?>/gm, '');
}
}
GitLab.GfmAutoComplete = {
window.
GitLab.GfmAutoComplete = {
dataLoading: false,
dataLoading: false,
dataLoaded: false,
dataLoaded: false,
cachedData: {},
cachedData: {},
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
var withoutAt = value.substring(1);
var withoutAt = value.substring(1);
if (withoutAt && /[^\w\d]/.test(withoutAt)) value = value.charAt() + '"' + withoutAt + '"';
if (withoutAt && /[^\w\d]/.test(withoutAt)) value = value.charAt() + '"' + withoutAt + '"';
}
}
if (!GitLab.GfmAutoComplete.dataLoaded) {
if (!
window.
GitLab.GfmAutoComplete.dataLoaded) {
return this.at;
return this.at;
} else {
} else {
return value;
return value;
...
...
app/assets/javascripts/gl_dropdown.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, one-var, one-var-declaration-per-line, space-before-blocks, prefer-rest-params, max-len, vars-on-top, no-plusplus, wrap-iife, no-unused-vars, quotes, no-shadow, no-cond-assign, prefer-arrow-callback, semi, no-return-assign, no-else-return, camelcase, no-undef, comma-dangle, no-lonely-if, guard-for-in, no-restricted-syntax, consistent-return, padded-blocks, prefer-template, no-param-reassign, no-loop-func, no-extra-semi, keyword-spacing, no-mixed-operators, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, one-var, one-var-declaration-per-line, space-before-blocks, prefer-rest-params, max-len, vars-on-top, no-plusplus, wrap-iife, no-unused-vars, quotes, no-shadow, no-cond-assign, prefer-arrow-callback, semi, no-return-assign, no-else-return, camelcase, comma-dangle, no-lonely-if, guard-for-in, no-restricted-syntax, consistent-return, padded-blocks, prefer-template, no-param-reassign, no-loop-func, no-extra-semi, keyword-spacing, no-mixed-operators */
/* global fuzzaldrinPlus */
/* global Turbolinks */
(
function
()
{
(
function
()
{
var
GitLabDropdown
,
GitLabDropdownFilter
,
GitLabDropdownRemote
,
var
GitLabDropdown
,
GitLabDropdownFilter
,
GitLabDropdownRemote
,
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
...
@@ -188,7 +191,7 @@
...
@@ -188,7 +191,7 @@
})();
})();
GitLabDropdown
=
(
function
()
{
GitLabDropdown
=
(
function
()
{
var
ACTIVE_CLASS
,
FILTER_INPUT
,
INDETERMINATE_CLASS
,
LOADING_CLASS
,
PAGE_TWO_CLASS
,
NON_SELECTABLE_CLASSES
,
SELECTABLE_CLASSES
,
currentIndex
;
var
ACTIVE_CLASS
,
FILTER_INPUT
,
INDETERMINATE_CLASS
,
LOADING_CLASS
,
PAGE_TWO_CLASS
,
NON_SELECTABLE_CLASSES
,
SELECTABLE_CLASSES
,
CURSOR_SELECT_SCROLL_PADDING
,
currentIndex
;
LOADING_CLASS
=
"
is-loading
"
;
LOADING_CLASS
=
"
is-loading
"
;
...
...
app/assets/javascripts/gl_form.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-undef, no-new, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-new, padded-blocks, max-len */
/* global GitLab */
/* global DropzoneInput */
/* global autosize */
(
function
()
{
(
function
()
{
this
.
GLForm
=
(
function
()
{
this
.
GLForm
=
(
function
()
{
function
GLForm
(
form
)
{
function
GLForm
(
form
)
{
...
...
app/assets/javascripts/graphs/stat_graph_contributors.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, camelcase, one-var-declaration-per-line, no-undef, quotes, no-param-reassign, quote-props, comma-dangle, prefer-template, max-len, no-return-assign, padded-blocks, max-len */
/* 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, padded-blocks */
/* global ContributorsGraph */
/* global ContributorsAuthorGraph */
/* global ContributorsMasterGraph */
/* global ContributorsStatGraphUtil */
/* global d3 */
/*= require d3 */
/*= require d3 */
...
...
app/assets/javascripts/graphs/stat_graph_contributors_graph.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, space-before-blocks, prefer-rest-params, max-len, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, comma-dangle, no-return-assign, prefer-arrow-callback, quotes, prefer-template, padded-blocks, no-undef, newline-per-chained-call, no-else-return, max-len */
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, space-before-blocks, prefer-rest-params, max-len, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, comma-dangle, no-return-assign, prefer-arrow-callback, quotes, prefer-template, padded-blocks, newline-per-chained-call, no-else-return */
/* global d3 */
/* global ContributorsGraph */
/*= require d3 */
/*= require d3 */
...
...
app/assets/javascripts/groups_select.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, wrap-iife, one-var, camelcase, one-var-declaration-per-line, quotes, object-shorthand, no-undef, prefer-arrow-callback, comma-dangle, consistent-return, yoda, prefer-rest-params, prefer-spread, no-unused-vars, prefer-template, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, wrap-iife, one-var, camelcase, one-var-declaration-per-line, quotes, object-shorthand, prefer-arrow-callback, comma-dangle, consistent-return, yoda, prefer-rest-params, prefer-spread, no-unused-vars, prefer-template, padded-blocks, max-len */
/* global Api */
(
function
()
{
(
function
()
{
var
slice
=
[].
slice
;
var
slice
=
[].
slice
;
...
@@ -14,7 +16,7 @@
...
@@ -14,7 +16,7 @@
multiple
:
$
(
select
).
hasClass
(
'
multiselect
'
),
multiple
:
$
(
select
).
hasClass
(
'
multiselect
'
),
minimumInputLength
:
0
,
minimumInputLength
:
0
,
query
:
function
(
query
)
{
query
:
function
(
query
)
{
options
=
{
all_available
:
all_available
,
skip_groups
:
skip_groups
};
var
options
=
{
all_available
:
all_available
,
skip_groups
:
skip_groups
};
return
Api
.
groups
(
query
.
term
,
options
,
function
(
groups
)
{
return
Api
.
groups
(
query
.
term
,
options
,
function
(
groups
)
{
var
data
;
var
data
;
data
=
{
data
=
{
...
...
app/assets/javascripts/importer_status.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, camelcase, no-var, one-var, one-var-declaration-per-line, prefer-template, quotes, object-shorthand, comma-dangle, no-unused-vars, prefer-arrow-callback, no-else-return, padded-blocks, vars-on-top, no-new, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, camelcase, no-var, one-var, one-var-declaration-per-line, prefer-template, quotes, object-shorthand, comma-dangle, no-unused-vars, prefer-arrow-callback, no-else-return, padded-blocks, vars-on-top, no-new, max-len */
(
function
()
{
(
function
()
{
this
.
ImporterStatus
=
(
function
()
{
window
.
ImporterStatus
=
(
function
()
{
function
ImporterStatus
(
jobs_url
,
import_url
)
{
function
ImporterStatus
(
jobs_url
,
import_url
)
{
this
.
jobs_url
=
jobs_url
;
this
.
jobs_url
=
jobs_url
;
this
.
import_url
=
import_url
;
this
.
import_url
=
import_url
;
...
@@ -75,7 +76,7 @@
...
@@ -75,7 +76,7 @@
var
jobsImportPath
=
$
(
'
.js-importer-status
'
).
data
(
'
jobs-import-path
'
);
var
jobsImportPath
=
$
(
'
.js-importer-status
'
).
data
(
'
jobs-import-path
'
);
var
importPath
=
$
(
'
.js-importer-status
'
).
data
(
'
import-path
'
);
var
importPath
=
$
(
'
.js-importer-status
'
).
data
(
'
import-path
'
);
new
ImporterStatus
(
jobsImportPath
,
importPath
);
new
window
.
ImporterStatus
(
jobsImportPath
,
importPath
);
}
}
});
});
}).
call
(
this
);
}).
call
(
this
);
app/assets/javascripts/issuable_context.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-new, no-undef, comma-dangle, quotes, prefer-arrow-callback, consistent-return, one-var, no-var, one-var-declaration-per-line, no-underscore-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-new, comma-dangle, quotes, prefer-arrow-callback, consistent-return, one-var, no-var, one-var-declaration-per-line, no-underscore-dangle, padded-blocks, max-len */
/* global UsersSelect */
(
function
()
{
(
function
()
{
this
.
IssuableContext
=
(
function
()
{
this
.
IssuableContext
=
(
function
()
{
function
IssuableContext
(
currentUser
)
{
function
IssuableContext
(
currentUser
)
{
...
...
app/assets/javascripts/issuable_form.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, no-useless-escape, no-undef, no-new, quotes, object-shorthand, no-unused-vars, comma-dangle, radix, no-alert, consistent-return, no-else-return, prefer-template, one-var, one-var-declaration-per-line, curly, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, no-useless-escape, no-new, quotes, object-shorthand, no-unused-vars, comma-dangle, radix, no-alert, consistent-return, no-else-return, prefer-template, one-var, one-var-declaration-per-line, curly, padded-blocks, max-len */
/* global GitLab */
/* global UsersSelect */
/* global ZenMode */
/* global Autosave */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/issue.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, one-var, no-underscore-dangle, one-var-declaration-per-line, object-shorthand, no-unused-vars, no-undef, no-new, comma-dangle, consistent-return, quotes, dot-notation, quote-props, prefer-arrow-callback, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, one-var, no-underscore-dangle, one-var-declaration-per-line, object-shorthand, no-unused-vars, no-new, comma-dangle, consistent-return, quotes, dot-notation, quote-props, prefer-arrow-callback, padded-blocks, max-len */
/* global Flash */
/*= require flash */
/*= require flash */
/*= require jquery.waitforimages */
/*= require jquery.waitforimages */
...
...
app/assets/javascripts/labels_select.js
View file @
8e0e902b
/* eslint-disable no-useless-return, func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, no-unused-vars, one-var-declaration-per-line, prefer-template, no-new, consistent-return, object-shorthand, comma-dangle, no-shadow, no-param-reassign, brace-style, vars-on-top, quotes, no-lonely-if, no-else-return, no-undef, semi, dot-notation, no-empty, no-return-assign, camelcase, prefer-spread, padded-blocks, max-len */
/* eslint-disable no-useless-return, func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, no-unused-vars, one-var-declaration-per-line, prefer-template, no-new, consistent-return, object-shorthand, comma-dangle, no-shadow, no-param-reassign, brace-style, vars-on-top, quotes, no-lonely-if, no-else-return, semi, dot-notation, no-empty, no-return-assign, camelcase, prefer-spread, padded-blocks */
/* global Issuable */
/* global ListLabel */
(
function
()
{
(
function
()
{
this
.
LabelsSelect
=
(
function
()
{
this
.
LabelsSelect
=
(
function
()
{
function
LabelsSelect
()
{
function
LabelsSelect
()
{
...
...
app/assets/javascripts/lib/utils/notify.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, one-var-declaration-per-line, consistent-return, no-undef, prefer-arrow-callback, no-return-assign, object-shorthand, comma-dangle, no-param-reassign, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, one-var-declaration-per-line, consistent-return, prefer-arrow-callback, no-return-assign, object-shorthand, comma-dangle, no-param-reassign, padded-blocks, max-len */
(
function
()
{
(
function
()
{
(
function
(
w
)
{
(
function
(
w
)
{
var
notificationGranted
,
notifyMe
,
notifyPermissions
;
var
notificationGranted
,
notifyMe
,
notifyPermissions
;
...
...
app/assets/javascripts/line_highlighter.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, no-underscore-dangle, no-param-reassign, no-undef, prefer-template, quotes, comma-dangle, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, spaced-comment, radix, no-else-return, max-len, no-plusplus, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, no-underscore-dangle, no-param-reassign, prefer-template, quotes, comma-dangle, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, spaced-comment, radix, no-else-return, max-len, no-plusplus, padded-blocks */
// LineHighlighter
// LineHighlighter
//
//
// Handles single- and multi-line selection and highlight for blob views.
// Handles single- and multi-line selection and highlight for blob views.
...
...
app/assets/javascripts/merge_request.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, no-undef, no-underscore-dangle, one-var, one-var-declaration-per-line, consistent-return, dot-notation, quote-props, comma-dangle, object-shorthand, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, no-underscore-dangle, one-var, one-var-declaration-per-line, consistent-return, dot-notation, quote-props, comma-dangle, object-shorthand, padded-blocks, max-len */
/* global MergeRequestTabs */
/*= require jquery.waitforimages */
/*= require jquery.waitforimages */
/*= require task_list */
/*= require task_list */
...
...
app/assets/javascripts/merged_buttons.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, padded-blocks, max-len */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/milestone.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-use-before-define, camelcase, quotes, object-shorthand, no-shadow, no-unused-vars, no-undef, comma-dangle, no-var, prefer-template, no-underscore-dangle, consistent-return, one-var, one-var-declaration-per-line, default-case, prefer-arrow-callback, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-use-before-define, camelcase, quotes, object-shorthand, no-shadow, no-unused-vars, comma-dangle, no-var, prefer-template, no-underscore-dangle, consistent-return, one-var, one-var-declaration-per-line, default-case, prefer-arrow-callback, padded-blocks, max-len */
/* global Flash */
(
function
()
{
(
function
()
{
this
.
Milestone
=
(
function
()
{
this
.
Milestone
=
(
function
()
{
Milestone
.
updateIssue
=
function
(
li
,
issue_url
,
data
)
{
Milestone
.
updateIssue
=
function
(
li
,
issue_url
,
data
)
{
...
...
app/assets/javascripts/milestone_select.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, one-var-declaration-per-line, no-unused-vars, object-shorthand, comma-dangle, no-else-return, no-self-compare, consistent-return, no-undef, no-param-reassign, no-shadow, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-underscore-dangle, prefer-arrow-callback, max-len, one-var, one-var-declaration-per-line, no-unused-vars, object-shorthand, comma-dangle, no-else-return, no-self-compare, consistent-return, no-param-reassign, no-shadow, padded-blocks */
/* global Vue */
/* global Issuable */
/* global ListMilestone */
(
function
()
{
(
function
()
{
this
.
MilestoneSelect
=
(
function
()
{
this
.
MilestoneSelect
=
(
function
()
{
function
MilestoneSelect
(
currentProject
)
{
function
MilestoneSelect
(
currentProject
)
{
...
...
app/assets/javascripts/namespace_select.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, one-var, vars-on-top, one-var-declaration-per-line, comma-dangle, object-shorthand, no-else-return, prefer-template, quotes, no-undef, prefer-arrow-callback, padded-blocks, no-param-reassign, no-cond-assign, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, one-var, vars-on-top, one-var-declaration-per-line, comma-dangle, object-shorthand, no-else-return, prefer-template, quotes, prefer-arrow-callback, padded-blocks, no-param-reassign, no-cond-assign, max-len */
/* global Api */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
this
.
NamespaceSelect
=
(
function
()
{
window
.
NamespaceSelect
=
(
function
()
{
function
NamespaceSelect
(
opts
)
{
function
NamespaceSelect
(
opts
)
{
this
.
onSelectItem
=
bind
(
this
.
onSelectItem
,
this
);
this
.
onSelectItem
=
bind
(
this
.
onSelectItem
,
this
);
var
fieldName
,
showAny
;
var
fieldName
,
showAny
;
...
@@ -64,7 +66,7 @@
...
@@ -64,7 +66,7 @@
})();
})();
this
.
NamespaceSelects
=
(
function
()
{
window
.
NamespaceSelects
=
(
function
()
{
function
NamespaceSelects
(
opts
)
{
function
NamespaceSelects
(
opts
)
{
var
ref
;
var
ref
;
if
(
opts
==
null
)
{
if
(
opts
==
null
)
{
...
@@ -74,7 +76,7 @@
...
@@ -74,7 +76,7 @@
this
.
$dropdowns
.
each
(
function
(
i
,
dropdown
)
{
this
.
$dropdowns
.
each
(
function
(
i
,
dropdown
)
{
var
$dropdown
;
var
$dropdown
;
$dropdown
=
$
(
dropdown
);
$dropdown
=
$
(
dropdown
);
return
new
NamespaceSelect
({
return
new
window
.
NamespaceSelect
({
dropdown
:
$dropdown
dropdown
:
$dropdown
});
});
});
});
...
...
app/assets/javascripts/network/branch_graph.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, comma-dangle, one-var, one-var-declaration-per-line, no-mixed-operators, new-cap, no-undef, no-plusplus, no-loop-func, no-floating-decimal, consistent-return, no-unused-vars, prefer-template, prefer-arrow-callback, camelcase, max-len, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, comma-dangle, one-var, one-var-declaration-per-line, no-mixed-operators, new-cap, no-plusplus, no-loop-func, no-floating-decimal, consistent-return, no-unused-vars, prefer-template, prefer-arrow-callback, camelcase, max-len, padded-blocks */
/* global Raphael */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/network/network.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, no-undef, quote-props, prefer-template, comma-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, quote-props, prefer-template, comma-dangle, padded-blocks, max-len */
/* global BranchGraph */
(
function
()
{
(
function
()
{
this
.
Network
=
(
function
()
{
this
.
Network
=
(
function
()
{
function
Network
(
opts
)
{
function
Network
(
opts
)
{
...
...
app/assets/javascripts/network/network_bundle.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, no-undef, comma-dangle, consistent-return, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, quotes, no-var, vars-on-top, camelcase, comma-dangle, consistent-return, padded-blocks, max-len */
/* global Network */
/* global ShortcutsNetwork */
// This is a manifest file that'll be compiled into including all the files listed below.
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript code in separate files in this directory and they'll automatically
// Add new JavaScript 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
// be included in the compiled file accessible from http://example.com/assets/application.js
...
...
app/assets/javascripts/notes.js
View file @
8e0e902b
/* eslint-disable no-restricted-properties, func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, camelcase, no-unused-expressions, quotes, max-len, one-var, one-var-declaration-per-line, default-case, prefer-template, no-undef, consistent-return, no-alert, no-return-assign, no-param-reassign, prefer-arrow-callback, no-else-return, comma-dangle, no-new, brace-style, no-lonely-if, vars-on-top, no-unused-vars, semi, indent, no-sequences, no-shadow, newline-per-chained-call, no-useless-escape, radix, padded-blocks, max-len */
/* eslint-disable no-restricted-properties, func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-use-before-define, camelcase, no-unused-expressions, quotes, max-len, one-var, one-var-declaration-per-line, default-case, prefer-template, consistent-return, no-alert, no-return-assign, no-param-reassign, prefer-arrow-callback, no-else-return, comma-dangle, no-new, brace-style, no-lonely-if, vars-on-top, no-unused-vars, semi, indent, no-sequences, no-shadow, newline-per-chained-call, no-useless-escape, radix, padded-blocks */
/* global Flash */
/* global GLForm */
/* global Autosave */
/* global ResolveService */
/*= require autosave */
/*= require autosave */
/*= require autosize */
/*= require autosize */
...
@@ -671,7 +675,7 @@
...
@@ -671,7 +675,7 @@
*/
*/
Notes
.
prototype
.
addDiffNote
=
function
(
e
)
{
Notes
.
prototype
.
addDiffNote
=
function
(
e
)
{
var
$link
,
addForm
,
hasNotes
,
lineType
,
newForm
,
nextRow
,
noteForm
,
notesContent
,
replyButton
,
row
,
rowCssToAdd
,
targetContent
;
var
$link
,
addForm
,
hasNotes
,
lineType
,
newForm
,
nextRow
,
noteForm
,
notesContent
,
notesContentSelector
,
replyButton
,
row
,
rowCssToAdd
,
targetContent
;
e
.
preventDefault
();
e
.
preventDefault
();
$link
=
$
(
e
.
currentTarget
);
$link
=
$
(
e
.
currentTarget
);
row
=
$link
.
closest
(
"
tr
"
);
row
=
$link
.
closest
(
"
tr
"
);
...
...
app/assets/javascripts/notifications_dropdown.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, no-unused-vars, consistent-return, prefer-arrow-callback, no-else-return, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, one-var, no-var, one-var-declaration-per-line, no-unused-vars, consistent-return, prefer-arrow-callback, no-else-return, padded-blocks, max-len */
/* global Flash */
(
function
()
{
(
function
()
{
this
.
NotificationsDropdown
=
(
function
()
{
this
.
NotificationsDropdown
=
(
function
()
{
function
NotificationsDropdown
()
{
function
NotificationsDropdown
()
{
...
...
app/assets/javascripts/preview_markdown.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, one-var, one-var-declaration-per-line, wrap-iife, no-else-return, consistent-return, object-shorthand, comma-dangle, no-param-reassign, padded-blocks, no-undef, camelcase, prefer-arrow-callback, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, one-var, one-var-declaration-per-line, wrap-iife, no-else-return, consistent-return, object-shorthand, comma-dangle, no-param-reassign, padded-blocks, camelcase, prefer-arrow-callback, max-len */
// MarkdownPreview
// MarkdownPreview
//
//
// Handles toggling the "Write" and "Preview" tab clicks, rendering the preview,
// Handles toggling the "Write" and "Preview" tab clicks, rendering the preview,
...
@@ -7,7 +8,7 @@
...
@@ -7,7 +8,7 @@
(
function
()
{
(
function
()
{
var
lastTextareaPreviewed
,
markdownPreview
,
previewButtonSelector
,
writeButtonSelector
;
var
lastTextareaPreviewed
,
markdownPreview
,
previewButtonSelector
,
writeButtonSelector
;
this
.
MarkdownPreview
=
(
function
()
{
window
.
MarkdownPreview
=
(
function
()
{
function
MarkdownPreview
()
{}
function
MarkdownPreview
()
{}
// Minimum number of users referenced before triggering a warning
// Minimum number of users referenced before triggering a warning
...
@@ -83,7 +84,7 @@
...
@@ -83,7 +84,7 @@
})();
})();
markdownPreview
=
new
MarkdownPreview
();
markdownPreview
=
new
window
.
MarkdownPreview
();
previewButtonSelector
=
'
.js-md-preview-button
'
;
previewButtonSelector
=
'
.js-md-preview-button
'
;
...
...
app/assets/javascripts/project.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, consistent-return, no-undef, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-else-return, newline-per-chained-call, no-shadow, semi, vars-on-top, indent, prefer-template, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, quotes, consistent-return, no-new, prefer-arrow-callback, no-return-assign, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-else-return, newline-per-chained-call, no-shadow, semi, vars-on-top, indent, prefer-template, padded-blocks, max-len */
/* global Cookies */
/* global Turbolinks */
/* global ProjectSelect */
(
function
()
{
(
function
()
{
this
.
Project
=
(
function
()
{
this
.
Project
=
(
function
()
{
function
Project
()
{
function
Project
()
{
...
...
app/assets/javascripts/project_find_file.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, consistent-return, one-var, one-var-declaration-per-line, no-cond-assign, max-len, no-undef, object-shorthand, no-param-reassign, comma-dangle, no-plusplus, prefer-template, no-unused-vars, no-return-assign, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, consistent-return, one-var, one-var-declaration-per-line, no-cond-assign, max-len, object-shorthand, no-param-reassign, comma-dangle, no-plusplus, prefer-template, no-unused-vars, no-return-assign, padded-blocks */
/* global fuzzaldrinPlus */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/project_import.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, padded-blocks, max-len */
/* global Turbolinks */
(
function
()
{
(
function
()
{
this
.
ProjectImport
=
(
function
()
{
this
.
ProjectImport
=
(
function
()
{
function
ProjectImport
()
{
function
ProjectImport
()
{
...
...
app/assets/javascripts/project_select.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-var, comma-dangle, object-shorthand, one-var, one-var-declaration-per-line, no-undef, no-else-return, quotes, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-var, comma-dangle, object-shorthand, one-var, one-var-declaration-per-line, no-else-return, quotes, padded-blocks, max-len */
/* global Api */
(
function
()
{
(
function
()
{
this
.
ProjectSelect
=
(
function
()
{
this
.
ProjectSelect
=
(
function
()
{
function
ProjectSelect
()
{
function
ProjectSelect
()
{
...
...
app/assets/javascripts/projects_list.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, object-shorthand, quotes, no-var, one-var, one-var-declaration-per-line, no-undef, prefer-arrow-callback, consistent-return, no-unused-vars, camelcase, prefer-template, comma-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, object-shorthand, quotes, no-var, one-var, one-var-declaration-per-line, prefer-arrow-callback, consistent-return, no-unused-vars, camelcase, prefer-template, comma-dangle, padded-blocks, max-len */
(
function
()
{
(
function
()
{
this
.
ProjectsList
=
{
window
.
ProjectsList
=
{
init
:
function
()
{
init
:
function
()
{
$
(
"
.projects-list-filter
"
).
off
(
'
keyup
'
);
$
(
"
.projects-list-filter
"
).
off
(
'
keyup
'
);
this
.
initSearch
();
this
.
initSearch
();
...
@@ -9,7 +10,7 @@
...
@@ -9,7 +10,7 @@
initSearch
:
function
()
{
initSearch
:
function
()
{
var
debounceFilter
,
projectsListFilter
;
var
debounceFilter
,
projectsListFilter
;
projectsListFilter
=
$
(
'
.projects-list-filter
'
);
projectsListFilter
=
$
(
'
.projects-list-filter
'
);
debounceFilter
=
_
.
debounce
(
ProjectsList
.
filterResults
,
500
);
debounceFilter
=
_
.
debounce
(
window
.
ProjectsList
.
filterResults
,
500
);
return
projectsListFilter
.
on
(
'
keyup
'
,
function
(
e
)
{
return
projectsListFilter
.
on
(
'
keyup
'
,
function
(
e
)
{
if
(
projectsListFilter
.
val
()
!==
''
)
{
if
(
projectsListFilter
.
val
()
!==
''
)
{
return
debounceFilter
();
return
debounceFilter
();
...
...
app/assets/javascripts/right_sidebar.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-unused-vars, semi, consistent-return, one-var, one-var-declaration-per-line, no-undef, quotes, prefer-template, object-shorthand, comma-dangle, no-else-return, no-param-reassign, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-unused-vars, semi, consistent-return, one-var, one-var-declaration-per-line, quotes, prefer-template, object-shorthand, comma-dangle, no-else-return, no-param-reassign, padded-blocks, max-len */
/* global Cookies */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/search.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, one-var-declaration-per-line, object-shorthand, no-undef, prefer-arrow-callback, comma-dangle, prefer-template, quotes, no-else-return, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, one-var, one-var-declaration-per-line, object-shorthand, prefer-arrow-callback, comma-dangle, prefer-template, quotes, no-else-return, padded-blocks, max-len */
/* global Api */
(
function
()
{
(
function
()
{
this
.
Search
=
(
function
()
{
this
.
Search
=
(
function
()
{
function
Search
()
{
function
Search
()
{
...
...
app/assets/javascripts/shortcuts.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, no-undef, prefer-arrow-callback, consistent-return, object-shorthand, no-unused-vars, one-var, one-var-declaration-per-line, no-plusplus, no-else-return, comma-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, prefer-arrow-callback, consistent-return, object-shorthand, no-unused-vars, one-var, one-var-declaration-per-line, no-plusplus, no-else-return, comma-dangle, padded-blocks, max-len */
/* global Mousetrap */
/* global Turbolinks */
/* global findFileURL */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/shortcuts_blob.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, consistent-return, padded-blocks, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, consistent-return, padded-blocks */
/* global Shortcuts */
/* global Mousetrap */
/*= require shortcuts */
/*= require shortcuts */
...
...
app/assets/javascripts/shortcuts_dashboard_navigation.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-arrow-callback, consistent-return, no-return-assign, padded-blocks, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-arrow-callback, consistent-return, no-return-assign, padded-blocks */
/* global Mousetrap */
/* global Shortcuts */
/*= require shortcuts */
/*= require shortcuts */
...
...
app/assets/javascripts/shortcuts_find_file.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, padded-blocks, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, one-var, no-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, padded-blocks */
/* global Mousetrap */
/* global ShortcutsNavigation */
/*= require shortcuts_navigation */
/*= require shortcuts_navigation */
...
...
app/assets/javascripts/shortcuts_issuable.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, one-var-declaration-per-line, quotes, prefer-arrow-callback, consistent-return, prefer-template, no-mixed-operators, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, one-var-declaration-per-line, quotes, prefer-arrow-callback, consistent-return, prefer-template, no-mixed-operators, padded-blocks */
/* global Mousetrap */
/* global Turbolinks */
/* global ShortcutsNavigation */
/* global sidebar */
/*= require mousetrap */
/*= require mousetrap */
/*= require shortcuts_navigation */
/*= require shortcuts_navigation */
...
...
app/assets/javascripts/shortcuts_navigation.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-arrow-callback, consistent-return, no-return-assign, padded-blocks, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, prefer-arrow-callback, consistent-return, no-return-assign, padded-blocks */
/* global Mousetrap */
/* global Shortcuts */
/*= require shortcuts */
/*= require shortcuts */
...
...
app/assets/javascripts/shortcuts_network.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, padded-blocks, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, max-len, no-var, one-var, no-restricted-syntax, vars-on-top, no-use-before-define, no-param-reassign, new-cap, no-underscore-dangle, wrap-iife, padded-blocks, max-len */
/* global Mousetrap */
/* global ShortcutsNavigation */
/*= require shortcuts_navigation */
/*= require shortcuts_navigation */
...
...
app/assets/javascripts/single_file_diff.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, one-var, one-var-declaration-per-line, consistent-return, no-param-reassign, padded-blocks, no-undef, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, one-var, one-var-declaration-per-line, consistent-return, no-param-reassign, padded-blocks, max-len */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
this
.
SingleFileDiff
=
(
function
()
{
window
.
SingleFileDiff
=
(
function
()
{
var
COLLAPSED_HTML
,
ERROR_HTML
,
LOADING_HTML
,
WRAPPER
;
var
COLLAPSED_HTML
,
ERROR_HTML
,
LOADING_HTML
,
WRAPPER
;
WRAPPER
=
'
<div class="diff-content diff-wrap-lines"></div>
'
;
WRAPPER
=
'
<div class="diff-content diff-wrap-lines"></div>
'
;
...
@@ -93,7 +94,7 @@
...
@@ -93,7 +94,7 @@
$
.
fn
.
singleFileDiff
=
function
(
forceLoad
,
cb
)
{
$
.
fn
.
singleFileDiff
=
function
(
forceLoad
,
cb
)
{
return
this
.
each
(
function
()
{
return
this
.
each
(
function
()
{
if
(
!
$
.
data
(
this
,
'
singleFileDiff
'
)
||
forceLoad
)
{
if
(
!
$
.
data
(
this
,
'
singleFileDiff
'
)
||
forceLoad
)
{
return
$
.
data
(
this
,
'
singleFileDiff
'
,
new
SingleFileDiff
(
this
,
forceLoad
,
cb
));
return
$
.
data
(
this
,
'
singleFileDiff
'
,
new
window
.
SingleFileDiff
(
this
,
forceLoad
,
cb
));
}
}
});
});
};
};
...
...
app/assets/javascripts/snippet/snippet_bundle.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, no-undef, quotes, semi, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, semi, padded-blocks, max-len */
/* global ace */
/*= require_tree . */
/*= require_tree . */
(
function
()
{
(
function
()
{
...
...
app/assets/javascripts/star.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-unused-vars, one-var, no-var, one-var-declaration-per-line, prefer-arrow-callback, no-new, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-unused-vars, one-var, no-var, one-var-declaration-per-line, prefer-arrow-callback, no-new, padded-blocks, max-len */
/* global Flash */
(
function
()
{
(
function
()
{
this
.
Star
=
(
function
()
{
this
.
Star
=
(
function
()
{
function
Star
()
{
function
Star
()
{
...
...
app/assets/javascripts/syntax_highlight.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-undef, no-else-return, prefer-arrow-callback, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, consistent-return, no-var, no-else-return, prefer-arrow-callback, padded-blocks, max-len */
// Syntax Highlighter
// Syntax Highlighter
//
//
// Applies a syntax highlighting color scheme CSS class to any element with the
// Applies a syntax highlighting color scheme CSS class to any element with the
...
...
app/assets/javascripts/todos.js.es6
View file @
8e0e902b
/* eslint-disable padded-blocks, class-methods-use-this, no-new, func-names, prefer-template, no-unneeded-ternary, object-shorthand, space-before-function-paren, comma-dangle, quote-props, consistent-return, no-else-return, semi, no-param-reassign, max-len
, no-undef
*/
/* eslint-disable padded-blocks, class-methods-use-this, no-new, func-names, prefer-template, no-unneeded-ternary, object-shorthand, space-before-function-paren, comma-dangle, quote-props, consistent-return, no-else-return, semi, no-param-reassign, max-len */
/* global UsersSelect */
/* global UsersSelect */
/* global Turbolinks */
/* global Turbolinks */
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
allDoneClicked(e) {
allDoneClicked(e) {
e.preventDefault();
e.preventDefault();
e.stopImmediatePropagation();
e.stopImmediatePropagation();
$target = $(e.currentTarget);
const
$target = $(e.currentTarget);
$target.disable();
$target.disable();
return $.ajax({
return $.ajax({
type: 'POST',
type: 'POST',
...
...
app/assets/javascripts/u2f/authenticate.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, prefer-arrow-callback, no-undef, no-else-return, quotes, quote-props, comma-dangle, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, prefer-arrow-callback, no-else-return, quotes, quote-props, comma-dangle, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* global u2f */
/* global U2FError */
/* global U2FUtil */
// Authenticate U2F (universal 2nd factor) devices for users to authenticate with.
// Authenticate U2F (universal 2nd factor) devices for users to authenticate with.
//
//
// State Flow #1: setup -> in_progress -> authenticated -> POST to server
// State Flow #1: setup -> in_progress -> authenticated -> POST to server
...
...
app/assets/javascripts/u2f/error.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-console, quotes, prefer-template, no-undef, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-console, quotes, prefer-template, padded-blocks, max-len */
/* global u2f */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/u2f/register.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-undef, no-else-return, quotes, quote-props, comma-dangle, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, no-else-return, quotes, quote-props, comma-dangle, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* global u2f */
/* global U2FError */
/* global U2FUtil */
// Register U2F (universal 2nd factor) devices for users to authenticate with.
// Register U2F (universal 2nd factor) devices for users to authenticate with.
//
//
// State Flow #1: setup -> in_progress -> registered -> POST to server
// State Flow #1: setup -> in_progress -> registered -> POST to server
...
...
app/assets/javascripts/users/calendar.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, camelcase, vars-on-top, semi, keyword-spacing, no-plusplus, no-undef, object-shorthand, comma-dangle, eqeqeq, no-mixed-operators, no-return-assign, newline-per-chained-call, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, prefer-template, quotes, no-unused-vars, no-else-return, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, no-var, space-before-blocks, prefer-rest-params, wrap-iife, camelcase, vars-on-top, semi, keyword-spacing, no-plusplus, object-shorthand, comma-dangle, eqeqeq, no-mixed-operators, no-return-assign, newline-per-chained-call, prefer-arrow-callback, consistent-return, one-var, one-var-declaration-per-line, prefer-template, quotes, no-unused-vars, no-else-return, padded-blocks, max-len */
/* global d3 */
/* global dateFormat */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
};
...
...
app/assets/javascripts/users_select.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, max-len, one-var-declaration-per-line, vars-on-top, prefer-arrow-callback, consistent-return, no-undef, comma-dangle, object-shorthand, no-shadow, no-unused-vars, no-plusplus, no-else-return, no-self-compare, prefer-template, no-unused-expressions, no-lonely-if, yoda, prefer-spread, no-void, camelcase, keyword-spacing, no-param-reassign, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, one-var, no-var, space-before-blocks, prefer-rest-params, wrap-iife, quotes, max-len, one-var-declaration-per-line, vars-on-top, prefer-arrow-callback, consistent-return, comma-dangle, object-shorthand, no-shadow, no-unused-vars, no-plusplus, no-else-return, no-self-compare, prefer-template, no-unused-expressions, no-lonely-if, yoda, prefer-spread, no-void, camelcase, keyword-spacing, no-param-reassign, padded-blocks */
/* global Vue */
/* global Issuable */
/* global ListUser */
(
function
()
{
(
function
()
{
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
var
bind
=
function
(
fn
,
me
){
return
function
(){
return
fn
.
apply
(
me
,
arguments
);
};
},
slice
=
[].
slice
;
slice
=
[].
slice
;
...
...
app/assets/javascripts/zen_mode.js
View file @
8e0e902b
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, consistent-return, no-undef, camelcase, comma-dangle, padded-blocks, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, consistent-return, camelcase, comma-dangle, padded-blocks, max-len */
/* global Dropzone */
/* global Mousetrap */
// Zen Mode (full screen) textarea
// Zen Mode (full screen) textarea
//
//
/*= provides zen_mode:enter */
/*= provides zen_mode:enter */
...
...
app/views/shared/issuable/_sidebar.html.haml
View file @
8e0e902b
...
@@ -167,4 +167,4 @@
...
@@ -167,4 +167,4 @@
new
IssuableContext
(
'
#{
escape_javascript
(
current_user
.
to_json
(
only:
[
:username
,
:id
,
:name
]))
}
'
);
new
IssuableContext
(
'
#{
escape_javascript
(
current_user
.
to_json
(
only:
[
:username
,
:id
,
:name
]))
}
'
);
gl
.
Subscription
.
bindAll
(
'
.subscription
'
);
gl
.
Subscription
.
bindAll
(
'
.subscription
'
);
new
gl
.
DueDateSelectors
();
new
gl
.
DueDateSelectors
();
sidebar
=
new
Sidebar
();
window
.
sidebar
=
new
Sidebar
();
spec/javascripts/awards_handler_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, comma-dangle, no-undef, new-parens, no-unused-vars, quotes, jasmine/no-spec-dupes, prefer-template, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-unused-expressions, comma-dangle, new-parens, no-unused-vars, quotes, jasmine/no-spec-dupes, prefer-template, padded-blocks, max-len */
/* global AwardsHandler */
/*= require awards_handler */
/*= require awards_handler */
/*= require jquery */
/*= require jquery */
...
...
spec/javascripts/behaviors/quick_submit_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-var, no-return-assign, comma-dangle,
no-undef,
jasmine/no-spec-dupes, new-cap, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, no-return-assign, comma-dangle, jasmine/no-spec-dupes, new-cap, padded-blocks, max-len */
/*= require behaviors/quick_submit */
/*= require behaviors/quick_submit */
...
...
spec/javascripts/graphs/stat_graph_contributors_graph_spec.js
View file @
8e0e902b
/* eslint-disable quotes, no-undef, indent, semi, object-curly-spacing, jasmine/no-suite-dupes, vars-on-top, no-var, padded-blocks, spaced-comment, max-len */
/* eslint-disable quotes, indent, semi, object-curly-spacing, jasmine/no-suite-dupes, vars-on-top, no-var, padded-blocks, spaced-comment, max-len */
/* global d3 */
/* global ContributorsGraph */
/* global ContributorsMasterGraph */
//= require graphs/stat_graph_contributors_graph
//= require graphs/stat_graph_contributors_graph
describe
(
"
ContributorsGraph
"
,
function
()
{
describe
(
"
ContributorsGraph
"
,
function
()
{
...
...
spec/javascripts/graphs/stat_graph_contributors_util_spec.js
View file @
8e0e902b
/* eslint-disable quotes, padded-blocks, no-var, camelcase, object-curly-spacing, semi, indent, object-property-newline, comma-dangle, comma-spacing, no-undef, spaced-comment, max-len, key-spacing, vars-on-top, quote-props, no-multi-spaces, max-len */
/* eslint-disable quotes, padded-blocks, no-var, camelcase, object-curly-spacing, semi, indent, object-property-newline, comma-dangle, comma-spacing, spaced-comment, max-len, key-spacing, vars-on-top, quote-props, no-multi-spaces */
/* global ContributorsStatGraphUtil */
//= require graphs/stat_graph_contributors_util
//= require graphs/stat_graph_contributors_util
describe
(
"
ContributorsStatGraphUtil
"
,
function
()
{
describe
(
"
ContributorsStatGraphUtil
"
,
function
()
{
...
...
spec/javascripts/graphs/stat_graph_spec.js
View file @
8e0e902b
/* eslint-disable quotes, padded-blocks, no-undef, semi */
/* eslint-disable quotes, padded-blocks, semi */
/* global StatGraph */
//= require graphs/stat_graph
//= require graphs/stat_graph
describe
(
"
StatGraph
"
,
function
()
{
describe
(
"
StatGraph
"
,
function
()
{
...
...
spec/javascripts/issue_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-use-before-define, indent, no-undef, no-trailing-spaces, comma-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-use-before-define, indent, no-trailing-spaces, comma-dangle, padded-blocks, max-len */
/* global Issue */
/*= require lib/utils/text_utility */
/*= require lib/utils/text_utility */
/*= require issue */
/*= require issue */
...
@@ -70,7 +71,7 @@
...
@@ -70,7 +71,7 @@
$
(
'
input[type=checkbox]
'
).
attr
(
'
checked
'
,
true
).
trigger
(
'
change
'
);
$
(
'
input[type=checkbox]
'
).
attr
(
'
checked
'
,
true
).
trigger
(
'
change
'
);
expect
(
$
(
'
.js-task-list-field
'
).
val
()).
toBe
(
'
- [x] Task List Item
'
);
expect
(
$
(
'
.js-task-list-field
'
).
val
()).
toBe
(
'
- [x] Task List Item
'
);
});
});
it
(
'
submits an ajax request on tasklist:changed
'
,
function
()
{
it
(
'
submits an ajax request on tasklist:changed
'
,
function
()
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(
function
(
req
)
{
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(
function
(
req
)
{
expect
(
req
.
type
).
toBe
(
'
PATCH
'
);
expect
(
req
.
type
).
toBe
(
'
PATCH
'
);
...
...
spec/javascripts/labels_issue_sidebar_spec.js.es6
View file @
8e0e902b
/* eslint-disable no-new, no-undef, no-plusplus, object-curly-spacing, prefer-const, semi */
/* eslint-disable no-new, no-plusplus, object-curly-spacing, prefer-const, semi */
/* global IssuableContext */
/* global LabelsSelect */
//= require lib/utils/type_utility
//= require lib/utils/type_utility
//= require jquery
//= require jquery
...
...
spec/javascripts/line_highlighter_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-undef, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, no-plusplus, jasmine/no-spec-dupes, no-underscore-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, no-param-reassign, quotes, prefer-template, no-else-return, new-cap, dot-notation, no-return-assign, comma-dangle, no-new, one-var, one-var-declaration-per-line, no-plusplus, jasmine/no-spec-dupes, no-underscore-dangle, padded-blocks, max-len */
/* global LineHighlighter */
/*= require line_highlighter */
/*= require line_highlighter */
...
...
spec/javascripts/merge_request_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-return-assign, no-undef, padded-blocks */
/* eslint-disable space-before-function-paren, no-return-assign, padded-blocks */
/* global MergeRequest */
/*= require merge_request */
/*= require merge_request */
...
...
spec/javascripts/new_branch_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, no-undef, quotes, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, one-var, no-var, one-var-declaration-per-line, no-return-assign, quotes, padded-blocks, max-len */
/* global NewBranchForm */
/*= require jquery-ui/autocomplete */
/*= require jquery-ui/autocomplete */
/*= require new_branch_form */
/*= require new_branch_form */
...
...
spec/javascripts/notes_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-unused-expressions, no-undef, no-var, object-shorthand, comma-dangle, semi, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-unused-expressions, no-var, object-shorthand, comma-dangle, semi, padded-blocks, max-len */
/* global Notes */
/*= require notes */
/*= require notes */
/*= require autosize */
/*= require autosize */
/*= require gl_form */
/*= require gl_form */
...
...
spec/javascripts/project_title_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-unused-expressions, no-return-assign, no-undef, no-param-reassign, no-var, new-cap, wrap-iife, no-unused-vars, quotes, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-unused-expressions, no-return-assign, no-param-reassign, no-var, new-cap, wrap-iife, no-unused-vars, quotes, jasmine/no-expect-in-setup-teardown, padded-blocks, max-len */
/* global Project */
/*= require bootstrap */
/*= require bootstrap */
/*= require select2 */
/*= require select2 */
...
...
spec/javascripts/right_sidebar_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, new-parens, no-undef, no-return-assign, new-cap, vars-on-top, semi, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, new-parens, no-return-assign, new-cap, vars-on-top, semi, padded-blocks, max-len */
/* global Sidebar */
/*= require right_sidebar */
/*= require right_sidebar */
/*= require jquery */
/*= require jquery */
...
...
spec/javascripts/shortcuts_issuable_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-return-assign, no-undef, no-var, quotes, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-return-assign, no-var, quotes, padded-blocks */
/* global ShortcutsIssuable */
/*= require shortcuts_issuable */
/*= require shortcuts_issuable */
...
...
spec/javascripts/u2f/authenticate_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, new-parens, no-undef, quotes, comma-dangle, no-var, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, new-parens, quotes, comma-dangle, no-var, one-var, one-var-declaration-per-line, padded-blocks, max-len */
/* global MockU2FDevice */
/* global U2FAuthenticate */
/*= require u2f/authenticate */
/*= require u2f/authenticate */
/*= require u2f/util */
/*= require u2f/util */
...
...
spec/javascripts/u2f/register_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, new-parens, no-undef, quotes, no-var, one-var, one-var-declaration-per-line, comma-dangle, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, new-parens, quotes, no-var, one-var, one-var-declaration-per-line, comma-dangle, padded-blocks, max-len */
/* global MockU2FDevice */
/* global U2FRegister */
/*= require u2f/register */
/*= require u2f/register */
/*= require u2f/util */
/*= require u2f/util */
...
...
spec/javascripts/zen_mode_spec.js
View file @
8e0e902b
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, no-undef, object-shorthand, comma-dangle, no-return-assign, new-cap, padded-blocks, max-len */
/* eslint-disable space-before-function-paren, no-var, one-var, one-var-declaration-per-line, object-shorthand, comma-dangle, no-return-assign, new-cap, padded-blocks, max-len */
/* global Dropzone */
/* global Mousetrap */
/* global ZenMode */
/*= require zen_mode */
/*= require zen_mode */
...
...
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