2019-12-26 22:10:19 +05:30
|
|
|
<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"
|
|
|
|
:error-line="entry.lineNo"
|
2020-01-01 13:55:28 +05:30
|
|
|
:error-fn="entry.function"
|
|
|
|
:error-column="entry.colNo"
|
2019-12-26 22:10:19 +05:30
|
|
|
:expanded="isFirstEntry(index)"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</template>
|