diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index de21364b9..7d716f6ca 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -668,13 +668,6 @@ desktop/views/components/media-video.vue: sensitive: "閲覧注意" click-to-show: "クリックして表示" -desktop/views/components/follow-button.vue: - following: "フォロー中" - follow: "フォロー" - request-pending: "フォロー許可待ち" - follow-processing: "フォロー処理中" - follow-request: "フォロー申請" - desktop/views/components/followers-window.vue: followers: "{} のフォロワー" @@ -1336,7 +1329,7 @@ mobile/views/components/media-video.vue: sensitive: "閲覧注意" click-to-show: "クリックして表示" -mobile/views/components/follow-button.vue: +common/views/components/follow-button.vue: following: "フォロー中" follow: "フォロー" request-pending: "フォロー許可待ち" diff --git a/src/client/app/common/views/components/follow-button.vue b/src/client/app/common/views/components/follow-button.vue new file mode 100644 index 000000000..d88a11aca --- /dev/null +++ b/src/client/app/common/views/components/follow-button.vue @@ -0,0 +1,184 @@ + + + + + diff --git a/src/client/app/common/views/components/index.ts b/src/client/app/common/views/components/index.ts index f6ab63e63..071c31a0d 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 followButton from './follow-button.vue'; import muteAndBlock from './mute-and-block.vue'; import error from './error.vue'; import apiSettings from './api-settings.vue'; @@ -51,6 +52,7 @@ import uiInfo from './ui/info.vue'; import formButton from './ui/form/button.vue'; import formRadio from './ui/form/radio.vue'; +Vue.component('mk-follow-button', followButton); Vue.component('mk-mute-and-block', muteAndBlock); Vue.component('mk-error', error); Vue.component('mk-api-settings', apiSettings); diff --git a/src/client/app/desktop/views/components/follow-button.vue b/src/client/app/desktop/views/components/follow-button.vue deleted file mode 100644 index 70711d1d8..000000000 --- a/src/client/app/desktop/views/components/follow-button.vue +++ /dev/null @@ -1,157 +0,0 @@ - - - - - diff --git a/src/client/app/desktop/views/components/index.ts b/src/client/app/desktop/views/components/index.ts index 6d516c118..36636c98e 100644 --- a/src/client/app/desktop/views/components/index.ts +++ b/src/client/app/desktop/views/components/index.ts @@ -14,7 +14,6 @@ import mediaVideo from './media-video.vue'; import notifications from './notifications.vue'; import noteForm from './post-form.vue'; import renoteForm from './renote-form.vue'; -import followButton from './follow-button.vue'; import notePreview from './note-preview.vue'; import noteDetail from './note-detail.vue'; import settings from './settings.vue'; @@ -39,7 +38,6 @@ Vue.component('mk-media-video', mediaVideo); Vue.component('mk-notifications', notifications); Vue.component('mk-post-form', noteForm); Vue.component('mk-renote-form', renoteForm); -Vue.component('mk-follow-button', followButton); Vue.component('mk-note-preview', notePreview); Vue.component('mk-note-detail', noteDetail); Vue.component('mk-settings', settings); diff --git a/src/client/app/desktop/views/components/user-card.vue b/src/client/app/desktop/views/components/user-card.vue index bd5c6eed0..54fa15a19 100644 --- a/src/client/app/desktop/views/components/user-card.vue +++ b/src/client/app/desktop/views/components/user-card.vue @@ -2,7 +2,7 @@
-
- + @@ -154,7 +154,7 @@ export default Vue.extend({ font-size 1em color var(--primary) - > .mk-follow-button + > .follow-button position absolute top 92px right 8px diff --git a/src/client/app/desktop/views/pages/deck/deck.user-column.vue b/src/client/app/desktop/views/pages/deck/deck.user-column.vue index 53bb54b5a..27da5427b 100644 --- a/src/client/app/desktop/views/pages/deck/deck.user-column.vue +++ b/src/client/app/desktop/views/pages/deck/deck.user-column.vue @@ -14,7 +14,7 @@
-
- +