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

33 lines
550 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>
2019-12-21 20:55:43 +05:30
<div class="js-line log-line">
2019-12-04 20:38:33 +05:30
<line-number :line-number="line.lineNumber" :path="path" />
2019-12-21 20:55:43 +05:30
<span
v-for="(content, i) in line.content"
:key="i"
:class="content.style"
class="ws-pre-wrap"
>{{ content.text }}</span
>
2019-12-04 20:38:33 +05:30
</div>
</template>