|
|
<script>
|
|
<script>
|
|
|
import { mapState, mapActions } from 'vuex';
|
|
import { mapState, mapActions } from 'vuex';
|
|
|
import CollpasibleLogSection from './collapsible_section.vue';
|
|
|
|
|
import LogLine from './line.vue';
|
|
import LogLine from './line.vue';
|
|
|
|
import LogLineHeader from './line_header.vue';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
CollpasibleLogSection,
|
|
|
|
|
LogLine,
|
|
LogLine,
|
|
|
|
LogLineHeader,
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
...mapState(['traceEndpoint', 'trace', 'isTraceComplete']),
|
|
...mapState(['traceEndpoint', 'trace', 'isTraceComplete']),
|
| ... | @@ -22,13 +22,24 @@ export default { |
... | @@ -22,13 +22,24 @@ export default { |
|
|
<template>
|
|
<template>
|
|
|
<code class="job-log d-block">
|
|
<code class="job-log d-block">
|
|
|
<template v-for="(section, index) in trace">
|
|
<template v-for="(section, index) in trace">
|
|
|
<collpasible-log-section
|
|
<template v-if="section.isHeader">
|
|
|
v-if="section.isHeader"
|
|
<log-line-header
|
|
|
:key="`collapsible-${index}`"
|
|
:key="`collapsible-${index}`"
|
|
|
:section="section"
|
|
:line="section.line"
|
|
|
:trace-endpoint="traceEndpoint"
|
|
:duration="section.section_duration"
|
|
|
@onClickCollapsibleLine="handleOnClickCollapsibleLine"
|
|
:path="traceEndpoint"
|
|
|
|
:is-closed="section.isClosed"
|
|
|
|
@toggleLine="handleOnClickCollapsibleLine(section)"
|
|
|
/>
|
|
/>
|
|
|
|
<template v-if="!section.isClosed">
|
|
|
|
<log-line
|
|
|
|
v-for="line in section.lines"
|
|
|
|
:key="line.offset"
|
|
|
|
:line="line"
|
|
|
|
:path="traceEndpoint"
|
|
|
|
/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
<log-line v-else :key="section.offset" :line="section" :path="traceEndpoint" />
|
|
<log-line v-else :key="section.offset" :line="section" :path="traceEndpoint" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
| ... | |
... | |
| ... | | ... | |