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
9f51a70e
Commit
9f51a70e
authored
Oct 12, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert Compare class into ES module import/export syntax
parent
0ebf577a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
app/assets/javascripts/compare.js
app/assets/javascripts/compare.js
+2
-2
app/assets/javascripts/dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+0
-1
No files found.
app/assets/javascripts/compare.js
View file @
9f51a70e
/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, no-var, object-shorthand, consistent-return, no-unused-vars, comma-dangle, vars-on-top, prefer-template, max-len */
/* eslint-disable func-names, space-before-function-paren, wrap-iife, quotes, no-var, object-shorthand, consistent-return, no-unused-vars, comma-dangle, vars-on-top, prefer-template, max-len */
window
.
Compare
=
class
Compare
{
export
default
class
Compare
{
constructor
(
opts
)
{
constructor
(
opts
)
{
this
.
opts
=
opts
;
this
.
opts
=
opts
;
this
.
source_loading
=
$
(
"
.js-source-loading
"
);
this
.
source_loading
=
$
(
"
.js-source-loading
"
);
...
@@ -85,4 +85,4 @@ window.Compare = class Compare {
...
@@ -85,4 +85,4 @@ window.Compare = class Compare {
}
}
});
});
}
}
}
;
}
app/assets/javascripts/dispatcher.js
View file @
9f51a70e
...
@@ -22,7 +22,7 @@ import NewCommitForm from './new_commit_form';
...
@@ -22,7 +22,7 @@ import NewCommitForm from './new_commit_form';
import
Project
from
'
./project
'
;
import
Project
from
'
./project
'
;
import
projectAvatar
from
'
./project_avatar
'
;
import
projectAvatar
from
'
./project_avatar
'
;
/* global MergeRequest */
/* global MergeRequest */
/* global Compare */
import
Compare
from
'
./compare
'
;
/* global CompareAutocomplete */
/* global CompareAutocomplete */
/* global ProjectFindFile */
/* global ProjectFindFile */
import
ProjectNew
from
'
./project_new
'
;
import
ProjectNew
from
'
./project_new
'
;
...
...
app/assets/javascripts/main.js
View file @
9f51a70e
...
@@ -40,7 +40,6 @@ import './admin';
...
@@ -40,7 +40,6 @@ import './admin';
import
'
./aside
'
;
import
'
./aside
'
;
import
loadAwardsHandler
from
'
./awards_handler
'
;
import
loadAwardsHandler
from
'
./awards_handler
'
;
import
bp
from
'
./breakpoints
'
;
import
bp
from
'
./breakpoints
'
;
import
'
./compare
'
;
import
'
./compare_autocomplete
'
;
import
'
./compare_autocomplete
'
;
import
'
./confirm_danger_modal
'
;
import
'
./confirm_danger_modal
'
;
import
Flash
,
{
removeFlashClickListener
}
from
'
./flash
'
;
import
Flash
,
{
removeFlashClickListener
}
from
'
./flash
'
;
...
...
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