feat(desktop): feed badge

This commit is contained in:
DIYgod 2025-04-16 20:26:01 +08:00
parent cd431f336c
commit 144f7097e9
No known key found for this signature in database
2 changed files with 11 additions and 0 deletions

View File

@ -359,6 +359,16 @@ export const useFeedActions = ({
navigator.clipboard.writeText(feedId)
},
},
{
type: "text" as const,
label: t("sidebar.feed_actions.copy_feed_badge"),
disabled: isEntryList,
click: () => {
navigator.clipboard.writeText(
`https://badge.follow.is/feed/${feedId}?color=FF5C00&labelColor=black&style=flat-square`,
)
},
},
]
return items.filter(

View File

@ -312,6 +312,7 @@
"sidebar.feed_actions.claim": "Claim",
"sidebar.feed_actions.claim_feed": "Claim Feed",
"sidebar.feed_actions.copy_email_address": "Copy Email Address",
"sidebar.feed_actions.copy_feed_badge": "Copy Feed Badge",
"sidebar.feed_actions.copy_feed_id": "Copy Feed ID",
"sidebar.feed_actions.copy_feed_url": "Copy Feed URL",
"sidebar.feed_actions.copy_list_id": "Copy List ID",