Skip to content

Commit 7d7146d

Browse files
Replace spaces with tabs
1 parent 7eef45f commit 7d7146d

15 files changed

+230
-227
lines changed

src/App.vue

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
<template>
2-
<router-view/>
2+
<router-view/>
33
</template>
44

55
<style>
66
*, *::before, *::after {
7-
box-sizing: border-box;
7+
box-sizing: border-box;
88
}
99
html, body {
10-
padding: 0;
11-
margin: 0;
10+
padding: 0;
11+
margin: 0;
1212
}
1313
html {
14-
font-size: 16px;
14+
font-size: 16px;
1515
}
1616
body {
17-
font-size: 1rem;
17+
font-size: 1rem;
1818
19-
font-family: 'Source Sans Pro';
19+
font-family: 'Source Sans Pro';
2020
}
2121
pre, code, kbd, samp {
22-
font-family: 'Source Code Pro';
22+
font-family: 'Source Code Pro';
2323
}
2424
</style>

src/components/BlobSize.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<LoadableText :text="text" />
2+
<LoadableText :text="text" />
33
</template>
44

55
<script>

src/components/Error.vue

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-if="message">{{ message }}</div>
2+
<div v-if="message">{{ message }}</div>
33
</template>
44

55
<script>
@@ -12,11 +12,11 @@ export default {
1212

1313
<style scoped>
1414
div {
15-
text-align: center;
16-
background: #fdd;
17-
color: #800;
18-
padding: 0.5rem 0.75rem;
19-
margin: 1rem;
20-
border-radius: 0.5rem;
15+
text-align: center;
16+
background: #fdd;
17+
color: #800;
18+
padding: 0.5rem 0.75rem;
19+
margin: 1rem;
20+
border-radius: 0.5rem;
2121
}
2222
</style>

src/components/Layout.vue

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<template>
2-
<div class="wrapper">
3-
<header>
4-
<slot name="title" />
5-
<slot name="error" />
6-
<slot name="toolbar" />
7-
</header>
8-
<main>
9-
<div class="content">
10-
<slot />
11-
</div>
12-
</main>
13-
<footer>
14-
<p>
15-
<a :href="source">dri</a>
16-
{{ version }}
17-
by <a href="https://github.com/serverwentdown">@serverwentdown</a>
18-
</p>
19-
</footer>
20-
</div>
2+
<div class="wrapper">
3+
<header>
4+
<slot name="title" />
5+
<slot name="error" />
6+
<slot name="toolbar" />
7+
</header>
8+
<main>
9+
<div class="content">
10+
<slot />
11+
</div>
12+
</main>
13+
<footer>
14+
<p>
15+
<a :href="source">dri</a>
16+
{{ version }}
17+
by <a href="https://github.com/serverwentdown">@serverwentdown</a>
18+
</p>
19+
</footer>
20+
</div>
2121
</template>
2222

2323
<script>
@@ -35,20 +35,20 @@ export default {
3535

3636
<style scoped>
3737
header, footer, main {
38-
margin: 0 auto;
38+
margin: 0 auto;
3939
}
4040
header, footer, .content {
41-
padding: 1rem;
41+
padding: 1rem;
4242
}
4343
.content {
4444
width: fit-content;}
4545
header, footer {
46-
max-width: 38rem;
47-
text-align: center;
46+
max-width: 38rem;
47+
text-align: center;
4848
}
4949
main {
50-
width: fit-content;
51-
max-width: 100%;
52-
overflow-x: auto;
50+
width: fit-content;
51+
max-width: 100%;
52+
overflow-x: auto;
5353
}
5454
</style>

src/components/List.vue

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<template>
2-
<table>
3-
<thead>
4-
<slot name="header" />
5-
</thead>
6-
<tbody>
7-
<slot />
8-
</tbody>
9-
</table>
2+
<table>
3+
<thead>
4+
<slot name="header" />
5+
</thead>
6+
<tbody>
7+
<slot />
8+
</tbody>
9+
</table>
1010
</template>
1111

1212
<style scoped>
1313
table {
14-
min-width: 28rem;
15-
border-spacing: 0;
14+
min-width: 28rem;
15+
border-spacing: 0;
1616
}
1717
</style>

src/components/ListHeader.vue

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<template>
2-
<tr>
3-
<th class="col title"><slot name="title" /></th>
4-
<th class="col detail" v-if="$slots.detail"><slot name="detail" /></th>
5-
<th class="col date" v-if="$slots.date"><slot name="date" /></th>
6-
<th class="col size" v-if="$slots.size"><slot name="size" /></th>
7-
<th class="col buttons" v-if="$slots.buttons"><slot name="buttons" /></th>
8-
</tr>
2+
<tr>
3+
<th class="col title"><slot name="title" /></th>
4+
<th class="col detail" v-if="$slots.detail"><slot name="detail" /></th>
5+
<th class="col date" v-if="$slots.date"><slot name="date" /></th>
6+
<th class="col size" v-if="$slots.size"><slot name="size" /></th>
7+
<th class="col buttons" v-if="$slots.buttons"><slot name="buttons" /></th>
8+
</tr>
99
</template>
1010

1111
<style scoped>
1212
th {
13-
padding: 0.5rem;
14-
white-space: nowrap;
15-
font-size: 0.8em;
16-
text-align: left;
17-
border-bottom: 1px solid #eee;
18-
text-align: right;
13+
padding: 0.5rem;
14+
white-space: nowrap;
15+
font-size: 0.8em;
16+
text-align: left;
17+
border-bottom: 1px solid #eee;
18+
text-align: right;
1919
}
2020
.title {
21-
text-align: left;
21+
text-align: left;
2222
}
2323
</style>

src/components/ListItem.vue

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
2-
<router-link tag="tr" :to="to || {}">
3-
<td class="col title"><slot name="title" /></td>
4-
<td class="col detail" v-if="$slots.detail"><slot name="detail" /></td>
5-
<td class="col date" v-if="$slots.date"><slot name="date" /></td>
6-
<td class="col size" v-if="$slots.size"><slot name="size" /></td>
7-
<td class="col buttons" v-if="$slots.buttons"><slot name="buttons" /></td>
8-
</router-link>
2+
<router-link tag="tr" :to="to || {}">
3+
<td class="col title"><slot name="title" /></td>
4+
<td class="col detail" v-if="$slots.detail"><slot name="detail" /></td>
5+
<td class="col date" v-if="$slots.date"><slot name="date" /></td>
6+
<td class="col size" v-if="$slots.size"><slot name="size" /></td>
7+
<td class="col buttons" v-if="$slots.buttons"><slot name="buttons" /></td>
8+
</router-link>
99
</template>
1010

1111
<script>
@@ -18,19 +18,19 @@ export default {
1818

1919
<style scoped>
2020
tr:hover {
21-
background: #f4f4f4;
21+
background: #f4f4f4;
2222
}
2323
td {
24-
padding: 0.5rem 0.75rem;
25-
white-space: nowrap;
26-
border-bottom: 1px solid #eee;
27-
border-bottom-width: 0.5px;
28-
text-align: right;
24+
padding: 0.5rem 0.75rem;
25+
white-space: nowrap;
26+
border-bottom: 1px solid #eee;
27+
border-bottom-width: 0.5px;
28+
text-align: right;
2929
}
3030
.title {
31-
text-align: left;
31+
text-align: left;
3232
}
3333
.detail {
34-
font-size: 0.8em;
34+
font-size: 0.8em;
3535
}
3636
</style>

src/components/LoadableText.vue

+23-23
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<span :class="{ loading: !text }">{{ text }}<span /><span /><span /></span>
2+
<span :class="{ loading: !text }">{{ text }}<span /><span /><span /></span>
33
</template>
44

55
<script>
@@ -12,35 +12,35 @@ export default {
1212

1313
<style scoped>
1414
span.loading > span {
15-
display: inline-block;
16-
background: #000;
17-
border-radius: 0.09375em;
18-
width: 0.1875em;
19-
height: 0.1875em;
20-
margin: 0.25em 0.075em;
21-
opacity: 0.5;
15+
display: inline-block;
16+
background: #000;
17+
border-radius: 0.09375em;
18+
width: 0.1875em;
19+
height: 0.1875em;
20+
margin: 0.25em 0.075em;
21+
opacity: 0.5;
2222
}
2323
span.loading > span:nth-child(1) {
24-
animation: fade 1s ease 0s infinite;
24+
animation: fade 1s ease 0s infinite;
2525
}
2626
span.loading > span:nth-child(2) {
27-
animation: fade 1s ease 0.333s infinite;
27+
animation: fade 1s ease 0.333s infinite;
2828
}
2929
span.loading > span:nth-child(3) {
30-
animation: fade 1s ease 0.666s infinite;
30+
animation: fade 1s ease 0.666s infinite;
3131
}
3232
@keyframes fade {
33-
0% {
34-
opacity: 1;
35-
}
36-
33.3% {
37-
opacity: 0.25;
38-
}
39-
66.6% {
40-
opacity: 0.25;
41-
}
42-
100% {
43-
opacity: 1;
44-
}
33+
0% {
34+
opacity: 1;
35+
}
36+
33.3% {
37+
opacity: 0.25;
38+
}
39+
66.6% {
40+
opacity: 0.25;
41+
}
42+
100% {
43+
opacity: 1;
44+
}
4545
}
4646
</style>

src/components/Paginator.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<template>
2-
<div>
3-
<!-- <span class="prev" @click="prev">Previous</span> -->
4-
<span class="next" @click="next" v-if="nextLast">Next</span>
5-
</div>
2+
<div>
3+
<!-- <span class="prev" @click="prev">Previous</span> -->
4+
<span class="next" @click="next" v-if="nextLast">Next</span>
5+
</div>
66
</template>
77

88
<script>
@@ -23,12 +23,12 @@ export default {
2323

2424
<style scoped>
2525
div {
26-
display: flex;
27-
justify-content: space-between;
28-
padding-top: 0.75rem;
26+
display: flex;
27+
justify-content: space-between;
28+
padding-top: 0.75rem;
2929
}
3030
div > span {
31-
padding: 0.75rem;
32-
color: #008;
31+
padding: 0.75rem;
32+
color: #008;
3333
}
3434
</style>

src/components/TagSize.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<LoadableText :text="text" />
2+
<LoadableText :text="text" />
33
</template>
44

55
<script>

src/components/ToolbarButton.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ button {
1919
outline: none;
2020
border-radius: 0.5rem;
2121
background: #66f;
22-
padding: 0.5rem 0.75rem;
22+
padding: 0.5rem 0.75rem;
2323
color: #fff;
2424
tap-highlight-color: transparent;
2525
}

src/views/Blob.vue

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<template>
2-
<Layout>
3-
<h1 slot="title">{{ $route.params.repo }}</h1>
2+
<Layout>
3+
<h1 slot="title">{{ $route.params.repo }}</h1>
44
<Error slot="error" :message='error' />
5-
<h2>Details</h2>
6-
<List>
7-
<ListItem>
8-
<span slot="title">Full Digest</span>
9-
<span slot="detail">{{ $route.params.digest }}</span>
10-
</ListItem>
11-
<ListItem>
12-
<span slot="title">Size</span>
13-
<BlobSize slot="detail" :repo="$route.params.repo" :blob="$route.params.digest" />
14-
</ListItem>
15-
</List>
16-
</Layout>
5+
<h2>Details</h2>
6+
<List>
7+
<ListItem>
8+
<span slot="title">Full Digest</span>
9+
<span slot="detail">{{ $route.params.digest }}</span>
10+
</ListItem>
11+
<ListItem>
12+
<span slot="title">Size</span>
13+
<BlobSize slot="detail" :repo="$route.params.repo" :blob="$route.params.digest" />
14+
</ListItem>
15+
</List>
16+
</Layout>
1717
</template>
1818

1919
<script>

0 commit comments

Comments
 (0)