From a235869cfafe214aa02694e8a8e1f9aae1d69e27 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 6 Dec 2018 11:18:13 +0900 Subject: [PATCH] Refactor Make mk-user-name component --- .../app/common/views/components/autocomplete.vue | 2 +- src/client/app/common/views/components/index.ts | 2 ++ .../app/common/views/components/user-name.vue | 16 ++++++++++++++++ src/client/app/common/views/pages/follow.vue | 2 +- .../desktop/views/components/friends-maker.vue | 2 +- .../app/desktop/views/components/user-card.vue | 2 +- .../views/pages/deck/deck.user-column.vue | 2 +- .../views/pages/user-following-or-followers.vue | 2 +- .../app/desktop/views/pages/user/user.header.vue | 2 +- .../app/mobile/views/components/user-card.vue | 2 +- .../app/mobile/views/components/user-preview.vue | 2 +- src/client/app/mobile/views/pages/user-list.vue | 2 +- src/client/app/mobile/views/pages/user.vue | 4 ++-- 13 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 src/client/app/common/views/components/user-name.vue diff --git a/src/client/app/common/views/components/autocomplete.vue b/src/client/app/common/views/components/autocomplete.vue index af68d8374..2d9d70034 100644 --- a/src/client/app/common/views/components/autocomplete.vue +++ b/src/client/app/common/views/components/autocomplete.vue @@ -4,7 +4,7 @@
  • - + @{{ user | acct }}
  • diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts index b8fc7c409..40d067666 100644 --- a/src/client/app/common/views/components/index.ts +++ b/src/client/app/common/views/components/index.ts @@ -1,5 +1,6 @@ import Vue from 'vue'; +import userName from './user-name.vue'; import followButton from './follow-button.vue'; import error from './error.vue'; import noteSkeleton from './note-skeleton.vue'; @@ -44,6 +45,7 @@ import uiInfo from './ui/info.vue'; import formButton from './ui/form/button.vue'; import formRadio from './ui/form/radio.vue'; +Vue.component('mk-user-name', userName); Vue.component('mk-follow-button', followButton); Vue.component('mk-error', error); Vue.component('mk-note-skeleton', noteSkeleton); diff --git a/src/client/app/common/views/components/user-name.vue b/src/client/app/common/views/components/user-name.vue new file mode 100644 index 000000000..7719357e3 --- /dev/null +++ b/src/client/app/common/views/components/user-name.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/client/app/common/views/pages/follow.vue b/src/client/app/common/views/pages/follow.vue index 22f5478d3..854982d91 100644 --- a/src/client/app/common/views/pages/follow.vue +++ b/src/client/app/common/views/pages/follow.vue @@ -7,7 +7,7 @@
    - + @{{ user | acct }}
    diff --git a/src/client/app/desktop/views/components/friends-maker.vue b/src/client/app/desktop/views/components/friends-maker.vue index 4b81b2f95..2cb04c358 100644 --- a/src/client/app/desktop/views/components/friends-maker.vue +++ b/src/client/app/desktop/views/components/friends-maker.vue @@ -6,7 +6,7 @@
    - +

    @{{ user | acct }}

    diff --git a/src/client/app/desktop/views/components/user-card.vue b/src/client/app/desktop/views/components/user-card.vue index ffea85d41..c59467fd0 100644 --- a/src/client/app/desktop/views/components/user-card.vue +++ b/src/client/app/desktop/views/components/user-card.vue @@ -5,7 +5,7 @@