Skip to content

Commit

Permalink
chore: Rename components to PascalCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Jun 4, 2019
1 parent 8c64e57 commit 3f5ae21
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions components/comment.vue
@@ -1,5 +1,5 @@
<template>
<li v-if="comment" class="comment">
<li v-if="comment && comment.user" class="comment">
<div class="by">
<router-link :to="'/user/' + comment.user">
{{ comment.user }}
Expand Down Expand Up @@ -54,10 +54,10 @@ export default {
}
.by {
color: #828282;
color: #222;
a {
color: #828282;
color: #222;
text-decoration: underline;
}
}
Expand All @@ -66,7 +66,7 @@ export default {
overflow-wrap: break-word;
a:hover {
color: #ff6600;
color: #111;
}
pre {
Expand All @@ -80,7 +80,7 @@ export default {
border-radius: 4px;
a {
color: #828282;
color: #222;
cursor: pointer;
}
Expand Down
6 changes: 3 additions & 3 deletions pages/_feed/_page.vue
Expand Up @@ -16,9 +16,9 @@
</template>

<script>
import Item from '~/components/item.vue'
import ItemListNav from '~/components/item-list-nav.vue'
import LazyWrapper from '~/components/lazy-wrapper'
import Item from '~/components/Item.vue'
import ItemListNav from '~/components/ItemListNav.vue'
import LazyWrapper from '~/components/LazyWrapper'
import { feeds, validFeeds } from '~/common/api'
export default {
Expand Down
4 changes: 2 additions & 2 deletions pages/item/_id.vue
Expand Up @@ -29,8 +29,8 @@
</template>

<script>
import Comment from '~/components/comment.vue'
import LazyWrapper from '~/components/lazy-wrapper'
import Comment from '~/components/Comment'
import LazyWrapper from '~/components/LazyWrapper'
export default {
name: 'ItemView',
Expand Down
6 changes: 4 additions & 2 deletions pages/user/_id.vue
Expand Up @@ -25,7 +25,7 @@
</template>

<script>
import LazyWrapper from '~/components/lazy-wrapper'
import LazyWrapper from '~/components/LazyWrapper'
export default {
name: 'UserView',
Expand All @@ -39,7 +39,9 @@ export default {
},
head() {
return this.user ? this.user.id : 'User not found'
return {
title: this.user ? this.user.id : 'User not found'
}
},
fetch({ store, route: { params: { id } } }) {
Expand Down

0 comments on commit 3f5ae21

Please sign in to comment.