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

stacktrace.vue « components « error_tracking « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 54b9d37be73e4d6537ab1e550c85b77b48023ef6 (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
33
34
35
<script>
import StackTraceEntry from './stacktrace_entry.vue';

export default {
  components: {
    StackTraceEntry,
  },
  props: {
    entries: {
      type: Array,
      required: true,
    },
  },
  methods: {
    isFirstEntry(index) {
      return index === 0;
    },
  },
};
</script>

<template>
  <div class="stacktrace">
    <stack-trace-entry
      v-for="(entry, index) in entries"
      :key="`stacktrace-entry-${index}`"
      :lines="entry.context"
      :file-path="entry.filename || entry.abs_path"
      :error-line="entry.lineNo"
      :error-fn="entry.function"
      :error-column="entry.colNo"
      :expanded="isFirstEntry(index)"
    />
  </div>
</template>