Skip to content

Commit 3ee2467

Browse files
authored
Merge pull request #246 from kubero-dev/243-show-buildlogs
minor improvements for log view
2 parents b2c0618 + b4144de commit 3ee2467

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

client/src/components/apps/logs.vue

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div style="height: 90%;">
3-
<v-tabs>
2+
<div style="height: 95%;">
3+
<v-tabs class="console-bar">
44
<template>
55
<v-tab @click="getLogHistory('web')">web</v-tab>
66
<v-tab @click="getLogHistory('builder')">build</v-tab>
@@ -9,7 +9,7 @@
99
</v-tabs>
1010
<div class="console" id="console">
1111
<div v-for="line in loglines" :key="line.id">
12-
{{ new Date(line.time).toISOString()}}<span :style="'color:' +line.color">[{{ line.podID }}/{{ line.container.replace('kuberoapp-', '') }}]</span>
12+
{{ new Date(line.time).toLocaleDateString() }} {{ new Date(line.time).toLocaleTimeString()}} <span :style="'color:' +line.color">[{{ line.podID }}/{{ line.container.replace('kuberoapp-', '') }}]</span>
1313
{{ line.log }}
1414
</div>
1515
</div>
@@ -94,6 +94,15 @@ a:link { text-decoration: none;}
9494
.v-icon.v-icon {
9595
vertical-align:inherit;
9696
}
97+
98+
.theme--light.v-tabs.console-bar > .v-tabs-bar .v-tab:not(.v-tab--active) {
99+
color: #9F9F9F;
100+
}
101+
102+
.theme--light.v-tabs.console-bar > .v-tabs-bar {
103+
background-color: #1E1E1E; /*#444*/
104+
}
105+
97106
.console {
98107
height: 100%;
99108
overflow-x: scroll;

src/kubero.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ export class Kubero {
889889
}
890890

891891
// sleep for 1 second to wait for all logs to be collected
892-
await new Promise(r => setTimeout(r, 1000));
892+
await new Promise(r => setTimeout(r, 300));
893893

894894
// split loglines into array
895895
const loglinesArray = logs.split('\n').reverse();

0 commit comments

Comments
 (0)