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
c62fe6a2
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
merge_conflicts_bundle.js
...ets/javascripts/merge_conflicts/merge_conflicts_bundle.js
+2
-2
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