From c0b03d713685ab589d7921ba3da430850c04f84f Mon Sep 17 00:00:00 2001 From: NoriDev Date: Thu, 31 Aug 2023 17:01:03 +0900 Subject: [PATCH] =?UTF-8?q?enhance(frontend):=20=E3=83=81=E3=83=A3?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=83=9A=E3=83=BC=E3=82=B8=E3=81=AE=E3=80=8C?= =?UTF-8?q?=E3=82=BF=E3=83=96=E3=82=92=E3=83=80=E3=82=A4=E3=83=AC=E3=82=AF?= =?UTF-8?q?=E3=83=88=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC=E3=82=B8=EF=BC=8F?= =?UTF-8?q?=E3=82=B0=E3=83=AB=E3=83=BC=E3=83=97=E3=80=8D=E3=81=AB=E5=88=86?= =?UTF-8?q?=E5=89=B2=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG_CHERRYPICK.md | 1 + locales/en-US.yml | 2 + locales/index.d.ts | 3 + locales/ja-JP.yml | 3 + locales/ko-KR.yml | 2 + .../frontend/src/components/MkChatPreview.vue | 169 +++++++++++++++ .../frontend/src/pages/messaging/index.vue | 192 ++++-------------- 7 files changed, 218 insertions(+), 154 deletions(-) create mode 100644 packages/frontend/src/components/MkChatPreview.vue diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index 9eaf08244a..659e00191c 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -46,6 +46,7 @@ - Enhance: '모달에 흐림 효과 사용' 옵션이 비활성화된 경우, 이미지를 탭하여 표시할 때 표시되는 배경을 어둡게 조정 - Enhance: 대화 페이지 디자인 개선 - Enhance: 유저 페이지 헤더에 유저 메뉴, 팔로우 버튼 추가 +- Enhance: 대화 페이지의 탭을 '다이렉트 메시지 / 그룹'으로 분할 - Fix: (Friendly) 흐림 효과를 사용할 때 하단 내비게이션 바의 가독성이 매우 떨어지는 문제 - Fix: (Friendly) 위젯 버튼에서 'UI 애니메이션 줄이기' 옵션이 적용되지 않는 문제 - Fix: (Friendly) 스크롤을 해도 위젯 버튼이 숨겨지지 않는 문제 diff --git a/locales/en-US.yml b/locales/en-US.yml index ba577d5943..1dc600927b 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1171,6 +1171,8 @@ additionalPermissionsForFlash: "Allow to add permission to Play" thisFlashRequiresTheFollowingPermissions: "This Play requires the following permissions" doYouWantToAllowThisPlayToAccessYourAccount: "Do you want to allow this Play to access your account?" translateProfile: "Translate profile" +_messaging: + direct: "Direct Message" _tlTutorial: step1_1: 'The {icon} Home timeline is where you can see posts from the accounts you follow.' step1_2: 'The {icon} Local timeline is where you can see posts from everyone else on this server.' diff --git a/locales/index.d.ts b/locales/index.d.ts index abf231a34b..89c99ff1bf 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -1175,6 +1175,9 @@ export interface Locale { "thisFlashRequiresTheFollowingPermissions": string; "doYouWantToAllowThisPlayToAccessYourAccount": string; "translateProfile": string; + "_messaging": { + "direct": string; + }; "_tlTutorial": { "step1_1": string; "step1_2": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 647cefddb7..5cb8e717ac 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1173,6 +1173,9 @@ thisFlashRequiresTheFollowingPermissions: "このPlayは以下の権限を要求 doYouWantToAllowThisPlayToAccessYourAccount: "このPlayによるアカウントへのアクセスを許可しますか?" translateProfile: "プロフィールを翻訳する" +_messaging: + direct: "ダイレクトメッセージ" + _tlTutorial: step1_1: '{icon} ホームタイムラインは、あなたがフォローしているアカウントの投稿を見られます。' step1_2: '{icon} ローカルタイムラインでは、このサーバーにいるみんなの投稿を見られます。' diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index 5143501eaa..4cd5274cf6 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -1172,6 +1172,8 @@ additionalPermissionsForFlash: "Play에 대한 추가 권한" thisFlashRequiresTheFollowingPermissions: "이 Play는 다음 권한을 요구해요" doYouWantToAllowThisPlayToAccessYourAccount: "이 Play가 계정에 접근하도록 허용할까요?" translateProfile: "프로필 번역하기" +_messaging: + direct: "다이렉트 메시지" _tlTutorial: step1_1: '{icon} 홈 타임라인은 내가 팔로우하고 있는 계정의 게시물을 볼 수 있어요.' step1_2: '{icon} 로컬 타임라인은 이 서버의 모든 유저가 올린 게시물을 볼 수 있어요.' diff --git a/packages/frontend/src/components/MkChatPreview.vue b/packages/frontend/src/components/MkChatPreview.vue new file mode 100644 index 0000000000..3b15cc9812 --- /dev/null +++ b/packages/frontend/src/components/MkChatPreview.vue @@ -0,0 +1,169 @@ + + + + + + + diff --git a/packages/frontend/src/pages/messaging/index.vue b/packages/frontend/src/pages/messaging/index.vue index 34bbab6d2d..8af35e486f 100644 --- a/packages/frontend/src/pages/messaging/index.vue +++ b/packages/frontend/src/pages/messaging/index.vue @@ -5,36 +5,18 @@ SPDX-License-Identifier: AGPL-3.0-only