Skip to content

Commit

Permalink
fixes spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
amir20 committed Nov 17, 2018
1 parent d18d3f8 commit 2ecfefb
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 3 additions & 5 deletions assets/pages/Container.vue
Original file line number Diff line number Diff line change
@@ -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 => {
Expand Down Expand Up @@ -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() {
Expand Down
10 changes: 3 additions & 7 deletions assets/pages/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -48,6 +43,7 @@ export default {
white-space: nowrap;
overflow: hidden;
}
.code {
background-color: #f5f5f5;
color: #ff3860;
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 2ecfefb

Please sign in to comment.