summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/jobs/components/log/line.vue
blob: 33ee84bd4ee5c6281873749fb5ec484c3a607672 (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
29
30
31
32
<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="js-line log-line">
    <line-number :line-number="line.lineNumber" :path="path" />
    <span
      v-for="(content, i) in line.content"
      :key="i"
      :class="content.style"
      class="ws-pre-wrap"
      >{{ content.text }}</span
    >
  </div>
</template>