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
56cbff35
Commit
56cbff35
authored
Jul 08, 2018
by
Tim Zallmann
Committed by
Fatih Acet
Jul 08, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "MR Refactor: Improve performance by setting v-once"
parent
53760e8d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
29 deletions
+20
-29
app/assets/javascripts/diffs/components/diff_file_header.vue
app/assets/javascripts/diffs/components/diff_file_header.vue
+1
-0
app/assets/javascripts/diffs/components/diff_line_gutter_content.vue
...javascripts/diffs/components/diff_line_gutter_content.vue
+1
-0
app/assets/javascripts/diffs/components/diff_table_cell.vue
app/assets/javascripts/diffs/components/diff_table_cell.vue
+0
-8
app/assets/javascripts/diffs/components/inline_diff_table_row.vue
...ts/javascripts/diffs/components/inline_diff_table_row.vue
+6
-5
app/assets/javascripts/diffs/components/parallel_diff_table_row.vue
.../javascripts/diffs/components/parallel_diff_table_row.vue
+12
-16
No files found.
app/assets/javascripts/diffs/components/diff_file_header.vue
View file @
56cbff35
...
...
@@ -145,6 +145,7 @@ export default {
@
click.stop=
"handleToggle"
/>
<a
v-once
ref=
"titleWrapper"
:href=
"titleLink"
class=
"append-right-4"
...
...
app/assets/javascripts/diffs/components/diff_line_gutter_content.vue
View file @
56cbff35
...
...
@@ -189,6 +189,7 @@ export default {
</button>
<a
v-if=
"lineNumber"
v-once
:data-linenumber=
"lineNumber"
:href=
"lineHref"
>
...
...
app/assets/javascripts/diffs/components/diff_table_cell.vue
View file @
56cbff35
...
...
@@ -117,14 +117,6 @@ export default {
<
template
>
<td
v-if=
"isContentLine"
:class=
"lineType"
class=
"line_content"
v-html=
"normalizedLine.richText"
>
</td>
<td
v-else
:class=
"classNameMap"
>
<diff-line-gutter-content
...
...
app/assets/javascripts/diffs/components/inline_diff_table_row.vue
View file @
56cbff35
...
...
@@ -94,11 +94,12 @@ export default {
:is-hover=
"isHover"
class=
"diff-line-num new_line"
/>
<diff-table-cell
<td
v-once
:class=
"line.type"
:diff-file=
"diffFile
"
:line=
"line
"
:is-content-line=
"true"
/
>
class=
"line_content
"
v-html=
"line.richText
"
>
</td
>
</tr>
</
template
>
app/assets/javascripts/diffs/components/parallel_diff_table_row.vue
View file @
56cbff35
...
...
@@ -113,17 +113,15 @@ export default {
:diff-view-type=
"parallelDiffViewType"
class=
"diff-line-num old_line"
/>
<diff-table-cell
<td
v-once
:id=
"line.left.lineCode"
:diff-file=
"diffFile"
:line=
"line"
:is-content-line=
"true"
:line-position=
"linePositionLeft"
:line-type=
"parallelViewLeftLineType"
:diff-view-type=
"parallelDiffViewType"
:class=
"parallelViewLeftLineType"
class=
"line_content parallel left-side"
@
mousedown.native=
"handleParallelLineMouseDown"
/>
v-html=
"line.left.richText"
>
</td>
<diff-table-cell
:diff-file=
"diffFile"
:line=
"line"
...
...
@@ -135,16 +133,14 @@ export default {
:diff-view-type=
"parallelDiffViewType"
class=
"diff-line-num new_line"
/>
<diff-table-cell
<td
v-once
:id=
"line.right.lineCode"
:diff-file=
"diffFile"
:line=
"line"
:is-content-line=
"true"
:line-position=
"linePositionRight"
:line-type=
"line.right.type"
:diff-view-type=
"parallelDiffViewType"
:class=
"line.right.type"
class=
"line_content parallel right-side"
@
mousedown.native=
"handleParallelLineMouseDown"
/>
v-html=
"line.right.richText"
>
</td>
</tr>
</
template
>
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