Skip to main content

Module friends

Module friends 

Source
Expand description

友链页:两列名片、空状态与加载失败,以及可一键复制的「交换友链」信息。

Structs§

FriendCardProps 🔒
Props for the FriendCard component.
FriendsBodyProps 🔒
Props for the FriendsBody component.
FriendsHeaderProps
Props for the FriendsHeader component.
FriendsRoute
友链路由,对应 /friends(SsrMode::InOrder)。
SwapInfoProps 🔒
Props for the SwapInfo component.
SwapRowProps 🔒
Props for the SwapRow component.

Enums§

CopyState 🔒

Functions§

FriendCard 🔒
整张名片是原生链接,在新标签页打开;头像加载失败时显示站名首字。
FriendsBody 🔒
友链主体。initial 为 None 表示列表加载失败;重试结果写进本地信号, 不重取外层 Resource(否则整段 DOM 会退回 Suspense 的骨架屏)。
FriendsHeader
页头标题与说明;骨架屏复用,数据到达前后不跳动。
SwapInfo 🔒
「交换友链」:本站名称、地址、简介与订阅,点击复制;复制失败时提示手动选择原文。
SwapRow 🔒
Required Props
__FriendsRoute_View 🔒
display_host 🔒
去掉协议与末尾斜杠的主机名,用作名片副标题。
fetch_card 🔒
fetch_links 🔒