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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5bd54918
Commit
5bd54918
authored
May 16, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update remaining uses of CJS syntax to ES module syntax
parent
f5ad1dcb
Changes
20
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
64 additions
and
59 deletions
+64
-59
app/assets/javascripts/copy_as_gfm.js
app/assets/javascripts/copy_as_gfm.js
+1
-1
app/assets/javascripts/diff.js
app/assets/javascripts/diff.js
+1
-1
app/assets/javascripts/dropzone_input.js
app/assets/javascripts/dropzone_input.js
+1
-1
app/assets/javascripts/gl_field_errors.js
app/assets/javascripts/gl_field_errors.js
+1
-1
app/assets/javascripts/issue.js
app/assets/javascripts/issue.js
+6
-6
app/assets/javascripts/lib/utils/datetime_utility.js
app/assets/javascripts/lib/utils/datetime_utility.js
+5
-4
app/assets/javascripts/lib/utils/text_utility.js
app/assets/javascripts/lib/utils/text_utility.js
+2
-1
app/assets/javascripts/line_highlighter.js
app/assets/javascripts/line_highlighter.js
+0
-2
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
...ets/javascripts/merge_conflicts/merge_conflicts_bundle.js
+7
-8
app/assets/javascripts/merge_request.js
app/assets/javascripts/merge_request.js
+3
-3
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+9
-7
app/assets/javascripts/pager.js
app/assets/javascripts/pager.js
+2
-2
app/assets/javascripts/profile/profile_bundle.js
app/assets/javascripts/profile/profile_bundle.js
+2
-2
app/assets/javascripts/protected_branches/protected_branches_bundle.js
...vascripts/protected_branches/protected_branches_bundle.js
+5
-5
app/assets/javascripts/task_list.js
app/assets/javascripts/task_list.js
+2
-1
app/assets/javascripts/terminal/terminal_bundle.js
app/assets/javascripts/terminal/terminal_bundle.js
+7
-5
app/assets/javascripts/users/users_bundle.js
app/assets/javascripts/users/users_bundle.js
+1
-1
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
...s/vue_merge_request_widget/components/mr_widget_header.js
+1
-1
app/assets/javascripts/wikis.js
app/assets/javascripts/wikis.js
+2
-2
app/assets/javascripts/zen_mode.js
app/assets/javascripts/zen_mode.js
+6
-5
No files found.
app/assets/javascripts/copy_as_gfm.js
View file @
5bd54918
/* eslint-disable class-methods-use-this, object-shorthand, no-unused-vars, no-use-before-define, no-new, max-len, no-restricted-syntax, guard-for-in, no-continue */
require
(
'
./lib/utils/common_utils
'
)
;
import
'
./lib/utils/common_utils
'
;
const
gfmRules
=
{
// The filters referenced in lib/banzai/pipeline/gfm_pipeline.rb convert
...
...
app/assets/javascripts/diff.js
View file @
5bd54918
/* eslint-disable class-methods-use-this */
require
(
'
./lib/utils/url_utility
'
)
;
import
'
./lib/utils/url_utility
'
;
const
UNFOLD_COUNT
=
20
;
let
isBound
=
false
;
...
...
app/assets/javascripts/dropzone_input.js
View file @
5bd54918
/* 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, prefer-arrow-callback */
/* global Dropzone */
require
(
'
./preview_markdown
'
)
;
import
'
./preview_markdown
'
;
window
.
DropzoneInput
=
(
function
()
{
function
DropzoneInput
(
form
)
{
...
...
app/assets/javascripts/gl_field_errors.js
View file @
5bd54918
/* eslint-disable comma-dangle, class-methods-use-this, max-len, space-before-function-paren, arrow-parens, no-param-reassign */
require
(
'
./gl_field_error
'
)
;
import
'
./gl_field_error
'
;
const
customValidationFlag
=
'
gl-field-error-ignore
'
;
...
...
app/assets/javascripts/issue.js
View file @
5bd54918
/* eslint-disable func-names, space-before-function-paren, no-var, 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, max-len */
/* global Flash */
import
CreateMergeRequestDropdown
from
'
./create_merge_request_dropdown
'
;
/* global Flash */
require
(
'
./flash
'
);
require
(
'
~/lib/utils/text_utility
'
);
require
(
'
vendor/jquery.waitforimages
'
);
require
(
'
./task_list
'
);
import
'
vendor/jquery.waitforimages
'
;
import
'
~/lib/utils/text_utility
'
;
import
'
./flash
'
;
import
'
./task_list
'
;
import
CreateMergeRequestDropdown
from
'
./create_merge_request_dropdown
'
;
class
Issue
{
constructor
()
{
...
...
app/assets/javascripts/lib/utils/datetime_utility.js
View file @
5bd54918
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, comma-dangle, no-unused-expressions, prefer-template, max-len */
/* global timeago */
/* global dateFormat */
window
.
timeago
=
require
(
'
timeago.js
'
);
window
.
dateFormat
=
require
(
'
vendor/date.format
'
);
import
timeago
from
'
timeago.js
'
;
import
dateFormat
from
'
vendor/date.format
'
;
window
.
timeago
=
timeago
;
window
.
dateFormat
=
dateFormat
;
(
function
()
{
(
function
(
w
)
{
...
...
app/assets/javascripts/lib/utils/text_utility.js
View file @
5bd54918
/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, quotes, one-var, one-var-declaration-per-line, operator-assignment, no-else-return, prefer-template, prefer-arrow-callback, no-empty, max-len, consistent-return, no-unused-vars, no-return-assign, max-len, vars-on-top */
require
(
'
vendor/latinise
'
);
import
'
vendor/latinise
'
;
var
base
;
var
w
=
window
;
...
...
app/assets/javascripts/line_highlighter.js
View file @
5bd54918
...
...
@@ -4,8 +4,6 @@
//
// Handles single- and multi-line selection and highlight for blob views.
//
require
(
'
vendor/jquery.scrollTo
'
);
//
// ### Example Markup
//
...
...
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
View file @
5bd54918
...
...
@@ -2,14 +2,13 @@
/* global Flash */
import
Vue
from
'
vue
'
;
require
(
'
./merge_conflict_store
'
);
require
(
'
./merge_conflict_service
'
);
require
(
'
./mixins/line_conflict_utils
'
);
require
(
'
./mixins/line_conflict_actions
'
);
require
(
'
./components/diff_file_editor
'
);
require
(
'
./components/inline_conflict_lines
'
);
require
(
'
./components/parallel_conflict_lines
'
);
import
'
./merge_conflict_store
'
;
import
'
./merge_conflict_service
'
;
import
'
./mixins/line_conflict_utils
'
;
import
'
./mixins/line_conflict_actions
'
;
import
'
./components/diff_file_editor
'
;
import
'
./components/inline_conflict_lines
'
;
import
'
./components/parallel_conflict_lines
'
;
$
(()
=>
{
const
INTERACTIVE_RESOLVE_MODE
=
'
interactive
'
;
...
...
app/assets/javascripts/merge_request.js
View file @
5bd54918
/* eslint-disable func-names, space-before-function-paren, no-var, 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, max-len, prefer-arrow-callback */
/* global MergeRequestTabs */
require
(
'
vendor/jquery.waitforimages
'
)
;
require
(
'
./task_list
'
)
;
require
(
'
./merge_request_tabs
'
)
;
import
'
vendor/jquery.waitforimages
'
;
import
'
./task_list
'
;
import
'
./merge_request_tabs
'
;
(
function
()
{
this
.
MergeRequest
=
(
function
()
{
...
...
app/assets/javascripts/notes.js
View file @
5bd54918
...
...
@@ -6,15 +6,17 @@
import
$
from
'
jquery
'
;
import
Cookies
from
'
js-cookie
'
;
import
autosize
from
'
vendor/autosize
'
;
import
Dropzone
from
'
dropzone
'
;
import
'
vendor/jquery.caret
'
;
// required by jquery.atwho
import
'
vendor/jquery.atwho
'
;
import
CommentTypeToggle
from
'
./comment_type_toggle
'
;
import
'
./autosave
'
;
import
'
./dropzone_input
'
;
import
'
./task_list
'
;
require
(
'
./autosave
'
);
window
.
autosize
=
require
(
'
vendor/autosize
'
);
window
.
Dropzone
=
require
(
'
dropzone
'
);
require
(
'
./dropzone_input
'
);
require
(
'
vendor/jquery.caret
'
);
// required by jquery.atwho
require
(
'
vendor/jquery.atwho
'
);
require
(
'
./task_list
'
);
window
.
autosize
=
autosize
;
window
.
Dropzone
=
Dropzone
;
const
normalizeNewlines
=
function
(
str
)
{
return
str
.
replace
(
/
\r\n
/g
,
'
\n
'
);
...
...
app/assets/javascripts/pager.js
View file @
5bd54918
require
(
'
~/lib/utils/common_utils
'
)
;
require
(
'
~/lib/utils/url_utility
'
)
;
import
'
~/lib/utils/common_utils
'
;
import
'
~/lib/utils/url_utility
'
;
(()
=>
{
const
ENDLESS_SCROLL_BOTTOM_PX
=
400
;
...
...
app/assets/javascripts/profile/profile_bundle.js
View file @
5bd54918
require
(
'
./gl_crop
'
)
;
require
(
'
./profile
'
)
;
import
'
./gl_crop
'
;
import
'
./profile
'
;
app/assets/javascripts/protected_branches/protected_branches_bundle.js
View file @
5bd54918
require
(
'
./protected_branch_access_dropdown
'
)
;
require
(
'
./protected_branch_create
'
)
;
require
(
'
./protected_branch_dropdown
'
)
;
require
(
'
./protected_branch_edit
'
)
;
require
(
'
./protected_branch_edit_list
'
)
;
import
'
./protected_branch_access_dropdown
'
;
import
'
./protected_branch_create
'
;
import
'
./protected_branch_dropdown
'
;
import
'
./protected_branch_edit
'
;
import
'
./protected_branch_edit_list
'
;
app/assets/javascripts/task_list.js
View file @
5bd54918
/* global Flash */
require
(
'
vendor/task_list
'
);
import
'
vendor/task_list
'
;
class
TaskList
{
constructor
(
options
=
{})
{
...
...
app/assets/javascripts/terminal/terminal_bundle.js
View file @
5bd54918
require
(
'
vendor/xterm/encoding-indexes.js
'
);
require
(
'
vendor/xterm/encoding.js
'
);
window
.
Terminal
=
require
(
'
vendor/xterm/xterm.js
'
);
require
(
'
vendor/xterm/fit.js
'
);
require
(
'
./terminal.js
'
);
import
'
vendor/xterm/encoding-indexes
'
;
import
'
vendor/xterm/encoding
'
;
import
Terminal
from
'
vendor/xterm/xterm
'
;
import
'
vendor/xterm/fit
'
;
import
'
./terminal
'
;
window
.
Terminal
=
Terminal
;
$
(()
=>
new
gl
.
Terminal
({
selector
:
'
#terminal
'
}));
app/assets/javascripts/users/users_bundle.js
View file @
5bd54918
require
(
'
./calendar
'
)
;
import
'
./calendar
'
;
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
View file @
5bd54918
require
(
'
../../lib/utils/text_utility
'
)
;
import
'
../../lib/utils/text_utility
'
;
export
default
{
name
:
'
MRWidgetHeader
'
,
...
...
app/assets/javascripts/wikis.js
View file @
5bd54918
/* eslint-disable no-param-reassign */
/* global Breakpoints */
require
(
'
./breakpoints
'
)
;
require
(
'
vendor/jquery.nicescroll
'
)
;
import
'
vendor/jquery.nicescroll
'
;
import
'
./breakpoints
'
;
((
global
)
=>
{
class
Wikis
{
...
...
app/assets/javascripts/zen_mode.js
View file @
5bd54918
/* eslint-disable func-names, space-before-function-paren, wrap-iife, prefer-arrow-callback, no-unused-vars, consistent-return, camelcase, comma-dangle, max-len */
/* global Dropzone */
/* global Mousetrap */
// Zen Mode (full screen) textarea
...
...
@@ -7,10 +6,12 @@
/*= provides zen_mode:enter */
/*= provides zen_mode:leave */
require
(
'
vendor/jquery.scrollTo
'
);
window
.
Dropzone
=
require
(
'
dropzone
'
);
require
(
'
mousetrap
'
);
require
(
'
mousetrap/plugins/pause/mousetrap-pause
'
);
import
'
vendor/jquery.scrollTo
'
;
import
Dropzone
from
'
dropzone
'
;
import
'
mousetrap
'
;
import
'
mousetrap/plugins/pause/mousetrap-pause
'
;
window
.
Dropzone
=
Dropzone
;
//
// ### Events
...
...
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