feat(desktop): display feed updatesPerWeek
This commit is contained in:
parent
b90b12ee3f
commit
b52e084448
|
|
@ -334,7 +334,7 @@ const SearchCard: FC<{
|
|||
</CardFooter>
|
||||
) : (
|
||||
<>
|
||||
<CardContent className="p-0">
|
||||
<CardContent className="px-6 py-0">
|
||||
{!!item.entries?.length && (
|
||||
<div className="grid grid-cols-2 gap-3 md:grid-cols-4">
|
||||
{item.entries
|
||||
|
|
@ -389,15 +389,21 @@ const SearchCard: FC<{
|
|||
{t("feed.follower", { count: item.subscriptionCount ?? 0 })}
|
||||
</span>
|
||||
</div>
|
||||
{item.entries?.[0]?.publishedAt && (
|
||||
{item.updatesPerWeek ? (
|
||||
<div className="flex items-center gap-1.5">
|
||||
<i className="i-mgc-time-cute-re" />
|
||||
<i className="i-mgc-safety-certificate-cute-re" />
|
||||
<span>{t("feed.entry_week", { count: item.updatesPerWeek ?? 0 })}</span>
|
||||
</div>
|
||||
) : item.entries?.[0]?.publishedAt ? (
|
||||
<div className="flex items-center gap-1.5">
|
||||
<i className="i-mgc-safe-alert-cute-re" />
|
||||
<span>{t("feed.updated_at")}</span>
|
||||
<RelativeTime
|
||||
date={item.entries[0].publishedAt}
|
||||
displayAbsoluteTimeAfterDay={Infinity}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
<div className="flex items-center justify-between gap-2">
|
||||
|
|
|
|||
|
|
@ -0,0 +1,24 @@
|
|||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface CalendarTimeAddCuteReIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const CalendarTimeAddCuteReIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: CalendarTimeAddCuteReIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<Path
|
||||
d="M7.643 3.069a1.118 1.118 0 0 0-.343.229c-.252.252-.3.439-.3 1.164v.608l-.39.049c-2.038.255-3.171 1.347-3.469 3.343-.106.708-.139 1.785-.14 4.498-.001 4.165.071 4.953.536 5.94.526 1.116 1.546 1.779 3.046 1.979.486.065 1.655.119 2.587.12L10 21V19.011l-1.37-.022c-2.17-.036-2.741-.17-3.178-.742-.16-.21-.267-.548-.361-1.137-.064-.408-.071-.791-.071-4.11 0-3.319.007-3.702.071-4.11.201-1.265.511-1.582 1.749-1.796.334-.058.975-.068 5.32-.082 3.558-.012 5.013-.004 5.2.028.784.137 1.454.799 1.597 1.577.023.131.043.495.043.81V10h2l-.001-.51c-.002-1.034-.09-1.532-.379-2.155a3.768 3.768 0 0 0-.797-1.158c-.603-.603-1.493-1.047-2.238-1.117a24.74 24.74 0 0 1-.415-.044L17 4.995v-.57c0-.684-.052-.879-.299-1.126a.984.984 0 0 0-1.402 0c-.247.247-.299.442-.299 1.128V5H9v-.573c0-.686-.052-.881-.299-1.128a.998.998 0 0 0-1.058-.23m0 7C7.291 10.193 7 10.614 7 11c0 .242.119.521.299.701.294.294.33.299 2.201.299s1.907-.005 2.201-.299a.984.984 0 0 0 0-1.402c-.295-.295-.328-.299-2.218-.296-1.398.003-1.691.013-1.84.066m8.697 1.977c-.698.089-1.527.406-2.148.822a5.725 5.725 0 0 0-1.198 1.148c-.311.417-.685 1.18-.814 1.664a4.974 4.974 0 0 0 .337 3.5c.521 1.063 1.297 1.827 2.379 2.344 1.566.747 3.437.594 4.928-.405.405-.271 1.024-.89 1.295-1.295 1.164-1.739 1.164-3.909 0-5.648-.271-.405-.89-1.024-1.295-1.295a5.07 5.07 0 0 0-3.484-.835m-8.697 2.021C7.289 14.196 7 14.615 7 15c0 .405.293.811.677.939.304.101 1.035.073 1.267-.048.19-.1.402-.328.481-.517.071-.169.071-.579 0-.748a1.198 1.198 0 0 0-.481-.517c-.221-.116-1.027-.142-1.301-.042m9.938-.005a3 3 0 0 1 2.357 2.357c.427 2.063-1.456 3.946-3.519 3.519a2.993 2.993 0 0 1-2.357-2.357c-.376-1.817 1.04-3.558 2.91-3.578.171-.002.445.025.609.059m-.964.515c-.182.079-.41.293-.509.479-.083.154-.088.214-.086 1.004.002.786.008.855.096 1.079.128.324.424.618.743.739.184.07.355.095.742.112.619.026.842-.032 1.097-.288a.984.984 0 0 0 .001-1.403c-.155-.156-.455-.299-.623-.299-.059 0-.071-.056-.086-.39-.013-.296-.037-.429-.102-.554a1.196 1.196 0 0 0-.516-.481c-.166-.07-.596-.069-.757.002"
|
||||
fill={color}
|
||||
fillRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface SafeAlertCuteReIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const SafeAlertCuteReIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: SafeAlertCuteReIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<Path
|
||||
d="M11.64 2.226c-.659.099-.893.176-3.351 1.099-2.373.892-2.719 1.028-3.101 1.221-.822.414-1.378.976-1.774 1.794C3.042 7.111 3 7.535 3 10.516c.001 2.311.031 2.861.199 3.669.463 2.229 1.789 4.214 3.701 5.544.5.347 2.718 1.591 2.732 1.532.009-.039.081-.029.3.04 1.313.417 3.032.392 4.332-.064.933-.327 2.579-1.266 3.456-1.972 1.563-1.259 2.721-3.202 3.099-5.202.157-.827.181-1.304.181-3.587 0-2.938-.043-3.367-.414-4.136-.492-1.017-1.147-1.574-2.474-2.104-.922-.367-4.676-1.758-4.996-1.851-.534-.154-1.102-.215-1.476-.159m1.04 2.116c.364.115 4.051 1.494 4.798 1.794.247.099.536.236.642.304.371.238.651.616.787 1.06.068.222.073.437.073 2.9 0 2.966-.004 3.019-.286 3.96-.174.581-.643 1.535-1.003 2.038-.337.472-1.037 1.182-1.509 1.533-.383.285-1.564.974-2.066 1.205A4.75 4.75 0 0 1 12 19.6a4.75 4.75 0 0 1-2.116-.464c-.502-.231-1.683-.92-2.066-1.205-.472-.351-1.172-1.061-1.509-1.533-.36-.503-.829-1.457-1.003-2.038-.282-.941-.286-.994-.286-3.96 0-2.463.005-2.678.073-2.9.136-.444.416-.822.787-1.06.237-.152.598-.298 2.78-1.12 2.917-1.1 3.012-1.131 3.42-1.103.143.009.413.066.6.125m-1.007 2.721c-.261.08-.533.358-.612.627-.093.313-.091 4.369.003 4.644.124.363.549.666.936.666.237 0 .514-.12.697-.303.305-.306.303-.286.303-2.697s.002-2.391-.303-2.697c-.279-.279-.63-.361-1.024-.24m0 7c-.369.114-.673.546-.673.957 0 .395.319.811.709.924a.987.987 0 0 0 1.278-1.056.977.977 0 0 0-.665-.827c-.21-.074-.402-.074-.649.002"
|
||||
fill={color}
|
||||
fillRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1,24 @@
|
|||
import * as React from "react"
|
||||
import Svg, { Path } from "react-native-svg"
|
||||
|
||||
interface SafetyCertificateCuteReIconProps {
|
||||
width?: number
|
||||
height?: number
|
||||
color?: string
|
||||
}
|
||||
|
||||
export const SafetyCertificateCuteReIcon = ({
|
||||
width = 24,
|
||||
height = 24,
|
||||
color = "#10161F",
|
||||
}: SafetyCertificateCuteReIconProps) => {
|
||||
return (
|
||||
<Svg width={width} height={height} fill="none" viewBox="0 0 24 24">
|
||||
<Path
|
||||
d="M11.64 2.226c-.659.099-.893.176-3.351 1.099-2.373.892-2.719 1.028-3.101 1.221-.822.414-1.378.976-1.774 1.794C3.042 7.111 3 7.535 3 10.516c.001 2.311.031 2.861.199 3.669.463 2.229 1.79 4.216 3.701 5.544.39.271 1.534.926 2.082 1.192 1.04.506 2.054.711 3.297.667 1.369-.049 2.179-.314 3.821-1.25 1.052-.599 1.63-1.024 2.281-1.676a8.985 8.985 0 0 0 2.578-5.582c.053-.598.053-4.599 0-5.251-.051-.629-.151-1.029-.373-1.489-.492-1.017-1.147-1.574-2.474-2.104-.922-.367-4.676-1.758-4.996-1.851-.534-.154-1.102-.215-1.476-.159m1.04 2.116c.364.115 4.051 1.494 4.798 1.794.247.099.536.236.642.304.371.238.651.616.787 1.06.068.222.073.437.073 2.9 0 2.966-.004 3.019-.286 3.96-.174.581-.643 1.535-1.003 2.038-.337.472-1.037 1.182-1.509 1.533-.383.285-1.564.974-2.066 1.205A4.75 4.75 0 0 1 12 19.6a4.75 4.75 0 0 1-2.116-.464c-.502-.231-1.683-.92-2.066-1.205-.472-.351-1.172-1.061-1.509-1.533-.36-.503-.829-1.457-1.003-2.038-.282-.941-.286-.994-.286-3.96 0-2.463.005-2.678.073-2.9.136-.444.416-.822.787-1.06.237-.152.598-.298 2.78-1.12 2.917-1.1 3.012-1.131 3.42-1.103.143.009.413.066.6.125m2.833 4.394c-.277.074-1.232.799-2.253 1.71a23.692 23.692 0 0 0-2.291 2.379l-.169.206-.483-.476c-.536-.527-1.288-1.158-1.524-1.278-.483-.247-1.088-.036-1.334.465-.054.11-.077.243-.078.438-.001.395.108.567.63.986a15.386 15.386 0 0 1 1.823 1.823c.205.255.395.448.505.513.346.202.833.162 1.126-.093.069-.06.29-.33.492-.6 1.139-1.524 2.452-2.829 4.111-4.084.417-.316.504-.401.592-.582.277-.565 0-1.227-.585-1.401-.246-.073-.312-.074-.562-.006"
|
||||
fill={color}
|
||||
fillRule="evenodd"
|
||||
/>
|
||||
</Svg>
|
||||
)
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.64 2.226c-.659.099-.893.176-3.351 1.099-2.373.892-2.719 1.028-3.101 1.221-.822.414-1.378.976-1.774 1.794C3.042 7.111 3 7.535 3 10.516c.001 2.311.031 2.861.199 3.669.463 2.229 1.789 4.214 3.701 5.544.5.347 2.718 1.591 2.732 1.532.009-.039.081-.029.3.04 1.313.417 3.032.392 4.332-.064.933-.327 2.579-1.266 3.456-1.972 1.563-1.259 2.721-3.202 3.099-5.202.157-.827.181-1.304.181-3.587 0-2.938-.043-3.367-.414-4.136-.492-1.017-1.147-1.574-2.474-2.104-.922-.367-4.676-1.758-4.996-1.851-.534-.154-1.102-.215-1.476-.159m1.04 2.116c.364.115 4.051 1.494 4.798 1.794.247.099.536.236.642.304.371.238.651.616.787 1.06.068.222.073.437.073 2.9 0 2.966-.004 3.019-.286 3.96-.174.581-.643 1.535-1.003 2.038-.337.472-1.037 1.182-1.509 1.533-.383.285-1.564.974-2.066 1.205A4.75 4.75 0 0 1 12 19.6a4.75 4.75 0 0 1-2.116-.464c-.502-.231-1.683-.92-2.066-1.205-.472-.351-1.172-1.061-1.509-1.533-.36-.503-.829-1.457-1.003-2.038-.282-.941-.286-.994-.286-3.96 0-2.463.005-2.678.073-2.9.136-.444.416-.822.787-1.06.237-.152.598-.298 2.78-1.12 2.917-1.1 3.012-1.131 3.42-1.103.143.009.413.066.6.125m-1.007 2.721c-.261.08-.533.358-.612.627-.093.313-.091 4.369.003 4.644.124.363.549.666.936.666.237 0 .514-.12.697-.303.305-.306.303-.286.303-2.697s.002-2.391-.303-2.697c-.279-.279-.63-.361-1.024-.24m0 7c-.369.114-.673.546-.673.957 0 .395.319.811.709.924a.987.987 0 0 0 1.278-1.056.977.977 0 0 0-.665-.827c-.21-.074-.402-.074-.649.002" fill="#10161F" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 1.5 KiB |
|
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><path d="M11.64 2.226c-.659.099-.893.176-3.351 1.099-2.373.892-2.719 1.028-3.101 1.221-.822.414-1.378.976-1.774 1.794C3.042 7.111 3 7.535 3 10.516c.001 2.311.031 2.861.199 3.669.463 2.229 1.79 4.216 3.701 5.544.39.271 1.534.926 2.082 1.192 1.04.506 2.054.711 3.297.667 1.369-.049 2.179-.314 3.821-1.25 1.052-.599 1.63-1.024 2.281-1.676a8.985 8.985 0 0 0 2.578-5.582c.053-.598.053-4.599 0-5.251-.051-.629-.151-1.029-.373-1.489-.492-1.017-1.147-1.574-2.474-2.104-.922-.367-4.676-1.758-4.996-1.851-.534-.154-1.102-.215-1.476-.159m1.04 2.116c.364.115 4.051 1.494 4.798 1.794.247.099.536.236.642.304.371.238.651.616.787 1.06.068.222.073.437.073 2.9 0 2.966-.004 3.019-.286 3.96-.174.581-.643 1.535-1.003 2.038-.337.472-1.037 1.182-1.509 1.533-.383.285-1.564.974-2.066 1.205A4.75 4.75 0 0 1 12 19.6a4.75 4.75 0 0 1-2.116-.464c-.502-.231-1.683-.92-2.066-1.205-.472-.351-1.172-1.061-1.509-1.533-.36-.503-.829-1.457-1.003-2.038-.282-.941-.286-.994-.286-3.96 0-2.463.005-2.678.073-2.9.136-.444.416-.822.787-1.06.237-.152.598-.298 2.78-1.12 2.917-1.1 3.012-1.131 3.42-1.103.143.009.413.066.6.125m2.833 4.394c-.277.074-1.232.799-2.253 1.71a23.692 23.692 0 0 0-2.291 2.379l-.169.206-.483-.476c-.536-.527-1.288-1.158-1.524-1.278-.483-.247-1.088-.036-1.334.465-.054.11-.077.243-.078.438-.001.395.108.567.63.986a15.386 15.386 0 0 1 1.823 1.823c.205.255.395.448.505.513.346.202.833.162 1.126-.093.069-.06.29-.33.492-.6 1.139-1.524 2.452-2.829 4.111-4.084.417-.316.504-.401.592-.582.277-.565 0-1.227-.585-1.401-.246-.073-.312-.074-.562-.006" fill="#10161F" fill-rule="evenodd"/></svg>
|
||||
|
After Width: | Height: | Size: 1.6 KiB |
|
|
@ -155,12 +155,15 @@
|
|||
"entry_list_header.unread": "unread",
|
||||
"feed.actions.follow": "Follow",
|
||||
"feed.actions.followed": "Followed",
|
||||
"feed.entry_week_one": "{{count}} entry/week",
|
||||
"feed.entry_week_other": "{{count}} entries/week",
|
||||
"feed.follower_one": "follower",
|
||||
"feed.follower_other": "followers",
|
||||
"feed.followsAndFeeds": "{{subscriptionCount}} {{subscriptionNoun}} and {{feedsCount}} {{feedsNoun}} on {{appName}}",
|
||||
"feed.followsAndReads": "{{subscriptionCount}} {{subscriptionNoun}} with {{readCount}} recent {{readNoun}} on {{appName}}",
|
||||
"feed.read_one": "read",
|
||||
"feed.read_other": "reads",
|
||||
"feed.updated_at": "Updated",
|
||||
"feed_claim_modal.choose_verification_method": "There are three ways to choose from, you can choose one of them to verify.",
|
||||
"feed_claim_modal.claim_button": "Claim",
|
||||
"feed_claim_modal.content_instructions": "Copy the content below and post it to your latest RSS feed.",
|
||||
|
|
|
|||
|
|
@ -15088,6 +15088,7 @@ declare const _routes: hono_hono_base.HonoBase<Env, ({
|
|||
docs?: string | undefined;
|
||||
isSubscribed?: boolean | undefined;
|
||||
subscriptionCount?: number | undefined;
|
||||
updatesPerWeek?: number | undefined;
|
||||
}[];
|
||||
};
|
||||
outputFormat: "json";
|
||||
|
|
|
|||
Loading…
Reference in New Issue