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
Léo-Paul Géneau
gitlab-ce
Commits
c62fe6a2
Commit
c62fe6a2
authored
Feb 27, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor merge conflicts bundle to reduce side effects
parent
94d5dd3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
...ets/javascripts/merge_conflicts/merge_conflicts_bundle.js
+2
-2
app/assets/javascripts/pages/projects/merge_requests/conflicts/index.js
...ascripts/pages/projects/merge_requests/conflicts/index.js
+5
-2
No files found.
app/assets/javascripts/merge_conflicts/merge_conflicts_bundle.js
View file @
c62fe6a2
...
@@ -12,7 +12,7 @@ import './components/inline_conflict_lines';
...
@@ -12,7 +12,7 @@ import './components/inline_conflict_lines';
import
'
./components/parallel_conflict_lines
'
;
import
'
./components/parallel_conflict_lines
'
;
import
syntaxHighlight
from
'
../syntax_highlight
'
;
import
syntaxHighlight
from
'
../syntax_highlight
'
;
$
(()
=>
{
export
default
function
initMergeConflicts
()
{
const
INTERACTIVE_RESOLVE_MODE
=
'
interactive
'
;
const
INTERACTIVE_RESOLVE_MODE
=
'
interactive
'
;
const
conflictsEl
=
document
.
querySelector
(
'
#conflicts
'
);
const
conflictsEl
=
document
.
querySelector
(
'
#conflicts
'
);
const
mergeConflictsStore
=
gl
.
mergeConflicts
.
mergeConflictsStore
;
const
mergeConflictsStore
=
gl
.
mergeConflicts
.
mergeConflictsStore
;
...
@@ -91,4 +91,4 @@ $(() => {
...
@@ -91,4 +91,4 @@ $(() => {
}
}
}
}
});
});
}
);
}
app/assets/javascripts/pages/projects/merge_requests/conflicts/index.js
View file @
c62fe6a2
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
initSidebarBundle
from
'
~/sidebar/sidebar_bundle
'
;
import
'
~/merge_conflicts/merge_conflicts_bundle
'
;
import
initMergeConflicts
from
'
~/merge_conflicts/merge_conflicts_bundle
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initSidebarBundle
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
initSidebarBundle
();
initMergeConflicts
();
});
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