debian-mirror-gitlab/app/assets/javascripts/jobs/components/log/line.vue

29 lines
496 B
Vue
Raw Normal View History

2019-12-04 20:38:33 +05:30
<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="log-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>