From 270aaa534136965b72fd5396a164dcae8a8ddc9b Mon Sep 17 00:00:00 2001 From: Esurio/1673beta <60435625+1673beta@users.noreply.github.com> Date: Thu, 27 Jun 2024 16:29:09 +0900 Subject: [PATCH] feat: user qrcode (#46) Co-authored-by: Esurio --- packages/frontend/src/scripts/get-user-menu.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index 8cd4580f9d..0ecd61f59a 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -200,6 +200,12 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter copyToClipboard(`${user.host ?? host}/@${user.username}.atom`); os.toast(i18n.ts.copied, 'copied'); }, + }, { + icon: 'ti ti-qrcode', + text: i18n.ts.getQrCode, + action: () => { + os.displayQrCode(`https://${user.host ?? host}/@${user.username}`); + }, }, ...(user.host != null && user.url != null ? [{ icon: 'ti ti-external-link', text: i18n.ts.showOnRemote,