Welcome to mirror list, hosted at ThFree Co, Russian Federation.

line.vue « log « components « jobs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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>