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
a1fc04df
Commit
a1fc04df
authored
Nov 03, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
VueJSMigration: Remove parallel-conflict-line component.
It's because Vue says: "Component template should contain exactly one root element".
parent
0eb21fd8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
20 deletions
+11
-20
parallel_conflict_line.js.es6
.../merge_conflicts/components/parallel_conflict_line.js.es6
+0
-15
parallel_conflict_lines.js.es6
...merge_conflicts/components/parallel_conflict_lines.js.es6
+1
-4
_parallel_conflict_lines.html.haml
...s/conflicts/components/_parallel_conflict_lines.html.haml
+10
-1
No files found.
app/assets/javascripts/merge_conflicts/components/parallel_conflict_line.js.es6
deleted
100644 → 0
View file @
0eb21fd8
/* eslint-disable */
((global) => {
global.mergeConflicts = global.mergeConflicts || {};
global.mergeConflicts.parallelConflictLine = Vue.extend({
props: {
file: Object,
line: Object
},
mixins: [global.mergeConflicts.utils, global.mergeConflicts.actions],
template: '#parallel-conflict-line'
});
})(window.gl || (window.gl = {}));
app/assets/javascripts/merge_conflicts/components/parallel_conflict_lines.js.es6
View file @
a1fc04df
...
...
@@ -7,10 +7,7 @@
props: {
file: Object
},
mixins: [global.mergeConflicts.utils],
components: {
'parallel-conflict-line': gl.mergeConflicts.parallelConflictLine
}
mixins: [global.mergeConflicts.utils, global.mergeConflicts.actions]
});
})(window.gl || (window.gl = {}));
app/views/projects/merge_requests/conflicts/components/_parallel_conflict_lines.html.haml
View file @
a1fc04df
%parallel-conflict-lines
{
"inline-template"
=>
"true"
,
":file"
=>
"file"
}
%table
%tr
.line_holder.parallel
{
"v-for"
=>
"section in file.parallelLines"
}
%td
{
"is"
=>
"parallel-conflict-line"
,
"v-for"
=>
"line in section"
,
":line"
=>
"line"
,
":file"
=>
"file"
}
%template
{
"is"
=>
"parallel-conflict-line"
,
"v-for"
=>
"line in section"
,
":line"
=>
"line"
,
":file"
=>
"file"
}
%td
.diff-line-num.header
{
":class"
=>
"lineCssClass(line)"
,
"v-if"
=>
"line.isHeader"
}
%td
.line_content.header
{
":class"
=>
"lineCssClass(line)"
,
"v-if"
=>
"line.isHeader"
}
%strong
{{line.richText}}
%button
.btn
{
"@click"
=>
"handleSelected(file, line.id, line.section)"
}
{{line.buttonTitle}}
%td
.diff-line-num.old_line
{
":class"
=>
"lineCssClass(line)"
,
"v-if"
=>
"!line.isHeader"
}
{{line.lineNumber}}
%td
.line_content.parallel
{
":class"
=>
"lineCssClass(line)"
,
"v-if"
=>
"!line.isHeader"
,
"v-html"
=>
"line.richText"
}
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