BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
9f51a70e
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
compare.js
app/assets/javascripts/compare.js
+2
-2
dispatcher.js
app/assets/javascripts/dispatcher.js
+1
-1
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 */
window
.
Compare
=
class
Compare
{
export
default
class
Compare
{
constructor
(
opts
)
{
this
.
opts
=
opts
;
this
.
source_loading
=
$
(
".js-source-loading"
);
...
...
@@ -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';
import
Project
from
'./project'
;
import
projectAvatar
from
'./project_avatar'
;
/* global MergeRequest */
/* global Compare */
import
Compare
from
'./compare'
;
/* global CompareAutocomplete */
/* global ProjectFindFile */
import
ProjectNew
from
'./project_new'
;
...
...
app/assets/javascripts/main.js
View file @
9f51a70e
...
...
@@ -40,7 +40,6 @@ import './admin';
import
'./aside'
;
import
loadAwardsHandler
from
'./awards_handler'
;
import
bp
from
'./breakpoints'
;
import
'./compare'
;
import
'./compare_autocomplete'
;
import
'./confirm_danger_modal'
;
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