view logs

This commit is contained in:
wxiaoguang 2022-09-30 13:41:26 +08:00 committed by Jason Song
parent b54fc6aacb
commit 9193b72d17

View File

@ -44,7 +44,7 @@
<SvgIcon name="octicon-x-circle-fill" class="red mr-3 " v-else/> <SvgIcon name="octicon-x-circle-fill" class="red mr-3 " v-else/>
<span class="step-summary-msg">{{ jobStep.summary }}</span> <span class="step-summary-msg">{{ jobStep.summary }}</span>
<span class="step-summary-dur">{{ formatDuration(jobStep.duration) }}</span> <!-- TODO: time format --> <span class="step-summary-dur">{{ formatDuration(jobStep.duration) }}</span>
</div> </div>
<!-- the log elements could be a lot, do not use v-if to destroy/reconstruct the DOM --> <!-- the log elements could be a lot, do not use v-if to destroy/reconstruct the DOM -->
@ -404,6 +404,7 @@ export function initRepositoryBuildView() {
.job-step-section { .job-step-section {
margin: 10px; margin: 10px;
.job-step-logs { .job-step-logs {
font-family: monospace, monospace;
.job-log-line { .job-log-line {
display: flex; display: flex;
line-num { line-num {