2018-06-21 12:22:40 +00:00
|
|
|
<script>
|
|
|
|
import diffContentMixin from '../mixins/diff_content';
|
2018-06-27 21:20:41 +00:00
|
|
|
import inlineDiffCommentRow from './inline_diff_comment_row.vue';
|
2018-06-21 12:22:40 +00:00
|
|
|
|
|
|
|
export default {
|
2018-06-27 21:20:41 +00:00
|
|
|
components: {
|
|
|
|
inlineDiffCommentRow,
|
2018-06-21 12:22:40 +00:00
|
|
|
},
|
2018-06-27 21:20:41 +00:00
|
|
|
mixins: [diffContentMixin],
|
2018-06-21 12:22:40 +00:00
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<table
|
|
|
|
:class="userColorScheme"
|
|
|
|
:data-commit-id="commitId"
|
2018-06-26 18:49:22 +00:00
|
|
|
class="code diff-wrap-lines js-syntax-highlight text-file js-diff-inline-view">
|
2018-06-21 12:22:40 +00:00
|
|
|
<tbody>
|
|
|
|
<template
|
|
|
|
v-for="(line, index) in normalizedDiffLines"
|
|
|
|
>
|
2018-06-27 21:20:41 +00:00
|
|
|
<diff-table-row
|
|
|
|
:diff-file="diffFile"
|
|
|
|
:line="line"
|
|
|
|
:is-bottom="index + 1 === diffLinesLength"
|
2018-06-21 12:22:40 +00:00
|
|
|
:key="line.lineCode"
|
2018-06-27 21:20:41 +00:00
|
|
|
/>
|
|
|
|
<inline-diff-comment-row
|
|
|
|
:diff-file="diffFile"
|
|
|
|
:diff-lines="normalizedDiffLines"
|
|
|
|
:line="line"
|
|
|
|
:line-index="index"
|
2018-06-21 12:22:40 +00:00
|
|
|
:key="index"
|
2018-06-27 21:20:41 +00:00
|
|
|
/>
|
2018-06-21 12:22:40 +00:00
|
|
|
</template>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</template>
|