feat(desktop): feed badge

This commit is contained in:
DIYgod
2025-04-16 20:26:24 +08:00
parent cd431f336c
commit 144f7097e9
2 changed files with 11 additions and 0 deletions
@@ -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(
+1
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",