@funhub/platform 0.2.15 → 0.2.17
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/assets/icons/marquee-enter.mjs +2 -0
- package/dist/biz.d.mts +1 -5
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/business/advertisement/popup-ad/client.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/comment/comment-input.mjs +3 -3
- package/dist/components/biz/business/comment/comment-item.mjs +1 -1
- package/dist/components/biz/business/comment/comment-list.mjs +1 -1
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -1
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -1
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/shared/avatar.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 +1 -1
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/index.d.mts +0 -5
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/material.d.mts +1 -1
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.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/tabs/history-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +2 -0
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -1
- package/dist/components/biz/business/search-history/client.mjs +1 -1
- package/dist/components/biz/business/search-input/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/text-recommend/client.mjs +1 -1
- package/dist/components/biz/renderer/renderer.d.mts +1 -1
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -1
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -1
- 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/follow-button/index.mjs +1 -1
- package/dist/components/common/info-card/card-header.mjs +1 -1
- package/dist/components/common/list/post-list/post-list.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -1
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -1
- package/dist/components/common/list/video-list/video-list.mjs +1 -1
- package/dist/components/common/popup-video/index.mjs +1 -1
- package/dist/components/common/series-episodes/index.mjs +1 -1
- package/dist/components/common/share-popup/share-content.mjs +1 -1
- package/dist/components/common/tab-bar/index.mjs +1 -1
- package/dist/components/common/top-nav-bar/client.mjs +1 -1
- package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -1
- package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +1 -1
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -1
- package/dist/components/pages/collection-add/page.mjs +1 -1
- package/dist/components/pages/collection-create/form.mjs +1 -1
- package/dist/components/pages/collection-detail/_components/collection-detail-video-card.mjs +1 -1
- package/dist/components/pages/collection-detail/detail.mjs +1 -1
- package/dist/components/pages/edit/page.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -1
- package/dist/components/pages/login/forgot.mjs +1 -1
- package/dist/components/pages/login/index.mjs +1 -1
- package/dist/components/pages/login/login-client.mjs +1 -1
- package/dist/components/pages/login/password.mjs +1 -1
- package/dist/components/pages/login/register.mjs +1 -1
- package/dist/components/pages/login/reset-password.mjs +1 -1
- package/dist/components/pages/login/verify.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/publish/components/header.mjs +1 -1
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -1
- package/dist/components/pages/publish/page-client.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-user.mjs +1 -1
- package/dist/components/pages/search/search-result/shared.mjs +1 -1
- package/dist/components/pages/search/top-header.mjs +1 -1
- package/dist/components/pages/search-result/page-client.mjs +1 -1
- package/dist/components/pages/search-result/search-user.mjs +1 -1
- package/dist/components/pages/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/search-result/shared.mjs +1 -1
- package/dist/components/pages/search-result/top-header.mjs +1 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -1
- package/dist/components/pages/settings/_components/settings.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/video-list-client.mjs +1 -1
- package/dist/components/pages/video-list/video-list-recommend-item.mjs +1 -1
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/components/ui/sonner.d.mts +1 -1
- package/dist/components/ui/sonner.mjs +1 -1
- package/dist/hooks/use-browse-report.d.mts +13 -0
- package/dist/hooks/use-browse-report.mjs +1 -1
- package/dist/hooks/use-content-operate.mjs +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/types/safe-information.d.mts +2 -0
- package/dist/utils/common.d.mts +9 -1
- package/dist/utils/common.mjs +1 -1
- package/dist/utils/schema/material.d.mts +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +1 -1
- package/dist/components/biz/business/hot-recommend/client.d.mts +0 -17
- package/dist/components/biz/business/hot-recommend/client.mjs +0 -2
- package/dist/components/biz/business/hot-recommend/index.d.mts +0 -5
- package/dist/components/biz/business/hot-recommend/material.d.mts +0 -25
- package/dist/components/biz/business/hot-recommend/material.mjs +0 -2
- package/dist/components/biz/business/hot-recommend/schema.d.mts +0 -24
- package/dist/components/biz/business/hot-recommend/schema.mjs +0 -2
- package/dist/components/biz/business/hot-recommend/server.d.mts +0 -11
- package/dist/components/biz/business/hot-recommend/server.mjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
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
|
-
如非本人操作,可联系客服或提出申诉`,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};
|
|
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:`添加内容`,batchRemoveVideosConfirmTitle:`确认将所选内容从收藏夹移除?`,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
|
@@ -20,7 +20,6 @@ import "./components/biz/business/advertisement/index.mjs";
|
|
|
20
20
|
import { floatingBallMaterial } from "./components/biz/business/floating-ball/material.mjs";
|
|
21
21
|
import { homeRecommendGridMaterial } from "./components/biz/business/home-recommend/home-recommend-grid/material.mjs";
|
|
22
22
|
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
|
|
23
|
-
import { hotRecommendMaterial } from "./components/biz/business/hot-recommend/material.mjs";
|
|
24
23
|
import { imageTextRecommendMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
|
|
25
24
|
import { marqueeMaterial } from "./components/biz/business/marquee/material.mjs";
|
|
26
25
|
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./components/biz/business/profile/profile-header/material.mjs";
|
|
@@ -40,4 +39,4 @@ import { headerSearchMaterial } from "./components/biz/business/header-search/he
|
|
|
40
39
|
import "./components/biz/business/header-search/index.mjs";
|
|
41
40
|
import { largeFeatureGridMaterial } from "./components/biz/business/large-feature-grid/material.mjs";
|
|
42
41
|
import { shortcutGridMaterial } from "./components/biz/business/shortcut-grid/material.mjs";
|
|
43
|
-
export { BannerCarouselMaterial, bannerAdMaterial, channelListMaterial, exampleButtonMaterial, floatingAdMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial,
|
|
42
|
+
export { BannerCarouselMaterial, bannerAdMaterial, channelListMaterial, exampleButtonMaterial, floatingAdMaterial, floatingBallMaterial, headerAvatarIconMaterial, headerAvatarLogoSearchIconMaterial, headerAvatarLogoSearchMaterial, headerLogoSearchMaterial, headerSearchMaterial, homeRecommendGridMaterial, homeRecommendWaterfallMaterial, 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{
|
|
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{imageTextRecommendMaterial as l}from"./components/biz/business/image-text-recommend/material.mjs";import{marqueeMaterial as u}from"./components/biz/business/marquee/material.mjs";import{profileHeaderMaterial as d,profileHeaderMaterialWithDisabledBackground as f}from"./components/biz/business/profile/profile-header/material.mjs";import{profileMainMaterial as p}from"./components/biz/business/profile/profile-main/material.mjs";import{searchHistoryMaterial as m}from"./components/biz/business/search-history/material.mjs";import{searchInputMaterial as h}from"./components/biz/business/search-input/material.mjs";import{tabBarMaterial as g}from"./components/biz/business/tab-bar/material.mjs";import{textRecommendMaterial as _}from"./components/biz/business/text-recommend/material.mjs";import{exampleButtonMaterial as v}from"./components/biz/example/button/material.mjs";import{BannerCarouselMaterial as y}from"./components/biz/business/banner-carousel/material.mjs";import{channelListMaterial as b}from"./components/biz/business/channel-list/material.mjs";import{videoDetailInfoMaterial as x}from"./components/biz/business/detail/video-detail-info/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as S}from"./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as C}from"./components/biz/business/detail/video-detail-player/material.mjs";import{videoDetailPlayerBridgeOnlyMaterial as w}from"./components/biz/business/detail/video-detail-player-bridge-only/material.mjs";import{videoDetailRecommendMaterial as T}from"./components/biz/business/detail/video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as E}from"./components/biz/business/detail/video-detail-actions/material.mjs";import{headerAvatarIconMaterial as D}from"./components/biz/business/header-search/header-avatar-icon/material.mjs";import{headerAvatarLogoSearchMaterial as O}from"./components/biz/business/header-search/header-avatar-logo-search/material.mjs";import{headerAvatarLogoSearchIconMaterial as k}from"./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";import{headerLogoSearchMaterial as A}from"./components/biz/business/header-search/header-logo-search/material.mjs";import{headerSearchMaterial as j}from"./components/biz/business/header-search/header-search/material.mjs";import{largeFeatureGridMaterial as M}from"./components/biz/business/large-feature-grid/material.mjs";import{shortcutGridMaterial as N}from"./components/biz/business/shortcut-grid/material.mjs";var P=e({BannerCarouselMaterial:()=>y,bannerAdMaterial:()=>t,channelListMaterial:()=>b,exampleButtonMaterial:()=>v,floatingAdMaterial:()=>n,floatingBallMaterial:()=>o,headerAvatarIconMaterial:()=>D,headerAvatarLogoSearchIconMaterial:()=>k,headerAvatarLogoSearchMaterial:()=>O,headerLogoSearchMaterial:()=>A,headerSearchMaterial:()=>j,homeRecommendGridMaterial:()=>s,homeRecommendWaterfallMaterial:()=>c,iconAdMaterial:()=>r,imageTextRecommendMaterial:()=>l,largeFeatureGridMaterial:()=>M,marqueeMaterial:()=>u,popupAdMaterial:()=>i,profileHeaderMaterial:()=>d,profileHeaderMaterialWithDisabledBackground:()=>f,profileMainMaterial:()=>p,searchHistoryMaterial:()=>m,searchInputMaterial:()=>h,shortcutGridMaterial:()=>N,tabBarMaterial:()=>g,textAdMaterial:()=>a,textRecommendMaterial:()=>_,videoDetailActionsMaterial:()=>E,videoDetailInfoMaterial:()=>x,videoDetailInfoTitleTagsEpisodesMaterial:()=>S,videoDetailPlayerBridgeOnlyMaterial:()=>w,videoDetailPlayerMaterial:()=>C,videoDetailRecommendMaterial:()=>T});export{y as BannerCarouselMaterial,t as bannerAdMaterial,b as channelListMaterial,v as exampleButtonMaterial,n as floatingAdMaterial,o as floatingBallMaterial,D as headerAvatarIconMaterial,k as headerAvatarLogoSearchIconMaterial,O as headerAvatarLogoSearchMaterial,A as headerLogoSearchMaterial,j as headerSearchMaterial,s as homeRecommendGridMaterial,c as homeRecommendWaterfallMaterial,r as iconAdMaterial,l as imageTextRecommendMaterial,M as largeFeatureGridMaterial,u as marqueeMaterial,P as materials_exports,i as popupAdMaterial,d as profileHeaderMaterial,f as profileHeaderMaterialWithDisabledBackground,p as profileMainMaterial,m as searchHistoryMaterial,h as searchInputMaterial,N as shortcutGridMaterial,g as tabBarMaterial,a as textAdMaterial,_ as textRecommendMaterial,E as videoDetailActionsMaterial,x as videoDetailInfoMaterial,S as videoDetailInfoTitleTagsEpisodesMaterial,w as videoDetailPlayerBridgeOnlyMaterial,C as videoDetailPlayerMaterial,T as videoDetailRecommendMaterial};
|
package/dist/utils/common.d.mts
CHANGED
|
@@ -28,6 +28,14 @@ declare function numToString(value: string | number | undefined): string;
|
|
|
28
28
|
* @returns 转换后的数字,非法值返回 `0`。
|
|
29
29
|
*/
|
|
30
30
|
declare function stringToNumber(value: string | number | undefined): number;
|
|
31
|
+
/**
|
|
32
|
+
* 紧凑数量展示(播放量、点赞数、粉丝数等)。
|
|
33
|
+
* - 小于 1000:整数部分字符串
|
|
34
|
+
* - ≥ 1000 且小于 1_000_000:`x.xk`,保留 1 位小数
|
|
35
|
+
* - ≥ 1_000_000:`x.xm`,保留 1 位小数
|
|
36
|
+
* @param input 原始数量
|
|
37
|
+
*/
|
|
38
|
+
declare function formatCompactCount(input?: string | number | null): string;
|
|
31
39
|
/**
|
|
32
40
|
* 生成uuid
|
|
33
41
|
* @returns 随机 UUID 字符串。
|
|
@@ -156,4 +164,4 @@ declare function getUserId(): string;
|
|
|
156
164
|
*/
|
|
157
165
|
declare function updateUrlParams(params: Record<string, string>): void;
|
|
158
166
|
//#endregion
|
|
159
|
-
export { debounceFun, formatVideoDuration, generateDynamicSign, generateUUID, getAtUserElement, getCookie, getCurrentSecondTime, getUserId, hashPassword, isClient, isMobileDevice, numToString, parseResolution, parseTextAtUserIds, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, secondToTime, setCookie, stringToNumber, stripHtmlTags, updateUrlParams };
|
|
167
|
+
export { debounceFun, formatCompactCount, formatVideoDuration, generateDynamicSign, generateUUID, getAtUserElement, getCookie, getCurrentSecondTime, getUserId, hashPassword, isClient, isMobileDevice, numToString, parseResolution, parseTextAtUserIds, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, secondToTime, setCookie, stringToNumber, stripHtmlTags, updateUrlParams };
|
package/dist/utils/common.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import e from"crypto-js";function t(e=8){return Array.from({length:e},()=>Math.random().toString(36)[2]).join(``)}function n(){return typeof window<`u`}function r(){return typeof navigator>`u`?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function i(e){return e==null?`0`:String(e)}function a(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}function o(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function
|
|
2
|
+
import e from"crypto-js";function t(e=8){return Array.from({length:e},()=>Math.random().toString(36)[2]).join(``)}function n(){return typeof window<`u`}function r(){return typeof navigator>`u`?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}function i(e){return e==null?`0`:String(e)}function a(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}function o(e){let t=typeof e==`string`?Number(String(e).trim()):Number(e??0);if(!Number.isFinite(t)||t<0)return`0`;let n=Math.floor(t);return n<1e3?String(n):n<1e6?`${(n/1e3).toFixed(1)}k`:`${(n/1e6).toFixed(1)}m`}function s(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})}function c(e){return`${Math.floor(e/60)}:${Math.floor(e%60).toString().padStart(2,`0`)}`}function l(e){let t=0,n=0;try{if(e){let[r,i]=e.split(`x`);t=Number.parseInt(r||`0`,10)||0,n=Number.parseInt(i||`0`,10)||0}}catch(e){console.warn(`parseResolution failed`,e)}return{width:t,height:n}}function u(e,t=`yyyy-MM-dd hh:mm`){if(typeof e!=`number`||Number.isNaN(e)||e<0)return``;let n=new Date(e*1e3);if(Number.isNaN(n.getTime()))return``;let r=n.getFullYear().toString(),i=String(n.getMonth()+1).padStart(2,`0`),a=String(n.getDate()).padStart(2,`0`),o=String(n.getHours()).padStart(2,`0`),s=String(n.getMinutes()).padStart(2,`0`);return t.replace(`yyyy`,r).replace(`yy`,r.slice(-2)).replace(`MM`,i).replace(`dd`,a).replace(`hh`,o).replace(`mm`,s)}function d(){return Math.floor(Date.now()/1e3)}const f=/<span class="mention" contenteditable="false" data-id="(\w+)">(.*?)<\/span>/g,p=/<@_user>(\w+)<\/@_user>/g;function m(e){let t=[];if(!e)return t;let n;for(;(n=f.exec(e))!==null;)t.push(n[1]);return t}function h(e){return e?e.replace(f,`<@_user>$1</@_user>`):``}function g(e){let{text:t=``,atUsers:n=[]}=e;return t?t.replace(p,(e,t)=>`<span class="mention" data-id="${t}">@${n.find(e=>e.user_id===t||e.userId===t)?.name||``}</span>`):``}function _(e){return`<span class="mention" contenteditable="false" data-id="${e.user_id}">@${e.name}</span>`}function v(e){return e?e.replace(/<[^>]+>/g,``):``}function y(e,t){let n=null;return((...r)=>{n&&clearTimeout(n),n=setTimeout(()=>e(...r),t)})}async function b(e){try{if(n()){let t=document.cookie.split(`; `).find(t=>t.startsWith(`${e}=`))?.split(`=`)[1];return t?decodeURIComponent(t):``}else{let{cookies:t}=await import(`next/headers`);return(await t()).get(e)?.value??``}}catch(t){return console.error(`获取 Cookie "${e}" 失败:`,t),``}}function x(e,t,n){let r=[`${e}=${encodeURIComponent(t)}`];if(n.expires)r.push(`expires=${n.expires.toUTCString()}`);else if(n.maxAge){let e=new Date(Date.now()+n.maxAge*1e3);r.push(`expires=${e.toUTCString()}`)}return n.path&&r.push(`path=${n.path}`),n.domain&&r.push(`domain=${n.domain}`),n.secure&&r.push(`secure`),n.sameSite&&r.push(`samesite=${n.sameSite}`),r.join(`; `)}function S(e,t,r={}){if(!n())throw Error(`setCookie 只能在客户端环境中使用`);let i={maxAge:360*24*60*60,httpOnly:!1,secure:process.env.NODE_ENV===`production`,sameSite:process.env.NODE_ENV===`production`?`none`:`lax`,path:`/`,...r};try{let n=x(e,t,i);document.cookie=n}catch(t){throw console.error(`设置 Cookie "${e}" 失败:`,t),Error(`无法设置 Cookie: ${t}`)}}function C(e){if(!n())throw Error(`removeCookie 只能在客户端环境中使用`);document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`}function w(t){if(!t||t.length<10)return``;let n=t.length,r=n%5+2,i=t.substring(0,r),a=t.substring(n-r);return e.MD5(`${i}gst#2026!idy_1-16${a}`).toString()}function T(t){return e.SHA256(t).toString(e.enc.Hex)}function E(){let e=window.localStorage.getItem(`user-store`);return e?JSON.parse(e)?.state?.userId:``}function D(e){let t=new URL(window.location.href);Object.entries(e).forEach(([e,n])=>{t.searchParams.set(e,n)}),window.history.replaceState({},``,t.toString())}export{y as debounceFun,o as formatCompactCount,c as formatVideoDuration,w as generateDynamicSign,s as generateUUID,_ as getAtUserElement,b as getCookie,d as getCurrentSecondTime,E as getUserId,T as hashPassword,n as isClient,r as isMobileDevice,i as numToString,l as parseResolution,m as parseTextAtUserIds,t as randomString,C as removeCookie,h as replaceAtUserElement,g as replaceAtUserElementHtmlStr,u as secondToTime,S as setCookie,a as stringToNumber,v as stripHtmlTags,D as updateUrlParams};
|
package/dist/utils.d.mts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { getOrCreateBrowserFingerprint } from "./utils/browser-fingerprint.mjs";
|
|
3
3
|
import { clearMyChannelsFromStorage, loadHiddenChannelIdsFromStorage, loadMyChannelsFromStorage, saveHiddenChannelIdsToStorage } from "./utils/channel-storage.mjs";
|
|
4
4
|
import { cn } from "./utils/cn.mjs";
|
|
5
|
-
import { debounceFun, formatVideoDuration, generateDynamicSign, generateUUID, getAtUserElement, getCookie, getCurrentSecondTime, getUserId, hashPassword, isClient, isMobileDevice, numToString, parseResolution, parseTextAtUserIds, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, secondToTime, setCookie, stringToNumber, stripHtmlTags, updateUrlParams } from "./utils/common.mjs";
|
|
5
|
+
import { debounceFun, formatCompactCount, formatVideoDuration, generateDynamicSign, generateUUID, getAtUserElement, getCookie, getCurrentSecondTime, getUserId, hashPassword, isClient, isMobileDevice, numToString, parseResolution, parseTextAtUserIds, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, secondToTime, setCookie, stringToNumber, stripHtmlTags, updateUrlParams } from "./utils/common.mjs";
|
|
6
6
|
import { decryptImageToArrayBuffer, decryptImageToUint8Array, decryptImageUrl, guessImageContentTypeFromUrl, isEncryptedImageUrl, resolveImageUrl, shouldProbeImageUrl, shouldUseApiResDirectly } from "./utils/decrypt-image-client.mjs";
|
|
7
7
|
import { getOrCreateDeviceId } from "./utils/device-id.mjs";
|
|
8
8
|
import { isValidEmail } from "./utils/email-validator.mjs";
|
|
@@ -25,4 +25,4 @@ import { AdClickPayload, AdImpressionPayload, AdvertisingPayload, AppPageViewPay
|
|
|
25
25
|
import { base64ToUint8Array, uint8ArrayToBase64, uint8ArrayToNumberArray } from "./utils/uint8.mjs";
|
|
26
26
|
import { UploadFileResult, encryptBncBuffer, uploadFile } from "./utils/upload-file.mjs";
|
|
27
27
|
import { CompatibleRouter, useRouter } from "./utils/use-compatible-router.mjs";
|
|
28
|
-
export { AdClickPayload, AdImpressionPayload, AdvertisingPayload, AppPageViewPayload, ClickPosition, CompatibleRouter, ComponentPropsSchemaBuilderHelpers, DefineMaterialOption, eventBus as EventBus, HttpClient, HttpError, INSPECTOR_META_KEY, ImageCompressionQualityRule, InferSchemaProps, KeywordClickPayload, MaterialCategory, MaterialComponentMode, MaterialComponentProps, MaterialMap, NavigationPayload, OverwriteMaterialOption, PASSWORD_ALLOWED_SPECIAL_CHARS, PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, PageLifecyclePayload, PasswordValidationResult, PasswordValidationType, PresignedUploadInfo, RecommendListClickPayload, RequestConfig, RequestMethod, ResponseData, SchemaHasDefaultValue, UploadFileResult, UploadToS3Options, UploadToS3Result, VideoEventPayload, array, base64ToUint8Array, boolean, checkFollowStatus, clearMyChannelsFromStorage, cn, components, compressImage, createInputAndSelectFile, datetime, debounceFun, decryptImageToArrayBuffer, decryptImageToUint8Array, decryptImageUrl, defaultImageCompressionMaxSizeMB, defaultImageCompressionQuality, defineComponentPropsSchema, defineMaterial, disablePageScroll, enablePageScroll, encryptBncBuffer, enumSchema as enum, enumSchema, followUser, formatVideoDuration, generateDynamicSign, generateMaterialMap, generateMaterialMapGroupByCategory, generateUUID, getAppId, getAtUserElement, getCookie, getCoverImage, getCurrentSecondTime, getCurrentUserId, getFirstInvalidPasswordChar, getImageCompressionQuality, getImageResolutionFromFile, getOrCreateBrowserFingerprint, getOrCreateDeviceId, getPasswordCharacterTypeCount, getPasswordValidationErrorText, getResUrl, getSchemaDefaultProps, getUserId, guessImageContentTypeFromUrl, hashPassword, httpClient, imageCompressionQualityRules, isClient, isEncryptedImageUrl, isMobileDevice, isValidEmail, loadComponent, loadHiddenChannelIdsFromStorage, loadMyChannelsFromStorage, normalizeClassName, numToString, number, object, overwriteMaterial, parseResolution, parseTextAtUserIds, pxToVw, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, resolveImageUrl, resolveRequestUserId, rewriteComponent, saveHiddenChannelIdsToStorage, secondToTime, setCookie, shouldProbeImageUrl, shouldUseApiResDirectly, string, stringToNumber, stripHtmlTags, timeRange, trackAdClick, trackAdImpression, trackAdvertising, trackAppPageView, trackKeywordClick, trackNavigation, trackPageClick, trackPageLifecycle, trackRecommendListClick, trackVideoEvent, uint8ArrayToBase64, uint8ArrayToNumberArray, unfollowUser, updateUrlParams, uploadFile, uploadToS3WithPresignedUrl, usePageLifecycle, useRouter, validatePasswordPair, withInspectorMeta };
|
|
28
|
+
export { AdClickPayload, AdImpressionPayload, AdvertisingPayload, AppPageViewPayload, ClickPosition, CompatibleRouter, ComponentPropsSchemaBuilderHelpers, DefineMaterialOption, eventBus as EventBus, HttpClient, HttpError, INSPECTOR_META_KEY, ImageCompressionQualityRule, InferSchemaProps, KeywordClickPayload, MaterialCategory, MaterialComponentMode, MaterialComponentProps, MaterialMap, NavigationPayload, OverwriteMaterialOption, PASSWORD_ALLOWED_SPECIAL_CHARS, PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, PageLifecyclePayload, PasswordValidationResult, PasswordValidationType, PresignedUploadInfo, RecommendListClickPayload, RequestConfig, RequestMethod, ResponseData, SchemaHasDefaultValue, UploadFileResult, UploadToS3Options, UploadToS3Result, VideoEventPayload, array, base64ToUint8Array, boolean, checkFollowStatus, clearMyChannelsFromStorage, cn, components, compressImage, createInputAndSelectFile, datetime, debounceFun, decryptImageToArrayBuffer, decryptImageToUint8Array, decryptImageUrl, defaultImageCompressionMaxSizeMB, defaultImageCompressionQuality, defineComponentPropsSchema, defineMaterial, disablePageScroll, enablePageScroll, encryptBncBuffer, enumSchema as enum, enumSchema, followUser, formatCompactCount, formatVideoDuration, generateDynamicSign, generateMaterialMap, generateMaterialMapGroupByCategory, generateUUID, getAppId, getAtUserElement, getCookie, getCoverImage, getCurrentSecondTime, getCurrentUserId, getFirstInvalidPasswordChar, getImageCompressionQuality, getImageResolutionFromFile, getOrCreateBrowserFingerprint, getOrCreateDeviceId, getPasswordCharacterTypeCount, getPasswordValidationErrorText, getResUrl, getSchemaDefaultProps, getUserId, guessImageContentTypeFromUrl, hashPassword, httpClient, imageCompressionQualityRules, isClient, isEncryptedImageUrl, isMobileDevice, isValidEmail, loadComponent, loadHiddenChannelIdsFromStorage, loadMyChannelsFromStorage, normalizeClassName, numToString, number, object, overwriteMaterial, parseResolution, parseTextAtUserIds, pxToVw, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, resolveImageUrl, resolveRequestUserId, rewriteComponent, saveHiddenChannelIdsToStorage, secondToTime, setCookie, shouldProbeImageUrl, shouldUseApiResDirectly, string, stringToNumber, stripHtmlTags, timeRange, trackAdClick, trackAdImpression, trackAdvertising, trackAppPageView, trackKeywordClick, trackNavigation, trackPageClick, trackPageLifecycle, trackRecommendListClick, trackVideoEvent, uint8ArrayToBase64, uint8ArrayToNumberArray, unfollowUser, updateUrlParams, uploadFile, uploadToS3WithPresignedUrl, usePageLifecycle, useRouter, validatePasswordPair, withInspectorMeta };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{debounceFun as ee,formatCompactCount as te,formatVideoDuration as ne,generateDynamicSign as e,generateUUID as t,getAtUserElement as n,getCookie as r,getCurrentSecondTime as i,getUserId as a,hashPassword as o,isClient as s,isMobileDevice as c,numToString as l,parseResolution as u,parseTextAtUserIds as d,randomString as f,removeCookie as p,replaceAtUserElement as m,replaceAtUserElementHtmlStr as h,secondToTime as g,setCookie as _,stringToNumber as v,stripHtmlTags as y,updateUrlParams as b}from"./utils/common.mjs";import{getOrCreateBrowserFingerprint as x}from"./utils/browser-fingerprint.mjs";import{clearMyChannelsFromStorage as S,loadHiddenChannelIdsFromStorage as C,loadMyChannelsFromStorage as w,saveHiddenChannelIdsToStorage as T}from"./utils/channel-storage.mjs";import{cn as E}from"./utils/cn.mjs";import D from"./utils/get-res-url.mjs";import{decryptImageToArrayBuffer as O,decryptImageToUint8Array as k,decryptImageUrl as A,guessImageContentTypeFromUrl as j,isEncryptedImageUrl as M,resolveImageUrl as N,shouldProbeImageUrl as P,shouldUseApiResDirectly as F}from"./utils/decrypt-image-client.mjs";import{getOrCreateDeviceId as I}from"./utils/device-id.mjs";import{isValidEmail as L}from"./utils/email-validator.mjs";import R from"./utils/event-bus.mjs";import{resolveRequestUserId as z}from"./utils/request-user-id.mjs";import B,{HttpClient as V,HttpError as H}from"./utils/http.mjs";import{checkFollowStatus as U,followUser as W,getAppId as G,getCurrentUserId as K,unfollowUser as q}from"./utils/follow-service.mjs";import{disablePageScroll as J,enablePageScroll as Y,normalizeClassName as X,pxToVw as Z}from"./utils/helper.mjs";import{compressImage as re,defaultImageCompressionMaxSizeMB as Q,defaultImageCompressionQuality as ie,getImageCompressionQuality as ae,imageCompressionQualityRules as oe}from"./utils/image-compression.mjs";import{components as se,loadComponent as ce,rewriteComponent as le}from"./utils/loaders.mjs";import{createInputAndSelectFile as ue,getCoverImage as de,getImageResolutionFromFile as fe}from"./utils/media.mjs";import{PASSWORD_ALLOWED_SPECIAL_CHARS as pe,PASSWORD_MAX_LENGTH as me,PASSWORD_MIN_LENGTH as he,getFirstInvalidPasswordChar as ge,getPasswordCharacterTypeCount as _e,getPasswordValidationErrorText as ve,validatePasswordPair as ye}from"./utils/password-validator.mjs";import{uploadToS3WithPresignedUrl as be}from"./utils/s3-uploader.mjs";import{defineMaterial as xe,overwriteMaterial as Se}from"./utils/schema/material.mjs";import{INSPECTOR_META_KEY as Ce,array as we,boolean as Te,datetime as Ee,defineComponentPropsSchema as De,enumSchema as $,getSchemaDefaultProps as Oe,number as ke,object as Ae,string as je,timeRange as Me,withInspectorMeta as Ne}from"./utils/schema/schema.mjs";import{generateMaterialMap as Pe,generateMaterialMapGroupByCategory as Fe}from"./utils/schema/utils.mjs";import{trackAdClick as Ie,trackAdImpression as Le,trackAdvertising as Re,trackAppPageView as ze,trackKeywordClick as Be,trackNavigation as Ve,trackPageClick as He,trackPageLifecycle as Ue,trackRecommendListClick as We,trackVideoEvent as Ge,usePageLifecycle as Ke}from"./utils/tracking.mjs";import{base64ToUint8Array as qe,uint8ArrayToBase64 as Je,uint8ArrayToNumberArray as Ye}from"./utils/uint8.mjs";import{encryptBncBuffer as Xe,uploadFile as Ze}from"./utils/upload-file.mjs";import{useRouter as Qe}from"./utils/use-compatible-router.mjs";export{R as EventBus,V as HttpClient,H as HttpError,Ce as INSPECTOR_META_KEY,pe as PASSWORD_ALLOWED_SPECIAL_CHARS,me as PASSWORD_MAX_LENGTH,he as PASSWORD_MIN_LENGTH,we as array,qe as base64ToUint8Array,Te as boolean,U as checkFollowStatus,S as clearMyChannelsFromStorage,E as cn,se as components,re as compressImage,ue as createInputAndSelectFile,Ee as datetime,ee as debounceFun,O as decryptImageToArrayBuffer,k as decryptImageToUint8Array,A as decryptImageUrl,Q as defaultImageCompressionMaxSizeMB,ie as defaultImageCompressionQuality,De as defineComponentPropsSchema,xe as defineMaterial,J as disablePageScroll,Y as enablePageScroll,Xe as encryptBncBuffer,$ as enum,$ as enumSchema,W as followUser,te as formatCompactCount,ne as formatVideoDuration,e as generateDynamicSign,Pe as generateMaterialMap,Fe as generateMaterialMapGroupByCategory,t as generateUUID,G as getAppId,n as getAtUserElement,r as getCookie,de as getCoverImage,i as getCurrentSecondTime,K as getCurrentUserId,ge as getFirstInvalidPasswordChar,ae as getImageCompressionQuality,fe as getImageResolutionFromFile,x as getOrCreateBrowserFingerprint,I as getOrCreateDeviceId,_e as getPasswordCharacterTypeCount,ve as getPasswordValidationErrorText,D as getResUrl,Oe as getSchemaDefaultProps,a as getUserId,j as guessImageContentTypeFromUrl,o as hashPassword,B as httpClient,oe as imageCompressionQualityRules,s as isClient,M as isEncryptedImageUrl,c as isMobileDevice,L as isValidEmail,ce as loadComponent,C as loadHiddenChannelIdsFromStorage,w as loadMyChannelsFromStorage,X as normalizeClassName,l as numToString,ke as number,Ae as object,Se as overwriteMaterial,u as parseResolution,d as parseTextAtUserIds,Z as pxToVw,f as randomString,p as removeCookie,m as replaceAtUserElement,h as replaceAtUserElementHtmlStr,N as resolveImageUrl,z as resolveRequestUserId,le as rewriteComponent,T as saveHiddenChannelIdsToStorage,g as secondToTime,_ as setCookie,P as shouldProbeImageUrl,F as shouldUseApiResDirectly,je as string,v as stringToNumber,y as stripHtmlTags,Me as timeRange,Ie as trackAdClick,Le as trackAdImpression,Re as trackAdvertising,ze as trackAppPageView,Be as trackKeywordClick,Ve as trackNavigation,He as trackPageClick,Ue as trackPageLifecycle,We as trackRecommendListClick,Ge as trackVideoEvent,Je as uint8ArrayToBase64,Ye as uint8ArrayToNumberArray,q as unfollowUser,b as updateUrlParams,Ze as uploadFile,be as uploadToS3WithPresignedUrl,Ke as usePageLifecycle,Qe as useRouter,ye as validatePasswordPair,Ne as withInspectorMeta};
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils.mjs";
|
|
4
|
-
import { hotRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
5
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
-
//#region components/biz/business/hot-recommend/client.d.ts
|
|
8
|
-
type HotRecommendProps = InferSchemaProps<typeof hotRecommendInspectorPropsSchema>;
|
|
9
|
-
interface ClientProps extends HotRecommendProps {
|
|
10
|
-
onItemClick?: (keyword: string) => void;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* 热门推荐物料组件 - 客户端部分
|
|
14
|
-
*/
|
|
15
|
-
declare function HotRecommendClient(props: ClientProps): react_jsx_runtime0.JSX.Element | null;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { HotRecommendClient, HotRecommendProps };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{useUserStore as e}from"../../../../store/modules/user-store.mjs";import{gContentGetRecommendSearchList as t}from"../../../../service/generated/client.mjs";import{useRouter as n}from"../../../../utils/use-compatible-router.mjs";import{Box as r}from"../../../ui/box.mjs";import{Text as i}from"../../../ui/text.mjs";import{useRequest as a}from"../../../../hooks/query/use-query.mjs";import{useCallback as o,useId as s,useMemo as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{usePathname as p,useSearchParams as m}from"next/navigation";import{useShallow as h}from"zustand/react/shallow";function g(e,t){if(e.length<=t)return[...e];let n=[...e];for(let e=0;e<t;e++){let t=e+Math.floor(Math.random()*(n.length-e));[n[e],n[t]]=[n[t],n[e]]}return n.slice(0,t)}function _({className:e=``}){let t=s().replace(/:/g,``);return f(`svg`,{viewBox:`0 0 62.4481 14.192`,fill:`none`,"aria-hidden":!0,className:e,children:[f(`g`,{children:[d(`path`,{d:`M50.7201 4V3.04H47.9841V0.768H50.7201V0H53.3281V0.768H57.1201V0H59.7441V0.768H62.4481V3.04H59.7441V4H57.1201V3.04H53.3281V4H50.7201ZM48.1281 8.32C48.4587 8.32 48.8054 8.27733 49.1681 8.192C49.5307 8.096 49.8934 7.968 50.2561 7.808C50.6294 7.63733 50.9867 7.43467 51.3281 7.2C51.6801 6.95467 52.0054 6.688 52.3041 6.4H48.3041V4.464H53.5681C53.7067 4.112 53.7761 3.72267 53.7761 3.296H56.4641C56.4641 3.68 56.4107 4.06933 56.3041 4.464H62.1121V6.4H55.5041C55.4401 6.51733 55.3707 6.62933 55.2961 6.736C55.2321 6.832 55.1574 6.93867 55.0721 7.056H61.1841V7.536C61.1841 7.94133 61.1147 8.33067 60.9761 8.704C60.8481 9.07733 60.5921 9.39733 60.2081 9.664H62.3041V11.488H59.2801V11.696C59.2801 12.1653 59.2267 12.5547 59.1201 12.864C59.0134 13.1733 58.8534 13.4187 58.6401 13.6C58.4267 13.792 58.1601 13.9253 57.8401 14C57.5201 14.0747 57.1521 14.112 56.7361 14.112H54.7361V12.432H55.2481C55.5894 12.4213 55.8561 12.4 56.0481 12.368C56.2507 12.336 56.4001 12.288 56.4961 12.224C56.6027 12.16 56.6721 12.0853 56.7041 12C56.7361 11.9147 56.7521 11.8133 56.7521 11.696V11.488H53.2161V9.664H56.7521V9.44C57.2321 9.44 57.6267 9.39733 57.9361 9.312C58.2454 9.216 58.4747 9.04 58.6241 8.784H54.4641V7.856C54.1547 8.208 53.8187 8.544 53.4561 8.864C53.1041 9.17333 52.7254 9.456 52.3201 9.712V14.176H49.7761V10.784C49.2534 10.912 48.7041 10.976 48.1281 10.976V8.32Z`,fill:`url(#${t})`}),d(`path`,{d:`M40.3361 0.0159912C40.3361 0.805325 40.2614 1.53066 40.1121 2.19199H46.3841V4.28799H44.3361V5.45599H46.1601V7.31199H44.3361V8.47999H46.1601V10.352H44.3361V11.648H46.4961V13.968H40.1121V14.192H37.5681V5.63199C37.3441 5.69599 37.1201 5.72799 36.8961 5.72799V2.92799C37.2694 2.92799 37.5361 2.68799 37.6961 2.20799C37.8561 1.72799 37.9361 0.997325 37.9361 0.0159912H40.3361ZM33.2641 0.0159912H35.6641V2.20799H36.6721V4.57599H35.6641V6.20799L36.6881 6.09599V8.47999L35.6641 8.62399V10.992C35.6641 11.408 35.6427 11.8027 35.6001 12.176C35.5574 12.56 35.4507 12.8907 35.2801 13.168C35.1201 13.456 34.8801 13.68 34.5601 13.84C34.2401 14.0107 33.8081 14.096 33.2641 14.096H32.1921V11.872H32.6241C32.9014 11.872 33.0774 11.7973 33.1521 11.648C33.2267 11.488 33.2641 11.184 33.2641 10.736V8.97599L31.9841 9.15199V6.63999L33.2641 6.49599V4.57599H32.0641V2.20799H33.2641V0.0159912ZM41.6001 0.0159912H44.4161L44.4641 1.90399H41.6481L41.6001 0.0159912ZM40.1121 5.45599H41.8881V4.28799H40.1121V5.45599ZM40.1121 8.47999H41.8881V7.31199H40.1121V8.47999ZM40.1121 11.648H41.8881V10.352H40.1121V11.648Z`,fill:`url(#${t})`}),d(`path`,{d:`M16.6721 2.49599L16.6081 0.0159912H19.8401L19.9041 2.49599H16.6721ZM24.9601 14.192V11.68H25.7121C26.0427 11.68 26.2987 11.6587 26.4801 11.616C26.6721 11.5733 26.8161 11.4987 26.9121 11.392C27.0081 11.2747 27.0667 11.12 27.0881 10.928C27.1094 10.736 27.1201 10.4907 27.1201 10.192V2.68799H20.8001V0.175991H29.9521V10.448C29.9521 11.2267 29.8827 11.8613 29.7441 12.352C29.6161 12.8427 29.3921 13.2213 29.0721 13.488C28.7521 13.7653 28.3201 13.952 27.7761 14.048C27.2321 14.144 26.5494 14.192 25.7281 14.192H24.9601ZM16.5441 14.192V3.23199H19.3761V14.192H16.5441Z`,fill:`url(#${t})`}),d(`path`,{d:`M6.48499e-05 7.18399V5.10399L1.87206 5.02399V3.82399H0.176065V1.45599H1.87206V0.0159912H4.25607V1.45599H6.00007V3.82399H4.25607V4.91199L5.84007 4.84799V6.92799L4.25607 6.99199V8.36799C4.25607 8.73066 4.22407 9.06132 4.16007 9.35999C4.09607 9.65866 3.97873 9.91466 3.80806 10.128C3.64807 10.3413 3.41873 10.5067 3.12007 10.624C2.83207 10.7413 2.45873 10.8 2.00006 10.8H0.592065V8.68799H1.05606C1.24806 8.68799 1.3974 8.66666 1.50406 8.62399C1.6214 8.58132 1.70673 8.52266 1.76006 8.44799C1.8134 8.36266 1.8454 8.26666 1.85606 8.15999C1.86673 8.04266 1.87206 7.91999 1.87206 7.79199V7.10399L6.48499e-05 7.18399ZM13.8081 10.864C12.7627 10.864 12.0054 10.624 11.5361 10.144C11.0774 9.66399 10.8481 8.86933 10.8481 7.75999V3.82399H9.84007V4.87999V5.02399H10.5121V6.68799H9.76007C9.6854 7.46666 9.55206 8.12266 9.36006 8.65599C9.17873 9.18932 8.9174 9.62133 8.57607 9.95199C8.2454 10.2827 7.8294 10.5227 7.32807 10.672C6.82673 10.8213 6.2294 10.896 5.53607 10.896V8.79999C5.8774 8.79999 6.1654 8.76799 6.40007 8.70399C6.6454 8.63999 6.84273 8.52799 6.99207 8.36799C7.1414 8.20799 7.25873 7.99466 7.34407 7.72799C7.4294 7.45066 7.48807 7.10399 7.52007 6.68799H6.35207V5.02399H7.58406V4.84799V3.82399H6.44807V1.45599H7.60007V0.0159912H9.85606V1.45599H13.2321V7.24799C13.2321 7.66399 13.2747 7.92533 13.3601 8.03199C13.4561 8.13866 13.6321 8.19199 13.8881 8.19199H14.3521V10.864H13.8081ZM0.144065 14.192L0.256065 11.232H3.21606L3.10406 14.192H0.144065ZM11.3921 14.192L11.2481 11.232H14.2241L14.3681 14.192H11.3921ZM4.17606 14.192L4.03207 11.296H6.73607L6.86407 14.192H4.17606ZM7.77607 14.192L7.63207 11.296H10.3841L10.5121 14.192H7.77607Z`,fill:`url(#${t})`})]}),d(`defs`,{children:f(`linearGradient`,{id:t,x1:`33.7161`,y1:`-4.59601`,x2:`60.7161`,y2:`18.404`,gradientUnits:`userSpaceOnUse`,children:[d(`stop`,{stopColor:`#E914E9`}),d(`stop`,{offset:`1`,stopColor:`#6C43EE`})]})})]})}function v({className:e=``}){return d(`svg`,{viewBox:`0 0 16.6667 16.6667`,fill:`none`,"aria-hidden":!0,className:e,children:d(`path`,{d:`M8.33333 1.66667C6.04287 1.66667 4.0209 2.82188 2.82036 4.58333H5V6.25H0V1.25H1.66667V3.3328C3.18651 1.30972 5.60637 0 8.33333 0C12.9357 0 16.6667 3.73096 16.6667 8.33333H15C15 4.65143 12.0152 1.66667 8.33333 1.66667ZM1.66667 8.33333C1.66667 12.0152 4.65143 15 8.33333 15C10.6238 15 12.6458 13.8447 13.8463 12.0833H11.6667V10.4167H16.6667V15.4167H15V13.3338C13.4802 15.3569 11.0603 16.6667 8.33333 16.6667C3.73096 16.6667 0 12.9357 0 8.33333H1.66667Z`,fill:`currentColor`})})}function y({variant:e,className:t=``}){let n=s().replace(/:/g,``),r=e===`gold`?`#FFF047`:`#D7D7D7`;return f(`svg`,{viewBox:`0 0 10 8`,fill:`none`,"aria-hidden":!0,className:t,children:[d(`path`,{d:`M0.72289 1.44405L2.67531 2.6057L4.62168 0.173795C4.77092 -0.0126857 5.06132 -0.0558774 5.27027 0.0773202C5.31202 0.103935 5.34852 0.136533 5.37837 0.173795L7.32476 2.6057L9.27714 1.44405C9.49083 1.31693 9.77946 1.36845 9.92192 1.55913C9.98315 1.64113 10.0097 1.73991 9.99682 1.83779L9.23283 7.63352C9.20526 7.84249 9.00682 8 8.77105 8H1.22899C0.99323 8 0.794784 7.84249 0.767236 7.63352L0.00322932 1.83779C-0.0267734 1.61019 0.155642 1.40398 0.410663 1.3772C0.520333 1.36569 0.631013 1.38938 0.72289 1.44405ZM5.00005 5.51033C5.51357 5.51033 5.92993 5.13878 5.92993 4.68043C5.92993 4.22209 5.51357 3.85054 5.00005 3.85054C4.48647 3.85054 4.07016 4.22209 4.07016 4.68043C4.07016 5.13878 4.48647 5.51033 5.00005 5.51033Z`,fill:`url(#${n})`}),d(`defs`,{children:f(`linearGradient`,{id:n,x1:`5`,y1:`0`,x2:`5`,y2:`8`,gradientUnits:`userSpaceOnUse`,children:[d(`stop`,{stopColor:r}),d(`stop`,{offset:`1`,stopColor:r,stopOpacity:`0`})]})})]})}function b(s){let{title:b,displayCount:x=4,showRefresh:S=!1,onItemClick:C,mode:w=`renderer`}=s,T=w===`editor`,E=n(),D=p(),O=m(),k=b.trim()||`热门推荐`,A=Math.max(1,x||0),[j,M]=u(0),[N,P]=u(!1),F=l(null),{userInfo:I}=e(h(e=>({userInfo:e.userInfo}))),L=I?.user_id||`guest`,{data:R}=a([`hot-recommend-keyword-list`,L],()=>t({user_id:L}),{enabled:!T}),z=c(()=>(R?.data?.recommend_list??[]).map(e=>({label:e.title??``})).filter(e=>e.label),[R]),B=o(()=>{N||(P(!0),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>{M(e=>e+1),P(!1),F.current=null},500))},[N]),V=c(()=>T?Array.from({length:A},(e,t)=>({label:`推荐搜索${t+1}`})):z,[T,z,A]),H=c(()=>g(V,A),[A,V,j]);if(!T&&z.length<2)return null;let U=e=>{if(C){C(e);return}let t=new URLSearchParams(O.toString());t.set(`q`,e);let n=D.includes(`/search-result`)?D:`/search-result`;E.push(`${n}?${t.toString()}`)};return f(r,{className:`relative mx-[16px] mt-[24px] overflow-hidden rounded-[12px] bg-black${T?` pointer-events-none`:``}`,children:[d(r,{className:`pointer-events-none absolute inset-0 rounded-[12px]`,style:{background:`linear-gradient(180deg, #9756E3 0%, #6C43EE 100%), linear-gradient(180deg, rgba(255,30,255,0.7) 0%, rgba(108,67,238,0) 100%)`,padding:`0.5px`,WebkitMask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,WebkitMaskComposite:`xor`,mask:`linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)`,maskComposite:`exclude`}}),d(r,{className:`pointer-events-none absolute inset-x-0 top-0 rounded-t-[12px] mix-blend-plus-lighter`,style:{height:`259px`,background:`linear-gradient(180deg, rgba(151,86,227,0.4) 0%, rgba(151,86,227,0) 85%)`}}),f(r,{className:`relative px-[24px] pb-[18px] pt-[22px]`,children:[f(r,{className:`flex items-center justify-between`,children:[k===`热门推荐`?d(_,{className:`h-[14.192px] w-[62.448px] shrink-0`}):d(i,{className:`shrink-0 bg-[linear-gradient(90deg,#E914E9_0%,#6C43EE_100%)] bg-clip-text font-["PingFang_SC"] text-[16px] font-semibold leading-none text-transparent`,children:k}),S&&d(`button`,{type:`button`,"aria-label":`刷新`,className:`flex h-[20px] w-[20px] shrink-0 items-center justify-center text-white/40 transition-opacity active:opacity-70`,onClick:B,children:d(v,{className:`h-[16.6667px] w-[16.6667px] ${N?`animate-spin`:``}`})})]}),d(r,{className:`mt-[7px]`,children:H.map((e,t)=>{let n=t<3,a=t<2,o=n?`text-[#C922EF]`:`text-white/70`,s=n?`text-white/90`:`text-white/70`;return f(r,{children:[f(`button`,{type:`button`,className:`flex h-[48px] w-full items-center gap-[4px] text-left transition-opacity active:opacity-70`,onClick:()=>U(e.label),children:[f(r,{className:`relative flex h-[24px] w-[20px] shrink-0 items-end justify-center`,children:[a?d(y,{variant:t===0?`gold`:`silver`,className:`absolute left-1/2 top-0 h-[8px] w-[10px] -translate-x-1/2`}):null,d(i,{className:`font-['DIN_Black'] text-[14px] font-normal not-italic leading-[24px] ${o}`,children:t+1})]}),d(i,{className:`min-w-0 flex-1 truncate font-['PingFang_SC'] text-[14px] font-normal not-italic leading-[24px] ${s}`,children:e.label})]}),t<H.length-1?d(r,{className:`h-px w-full bg-white/[0.08]`}):null]},`${e.label}-${t}`)})})]})]})}export{b as HotRecommendClient};
|
|
@@ -1,25 +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 { HotRecommendClient } from "./client.mjs";
|
|
6
|
-
import { HotRecommendServer } 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/hot-recommend/material.d.ts
|
|
11
|
-
declare const hotRecommendMaterial: DefineMaterialOption<typeof HotRecommendServer, typeof HotRecommendClient, zod.ZodObject<{
|
|
12
|
-
readonly title: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
-
readonly displayCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
14
|
-
readonly showRefresh: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
15
|
-
readonly items: zod.ZodArray<zod.ZodObject<{
|
|
16
|
-
label: zod.ZodString & SchemaHasDefaultValue;
|
|
17
|
-
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
18
|
-
} & {
|
|
19
|
-
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
20
|
-
renderer: "renderer";
|
|
21
|
-
editor: "editor";
|
|
22
|
-
}>>;
|
|
23
|
-
}, zod_v4_core0.$strip>, "hot-recommend", "内容组件">;
|
|
24
|
-
//#endregion
|
|
25
|
-
export { hotRecommendMaterial };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{HotRecommendClient as t}from"./client.mjs";import{hotRecommendInspectorPropsSchema as n}from"./schema.mjs";import{HotRecommendServer as r}from"./server.mjs";const i=e({type:`hot-recommend`,name:`热门推荐`,icon:`/static/components-thumb/search_recommend_text.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as hotRecommendMaterial};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils.mjs";
|
|
4
|
-
import { z } from "zod";
|
|
5
|
-
|
|
6
|
-
//#region components/biz/business/hot-recommend/schema.d.ts
|
|
7
|
-
/**
|
|
8
|
-
* 热门推荐物料属性定义
|
|
9
|
-
*/
|
|
10
|
-
declare const hotRecommendInspectorPropsSchema: z.ZodObject<{
|
|
11
|
-
readonly title: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
-
readonly displayCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
-
readonly showRefresh: z.ZodBoolean & SchemaHasDefaultValue;
|
|
14
|
-
readonly items: z.ZodArray<z.ZodObject<{
|
|
15
|
-
label: z.ZodString & SchemaHasDefaultValue;
|
|
16
|
-
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
17
|
-
} & {
|
|
18
|
-
mode: z.ZodOptional<z.ZodEnum<{
|
|
19
|
-
renderer: "renderer";
|
|
20
|
-
editor: "editor";
|
|
21
|
-
}>>;
|
|
22
|
-
}, z.core.$strip>;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { hotRecommendInspectorPropsSchema };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineComponentPropsSchema as e}from"../../../../utils/schema/schema.mjs";import{z as t}from"zod";const n=e(e=>({title:e.string(`热门推荐`,{label:`标题名称`,description:`支持输入,中/英/数/符,6个字符`}),displayCount:e.number(4,{label:`展示数`}),showRefresh:e.boolean(!1,{label:`是否展示换一批`,fieldType:`switch`}),items:e.array(t.object({label:e.string(``,{label:`热词`})}),{label:`关键词列表`,defaultValue:[]})}));export{n as hotRecommendInspectorPropsSchema};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { HotRecommendProps } from "./client.mjs";
|
|
3
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region components/biz/business/hot-recommend/server.d.ts
|
|
6
|
-
/**
|
|
7
|
-
* 热门推荐物料组件 - 服务端部分
|
|
8
|
-
*/
|
|
9
|
-
declare function HotRecommendServer(props: HotRecommendProps): Promise<react_jsx_runtime0.JSX.Element>;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { HotRecommendServer };
|