From 5ebcdb4f317a3705db606d74035b613a7f41a2b8 Mon Sep 17 00:00:00 2001 From: Sam Smucny Date: Mon, 26 Dec 2022 22:14:42 -0500 Subject: [PATCH] enhance(client): Add link to copy RSS feed in user profile menu (#9419) * add link to RSS feed * update changelog and locale file Co-authored-by: syuilo --- CHANGELOG.md | 1 + locales/ja-JP.yml | 1 + packages/client/src/scripts/get-user-menu.ts | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f7b939d621..438d389a4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ You should also include the user name that made the change. - Server: delete outdated notes of antenna regularly to improve db performance @syuilo - Client: use tabler-icons instead of fontawesome to better design @syuilo - Client: Add new gabber kick sounds (thanks for noizenecio) +- Client: Add link to user RSS feed in profile menu @ssmucny - Client: Compress non-animated PNG files @saschanaz - Client: Youtube window player @sim1222 - Client: enhance dashboard of control panel @syuilo diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8add6348df..2c048fbe72 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -49,6 +49,7 @@ deleteAndEdit: "削除して編集" deleteAndEditConfirm: "このノートを削除してもう一度編集しますか?このノートへのリアクション、Renote、返信も全て削除されます。" addToList: "リストに追加" sendMessage: "メッセージを送信" +copyRSS: "RSSをコピー" copyUsername: "ユーザー名をコピー" searchUser: "ユーザーを検索" reply: "返信" diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts index 23f0e11f5b..2faacffdfc 100644 --- a/packages/client/src/scripts/get-user-menu.ts +++ b/packages/client/src/scripts/get-user-menu.ts @@ -158,6 +158,12 @@ export function getUserMenu(user, router: Router = mainRouter) { action: () => { copyToClipboard(`@${user.username}@${user.host || host}`); }, + }, { + icon: 'ti ti-rss', + text: i18n.ts.copyRSS, + action: () => { + copyToClipboard(`${user.host || host}/@${user.username}.atom`); + } }, { icon: 'ti ti-info-circle', text: i18n.ts.info,