summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/jobs/components/log/line.vue
blob: 336ae623f0fba3b99ed09afa68e1ceb5d8c4bd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<script>
import LineNumber from './line_number.vue';

export default {
  components: {
    LineNumber,
  },
  props: {
    line: {
      type: Object,
      required: true,
    },
    path: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <div class="line">
    <line-number :line-number="line.lineNumber" :path="path" />
    <span v-for="(content, i) in line.content" :key="i" :class="content.style">{{
      content.text
    }}</span>
  </div>
</template>