Expand description
友链页:两列名片、空状态与加载失败,以及可一键复制的「交换友链」信息。
Structs§
- Friend
Card 🔒Props - Props for the
FriendCardcomponent. - Friends
Body 🔒Props - Props for the
FriendsBodycomponent. - Friends
Header Props - Props for the
FriendsHeadercomponent. - Friends
Route - 友链路由,对应
/friends(SsrMode::InOrder)。 - Swap
Info 🔒Props - Props for the
SwapInfocomponent. - Swap
RowProps 🔒 - Props for the
SwapRowcomponent.
Enums§
Functions§
- Friend
Card 🔒 - 整张名片是原生链接,在新标签页打开;头像加载失败时显示站名首字。
- Friends
Body 🔒 - 友链主体。
initial为None表示列表加载失败;重试结果写进本地信号, 不重取外层Resource(否则整段 DOM 会退回Suspense的骨架屏)。 - Friends
Header - 页头标题与说明;骨架屏复用,数据到达前后不跳动。
- Swap
Info 🔒 - 「交换友链」:本站名称、地址、简介与订阅,点击复制;复制失败时提示手动选择原文。
- SwapRow 🔒
- Required Props
- __
Friends 🔒Route_ View - display_
host 🔒 - 去掉协议与末尾斜杠的主机名,用作名片副标题。
- fetch_
card 🔒 - fetch_
links 🔒