diff --git a/apps/desktop/layer/renderer/src/assets/rsshub.svg b/apps/desktop/layer/renderer/src/assets/rsshub.svg index 0498fc242..1d79fea17 100644 --- a/apps/desktop/layer/renderer/src/assets/rsshub.svg +++ b/apps/desktop/layer/renderer/src/assets/rsshub.svg @@ -1,12 +1 @@ - - - - - - \ No newline at end of file +RSSHub \ No newline at end of file diff --git a/apps/desktop/layer/renderer/src/modules/user/ProfileButton.tsx b/apps/desktop/layer/renderer/src/modules/user/ProfileButton.tsx index 18ea738df..f2a0ce4f8 100644 --- a/apps/desktop/layer/renderer/src/modules/user/ProfileButton.tsx +++ b/apps/desktop/layer/renderer/src/modules/user/ProfileButton.tsx @@ -1,5 +1,6 @@ import { MdiMeditation } from "@follow/components/icons/Meditation.js" import { ActionButton } from "@follow/components/ui/button/index.js" +import { RSSHubLogo } from "@follow/components/ui/platform-icon/icons.js" import { RootPortal } from "@follow/components/ui/portal/index.js" import { EllipsisHorizontalTextWithTooltip } from "@follow/components/ui/typography/EllipsisWithTooltip.js" import { UserRole } from "@follow/constants" @@ -12,7 +13,6 @@ import { memo, useCallback, useLayoutEffect, useState } from "react" import { useTranslation } from "react-i18next" import { useNavigate } from "react-router" -import rsshubLogoUrl from "~/assets/rsshub-icon.png?url" import { useIsInMASReview, useServerConfigs } from "~/atoms/server-configs" import { useIsZenMode, useSetZenMode } from "~/atoms/settings/ui" import { @@ -37,8 +37,6 @@ import { LoginButton } from "./LoginButton" import { UserAvatar } from "./UserAvatar" import { UserProBadge } from "./UserProBadge" -const rsshubLogo = new URL(rsshubLogoUrl, import.meta.url).href - export type ProfileButtonProps = LoginProps & { animatedAvatar?: boolean } @@ -181,7 +179,7 @@ export const ProfileButton: FC = memo((props) => { onClick={() => { navigate("/rsshub") }} - icon={} + icon={} > {t("words.rsshub")} diff --git a/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(subview)/rsshub/index.tsx b/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(subview)/rsshub/index.tsx index 67b7b27e5..c8446cb95 100644 --- a/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(subview)/rsshub/index.tsx +++ b/apps/desktop/layer/renderer/src/pages/(main)/(layer)/(subview)/rsshub/index.tsx @@ -1,12 +1,12 @@ import { Logo } from "@follow/components/icons/logo.jsx" import { Button } from "@follow/components/ui/button/index.js" +import { RSSHubLogo } from "@follow/components/ui/platform-icon/icons.js" import type { RSSHubModel } from "@follow/models" import { whoami } from "@follow/store/user/getters" import { cn, formatNumber } from "@follow/utils/utils" import { memo, useCallback, useEffect } from "react" import { useTranslation } from "react-i18next" -import RSSHubIconUrl from "~/assets/rsshub-icon.png?url" import { ErrorTooltip } from "~/components/common/ErrorTooltip" import { HeaderActionButton, HeaderActionGroup } from "~/components/ui/button/HeaderActionButton" import { useModalStack } from "~/components/ui/modal/stacked/hooks" @@ -20,8 +20,6 @@ import { UserAvatar } from "~/modules/user/UserAvatar" import { Queries } from "~/queries" import { useSetRSSHubMutation } from "~/queries/rsshub" -const RSSHubIcon = new URL(RSSHubIconUrl, import.meta.url).href - export function Component() { const { t } = useTranslation("settings") const { present } = useModalStack() @@ -53,7 +51,7 @@ export function Component() { {/* Simple Header */}
- RSSHub +

{t("words.rsshub", { ns: "common" })}

diff --git a/packages/internal/components/src/ui/platform-icon/collections/rsshub.tsx b/packages/internal/components/src/ui/platform-icon/collections/rsshub.tsx new file mode 100644 index 000000000..ca3bbeb06 --- /dev/null +++ b/packages/internal/components/src/ui/platform-icon/collections/rsshub.tsx @@ -0,0 +1,14 @@ +import type { SVGProps } from "react" + +export function RSSHubLogo(props: SVGProps) { + return ( + + + + + + ) +} diff --git a/packages/internal/components/src/ui/platform-icon/icons.ts b/packages/internal/components/src/ui/platform-icon/icons.ts index d1c58cf88..d9d676034 100644 --- a/packages/internal/components/src/ui/platform-icon/icons.ts +++ b/packages/internal/components/src/ui/platform-icon/icons.ts @@ -6,4 +6,5 @@ export * from "./collections/outline" export * from "./collections/readeck" export * from "./collections/readwise" export * from "./collections/rss3" +export * from "./collections/rsshub" export * from "./collections/zotero"