From f670345d450d2ac13448c56bc0aeb8dd5c3d84ef Mon Sep 17 00:00:00 2001 From: syuilo Date: Fri, 14 Sep 2018 20:33:27 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=A6=E3=83=BC=E3=82=B6=E3=83=BC=E5=90=8D?= =?UTF-8?q?=E3=81=AE=E3=83=9B=E3=82=B9=E3=83=88=E3=82=92=E7=9C=81=E7=95=A5?= =?UTF-8?q?=E3=81=97=E3=81=AA=E3=81=84=E3=82=AA=E3=83=97=E3=82=B7=E3=83=A7?= =?UTF-8?q?=E3=83=B3=E3=82=92=E5=AE=9F=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/ja-JP.yml | 1 + src/client/app/common/views/components/acct.vue | 2 +- src/client/app/desktop/views/components/settings.vue | 6 ++++++ src/client/app/mobile/views/pages/settings.vue | 6 ++++++ src/client/app/store.ts | 1 + 5 files changed, 15 insertions(+), 1 deletion(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 134ec33831..5257d616c4 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -118,6 +118,7 @@ common: disable-animated-mfm: "投稿内の動きのあるテキストを無効にする" always-show-nsfw: "常に閲覧注意のメディアを表示する" always-mark-nsfw: "常にメディアを閲覧注意として投稿" + show-full-acct: "ユーザー名のホストを省略しない" this-setting-is-this-device-only: "このデバイスのみ" do-not-use-in-production: 'これは開発ビルドです。本番環境で使用しないでください。' diff --git a/src/client/app/common/views/components/acct.vue b/src/client/app/common/views/components/acct.vue index bd7833f1a9..542fbb4296 100644 --- a/src/client/app/common/views/components/acct.vue +++ b/src/client/app/common/views/components/acct.vue @@ -1,7 +1,7 @@ diff --git a/src/client/app/desktop/views/components/settings.vue b/src/client/app/desktop/views/components/settings.vue index 8e2905e73b..1973acc839 100644 --- a/src/client/app/desktop/views/components/settings.vue +++ b/src/client/app/desktop/views/components/settings.vue @@ -61,6 +61,7 @@ + @@ -366,6 +367,11 @@ export default Vue.extend({ set(value) { this.$store.dispatch('settings/set', { key: 'contrastedAcct', value }); } }, + showFullAcct: { + get() { return this.$store.state.settings.showFullAcct; }, + set(value) { this.$store.dispatch('settings/set', { key: 'showFullAcct', value }); } + }, + iLikeSushi: { get() { return this.$store.state.settings.iLikeSushi; }, set(value) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', value }); } diff --git a/src/client/app/mobile/views/pages/settings.vue b/src/client/app/mobile/views/pages/settings.vue index c93b3a50f1..9b0e521a4f 100644 --- a/src/client/app/mobile/views/pages/settings.vue +++ b/src/client/app/mobile/views/pages/settings.vue @@ -14,6 +14,7 @@ %i18n:@dark-mode% %i18n:@circle-icons% %i18n:@contrasted-acct% + %i18n:common.show-full-acct% %i18n:common.i-like-sushi% %i18n:common.disable-animated-mfm% %i18n:common.always-show-nsfw% (%i18n:common.this-setting-is-this-device-only%) @@ -232,6 +233,11 @@ export default Vue.extend({ set(value) { this.$store.dispatch('settings/set', { key: 'contrastedAcct', value }); } }, + showFullAcct: { + get() { return this.$store.state.settings.showFullAcct; }, + set(value) { this.$store.dispatch('settings/set', { key: 'showFullAcct', value }); } + }, + iLikeSushi: { get() { return this.$store.state.settings.iLikeSushi; }, set(value) { this.$store.dispatch('settings/set', { key: 'iLikeSushi', value }); } diff --git a/src/client/app/store.ts b/src/client/app/store.ts index 7a5b3e986b..997bddc5cc 100644 --- a/src/client/app/store.ts +++ b/src/client/app/store.ts @@ -17,6 +17,7 @@ const defaultSettings = { showClockOnHeader: true, circleIcons: true, contrastedAcct: true, + showFullAcct: false, gradientWindowHeader: false, showReplyTarget: true, showMyRenotes: true,