-
-
-
-
-
-
- {!!entry.collections && }
-
-
-
-
- {getPreferredTitle(feeds)}
- ·
-
- {dayjs
- .duration(dayjs(entry.entries.publishedAt).diff(dayjs(), "minute"), "minute")
- .humanize()}
-
+
+
+ )
+}
+
+export const GridItemFooter = ({
+ entryId,
+ entryPreview,
+ translation,
+
+ // classNames
+
+ titleClassName,
+ descriptionClassName,
+ timeClassName,
+}: Pick
& {
+ titleClassName?: string
+ descriptionClassName?: string
+ timeClassName?: string
+}) => {
+ const entry = useEntry(entryId) || entryPreview
+ const feeds = useFeedById(entry?.feedId)
+
+ const asRead = useAsRead(entry)
+
+ if (!entry) return null
+ return (
+
+
+
+
+
+
+
+ {!!entry.collections && }
+
+
+
+ {getPreferredTitle(feeds)}
+
+ ·
+
+ {dayjs
+ .duration(dayjs(entry.entries.publishedAt).diff(dayjs(), "minute"), "minute")
+ .humanize()}
+
+
)
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index babd951fd..f7012aeec 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -318,9 +318,6 @@ importers:
apps/renderer:
dependencies:
- '@egjs/react-infinitegrid':
- specifier: 4.12.0
- version: 4.12.0
'@egoist/tipc':
specifier: 0.3.2
version: 0.3.2(electron@32.1.2)(react@18.3.1)
@@ -507,6 +504,9 @@ importers:
lodash-es:
specifier: 4.17.21
version: 4.17.21
+ masonic:
+ specifier: 4.0.1
+ version: 4.0.1(react@18.3.1)
nanoid:
specifier: 5.0.7
version: 5.0.7
@@ -1310,12 +1310,6 @@ packages:
resolution: {integrity: sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw==}
engines: {node: '>=6.9.0'}
- '@cfcs/core@0.0.24':
- resolution: {integrity: sha512-feB38qu+eDk0Pggh/yR7gjaNmvUYA2uCxHP3Pz2MLE4LZ/9jPdtu8bzCSI47yTEhWyZCF5Pk698hdz8IN2mTjA==}
-
- '@cfcs/core@0.0.5':
- resolution: {integrity: sha512-TZ/RXKV7MUrqFpiX+16uaaptv5jgChWNsuE6w8Rn3eJbO1PFd4Wpn25zeJbii7ch46ck8/ZIIYCcW3pHiYtm4Q==}
-
'@cfcs/core@0.0.6':
resolution: {integrity: sha512-FxfJMwoLB8MEMConeXUCqtMGqxdtePQxRBOiGip9ULcYYam3WfCgoY6xdnMaSkYvRvmosp5iuG+TiPofm65+Pw==}
@@ -1352,21 +1346,9 @@ packages:
'@egjs/component@3.0.5':
resolution: {integrity: sha512-cLcGizTrrUNA2EYE3MBmEDt2tQv1joVP1Q3oDisZ5nw0MZDx2kcgEXM+/kZpfa/PAkFvYVhRUZwytIQWoN3V/w==}
- '@egjs/grid@1.16.0':
- resolution: {integrity: sha512-w344hL2HNwmOHu379EG9I8ULkWF4A0cVf1XDn5nGlLXc+8c/rMvQadMBkGPOcdWMEKvFZpEiOPI7tWlXLOCloQ==}
-
- '@egjs/imready@1.4.1':
- resolution: {integrity: sha512-JIOBs4lB7FYdsKi5uvz2j3SObX8eShtZjtqlOH41tm185aJOQZwiKBK8+V4MxzG4X6DqVhpdN8UcuVwBbElfsg==}
-
- '@egjs/infinitegrid@4.12.0':
- resolution: {integrity: sha512-zoDz+mag7DAropcgmxW0Bx3JQ5ID19lk+AUN9rf9U7diwmO8IBfddX44jOVc9+ya5yZ+Goj95Fkm5S3GqCOrZQ==}
-
'@egjs/list-differ@1.0.1':
resolution: {integrity: sha512-OTFTDQcWS+1ZREOdCWuk5hCBgYO4OsD30lXcOCyVOAjXMhgL5rBRDnt/otb6Nz8CzU0L/igdcaQBDLWc4t9gvg==}
- '@egjs/react-infinitegrid@4.12.0':
- resolution: {integrity: sha512-V661KH1nka13wgy73N0IGBazZGe7LiECml1JDqB5DP6axTERUVCs8KRHadHu6oQihDeXwJIHe1YRhhMN9eAnUw==}
-
'@egoist/tailwindcss-icons@1.8.1':
resolution: {integrity: sha512-hqZeASrhT6BOeaBHYDPB0yBH/zgMKqmm7y2Rsq0c4iRnNVv1RWEiXMBMJB38JsDMTHME450FKa/wvdaIhED+Iw==}
peerDependencies:
@@ -1912,6 +1894,18 @@ packages:
resolution: {integrity: sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@essentials/memoize-one@1.1.0':
+ resolution: {integrity: sha512-HMkuIkKNe0EWSUpZhlaq9+5Yp47YhrMhxLMnXTRnEyE5N4xKLspAvMGjUFdi794VnEF1EcOZFS8rdROeujrgag==}
+
+ '@essentials/one-key-map@1.2.0':
+ resolution: {integrity: sha512-C2H7zHVcsoipDv4VKY5uUcv5ilsK+uEgEj+WeOdN5oz/Qj1/OZIzCdle90gDzj0xnGQrmZ9qDujwD7AkBb5k9A==}
+
+ '@essentials/raf@1.2.0':
+ resolution: {integrity: sha512-AWJvpprE2o7ATMb7HBYMVUVmPJBCt2wZp2rY7d+rAcNSMvzLbDepy9KFeqqrPZh+s9aIpbw1LgmuAW7kuRFgrQ==}
+
+ '@essentials/request-timeout@1.3.0':
+ resolution: {integrity: sha512-lKZPhKScNFnR1MBnk4+sxshk46fpvdN+Uh1LlKWFO5g1ocuz4EcknNIL7tm/rsCAs/+xMWiBTwbDUvm+pDNlXw==}
+
'@floating-ui/core@0.6.2':
resolution: {integrity: sha512-jktYRmZwmau63adUG3GKOAVCofBXkk55S/zQ94XOorAHhwqFIOFAy1rSp2N0Wp6/tGbe9V3u/ExlGZypyY17rg==}
@@ -3065,6 +3059,41 @@ packages:
peerDependencies:
react: ^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0
+ '@react-hook/debounce@3.0.0':
+ resolution: {integrity: sha512-ir/kPrSfAzY12Gre0sOHkZ2rkEmM4fS5M5zFxCi4BnCeXh2nvx9Ujd+U4IGpKCuPA+EQD0pg1eK2NGLvfWejag==}
+ peerDependencies:
+ react: '>=16.8'
+
+ '@react-hook/event@1.2.6':
+ resolution: {integrity: sha512-JUL5IluaOdn5w5Afpe/puPa1rj8X6udMlQ9dt4hvMuKmTrBS1Ya6sb4sVgvfe2eU4yDuOfAhik8xhbcCekbg9Q==}
+ peerDependencies:
+ react: '>=16.8'
+
+ '@react-hook/latest@1.0.3':
+ resolution: {integrity: sha512-dy6duzl+JnAZcDbNTfmaP3xHiKtbXYOaz3G51MGVljh548Y8MWzTr+PHLOfvpypEVW9zwvl+VyKjbWKEVbV1Rg==}
+ peerDependencies:
+ react: '>=16.8'
+
+ '@react-hook/passive-layout-effect@1.2.1':
+ resolution: {integrity: sha512-IwEphTD75liO8g+6taS+4oqz+nnroocNfWVHWz7j+N+ZO2vYrc6PV1q7GQhuahL0IOR7JccFTsFKQ/mb6iZWAg==}
+ peerDependencies:
+ react: '>=16.8'
+
+ '@react-hook/throttle@2.2.0':
+ resolution: {integrity: sha512-LJ5eg+yMV8lXtqK3lR+OtOZ2WH/EfWvuiEEu0M3bhR7dZRfTyEJKxH1oK9uyBxiXPtWXiQggWbZirMCXam51tg==}
+ peerDependencies:
+ react: '>=16.8'
+
+ '@react-hook/window-scroll@1.3.0':
+ resolution: {integrity: sha512-LdYnCL22pFI+LTs85Fi2OQHSKWkzIuHFgv8lA+wwuaPxLOEhWR5bzJ21iygUH9X4meeLVRZKEbfpYi3OWWD4GQ==}
+ peerDependencies:
+ react: '>=16.8'
+
+ '@react-hook/window-size@3.1.1':
+ resolution: {integrity: sha512-yWnVS5LKnOUIrEsI44oz3bIIUYqflamPL27n+k/PC//PsX/YeWBky09oPeAoc9As6jSH16Wgo8plI+ECZaHk3g==}
+ peerDependencies:
+ react: '>=16.8'
+
'@react-stately/utils@3.10.3':
resolution: {integrity: sha512-moClv7MlVSHpbYtQIkm0Cx+on8Pgt1XqtPx6fy9rQFb2DNc9u1G3AUVnqA17buOkH1vLxAtX4MedlxMWyRCYYA==}
peerDependencies:
@@ -6236,6 +6265,11 @@ packages:
markdown-table@3.0.3:
resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}
+ masonic@4.0.1:
+ resolution: {integrity: sha512-gOj1B61NtrELoGigCy+E9SZpWSRGmAONMXrzYboBNbI0uvy7otinzGVGKDXLIZBYdNdcFySyON8qtu6IsFp6Sw==}
+ peerDependencies:
+ react: '>=16.8'
+
matcher@3.0.0:
resolution: {integrity: sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==}
engines: {node: '>=10'}
@@ -7315,6 +7349,9 @@ packages:
resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}
engines: {node: '>=10'}
+ raf-schd@4.0.3:
+ resolution: {integrity: sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==}
+
random-path@0.1.2:
resolution: {integrity: sha512-4jY0yoEaQ5v9StCl5kZbNIQlg1QheIDBrdkDn53EynpPb9FgO6//p3X/tgMnrC45XN6QZCzU1Xz/+pSSsJBpRw==}
@@ -8163,6 +8200,9 @@ packages:
resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==}
hasBin: true
+ trie-memoize@1.2.0:
+ resolution: {integrity: sha512-hEDLVEP1FCgaRtt0oZDJdz2lK9uK7WlB7ASswt9U9cqruSNueVigtRGxI97hevKlViqhAcRgNgzuY/m8FCCMcg==}
+
trigram-utils@2.0.1:
resolution: {integrity: sha512-nfWIXHEaB+HdyslAfMxSqWKDdmqY9I32jS7GnqpdWQnLH89r6A5sdk3fDVYqGAZ0CrT8ovAFSAo6HRiWcWNIGQ==}
@@ -9517,14 +9557,6 @@ snapshots:
'@babel/helper-validator-identifier': 7.24.7
to-fast-properties: 2.0.0
- '@cfcs/core@0.0.24':
- dependencies:
- '@egjs/component': 3.0.5
-
- '@cfcs/core@0.0.5':
- dependencies:
- '@egjs/component': 3.0.5
-
'@cfcs/core@0.0.6':
dependencies:
'@egjs/component': 3.0.5
@@ -9561,31 +9593,8 @@ snapshots:
'@egjs/component@3.0.5': {}
- '@egjs/grid@1.16.0':
- dependencies:
- '@egjs/children-differ': 1.0.1
- '@egjs/component': 3.0.5
- '@egjs/imready': 1.4.1
-
- '@egjs/imready@1.4.1':
- dependencies:
- '@cfcs/core': 0.0.24
- '@egjs/component': 3.0.5
-
- '@egjs/infinitegrid@4.12.0':
- dependencies:
- '@cfcs/core': 0.0.5
- '@egjs/children-differ': 1.0.1
- '@egjs/component': 3.0.5
- '@egjs/grid': 1.16.0
- '@egjs/list-differ': 1.0.1
-
'@egjs/list-differ@1.0.1': {}
- '@egjs/react-infinitegrid@4.12.0':
- dependencies:
- '@egjs/infinitegrid': 4.12.0
-
'@egoist/tailwindcss-icons@1.8.1(tailwindcss@3.4.12)':
dependencies:
'@iconify/utils': 2.1.32
@@ -10353,6 +10362,16 @@ snapshots:
dependencies:
levn: 0.4.1
+ '@essentials/memoize-one@1.1.0': {}
+
+ '@essentials/one-key-map@1.2.0': {}
+
+ '@essentials/raf@1.2.0': {}
+
+ '@essentials/request-timeout@1.3.0':
+ dependencies:
+ '@essentials/raf': 1.2.0
+
'@floating-ui/core@0.6.2': {}
'@floating-ui/core@1.6.7':
@@ -11687,6 +11706,41 @@ snapshots:
clsx: 2.1.1
react: 18.3.1
+ '@react-hook/debounce@3.0.0(react@18.3.1)':
+ dependencies:
+ '@react-hook/latest': 1.0.3(react@18.3.1)
+ react: 18.3.1
+
+ '@react-hook/event@1.2.6(react@18.3.1)':
+ dependencies:
+ react: 18.3.1
+
+ '@react-hook/latest@1.0.3(react@18.3.1)':
+ dependencies:
+ react: 18.3.1
+
+ '@react-hook/passive-layout-effect@1.2.1(react@18.3.1)':
+ dependencies:
+ react: 18.3.1
+
+ '@react-hook/throttle@2.2.0(react@18.3.1)':
+ dependencies:
+ '@react-hook/latest': 1.0.3(react@18.3.1)
+ react: 18.3.1
+
+ '@react-hook/window-scroll@1.3.0(react@18.3.1)':
+ dependencies:
+ '@react-hook/event': 1.2.6(react@18.3.1)
+ '@react-hook/throttle': 2.2.0(react@18.3.1)
+ react: 18.3.1
+
+ '@react-hook/window-size@3.1.1(react@18.3.1)':
+ dependencies:
+ '@react-hook/debounce': 3.0.0(react@18.3.1)
+ '@react-hook/event': 1.2.6(react@18.3.1)
+ '@react-hook/throttle': 2.2.0(react@18.3.1)
+ react: 18.3.1
+
'@react-stately/utils@3.10.3(react@18.3.1)':
dependencies:
'@swc/helpers': 0.5.13
@@ -15612,6 +15666,21 @@ snapshots:
markdown-table@3.0.3: {}
+ masonic@4.0.1(react@18.3.1):
+ dependencies:
+ '@essentials/memoize-one': 1.1.0
+ '@essentials/one-key-map': 1.2.0
+ '@essentials/request-timeout': 1.3.0
+ '@react-hook/event': 1.2.6(react@18.3.1)
+ '@react-hook/latest': 1.0.3(react@18.3.1)
+ '@react-hook/passive-layout-effect': 1.2.1(react@18.3.1)
+ '@react-hook/throttle': 2.2.0(react@18.3.1)
+ '@react-hook/window-scroll': 1.3.0(react@18.3.1)
+ '@react-hook/window-size': 3.1.1(react@18.3.1)
+ raf-schd: 4.0.3
+ react: 18.3.1
+ trie-memoize: 1.2.0
+
matcher@3.0.0:
dependencies:
escape-string-regexp: 4.0.0
@@ -16875,6 +16944,8 @@ snapshots:
quick-lru@5.1.1: {}
+ raf-schd@4.0.3: {}
+
random-path@0.1.2:
dependencies:
base32-encode: 1.2.0
@@ -17836,6 +17907,8 @@ snapshots:
tree-kill@1.2.2: {}
+ trie-memoize@1.2.0: {}
+
trigram-utils@2.0.1:
dependencies:
collapse-white-space: 2.1.0