Skip to content

Commit

Permalink
feat: user qrcode (#46)
Browse files Browse the repository at this point in the history
Co-authored-by: Esurio <[email protected]>
  • Loading branch information
1673beta and Esurio authored Jun 27, 2024
1 parent 2cc7f0a commit 270aaa5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/frontend/src/scripts/get-user-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 270aaa5

Please sign in to comment.