From d970534d920eafab0289743bcc95523ec25f00d9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 22 Dec 2022 09:01:58 +0900 Subject: [PATCH] enhance(client): improve ux of sound settings --- locales/ja-JP.yml | 1 + .../src/pages/settings/sounds.sound.vue | 45 +++++++++++ packages/client/src/pages/settings/sounds.vue | 80 +++---------------- packages/client/src/scripts/sound.ts | 32 ++++++++ 4 files changed, 89 insertions(+), 69 deletions(-) create mode 100644 packages/client/src/pages/settings/sounds.sound.vue diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 7737e6044e..001749468a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -509,6 +509,7 @@ deleteAll: "全て削除" showFixedPostForm: "タイムライン上部に投稿フォームを表示する" newNoteRecived: "新しいノートがあります" sounds: "サウンド" +sound: "サウンド" listen: "聴く" none: "なし" showInPage: "ページで表示" diff --git a/packages/client/src/pages/settings/sounds.sound.vue b/packages/client/src/pages/settings/sounds.sound.vue new file mode 100644 index 0000000000..62627c6333 --- /dev/null +++ b/packages/client/src/pages/settings/sounds.sound.vue @@ -0,0 +1,45 @@ + + + diff --git a/packages/client/src/pages/settings/sounds.vue b/packages/client/src/pages/settings/sounds.vue index 2bea491e67..ef60b2c3c9 100644 --- a/packages/client/src/pages/settings/sounds.vue +++ b/packages/client/src/pages/settings/sounds.vue @@ -6,11 +6,12 @@ - - {{ $t('_sfx.' + type) }} - - - + + + + + + {{ i18n.ts.default }} @@ -19,10 +20,12 @@