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
0218a3d9
Commit
0218a3d9
authored
May 16, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor instances of CJS module.exports to ES module syntax
parent
6985dfe7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
17 deletions
+6
-17
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
...ets/javascripts/cycle_analytics/cycle_analytics_bundle.js
+0
-1
app/assets/javascripts/cycle_analytics/default_event_objects.js
...sets/javascripts/cycle_analytics/default_event_objects.js
+1
-1
app/assets/javascripts/lib/utils/http_status.js
app/assets/javascripts/lib/utils/http_status.js
+1
-3
app/assets/javascripts/shortcuts_blob.js
app/assets/javascripts/shortcuts_blob.js
+1
-3
app/assets/javascripts/version_check_image.js
app/assets/javascripts/version_check_image.js
+1
-3
spec/javascripts/helpers/class_spec_helper.js
spec/javascripts/helpers/class_spec_helper.js
+1
-3
spec/javascripts/helpers/filtered_search_spec_helper.js
spec/javascripts/helpers/filtered_search_spec_helper.js
+1
-3
No files found.
app/assets/javascripts/cycle_analytics/cycle_analytics_bundle.js
View file @
0218a3d9
...
...
@@ -14,7 +14,6 @@ import './components/stage_test_component';
import
'
./components/total_time_component
'
;
import
'
./cycle_analytics_service
'
;
import
'
./cycle_analytics_store
'
;
import
'
./default_event_objects
'
;
Vue
.
use
(
Translate
);
...
...
app/assets/javascripts/cycle_analytics/default_event_objects.js
View file @
0218a3d9
module
.
exports
=
{
export
default
{
issue
:
{
created_at
:
''
,
url
:
''
,
...
...
app/assets/javascripts/lib/utils/http_status.js
View file @
0218a3d9
...
...
@@ -2,9 +2,7 @@
* exports HTTP status codes
*/
const
statusCodes
=
{
export
default
{
NO_CONTENT
:
204
,
OK
:
200
,
};
module
.
exports
=
statusCodes
;
app/assets/javascripts/shortcuts_blob.js
View file @
0218a3d9
...
...
@@ -8,7 +8,7 @@ const defaults = {
fileBlobPermalinkUrl
:
null
,
};
class
ShortcutsBlob
extends
Shortcuts
{
export
default
class
ShortcutsBlob
extends
Shortcuts
{
constructor
(
opts
)
{
const
options
=
Object
.
assign
({},
defaults
,
opts
);
super
(
options
.
skipResetBindings
);
...
...
@@ -25,5 +25,3 @@ class ShortcutsBlob extends Shortcuts {
}
}
}
module
.
exports
=
ShortcutsBlob
;
app/assets/javascripts/version_check_image.js
View file @
0218a3d9
class
VersionCheckImage
{
export
default
class
VersionCheckImage
{
static
bindErrorEvent
(
imageElement
)
{
imageElement
.
off
(
'
error
'
).
on
(
'
error
'
,
()
=>
imageElement
.
hide
());
}
...
...
@@ -6,5 +6,3 @@ class VersionCheckImage {
window
.
gl
=
window
.
gl
||
{};
gl
.
VersionCheckImage
=
VersionCheckImage
;
module
.
exports
=
VersionCheckImage
;
spec/javascripts/helpers/class_spec_helper.js
View file @
0218a3d9
class
ClassSpecHelper
{
export
default
class
ClassSpecHelper
{
static
itShouldBeAStaticMethod
(
base
,
method
)
{
return
it
(
'
should be a static method
'
,
()
=>
{
expect
(
Object
.
prototype
.
hasOwnProperty
.
call
(
base
,
method
)).
toBeTruthy
();
...
...
@@ -7,5 +7,3 @@ class ClassSpecHelper {
}
window
.
ClassSpecHelper
=
ClassSpecHelper
;
module
.
exports
=
ClassSpecHelper
;
spec/javascripts/helpers/filtered_search_spec_helper.js
View file @
0218a3d9
class
FilteredSearchSpecHelper
{
export
default
class
FilteredSearchSpecHelper
{
static
createFilterVisualTokenHTML
(
name
,
value
,
isSelected
)
{
return
FilteredSearchSpecHelper
.
createFilterVisualToken
(
name
,
value
,
isSelected
).
outerHTML
;
}
...
...
@@ -53,5 +53,3 @@ class FilteredSearchSpecHelper {
`
;
}
}
module
.
exports
=
FilteredSearchSpecHelper
;
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