mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-22 01:47:39 -07:00
feat: ✨ copy feeds from user menu
This commit is contained in:
parent
2be8eb2cce
commit
9d9caea588
2 changed files with 32 additions and 0 deletions
|
@ -2104,3 +2104,7 @@ _skinTones:
|
||||||
medium: "Medium"
|
medium: "Medium"
|
||||||
mediumDark: "Medium Dark"
|
mediumDark: "Medium Dark"
|
||||||
dark: "Dark"
|
dark: "Dark"
|
||||||
|
_feeds:
|
||||||
|
rss: "RSS"
|
||||||
|
atom: "Atom"
|
||||||
|
jsonFeed: "JSON Feed"
|
||||||
|
|
|
@ -245,6 +245,34 @@ export function getUserMenu(user, router: Router = mainRouter) {
|
||||||
router.push(`/user-info/${user.id}`);
|
router.push(`/user-info/${user.id}`);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: "ph-newspaper ph-bold ph-lg",
|
||||||
|
text: i18n.ts.copyFeed,
|
||||||
|
type: "parent",
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
icon: "ph-rss ph-bold ph-lg",
|
||||||
|
text: i18n.ts._feeds.rss,
|
||||||
|
action: () => {
|
||||||
|
copyToClipboard(`https://${host}/@${user.username}.rss`);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "ph-atom ph-bold ph-lg",
|
||||||
|
text: i18n.ts._feeds.atom,
|
||||||
|
action: () => {
|
||||||
|
copyToClipboard(`https://${host}/@${user.username}.atom`);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: "ph-brackets-curly ph-bold ph-lg",
|
||||||
|
text: i18n.ts._feeds.jsonFeed,
|
||||||
|
action: () => {
|
||||||
|
copyToClipboard(`https://${host}/@${user.username}.json`);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: "ph-envelope-simple-open ph-bold ph-lg",
|
icon: "ph-envelope-simple-open ph-bold ph-lg",
|
||||||
text: i18n.ts.sendMessage,
|
text: i18n.ts.sendMessage,
|
||||||
|
|
Loading…
Reference in a new issue