@funhub/platform 0.2.10 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -1
- package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/shared/registry.d.mts +1 -0
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/material.d.mts +1 -0
- package/dist/components/biz/business/detail/video-detail-recommend/schema.d.mts +1 -0
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-play-count.mjs +2 -0
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-tag.mjs +2 -0
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
- package/dist/components/common/collection-popup/create-collection-sheet.d.mts +3 -0
- package/dist/components/common/collection-popup/create-collection-sheet.mjs +1 -1
- package/dist/components/common/collection-popup/index.mjs +1 -1
- package/dist/components/common/list/waterfall-recommend/recommend-badge-style.mjs +2 -0
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend-display.mjs +2 -0
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend.d.mts +5 -7
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +1 -1
- package/dist/components/common/series-episodes/index.d.mts +1 -0
- package/dist/components/common/series-episodes/index.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
- package/dist/components/pages/search/search-result/shared.mjs +1 -1
- package/dist/components/pages/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/components/ui/empty.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/components/ui/item.d.mts +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/materials.d.mts +1 -2
- package/dist/materials.mjs +1 -1
- package/dist/utils/password-validator.mjs +1 -1
- package/dist/utils/schema/inspector.d.mts +2 -2
- package/package.json +1 -1
- package/dist/components/biz/business/ranking-recommend/client.d.mts +0 -17
- package/dist/components/biz/business/ranking-recommend/client.mjs +0 -70
- package/dist/components/biz/business/ranking-recommend/material.d.mts +0 -35
- package/dist/components/biz/business/ranking-recommend/material.mjs +0 -2
- package/dist/components/biz/business/ranking-recommend/schema.d.mts +0 -35
- package/dist/components/biz/business/ranking-recommend/schema.mjs +0 -2
- package/dist/components/biz/business/ranking-recommend/server.d.mts +0 -11
- package/dist/components/biz/business/ranking-recommend/server.mjs +0 -2
- package/dist/components/biz/business/ranking-recommend/shared/query.mjs +0 -2
- package/dist/components/biz/business/ranking-recommend/shared.d.mts +0 -15
- package/dist/components/biz/business/ranking-recommend/shared.mjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
var e={components:{biz:{basics:{fullscreenFeed:{runtime:{bottomInfo:{collapse:`收起`,expand:`展开`,nextItem:`下一条`,seriesAction:`选集·{title}`,seriesActionWithEpisode:`选集·{title} {episodeName}`},commentModal:{comment:`评论`},userAction:{collectAction:`收藏`,commentAction:`评论`,followFailed:`关注失败`,like:`赞`,likeAction:`喜欢`,loginRequired:`请先登录`,shareAction:`分享`},videoSlide:{watchFullscreen:`全屏观看`}}}},business:{comment:{commentInput:{cannotSelectVideoWhenImageSelected:`已选择图片时不能再选择视频`,dragFileNotSupported:`不支持拖拽图片/文件,请使用下方按钮上传`,image:`图片`,imageUploadFailed:`上传图片失败`,partialImageUploadFailed:`部分图片上传失败`,pasteFileNotSupported:`不支持粘贴图片/文件,请使用下方按钮上传`,placeholder:`说点什么...`,publishCommentFailed:`发布评论失败`,publishDefault:`发布`,publishSuccess:`发布成功`,publishing:`发布中...`,video:`视频`,videoUploadFailed:`视频上传失败`},commentItem:{contentInReview:`内容审核中`,dislike:`踩`,like:`赞`,reply:`回复`,replyCount:`{count}条回复`},commentList:{dislikeHint:`你已经点踩过了`,emptyPrompt:`还没人评论,快来成为第一人吧`,fetchCommentsFailed:`获取评论失败`,invalidReplyTarget:`回复目标无效`,loading:`加载中...`,loginRequired:`请先登录`,noMore:`没有更多了`,publishCommentFailed:`发布评论失败`,publishReplyFailed:`发布回复失败`,viewMore:`查看更多`},replyDetail:{commentDetail:`评论详情`,dislike:`踩`,dislikeHint:`你已经点踩过了`,fetchRepliesFailed:`获取回复列表失败`,follow:`关注`,followFailed:`关注失败`,followed:`已关注`,invalidReplyTarget:`无效回复对象`,like:`赞`,loginRequired:`请先登录`,publishReplyFailed:`发布回复失败`,reply:`回复`,underReview:`内容审核中`,unfollowFailed:`取消关注失败`}},contact:{contactList:{myFollowing:`我的关注`,noFollowingUsers:`你还没有关注任何用户`,noMore:`没有更多了`,noSearchResult:`没有搜索到结果`},contactSearch:{cancel:`取消`,close:`关闭`,placeholder:`请搜索你想@的人`}},detail:{detailFollowAction:{follow:`关注`,following:`已关注`},detailGuessLike:{title:`猜你喜欢`},detailIntroduction:{collapse:`收起`,expand:`展开`,score:`评分`},detailOperate:{collectAdded:`已加入`,collectFailed:`收藏失败`,collection:`收藏`,defaultCollection:`默认收藏夹`,like:`赞`,modifyCollection:`修改收藏夹`,modifyCollectionSuccess:`修改收藏夹成功`,operateFailed:`操作失败,请重试`,share:`分享`,uncollectSuccess
|
|
2
|
+
var e={components:{biz:{basics:{fullscreenFeed:{runtime:{bottomInfo:{collapse:`收起`,expand:`展开`,nextItem:`下一条`,seriesAction:`选集·{title}`,seriesActionWithEpisode:`选集·{title} {episodeName}`},commentModal:{comment:`评论`},userAction:{collectAction:`收藏`,commentAction:`评论`,followFailed:`关注失败`,like:`赞`,likeAction:`喜欢`,loginRequired:`请先登录`,shareAction:`分享`},videoSlide:{watchFullscreen:`全屏观看`}}}},business:{comment:{commentInput:{cannotSelectVideoWhenImageSelected:`已选择图片时不能再选择视频`,dragFileNotSupported:`不支持拖拽图片/文件,请使用下方按钮上传`,image:`图片`,imageUploadFailed:`上传图片失败`,partialImageUploadFailed:`部分图片上传失败`,pasteFileNotSupported:`不支持粘贴图片/文件,请使用下方按钮上传`,placeholder:`说点什么...`,publishCommentFailed:`发布评论失败`,publishDefault:`发布`,publishSuccess:`发布成功`,publishing:`发布中...`,video:`视频`,videoUploadFailed:`视频上传失败`},commentItem:{contentInReview:`内容审核中`,dislike:`踩`,like:`赞`,reply:`回复`,replyCount:`{count}条回复`},commentList:{dislikeHint:`你已经点踩过了`,emptyPrompt:`还没人评论,快来成为第一人吧`,fetchCommentsFailed:`获取评论失败`,invalidReplyTarget:`回复目标无效`,loading:`加载中...`,loginRequired:`请先登录`,noMore:`没有更多了`,publishCommentFailed:`发布评论失败`,publishReplyFailed:`发布回复失败`,viewMore:`查看更多`},replyDetail:{commentDetail:`评论详情`,dislike:`踩`,dislikeHint:`你已经点踩过了`,fetchRepliesFailed:`获取回复列表失败`,follow:`关注`,followFailed:`关注失败`,followed:`已关注`,invalidReplyTarget:`无效回复对象`,like:`赞`,loginRequired:`请先登录`,publishReplyFailed:`发布回复失败`,reply:`回复`,underReview:`内容审核中`,unfollowFailed:`取消关注失败`}},contact:{contactList:{myFollowing:`我的关注`,noFollowingUsers:`你还没有关注任何用户`,noMore:`没有更多了`,noSearchResult:`没有搜索到结果`},contactSearch:{cancel:`取消`,close:`关闭`,placeholder:`请搜索你想@的人`}},detail:{detailFollowAction:{follow:`关注`,following:`已关注`},detailGuessLike:{title:`猜你喜欢`},detailIntroduction:{collapse:`收起`,expand:`展开`,score:`评分`},detailOperate:{collectAdded:`已加入`,collectFailed:`收藏失败`,collection:`收藏`,defaultCollection:`默认收藏夹`,like:`赞`,likeFailed:`点赞失败`,likeSuccess:`已点赞`,modifyCollection:`修改收藏夹`,modifyCollectionSuccess:`修改收藏夹成功`,operateFailed:`操作失败,请重试`,share:`分享`,uncollectSuccess:`已取消收藏`,unlikeSuccess:`已取消点赞`},detailPopularComments:{emptyPrompt:`期待你发布第一条评论`,like:`赞`,mediaPlaceholder:`[图片/视频]`,popularComments:`热门评论`},detailTabs:{discussion:`讨论`,video:`视频`},postRecommendList:{title:`相关推荐`},videoHero:{coverAlt:`视频播放器封面`,noVideos:`暂无可播放的视频`}},fullscreenFeed:{variants:{fullscreenVideoFeed:{runtime:{client:{contentLoading:`内容加载中...`}}}}},imageTextRecommend:{allEpisodes:`全{count}集`,defaultTitle:`推荐视频`,noCover:`无封面`,updatedTo:`更至{count}集`},marquee:{noticeAlt:`公告`},navBar:{variants:{basicNavBar:{runtime:{channelFilterDialog:{add:`添加`,allAddedTo:`已经全部添加到`,allChannels:`全部频道`,delete:`删除`,moreChannels:`更多频道`,myChannels:`我的频道`,resetDefault:`恢复默认`},moreChannelEntry:`其他`}}}},searchHistory:{clear:`清理`,clearAllHistory:`删除全部历史`,confirmClearDescription:`确认删除全部搜索历史吗?`,defaultTitle:`搜索历史`,mockHistory1:`示例历史1`,mockHistory2:`示例历史2`,mockHistory3:`示例历史3`},textRecommend:{defaultTitle:`推荐搜索`,refreshBatch:`换一批`}}},common:{blockedDialog:{contactSupport:`联系客服`,description:`由于:{remark},您的账号被限制登录
|
|
3
3
|
解封时间:{unblockTime}
|
|
4
4
|
如非本人操作,可联系客服或提出申诉`,gotIt:`我知道了`,remarkDefault:`检测到异常行为`,title:`账号已被限制`,unblockTimePermanent:`永久封禁`},collectionPopup:{collectSuccess:`收藏成功`,coverAlt:`封面图`,createCollection:`创建合集`,createCollectionHint:`可以去创建你的合集`,createModalAction:`确定`,createModalTitle:`新建收藏夹`,favoriteToCollectionTitle:`收藏到合集`,newCollection:`新建`,noCollections:`暂无合集`,postsCountSuffix:`篇贴子`,selectTitle:`选择收藏夹`,updateSuccess:`修改收藏夹成功`},debugLocaleSwitcher:{current:`当前`,languageDebugging:`语言调试`},deleteConfirmDialog:{cancel:`取消`,confirm:`确认删除`,description:`删除后无法恢复`},followButton:{follow:`关注`,followFailed:`关注失败`,following:`已关注`,loginFailed:`登录失败`,loginRequired:`请先登录`,unfollowConfirmDialog:{cancel:`取消`,confirm:`确定`,confirmUnfollow:`确认要取消关注吗`},unfollowFailed:`取消关注失败`},imageCropModal:{cancel:`取消`,confirm:`确认`,processing:`处理中...`},infoCard:{cardBottom:{comment:`评论`,dislike:`踩`,like:`赞`,share:`分享`}},list:{collectionList:{collectionListItem:{contentCountSuffix:`个内容`,movieLabel:`电影`}}},photoGrid:{episodeLoading:`剧集加载中`,missingEpisode:`缺少有效的剧集`,noEpisodes:`暂无可播放的剧集`},picker:{genderPicker:{cancel:`取消`,confirm:`确认`,options:{female:`女`,male:`男`,secret:`保密`},title:`选择性别`},pickerDrawer:{cancel:`取消`,confirm:`确认`,title:`请选择`}},seriesEpisodes:{compactTotal:`共{total}集`,completedSeriesTotal:`完结剧集:共{total}集`,episodeLabel:`第{episode}集`,episodeNotFound:`剧集不存在`,episodeSwitchFailed:`剧集切换失败`,episodeSwitching:`切换中...`,episodeTitle:`分集标题`,ongoingSeriesTotal:`连载剧集:共{total}集`,ongoingSeriesUpdatedTo:`连载剧集:更新至{total}集`,selectorTitle:`选集`,singleContent:`单集内容`},sharePopup:{shareContent:{copyFailed:`复制失败`,copyShareLink:`复制链接`,copySuccess:`复制成功`,shareHint:`可以粘贴链接分享给好友`,shareLinksTitle:`分享链接`},shareDrawer:{cancel:`取消`,collectionLabel:`收藏`,label:`取消收藏`,moments:`朋友圈`,wechat:`微信`,wechatFriend:`微信好友`}},skeleton:{loading:`加载中`},title:`确认删除该内容吗?`},pages:{collectionAdd:{page:{collectionNotFound:`未找到合集信息`,done:`完成`,emptyPublish:`暂无可添加的帖子`,selectPostFirst:`请先选择帖子`,submitFailed:`添加失败,请稍后再试`,submitSuccess:`添加成功`,submitting:`添加中...`,title:`添加帖子到合集`,userNotFound:`未找到用户信息`}},collectionCreate:{form:{addCover:`添加封面`,clear:`清除`,collectionNotFound:`未找到收藏夹信息`,coverAlt:`收藏夹封面`,coverLabel:`封面`,coverUploadFailed:`上传封面失败`,create:`创建`,createFailed:`创建失败`,createSuccess:`创建成功`,createTitle:`创建收藏夹`,creating:`创建中...`,descriptionLabel:`说明`,descriptionPlaceholder:`请输入收藏夹说明`,descriptionRequired:`请输入收藏夹说明`,editTitle:`编辑收藏夹`,label:`名称`,save:`保存`,saveFailed:`保存失败`,saveSuccess:`保存成功`,saving:`保存中...`,signatureLabel:`个人签名`,titlePlaceholder:`请输入收藏夹名称`,titleRequired:`请输入收藏夹名称`,uploading:`上传中...`}},collectionDetail:{components:{collectionDetailCard:{collectedInLabel:`收藏于`}},detail:{add:`添加内容`,cancel:`取消`,collectionManageTitle:`收藏夹管理`,contentCountSuffix:`款内容`,coverAlt:`收藏夹封面`,defaultCollectionDeleteNotSupported:`默认收藏夹不支持删除`,defaultTitle:`收藏夹`,delete:`删除`,deleteCollection:`删除收藏夹`,deleteFailed:`删除失败`,deleteSuccess:`收藏夹已删除`,deleting:`删除中...`,done:`完成`,editCollection:`编辑收藏夹`,emptyContent:`暂无内容`,manageCollection:`管理收藏夹`,operationFailed:`操作失败,请稍后再试`,ownerAvatarAlt:`收藏夹拥有者`,pleaseLogin:`请先登录`,selectAll:`全选`,subscribe:`订阅`,subscribeOperateFailed:`订阅操作失败`,subscribeProcessing:`处理中...`,subscribeSuccess:`订阅成功`,subscribed:`已订阅`,uncollectFailed:`取消收藏失败`,uncollectSuccess:`已取消收藏`,unsubscribeSuccess:`已取消订阅`,updatedSuffix:`更新`}},edit:{page:{avatarUpdateSuccess:`更换完成`,avatarUploadFailed:`头像上传失败,请稍后再试`,avatarUploading:`上传中...`,clickToChangeAvatar:`点击更换头像`,displayIdLabel:`展示ID`,editBlockedWhileSaving:`资料保存中,请稍后再编辑其他内容`,genderFemale:`女`,genderLabel:`性别`,genderMale:`男`,genderSecret:`保密`,genderSelect:`请选择`,genderUpdateSuccess:`性别修改成功`,imageTypeInvalid:`仅支持 JPG/JPEG/PNG 格式`,label:`昵称`,loading:`加载中`,nicknameInvalidChars:`昵称只支持特殊符号”_ 下划线“、- 连字符和. 点`,nicknamePlaceholder:`请输入昵称`,nicknameRequired:`请输入昵称`,nicknameTooShort:`昵称至少 2 个字符`,nicknameUpdateSuccess:`昵称修改成功`,save:`保存`,saveFailed:`保存失败,请稍后再试`,saveSuccess:`保存成功`,savingInProgress:`保存中,请稍候`,signatureLabel:`个人签名`,signaturePlaceholder:`请输入个人签名`,signatureTooShort:`个人签名至少 2 个字符`,signatureUpdateSuccess:`个人签名修改成功`,submit:`提交`,title:`编辑资料`,updateFailed:`修改失败,请稍后重试`,userNotFound:`未找到用户信息`}},feedSeries:{feedSeriesClient:{episodeLoading:`剧集加载中`,episodeSelectorTitle:`选集`,missingEpisode:`缺少有效的剧集`,noEpisodes:`暂无可播放的剧集`},page:{videoLoading:`视频加载中...`}},feedback:{components:{feedbackForm:{addScreenshot:`添加截图`,alt:`反馈截图`,contactLabel:`联系方式`,contentMinLength:`问题描述至少 4 个字符`,delete:`删除`,imageTypeInvalid:`仅支持 JPG/JPEG/PNG 格式`,label:`反馈内容`,loading:`提交中...`,message:`修改失败,请稍后重试`,missingContact:`请输入联系方式`,missingFeedback:`请输入反馈内容`,missingScreenshot:`请上传截图`,optional:`选填`,placeholder:`请输入内容`,placeholder1_6d0242:`请输入您的邮箱或手机号,以方便解决您的问题`,screenshotHint:`可上传最多 3 张截图,帮助我们更快定位问题`,screenshotLabel:`上传截图`,screenshotUploadFailed:`截图上传失败,请稍后再试`,submit:`提交`,submitsuccess:`反馈成功,我们将尽快为您解决`,title:`意见反馈`,uploading:`上传中...`}}},follow:{components:{followButton:{follow:`关注`,following:`已关注`},interactionTabs:{fans:`粉丝`,follow:`关注`},userList:{follow:`关注`,followBack:`回关`,followNow:`去关注`,noFans:`没有任何粉丝`,noFollowedUsers:`没有关注任何用户`}},pages:{fans:{privateListUnavailable:`该粉丝列表暂未对外开放`},followed:{privateListUnavailable:`该关注列表暂未对外开放`}}},fullscreenFeed:{page:{episodeSelectorTitle:`选集`,missingParams:`缺少推荐位或剧集参数`}},login:{forgot:{back:`返回`,emailPlaceholder:`请输入邮箱号`,getCode:`获取验证码`,loginLink:`登录已有账号`,or:`或`,sendFailed:`发送失败,请稍后重试`,sending:`发送中…`,title:`忘记密码`},index:{loginFailed:`登录失败,请稍后重试`,loginSuccess:`登录成功`},loginClient:{agreeToTerms:`我已阅读并同意用户协议与隐私政策`,agreeToTermsPrefix:`我已经阅读并同意`,and:`和`,close:`关闭`,emailPlaceholder:`请输入邮箱`,forgotPassword:`忘记密码`,hidePassword:`隐藏密码`,loggingIn:`登录中…`,login:`登录`,noAccount:`没有账号?去`,passwordPlaceholder:`请输入密码`,privacyPolicy:`隐私政策`,registerLink:`注册`,showPassword:`显示密码`,subtitle:`注册登录账号即可查看更多精彩视频`,title:`欢迎👋`,userAgreement:`用户协议`},password:{back:`返回`,confirmModify:`确认修改`,confirmPasswordPlaceholder:`请再次输入登录密码`,confirmReset:`确认重置`,passwordInvalidCharacters:`仅支持字母、数字和指定特殊字符`,passwordNeedTwoTypes:`至少包含2种字符类型(大写/小写/数字/特殊字符)`,passwordPlaceholder:`请输入8-32位密码`,passwordSetSuccess:`密码设置成功`,passwordTooLong:`密码长度不能超过32位`,passwordTooShort:`密码长度不能少于8位`,passwordsNotMatch:`两次密码输入不一致`,register:`注册`,setLoginPassword:`设置登录密码`,setNewPassword:`设置新密码`,submitFailed:`提交失败,请稍后重试`,submitting:`提交中…`},register:{back:`返回`,emailPlaceholder:`请输入邮箱`,getCode:`注册`,hasAccount:`已有账号?去`,invalidEmail:`请输入正确的邮箱地址`,loginLink:`登录`,sendFailed:`发送失败,请稍后重试`,sending:`发送中…`,title:`免费注册`},resetPassword:{back:`返回`,codePlaceholder:`请输入验证码`,passwordRuleHint:`新密码需8-32位,且至少包含2种字符类型(大写/小写/数字/特殊字符)`,resend:`重新发送`,sendCode:`发送验证码`,sendFailed:`发送失败,请稍后重试`,title:`修改密码`,verifyEmail:`验证邮箱`,verifyFailed:`验证失败,请稍后重试`,verifyHint:`进行验证`,verifyViaEmail:`通过已绑定邮箱`,verifying:`验证中…`},verify:{back:`返回`,invalidCode:`验证码无效`,nextStep:`提交`,resend:`重新发送`,resendCountdown:`重新发送({seconds}秒)`,sentTo:`已经发送至`,title:`请输入验证码`,verifying:`提交中…`}},postDetail:{postDetailClient:{comment:`评论`,postDeleted:`该帖子已被删除`,postOffline:`该帖子已下架`,reactions:`人表态`}},profile:{client:{collect:`收藏`,collectionNotPublic:`该收藏暂未公开`,editProfile:`编辑资料`,exploreAdventures:`探索奇幻的冒险吧。`,follow:`关注`,followFailed:`关注失败`,followSuccess:`关注成功`,followed:`已关注`,history:`历史`,imageTooLarge:`图片过大,请选择小于5MB的图片`,imageTypeInvalid:`仅支持 JPG/JPEG/PNG 格式`,like:`点赞`,likeNotPublic:`点赞列表暂未公开`,loginNow:`立即登录`,loginRequiredForUpload:`请先登录后再试`,loginToSeeMoreVideos:`登录后查看更多精彩视频`,loginToView:`登录后可查看`,mediaUpdateSuccess:`更换完成`,operationFailed:`操作失败,请稍后再试`,processing:`处理中...`,publish:`发布`,unfollowFailed:`取消关注失败`,unfollowSuccess:`已取消关注`,uploadFailed:`上传失败,请稍后重试`,welcomeToPlanet:`欢迎来到星球`},components:{tabs:{collectTab:{cancel:`取消`,cancelSelectAll:`取消全选`,collections:`收藏夹`,created:`创建的`,delete:`删除`,deleteConfirmDescription:`确认将所选内容从收藏中移除?`,edit:`编辑`,emptyContent:`您还没有收藏任何内容`,noCreatedCollections:`暂无创建的合集`,noSubscribedCollections:`暂无订阅的合集`,operationFailed:`操作失败,请稍后再试`,pleaseLogin:`请先登录`,posts:`帖子`,processing:`处理中...`,selectAll:`全选`,subscribed:`订阅的`,uncollectFailed:`取消收藏失败`,uncollectedSuccess:`已取消收藏`,video:`视频`},historyTab:{cancel:`取消`,delete:`删除`,deleteFailed:`删除失败`,edit:`编辑`,emptyContent:`您还没有观看记录`,historyDeletedSuccess:`已删除浏览记录`,operationFailed:`操作失败,请稍后再试`,pleaseLogin:`请先登录`,posts:`帖子`,processing:`处理中...`,selectAll:`全选`,video:`视频`},likeTab:{cancel:`取消`,delete:`删除`,edit:`编辑`,emptyContent:`您还没有点赞任何内容`,operationFailed:`操作失败,请稍后再试`,pleaseLogin:`请先登录`,posts:`帖子`,processing:`处理中...`,selectAll:`全选`,unlikeFailed:`取消点赞失败`,unlikedSuccess:`已取消点赞`,video:`视频`},publishTab:{deleteFailed:`删除失败`,deleteSuccess:`删除成功`,emptyText:`暂无发布内容`}},userProfileHeader:{fans:`粉丝`,follow:`关注`,likesReceived:`获赞`}}},publish:{components:{collection:{createCollection:`创建合集`,moreCollections:`更多合集`,syncToCollection:`同步到合集`},collectionCard:{contentCountSuffix:`条内容`},collectionPopup:{noCollections:`暂无合集`,syncToCollection:`同步到合集`},coverItem:{coverAlt:`封面`,editCover:`编辑封面`,uploadImage:`上传封面`},editor:{headlineHint:`有标题、画面清晰无水印的作品曝光会更多哦`},header:{publish:`发布`},materialItem:{deleteMaterial:`删除素材`,uploadImage:`上传图片`,videoCover:`视频封面`},mediaPreview:{previewAlt:`预览`},uploadProgress:{uploading:`上传中`}},pageClient:{cancel:`取消`,editContentFirst:`请先编辑内容`,maxMaterialCount:`最多上传 9 个素材`,publishFailed:`发布失败,请稍后再试`,publishSuccess:`发布成功`,resume:`继续`,switchToPostConfirm:`切换到帖子会清空主视频,是否继续?`,switchToVideoConfirm:`切换到视频会清空已有素材,是否继续?`,title:`确认切换`,uploadFailedCount:`{count} 个文件上传失败`}},search:{hotRecommend:{hotPostsTitle:`热门帖子`,hotVideosTitle:`热门视频`},hotSearch:{recommendedSearches:`推荐搜索`},pageClient:{searchHistory:`搜索历史`,tabs:{all:`全部`,post:`帖子`,user:`用户`,video:`视频`}},searchResult:{searchAll:{emptyResult:`未检索到内容`,more:`更多`,relatedSuffix:`相关`},searchUser:{emptyResult:`未检索到内容`,followersSuffix:`人关注`},searchVideoInfo:{noRelevantContent:`未检索到内容`}},topHeader:{placeholder:`请输入搜索关键词`,search:`搜索`}},settings:{components:{resetPasswordDrawer:{boundEmailNotice:`目前已绑定邮箱号`,codeSentSuccess:`验证码已发送`,confirmPasswordPlaceholder:`请再次确认您的密码`,passwordPlaceholder:`请输入您的密码`,passwordResetSuccess:`密码修改成功`,resendAfter:`后可重发`,resendCountdown:`重新发送({seconds}秒)`,resetFailed:`修改失败,请稍后重试`,resetPassword:`提交`,sendCode:`获取验证码`,sendFailed:`发送失败,请稍后重试`,sending:`发送中...`,setNewPasswordHint:`设置密码`,submitting:`提交中...`,title:`重置密码`,verifyEmailButton:`验证邮箱`,verifyFailed:`验证失败,请检查验证码`,verifyHint:`进行验证`,verifySuccess:`验证成功`,verifyTitle:`请输入验证码`,verifying:`验证中...`},settings:{button:`退出登录`,cancel:`取消`,collectionsTitle:`合集`,confirm:`确认`,feedbackTitle:`反馈`,follow:`关注`,followersTitle:`粉丝`,languageTitle:`语言`,like:`点赞`,listPrivateHint:`该列表会设为私密`,logoutConfirmMessage:`确定要退出登录吗?`,privacySettingsTitle:`隐私设置`,resetPasswordTitle:`重置密码`,switchTo:`切换为`,title:`设置中心`,whenOff:`关闭后`}}},userFollow:{components:{comprehensiveTab:{empty:`暂无内容,去别处看看吧。`,postsFeed:`帖子`},contentItem:{filmAndTv:`影视相关`},followNoLogin:{login:`登录`,notLoggedIn:`您还未登录`},followNoUser:{empty:`你还没有关注任何人哦`},followedList:{newUpdate:`有更新`,seeAll:`查看全部`},postTab:{empty:`暂未关注任何帖子`}},page:{tabs:{posts:`帖子`}}},videoDetail:{videoDetailClient:{videoDeleted:`该视频已被删除`,videoUnavailable:`该视频已下架`}}},ui:{infiniteScroll:{failed:`加载失败,点击重试`,loading:`加载中`,noMore:`没有更多了`},list:{empty:`暂无内容`,loading:`加载中`,postList:{earlier:`更早`,empty:`暂无浏览记录`,postListItem:{coverAlt:`帖子封面`},today:`今天`,yesterday:`昨天`},userActivityList:{earlier:`更早`,empty:`暂无浏览记录`,today:`今天`,userActivityListActions:{comment:`评论`,dislike:`踩`,like:`赞`,likeFailed:`点赞失败`,share:`分享`},userActivityListItem:{collapse:`收起`,collectFailed:`收藏失败`,expand:`展开`,mediaAlt:`动态图片`},yesterday:`昨天`},videoList:{earlier:`更早`,empty:`暂无观看记录`,today:`今天`,videoListItem:{coverAlt:`视频封面`,movie:`电影`,series:`剧集`,watchUntil:`已观看 `},yesterday:`昨天`}},loading:{label:`加载中...`}}},tabBar:{follow:`关注`,home:`首页`,message:`消息`,mine:`我的`}};export{e as default};
|
package/dist/materials.d.mts
CHANGED
|
@@ -39,6 +39,5 @@ import { headerLogoSearchMaterial } from "./components/biz/business/header-searc
|
|
|
39
39
|
import { headerSearchMaterial } from "./components/biz/business/header-search/header-search/material.mjs";
|
|
40
40
|
import "./components/biz/business/header-search/index.mjs";
|
|
41
41
|
import { largeFeatureGridMaterial } from "./components/biz/business/large-feature-grid/material.mjs";
|
|
42
|
-
import { rankingRecommendMaterial } from "./components/biz/business/ranking-recommend/material.mjs";
|
|
43
42
|
import { shortcutGridMaterial } from "./components/biz/business/shortcut-grid/material.mjs";
|
|
44
|
-
export { BannerCarouselMaterial, bannerAdMaterial, channelListMaterial, exampleButtonMaterial, floatingAdMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, hotRecommendMaterial, iconAdMaterial, imageTextRecommendMaterial, largeFeatureGridMaterial, marqueeMaterial, popupAdMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial,
|
|
43
|
+
export { BannerCarouselMaterial, bannerAdMaterial, channelListMaterial, exampleButtonMaterial, floatingAdMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, hotRecommendMaterial, iconAdMaterial, imageTextRecommendMaterial, largeFeatureGridMaterial, marqueeMaterial, popupAdMaterial, profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground, profileMainMaterial, searchHistoryMaterial, searchInputMaterial, shortcutGridMaterial, tabBarMaterial, textAdMaterial, textRecommendMaterial, videoDetailActionsMaterial, videoDetailInfoMaterial, videoDetailInfoTitleTagsEpisodesMaterial, videoDetailPlayerBridgeOnlyMaterial, videoDetailPlayerMaterial, videoDetailRecommendMaterial };
|
package/dist/materials.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{bannerAdMaterial as t}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{floatingAdMaterial as n}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdMaterial as r}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{popupAdMaterial as i}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdMaterial as a}from"./components/biz/business/advertisement/text-ad/material.mjs";import{floatingBallMaterial as o}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as s}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as c}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{hotRecommendMaterial as l}from"./components/biz/business/hot-recommend/material.mjs";import{imageTextRecommendMaterial as u}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as d}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as f,profileHeaderMaterialWithDisabledBackground as p}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as m}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as h}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as g}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as _}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as v}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as y}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as b}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as x}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as S}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as C}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as w}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailPlayerBridgeOnlyMaterial as T}from"./components/biz/business/detail/video-detail-player-bridge-only/material.mjs";import{videoDetailRecommendMaterial as E}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as D}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as O}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as k}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as A}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as j}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as M}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as N}from"./components/biz/business/large-feature-grid/material.mjs";import{
|
|
2
|
+
import{__exportAll as e}from"./_virtual/_rolldown/runtime.mjs";import{bannerAdMaterial as t}from"./components/biz/business/advertisement/banner-ad/material.mjs";import{floatingAdMaterial as n}from"./components/biz/business/advertisement/floating-ad/material.mjs";import{iconAdMaterial as r}from"./components/biz/business/advertisement/icon-ad/material.mjs";import{popupAdMaterial as i}from"./components/biz/business/advertisement/popup-ad/material.mjs";import{textAdMaterial as a}from"./components/biz/business/advertisement/text-ad/material.mjs";import{floatingBallMaterial as o}from"./components/biz/business/floating-ball/material.mjs";import{homeRecommendGridMaterial as s}from"./components/biz/business/home-recommend/home-recommend-grid/material.mjs";import{homeRecommendWaterfallMaterial as c}from"./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";import{hotRecommendMaterial as l}from"./components/biz/business/hot-recommend/material.mjs";import{imageTextRecommendMaterial as u}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as d}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as f,profileHeaderMaterialWithDisabledBackground as p}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as m}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as h}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as g}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as _}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as v}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as y}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as b}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as x}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as S}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as C}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as w}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailPlayerBridgeOnlyMaterial as T}from"./components/biz/business/detail/video-detail-player-bridge-only/material.mjs";import{videoDetailRecommendMaterial as E}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as D}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as O}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as k}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as A}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as j}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as M}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as N}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as P}from"./components/biz/business/shortcut-grid/material.mjs";var F=e({BannerCarouselMaterial:()=>b,bannerAdMaterial:()=>t,channelListMaterial:()=>x,exampleButtonMaterial:()=>y,floatingAdMaterial:()=>n,floatingBallMaterial:()=>o,headerAvatarIconMaterial:()=>O,headerAvatarLogoSearchIconMaterial:()=>A,headerAvatarLogoSearchMaterial:()=>k,headerLogoSearchMaterial:()=>j,headerSearchMaterial:()=>M,homeRecommendGridMaterial:()=>s,homeRecommendWaterfallMaterial:()=>c,hotRecommendMaterial:()=>l,iconAdMaterial:()=>r,imageTextRecommendMaterial:()=>u,largeFeatureGridMaterial:()=>N,marqueeMaterial:()=>d,popupAdMaterial:()=>i,profileHeaderMaterial:()=>f,profileHeaderMaterialWithDisabledBackground:()=>p,profileMainMaterial:()=>m,searchHistoryMaterial:()=>h,searchInputMaterial:()=>g,shortcutGridMaterial:()=>P,tabBarMaterial:()=>_,textAdMaterial:()=>a,textRecommendMaterial:()=>v,videoDetailActionsMaterial:()=>D,videoDetailInfoMaterial:()=>S,videoDetailInfoTitleTagsEpisodesMaterial:()=>C,videoDetailPlayerBridgeOnlyMaterial:()=>T,videoDetailPlayerMaterial:()=>w,videoDetailRecommendMaterial:()=>E});export{b as BannerCarouselMaterial,t as bannerAdMaterial,x as channelListMaterial,y as exampleButtonMaterial,n as floatingAdMaterial,o as floatingBallMaterial,O as headerAvatarIconMaterial,A as headerAvatarLogoSearchIconMaterial,k as headerAvatarLogoSearchMaterial,j as headerLogoSearchMaterial,M as headerSearchMaterial,s as homeRecommendGridMaterial,c as homeRecommendWaterfallMaterial,l as hotRecommendMaterial,r as iconAdMaterial,u as imageTextRecommendMaterial,N as largeFeatureGridMaterial,d as marqueeMaterial,F as materials_exports,i as popupAdMaterial,f as profileHeaderMaterial,p as profileHeaderMaterialWithDisabledBackground,m as profileMainMaterial,h as searchHistoryMaterial,g as searchInputMaterial,P as shortcutGridMaterial,_ as tabBarMaterial,a as textAdMaterial,v as textRecommendMaterial,D as videoDetailActionsMaterial,S as videoDetailInfoMaterial,C as videoDetailInfoTitleTagsEpisodesMaterial,T as videoDetailPlayerBridgeOnlyMaterial,w as videoDetailPlayerMaterial,E as videoDetailRecommendMaterial};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
const e=8,t=32,n=`!@#$%^&*+-=()[]{}_,.:;<>"'\``;function r(e){switch(e.type){case`too-short`:return`密码至少 8 位`;case`too-long`:return`密码不能超过 32 位`;case`need-two-types`:return`密码需包含字母、数字或符号中的至少两种`;case`invalid-char`:return`密码包含不支持的字符 "${e.invalidChar}"`;case`not-match`:return`两次输入的密码不一致`;default:return``}}function i(e){let t=!1,r=!1,i=!1;for(let a of e){if(/[A-Z]/i.test(a)){t=!0;continue}if(/\d/.test(a)){r=!0;continue}n.includes(a)&&(i=!0)}return Number(t)+Number(r)+Number(i)}function a(e){for(let t of e)if(!/[A-Z]/i.test(t)&&!/\d/.test(t)&&!n.includes(t))return t;return``}function o(e,t){if(e.length===0||t.length===0)return{type:`none`,invalidChar:``};if(e.length<8)return{type:`too-short`,invalidChar:``};if(e.length>32)return{type:`too-long`,invalidChar:``};
|
|
2
|
+
const e=8,t=32,n=`!@#$%^&*+-=()[]{}_,.:;<>"'\``;function r(e){switch(e.type){case`too-short`:return`密码至少 8 位`;case`too-long`:return`密码不能超过 32 位`;case`need-two-types`:return`密码需包含字母、数字或符号中的至少两种`;case`invalid-char`:return`密码包含不支持的字符 "${e.invalidChar}"`;case`not-match`:return`两次输入的密码不一致`;default:return``}}function i(e){let t=!1,r=!1,i=!1;for(let a of e){if(/[A-Z]/i.test(a)){t=!0;continue}if(/\d/.test(a)){r=!0;continue}n.includes(a)&&(i=!0)}return Number(t)+Number(r)+Number(i)}function a(e){for(let t of e)if(!/[A-Z]/i.test(t)&&!/\d/.test(t)&&!n.includes(t))return t;return``}function o(e,t){if(e.length===0||t.length===0)return{type:`none`,invalidChar:``};if(e.length<8)return{type:`too-short`,invalidChar:``};if(e.length>32)return{type:`too-long`,invalidChar:``};let n=a(e);return n?{type:`invalid-char`,invalidChar:n}:i(e)<2?{type:`need-two-types`,invalidChar:``}:e===t?{type:`none`,invalidChar:``}:{type:`not-match`,invalidChar:``}}export{n as PASSWORD_ALLOWED_SPECIAL_CHARS,t as PASSWORD_MAX_LENGTH,e as PASSWORD_MIN_LENGTH,a as getFirstInvalidPasswordChar,i as getPasswordCharacterTypeCount,r as getPasswordValidationErrorText,o as validatePasswordPair};
|
|
@@ -6,10 +6,10 @@ type InspectorFieldOption<T> = Omit<T, 'type'>;
|
|
|
6
6
|
declare const stringInspectorFieldSchema: z.ZodObject<{
|
|
7
7
|
type: z.ZodLiteral<"string">;
|
|
8
8
|
fieldType: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
select: "select";
|
|
9
10
|
input: "input";
|
|
10
11
|
textarea: "textarea";
|
|
11
12
|
color: "color";
|
|
12
|
-
select: "select";
|
|
13
13
|
}>>;
|
|
14
14
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
15
15
|
label: z.ZodOptional<z.ZodString>;
|
|
@@ -68,10 +68,10 @@ type ObjectInspectorFieldOption = InspectorFieldOption<z.infer<typeof objectInsp
|
|
|
68
68
|
declare const componentInspectorFieldMetaSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
69
|
type: z.ZodLiteral<"string">;
|
|
70
70
|
fieldType: z.ZodOptional<z.ZodEnum<{
|
|
71
|
+
select: "select";
|
|
71
72
|
input: "input";
|
|
72
73
|
textarea: "textarea";
|
|
73
74
|
color: "color";
|
|
74
|
-
select: "select";
|
|
75
75
|
}>>;
|
|
76
76
|
defaultValue: z.ZodOptional<z.ZodString>;
|
|
77
77
|
label: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { RankingRecommendInspectorProps } from "./schema.mjs";
|
|
3
|
-
import { RankingCardItem } from "./shared.mjs";
|
|
4
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
|
-
|
|
6
|
-
//#region components/biz/business/ranking-recommend/client.d.ts
|
|
7
|
-
type RankingRecommendProps = RankingRecommendInspectorProps & {
|
|
8
|
-
prefetchItems?: RankingCardItem[];
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* 推荐榜物料组件 - 客户端部分
|
|
12
|
-
* - 智能铺设开启:按标签调用热门列表接口,随机铺设推荐位
|
|
13
|
-
* - 智能铺设关闭:按配置的内容 ID 取数
|
|
14
|
-
*/
|
|
15
|
-
declare function RankingRecommendClient(props: RankingRecommendProps): react_jsx_runtime0.JSX.Element | null;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { RankingRecommendClient, RankingRecommendProps };
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{isClient as e}from"../../../../utils/common.mjs";import{pContentBatchGetVideoDetail as t,pContentGetPopularVideoList as n}from"../../../../service/generated/client.mjs";import{pContentGetPopularVideoListKey as r}from"../../../../service/generated/tanstack.mjs";import{Box as i}from"../../../ui/box.mjs";import{Text as a}from"../../../ui/text.mjs";import o from"../../../ui/link.mjs";import{buildImageTextRecommendSmartPicked as s,getImageTextRecommendLayoutTags as c}from"../../../../hooks/image-text-recommend.mjs";import{useRequest as l}from"../../../../hooks/query/use-query.mjs";import u from"../../../../assets/icons/common/right_arrow_thin.mjs";import{buildRankingCardList as d,buildSmartRankingCardList as f,normalizeContentId as p,resolveCoverDisplaySrc as m,resolveOrderedContentIds as h}from"./shared.mjs";import{buildSmartPopularQuery as g,buildStableChosenTags as _}from"./shared/query.mjs";import{useEffect as v,useMemo as y,useRef as b,useState as x}from"react";import{jsx as S,jsxs as C}from"react/jsx-runtime";function w(e){let t=e===`nebula`?`
|
|
3
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 138" fill="none">
|
|
4
|
-
<defs>
|
|
5
|
-
<linearGradient id="bg" x1="10" y1="6" x2="84" y2="132" gradientUnits="userSpaceOnUse">
|
|
6
|
-
<stop stop-color="#120B25"/>
|
|
7
|
-
<stop offset="0.45" stop-color="#28306D"/>
|
|
8
|
-
<stop offset="1" stop-color="#05030D"/>
|
|
9
|
-
</linearGradient>
|
|
10
|
-
<radialGradient id="cyan" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(33 34) rotate(62) scale(39 30)">
|
|
11
|
-
<stop stop-color="#74DEFF"/>
|
|
12
|
-
<stop offset="1" stop-color="#74DEFF" stop-opacity="0"/>
|
|
13
|
-
</radialGradient>
|
|
14
|
-
<radialGradient id="pink" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(72 28) rotate(118) scale(48 37)">
|
|
15
|
-
<stop stop-color="#FF51D7"/>
|
|
16
|
-
<stop offset="1" stop-color="#FF51D7" stop-opacity="0"/>
|
|
17
|
-
</radialGradient>
|
|
18
|
-
<linearGradient id="hair" x1="21" y1="30" x2="69" y2="109" gradientUnits="userSpaceOnUse">
|
|
19
|
-
<stop stop-color="#1E2A77"/>
|
|
20
|
-
<stop offset="1" stop-color="#5A1B6F"/>
|
|
21
|
-
</linearGradient>
|
|
22
|
-
</defs>
|
|
23
|
-
<rect width="100" height="138" rx="4" fill="url(#bg)"/>
|
|
24
|
-
<rect width="100" height="138" rx="4" fill="url(#cyan)"/>
|
|
25
|
-
<rect width="100" height="138" rx="4" fill="url(#pink)"/>
|
|
26
|
-
<path d="M12 47C20 28 34 18 49 18C67 18 82 31 85 53C79 46 71 42 60 42C48 42 39 47 30 58L12 47Z" fill="url(#hair)" opacity="0.95"/>
|
|
27
|
-
<path d="M28 70C28 50 38 36 52 36C64 36 73 46 73 62C73 82 62 100 50 100C38 100 28 89 28 70Z" fill="#F0E7FF"/>
|
|
28
|
-
<path d="M25 48C32 38 39 34 47 34C38 44 34 58 34 72C34 87 39 98 49 105C32 102 20 84 20 64C20 58 22 52 25 48Z" fill="#0E0D1A" opacity="0.9"/>
|
|
29
|
-
<path d="M53 43C63 44 71 54 71 67C71 75 68 82 63 87C60 81 58 73 58 64C58 56 60 49 63 44L53 43Z" fill="#EAE6FF" opacity="0.65"/>
|
|
30
|
-
<path d="M21 21L35 11L49 19L46 39L32 43L16 34L21 21Z" fill="#EFF4FF" opacity="0.82"/>
|
|
31
|
-
<path d="M20 20L35 11L41 18L29 28L21 21Z" fill="#74DEFF" opacity="0.8"/>
|
|
32
|
-
<circle cx="44" cy="63" r="4" fill="#2A2C63"/>
|
|
33
|
-
<circle cx="44.5" cy="62.5" r="1.5" fill="#D9ECFF"/>
|
|
34
|
-
<path d="M52 83C56 86 61 86 65 83" stroke="#C3B8F6" stroke-width="2" stroke-linecap="round"/>
|
|
35
|
-
<path d="M61 58L72 52" stroke="#7ED7FF" stroke-width="2.5" stroke-linecap="round" opacity="0.7"/>
|
|
36
|
-
<path d="M22 96C32 86 47 81 65 80" stroke="#FF7AE0" stroke-width="3" stroke-linecap="round" opacity="0.45"/>
|
|
37
|
-
</svg>
|
|
38
|
-
`:`
|
|
39
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 138" fill="none">
|
|
40
|
-
<defs>
|
|
41
|
-
<linearGradient id="bg" x1="17" y1="7" x2="83" y2="132" gradientUnits="userSpaceOnUse">
|
|
42
|
-
<stop stop-color="#12080D"/>
|
|
43
|
-
<stop offset="0.5" stop-color="#34111C"/>
|
|
44
|
-
<stop offset="1" stop-color="#04060D"/>
|
|
45
|
-
</linearGradient>
|
|
46
|
-
<radialGradient id="red" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(42 33) rotate(52) scale(34 30)">
|
|
47
|
-
<stop stop-color="#FF516E"/>
|
|
48
|
-
<stop offset="1" stop-color="#FF516E" stop-opacity="0"/>
|
|
49
|
-
</radialGradient>
|
|
50
|
-
<radialGradient id="cyan" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(70 79) rotate(118) scale(44 31)">
|
|
51
|
-
<stop stop-color="#3CC8FF"/>
|
|
52
|
-
<stop offset="1" stop-color="#3CC8FF" stop-opacity="0"/>
|
|
53
|
-
</radialGradient>
|
|
54
|
-
</defs>
|
|
55
|
-
<rect width="100" height="138" rx="4" fill="url(#bg)"/>
|
|
56
|
-
<rect width="100" height="138" rx="4" fill="url(#red)"/>
|
|
57
|
-
<rect width="100" height="138" rx="4" fill="url(#cyan)"/>
|
|
58
|
-
<path d="M7 74C9 46 24 26 46 24C68 22 84 40 87 69C80 62 71 57 58 57C40 57 25 64 7 74Z" fill="#080B13" opacity="0.86"/>
|
|
59
|
-
<path d="M33 39C40 31 48 27 56 27C69 27 79 40 79 58C79 84 64 105 48 105C34 105 23 90 23 69C23 57 27 47 33 39Z" fill="#F6F5FA"/>
|
|
60
|
-
<path d="M16 71C18 54 24 42 33 34C31 42 30 48 30 55C30 75 38 92 50 104C43 105 35 103 28 97C18 88 14 79 16 71Z" fill="#07090F"/>
|
|
61
|
-
<path d="M61 35L75 48L73 66L59 67L49 51L61 35Z" fill="#FFF7F4" opacity="0.95"/>
|
|
62
|
-
<path d="M55 44L66 40L72 46L66 54L57 54L55 44Z" fill="#FF5D6F"/>
|
|
63
|
-
<path d="M38 60C42 55 46 53 52 53C57 53 61 55 64 59" stroke="#141A2B" stroke-width="2.2" stroke-linecap="round"/>
|
|
64
|
-
<circle cx="43" cy="67" r="4" fill="#121624"/>
|
|
65
|
-
<circle cx="43.5" cy="66.5" r="1.5" fill="#DDF0FF"/>
|
|
66
|
-
<path d="M51 86C55 88 60 88 65 84" stroke="#C9C1D8" stroke-width="2" stroke-linecap="round"/>
|
|
67
|
-
<path d="M19 31L31 20L49 23L42 39L24 40L19 31Z" fill="#F8FCFF" opacity="0.82"/>
|
|
68
|
-
<path d="M14 99C31 84 49 77 70 77" stroke="#FF6773" stroke-width="3" stroke-linecap="round" opacity="0.45"/>
|
|
69
|
-
</svg>
|
|
70
|
-
`;return`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(t)}`}const T=w(`nebula`),E=w(`crimson`),D=T,O={padding:`0.5px`,background:`linear-gradient(180deg, rgba(230,42,255,0.9) 5%, rgba(239,255,69,0.5) 30%, rgba(233,69,255,0.8) 55%, rgba(233,69,255,0.9) 100%)`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,maskComposite:`exclude`},k={background:`rgba(83, 83, 83, 0.2)`},A={backdropFilter:`blur(4px)`,WebkitBackdropFilter:`blur(4px)`,maskImage:`linear-gradient(180deg, transparent 58.3%, black 100%)`,WebkitMaskImage:`linear-gradient(180deg, transparent 58.3%, black 100%)`},j=[{contentId:`mock-1`,title:`东野圭吾作品:11字谜案`,cover:T,category:`烧脑悬疑`,heatText:`2242万热度`,score:8.9,statusText:`完结`,href:`#`},{contentId:`mock-2`,title:`东野圭吾作品:11字谜案`,cover:E,category:`烧脑悬疑`,heatText:`2242万热度`,score:8.9,statusText:`完结`,href:`#`}];function M(e){return Array.from({length:e},(e,t)=>({...j[t%j.length],contentId:`mock-${t+1}`}))}function N({filled:e,className:t=``}){return S(`svg`,{viewBox:`0 0 14 14`,fill:`none`,"aria-hidden":!0,className:t,children:S(`path`,{d:`M7 0.5L8.76 4.94L13.5 5.39L9.91 8.57L10.94 13.2L7 10.77L3.06 13.2L4.09 8.57L0.5 5.39L5.24 4.94L7 0.5Z`,fill:e?`#FFC039`:`rgba(255,255,255,0.3)`})})}function P({score:e}){let t=Math.ceil(e/2);return C(i,{className:`flex items-center gap-[8px]`,children:[S(i,{className:`flex items-center gap-[4px]`,children:Array.from({length:5},(e,n)=>S(N,{filled:n<t,className:`size-[14px]`},n))}),S(a,{className:`font-['DIN'] text-[12px] font-bold leading-normal text-[#FFC039]`,children:e.toFixed(1)})]})}function F({item:e,isEditor:t}){let n=m(e.cover,D),r=C(i,{className:`relative h-[158px] w-full`,children:[C(i,{className:`absolute left-0 top-[28px] h-[130px] w-full overflow-hidden rounded-[8px]`,children:[S(i,{className:`absolute inset-0 rounded-[8px]`,style:k}),S(i,{className:`pointer-events-none absolute rounded-full`,style:{left:`34px`,top:`-238px`,width:`385.969px`,height:`385.969px`,background:`radial-gradient(25.17% 25.17% at 64.27% 57.53%, #4F8DFF 0%, rgba(255,255,255,0) 100%)`,mixBlendMode:`overlay`,filter:`blur(50px)`}}),S(i,{className:`pointer-events-none absolute rounded-full`,style:{left:`210px`,top:`-75px`,width:`189px`,height:`187px`,background:`radial-gradient(50.27% 50.39% at 65.31% 48.07%, #FF5DEF 0%, rgba(255,255,255,0) 100%)`,mixBlendMode:`overlay`,filter:`blur(50px)`}}),S(i,{className:`pointer-events-none absolute inset-0 rounded-[8px]`,style:O})]}),C(i,{className:`absolute left-[16px] top-0 z-10 h-[138px] w-[100px] overflow-hidden rounded-[4px]`,children:[S(`img`,{src:n,alt:e.title,className:`absolute inset-0 size-full object-cover`}),S(i,{className:`pointer-events-none absolute inset-0 rounded-[4px]`,style:{background:`linear-gradient(180deg, rgba(8, 2, 17, 0) 44.64%, rgba(8, 2, 17, 0.7) 82.7%)`}}),S(i,{className:`pointer-events-none absolute inset-0 rounded-[4px]`,style:A}),e.statusText&&S(i,{className:`absolute bottom-[9px] right-[8px] flex h-[18px] w-[32px] items-center justify-center rounded-[4px] bg-white/20 p-[2px]`,children:S(a,{className:`font-['PingFang_SC'] text-[12px] leading-[14px] text-white`,children:e.statusText})})]}),C(i,{className:`absolute left-[132px] top-[58px] z-10 flex w-[210px] items-start justify-between`,children:[C(i,{className:`flex h-[71px] w-[152px] flex-col justify-between`,children:[C(i,{className:`flex flex-col gap-[4px]`,children:[S(a,{className:`line-clamp-1 font-['PingFang_SC'] text-[14px] font-medium leading-[20px] text-white`,children:e.title}),C(i,{className:`flex items-center gap-[10px] font-['PingFang_SC'] text-[14px] leading-[20px] text-white/60`,children:[e.category&&S(a,{className:`shrink-0 whitespace-nowrap`,children:e.category}),e.heatText&&S(a,{className:`shrink-0 whitespace-nowrap`,children:e.heatText})]})]}),e.score>0&&S(P,{score:e.score})]}),S(i,{"aria-hidden":!0,className:`size-[22px] shrink-0 opacity-0`})]})]});return t||!e.href||e.href===`#`?r:S(o,{href:e.href,className:`block`,children:r})}function I(o){let{title:m,items:w,layout:T,prefetchItems:E,mode:D=`renderer`}=o,O=D===`editor`,k=D===`renderer`,A=(m??``).trim()||`推荐榜`,j=!!T?.enabled,N=y(()=>c(T),[T]),P=w?.length??2,I=y(()=>_(N,P),[N,P]),L=y(()=>g(I,P),[I,P]),{data:R}=l(r(L),()=>n(L),{enabled:k&&!O&&j,staleTime:1/0}),[z,B]=x([]);v(()=>{O||!j||B(f(s(R?.data?.videos??[],I,P)))},[O,j,R,I,P]);let V=y(()=>O||j?[]:h(w),[w,O,j]),H=y(()=>Array.from(new Set(V)),[V]),U=y(()=>V.join(`,`),[V]),W=y(()=>Array.isArray(E)?E.map(e=>p(e.contentId)).join(`,`):``,[E]),[G,K]=x(()=>E??[]),q=b(``);v(()=>{O||j||(K(E??[]),q.current=W&&W===U?U:``)},[O,j,U,W,E]),v(()=>{if(O||j||!e()||!U||q.current===U)return;q.current=U;let n=!1;async function r(){try{let e=await t({ids:H},{cache:`no-store`}),r=Array.isArray(e.data?.videos)?e.data.videos:[];if(n)return;K(d(r,w??[]))}catch(e){console.error(`推荐榜数据获取失败`,e)}}return r(),()=>{n=!0}},[O,j,V,U,H,w]);let J=j?z:G,Y=y(()=>O?M(w?.length??2):[],[O,w?.length]),X=O?Y:J;return!O&&X.length===0?null:C(i,{className:`mt-[24px] w-full px-[16px]${O?` pointer-events-none`:``}`,children:[C(i,{className:`flex items-center justify-between`,children:[S(a,{className:`font-['PingFang_SC'] text-[18px] font-medium leading-[24px] text-white/90`,style:O?{textShadow:`0 1px 4px rgba(0,0,0,0.45)`}:void 0,children:A}),S(i,{className:`flex shrink-0 items-center justify-end gap-[2px] opacity-50`,style:O?{filter:`drop-shadow(0 1px 3px rgba(0,0,0,0.45))`}:void 0,children:S(i,{className:`overflow-hidden`,children:S(u,{className:`size-[24px] text-white`})})})]}),S(i,{className:`mt-[16px] flex flex-col gap-[16px]`,children:X.map((e,t)=>S(F,{item:e,isEditor:O},`${e.contentId}-${t}`))})]})}export{I as RankingRecommendClient};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
-
import "../../../../utils.mjs";
|
|
5
|
-
import { RankingRecommendClient } from "./client.mjs";
|
|
6
|
-
import { RankingRecommendServer } from "./server.mjs";
|
|
7
|
-
import * as zod from "zod";
|
|
8
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
|
-
|
|
10
|
-
//#region components/biz/business/ranking-recommend/material.d.ts
|
|
11
|
-
declare const rankingRecommendMaterial: DefineMaterialOption<typeof RankingRecommendServer, typeof RankingRecommendClient, zod.ZodObject<{
|
|
12
|
-
readonly title: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
-
readonly moduleCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
14
|
-
readonly layout: zod.ZodObject<{
|
|
15
|
-
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
16
|
-
readonly tags: zod.ZodArray<zod.ZodString> & SchemaHasDefaultValue;
|
|
17
|
-
}, zod_v4_core0.$strip> | zod.ZodOptional<zod.ZodObject<{
|
|
18
|
-
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
19
|
-
readonly tags: zod.ZodArray<zod.ZodString> & SchemaHasDefaultValue;
|
|
20
|
-
}, zod_v4_core0.$strip>>;
|
|
21
|
-
readonly items: zod.ZodArray<zod.ZodObject<{
|
|
22
|
-
id: zod.ZodString & SchemaHasDefaultValue;
|
|
23
|
-
contentName: zod.ZodString & SchemaHasDefaultValue;
|
|
24
|
-
title: zod.ZodString & SchemaHasDefaultValue;
|
|
25
|
-
cover: zod.ZodString & SchemaHasDefaultValue;
|
|
26
|
-
useVideoPoster: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
27
|
-
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
28
|
-
} & {
|
|
29
|
-
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
30
|
-
renderer: "renderer";
|
|
31
|
-
editor: "editor";
|
|
32
|
-
}>>;
|
|
33
|
-
}, zod_v4_core0.$strip>, "ranking-recommend", "内容组件">;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { rankingRecommendMaterial };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{RankingRecommendClient as t}from"./client.mjs";import{rankingRecommendInspectorPropsSchema as n}from"./schema.mjs";import{RankingRecommendServer as r}from"./server.mjs";const i=e({type:`ranking-recommend`,name:`推荐榜`,icon:`/static/components-thumb/search_recommend_text.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as rankingRecommendMaterial};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region components/biz/business/ranking-recommend/schema.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* 推荐榜物料属性定义
|
|
9
|
-
*/
|
|
10
|
-
declare const rankingRecommendInspectorPropsSchema: z.ZodObject<{
|
|
11
|
-
readonly title: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
-
readonly moduleCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
-
readonly layout: z.ZodObject<{
|
|
14
|
-
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
15
|
-
readonly tags: z.ZodArray<z.ZodString> & SchemaHasDefaultValue;
|
|
16
|
-
}, z.core.$strip> | z.ZodOptional<z.ZodObject<{
|
|
17
|
-
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
18
|
-
readonly tags: z.ZodArray<z.ZodString> & SchemaHasDefaultValue;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
readonly items: z.ZodArray<z.ZodObject<{
|
|
21
|
-
id: z.ZodString & SchemaHasDefaultValue;
|
|
22
|
-
contentName: z.ZodString & SchemaHasDefaultValue;
|
|
23
|
-
title: z.ZodString & SchemaHasDefaultValue;
|
|
24
|
-
cover: z.ZodString & SchemaHasDefaultValue;
|
|
25
|
-
useVideoPoster: z.ZodBoolean & SchemaHasDefaultValue;
|
|
26
|
-
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
27
|
-
} & {
|
|
28
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
29
|
-
renderer: "renderer";
|
|
30
|
-
editor: "editor";
|
|
31
|
-
}>>;
|
|
32
|
-
}, z.core.$strip>;
|
|
33
|
-
type RankingRecommendInspectorProps = InferSchemaProps<typeof rankingRecommendInspectorPropsSchema>;
|
|
34
|
-
//#endregion
|
|
35
|
-
export { RankingRecommendInspectorProps };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"../../../../utils/schema/schema.mjs";import{z as n}from"zod";const r=e(e=>({title:e.string(`推荐榜`,{label:`标题名称`,description:`支持输入,中/英/数/符,6个字符`}),moduleCount:e.number(2,{label:`推荐模块数`}),layout:e.object({enabled:e.boolean(!1,{fieldType:`switch`,label:`智能铺设`}),tags:e.array(n.string(),{label:`取数范围标签`,defaultValue:[`电影`]})},{label:`智能铺设`,defaultValue:{enabled:!1,tags:[`电影`]}}),items:e.array(n.object({id:e.string(``,{label:`内容ID`}),contentName:e.string(``,{label:`内容名称`}),title:e.string(``,{label:`推荐位内容名称`}),cover:e.string(``,{label:`推荐位封面`}),useVideoPoster:e.boolean(!0,{fieldType:`switch`,label:`沿用视频海报`})}),{label:`推荐榜内容`,defaultValue:[{id:`22edc8693ebbdaf1`,contentName:``,title:``,cover:``,useVideoPoster:!0},{id:`22edc8693ebbdaf1`,contentName:``,title:``,cover:``,useVideoPoster:!0}]})}));t(r);export{r as rankingRecommendInspectorPropsSchema};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { RankingRecommendProps } from "./client.mjs";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region components/biz/business/ranking-recommend/server.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* 推荐榜物料组件 - 服务端部分
|
|
8
|
-
*/
|
|
9
|
-
declare function RankingRecommendServer(props: RankingRecommendProps): Promise<react_jsx_runtime0.JSX.Element>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { RankingRecommendServer };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{pContentBatchGetVideoDetail as e,pContentGetPopularVideoList as t}from"../../../../service/generated/client.mjs";import{pContentGetPopularVideoListKey as n}from"../../../../service/generated/tanstack.mjs";import{getImageTextRecommendLayoutTags as r}from"../../../../hooks/image-text-recommend.mjs";import{HydrationBoundary as i}from"../../../../hooks/query/hydration-boundary.mjs";import{buildRankingCardList as a,resolveOrderedContentIds as o}from"./shared.mjs";import{buildSmartPopularQuery as s,buildStableChosenTags as c}from"./shared/query.mjs";import{RankingRecommendClient as l}from"./client.mjs";import{jsx as u}from"react/jsx-runtime";const d=[];async function f(f){let{mode:p=`renderer`,items:m=d,layout:h,...g}=f,_=!!h?.enabled,v=[],y=f.prefetchItems;if(p===`renderer`)try{if(_){let e=r(h),i=m?.length??2,a=s(c(e,i),i),o=await t(a);v.push({queryKey:n(a),queryFn:()=>Promise.resolve(o)})}else{let t=o(m),n=Array.from(new Set(t));if(n.length>0){let t=await e({ids:n},{cache:`no-store`});y=a(Array.isArray(t.data?.videos)?t.data.videos:[],m)}}}catch(e){console.warn(`[ranking-recommend] server prefetch failed:`,e)}return u(i,{prefetch:v,children:u(l,{...g,items:m,layout:h,mode:p,prefetchItems:y})})}export{f as RankingRecommendServer};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function e(e,t){let n=e.map(e=>String(e).trim()).filter(Boolean);if(!n.length||t<=0)return[];if(n.length>=t)return n.slice(0,t);let r=[...n];for(;r.length<t;)r.push(n[r.length%n.length]);return r}function t(e,t){return{page_size:Math.max(20,t*10),tags:e.length?Array.from(new Set(e)):void 0}}export{t as buildSmartPopularQuery,e as buildStableChosenTags};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region components/biz/business/ranking-recommend/shared.d.ts
|
|
3
|
-
/** 推荐榜卡片渲染数据。 */
|
|
4
|
-
interface RankingCardItem {
|
|
5
|
-
contentId: string;
|
|
6
|
-
title: string;
|
|
7
|
-
cover: string;
|
|
8
|
-
category: string;
|
|
9
|
-
heatText: string;
|
|
10
|
-
score: number;
|
|
11
|
-
statusText: string;
|
|
12
|
-
href: string;
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
export { RankingCardItem };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import e from"../../../../utils/get-res-url.mjs";import{getPostDetailPagePath as t}from"../../../../utils/tools.mjs";function n(e){return typeof e==`string`?e.trim():String(e??``).trim()}function r(e){return Array.isArray(e)?e.map(e=>n(e?.id)).filter(Boolean):[]}function i(t,n=``){let r=typeof t==`string`?t.trim():``;if(!r)return n;if(r.startsWith(`http`)||r.startsWith(`//`)||r.startsWith(`data:`))return r;let i=e();return i?`${i}${r.startsWith(`/`)?r:`/${r}`}`:r}function a(e){return!e||!Number.isFinite(e)||e<=0?``:e>=1e4?`${(e/1e4).toFixed(e>=1e5?0:1).replace(/\.0$/,``)}万热度`:e>=1e3?`${(e/1e3).toFixed(1).replace(/\.0$/,``)}K热度`:`${Math.floor(e)}热度`}function o(e){let t=n(e.update_status);return t===`1`?`完结`:t===`0`?`连载中`:``}function s(e){let t=Number(e);return!Number.isFinite(t)||t<=0?0:t>10&&t<=100?t/10:Math.min(t,10)}function c(e){let r=n(e.id||e.mid||e.video_id),i=Number(e.play_count??e.browse_count??0);return{contentId:r,title:n(e.name),cover:n(e.img_y||e.img_x),category:n(e.cat_name),heatText:a(i),score:s(e.score),statusText:o(e),href:r?t({id:r,contentType:0}):`#`}}function l(e,t){let r=new Map;return e.forEach(e=>{let t=n(e.id||e.mid||e.video_id);t&&r.set(t,e)}),t.map(e=>{let t=n(e.id),i=t?r.get(t):void 0;if(!i)return null;let a=c(i),o=(e.title??``).trim();o&&(a.title=o);let s=(e.cover??``).trim();return s&&e.useVideoPoster===!1&&(a.cover=s),a}).filter(e=>!!e)}function u(e){let r=n(e.id||e.mid),i=Number(e.static?.browse_cnt??0),o=n(e.update_status);return{contentId:r,title:n(e.name),cover:n(e.img_y||e.img_x),category:n(e.cat_name),heatText:a(i),score:s(e.score),statusText:o===`1`?`完结`:o===`0`?`连载中`:``,href:r?t({id:r,contentType:0}):`#`}}function d(e){return e.map(u)}export{l as buildRankingCardList,d as buildSmartRankingCardList,n as normalizeContentId,i as resolveCoverDisplaySrc,r as resolveOrderedContentIds};
|