1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 21:33:18 +01:00

fixes spacing

This commit is contained in:
Amir Raminfar
2018-11-17 11:12:48 -08:00
parent d18d3f800b
commit 2ecfefb35f
4 changed files with 14 additions and 13 deletions

View File

@@ -7,9 +7,16 @@ indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 120
[*.sh]
indent_size = 2
[*.js]
indent_size = 2
[*.vue]
indent_size = 2
[Makefile]
indent_style = tab

View File

@@ -1,14 +1,14 @@
<template lang="html">
<ul ref="events" class="events">
<li v-for="item in messages" class="event" :key="item.key">
<span class="date">{{ item.dateRelative }}</span>
<span class="text">{{ item.message }}</span>
<span class="date">{{ item.dateRelative }}</span> <span class="text">{{ item.message }}</span>
</li>
</ul>
</template>
<script>
import { formatRelative } from "date-fns";
let ws = null;
let nextId = 0;
const parseMessage = data => {
@@ -44,9 +44,7 @@ export default {
const message = parseMessage(e.data);
this.messages.push(message);
this.$nextTick(() =>
document.querySelector("li.event:last-child").scrollIntoView()
);
this.$nextTick(() => document.querySelector("li.event:last-child").scrollIntoView());
};
},
beforeDestroy() {

View File

@@ -4,15 +4,10 @@
<section class="section">
<ul class="is-marginless is-paddless">
<li v-for="item in containers" class="unstyled box">
<router-link
:to="{ name: 'container', params: { id: item.Id } }"
class="columns"
>
<router-link :to="{ name: 'container', params: { id: item.Id } }" class="columns">
<div class="column is-6">
<h2 class="is-2 hide-overflow">{{ item.Names[0] }}</h2>
<span class="subtitle is-6 code hide-overflow">{{
item.Command
}}</span>
<span class="subtitle is-6 code hide-overflow"> {{ item.Command }} </span>
</div>
<div class="column is-4">
<span class="code hide-overflow">{{ item.Image }}</span>
@@ -48,6 +43,7 @@ export default {
white-space: nowrap;
overflow: hidden;
}
.code {
background-color: #f5f5f5;
color: #ff3860;

View File

@@ -86,7 +86,7 @@ func logs(w http.ResponseWriter, r *http.Request) {
for {
_, err := reader.Read(hdr)
if err != nil {
panic(err)
log.Panicln(err)
}
count := binary.BigEndian.Uint32(hdr[4:])
n, err := reader.Read(content[:count])