@funhub/platform 0.1.62 → 0.1.64
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/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/collect_nor.mjs +1 -21
- package/dist/assets/icons/detail/collect_sel.mjs +1 -21
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/share.mjs +1 -17
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -21
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/right_arrow.mjs +1 -14
- package/dist/assets/icons/search/avatar.mjs +1 -36
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search/video.mjs +1 -27
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/marquee.mjs +1 -5
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -145
- package/dist/common.mjs +1 -44
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -391
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -273
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -373
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -169
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -55
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -31
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -64
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -126
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -121
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -21
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -85
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -22
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -107
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -107
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/channel-list/client.mjs +1 -111
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -12
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -39
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -190
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -978
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -105
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -24
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -82
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +1 -64
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -330
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -67
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -55
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -25
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -393
- package/dist/components/biz/business/detail/video-detail-actions/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -28
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-info/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -40
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-info-title/client.mjs +1 -27
- package/dist/components/biz/business/detail/video-detail-info-title/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-info-title/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -49
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player/client.d.mts +2 -1
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -36
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +4 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -269
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -58
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -51
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -22
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -29
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -36
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -45
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -33
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -20
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -44
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -28
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -28
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -181
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +1 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -41
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -44
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +2 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -157
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +1 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -37
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -459
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -24
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -125
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -231
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -38
- package/dist/components/biz/business/image-text-recommend/client.d.mts +2 -0
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -379
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -117
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -65
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -84
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -88
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -81
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -212
- package/dist/components/biz/business/marquee/marquee.module.mjs +25 -13
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -91
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -148
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -120
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -289
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -60
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/server.mjs +1 -111
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -235
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -135
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -137
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -161
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -211
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -489
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -213
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -251
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -47
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -251
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -45
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -43
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -248
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -121
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -20
- package/dist/components/biz/business/search-history/server.mjs +1 -22
- package/dist/components/biz/business/search-input/client.mjs +1 -139
- package/dist/components/biz/business/search-input/material.mjs +1 -18
- package/dist/components/biz/business/search-input/schema.mjs +1 -11
- package/dist/components/biz/business/search-input/server.mjs +1 -21
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -64
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -70
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -78
- package/dist/components/biz/business/tab-bar/material.d.mts +0 -1
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.d.mts +0 -1
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -69
- package/dist/components/biz/business/tab-bar/server.mjs +1 -18
- package/dist/components/biz/business/text-recommend/client.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/client.mjs +1 -80
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -28
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.mjs +1 -47
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -71
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/collection-create-modal.mjs +1 -130
- package/dist/components/common/collection-popup/index.mjs +1 -292
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -35
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -85
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -45
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop/image-crop.mjs +1 -182
- package/dist/components/common/image-crop/show-image-crop.mjs +1 -102
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -70
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -93
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -21
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -468
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -139
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -104
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -29
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -321
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -97
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.mjs +1 -64
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -76
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -429
- package/dist/components/common/share-popup/share-content.mjs +1 -152
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -300
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
- package/dist/components/common/tab-bar/index.mjs +1 -125
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -63
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -701
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -282
- package/dist/components/common/video-player/style.module.mjs +259 -7
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -43
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -161
- package/dist/components/pages/collection-create/form.mjs +1 -163
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/detail.mjs +1 -518
- package/dist/components/pages/collection-detail/index.mjs +1 -10
- package/dist/components/pages/collection-detail/page.mjs +1 -18
- package/dist/components/pages/edit/index.mjs +1 -10
- package/dist/components/pages/edit/page.mjs +1 -576
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -382
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -263
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -104
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -169
- package/dist/components/pages/home/index.mjs +1 -56
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -36
- package/dist/components/pages/login/forgot.mjs +1 -130
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -214
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -189
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/verify.mjs +3 -212
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -185
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -159
- package/dist/components/pages/search/search-result/index.mjs +1 -22
- package/dist/components/pages/search/search-result/search-all.mjs +1 -223
- package/dist/components/pages/search/search-result/search-user.mjs +1 -203
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -301
- package/dist/components/pages/search/search-utils.mjs +1 -48
- package/dist/components/pages/search/style.module.mjs +113 -13
- package/dist/components/pages/search/top-header.mjs +1 -89
- package/dist/components/pages/search-result/page-client.mjs +1 -110
- package/dist/components/pages/search-result/search-all.mjs +1 -79
- package/dist/components/pages/search-result/search-tab.mjs +1 -89
- package/dist/components/pages/search-result/search-user.mjs +1 -258
- package/dist/components/pages/search-result/search-video.mjs +1 -226
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -256
- package/dist/components/pages/settings/_components/settings.mjs +1 -183
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -338
- package/dist/components/pages/video-list/index.mjs +1 -58
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -111
- package/dist/components/pages/video-list/video-list-item.mjs +1 -35
- package/dist/components/ui/accordion.mjs +1 -62
- package/dist/components/ui/alert-dialog.mjs +1 -114
- package/dist/components/ui/alert.mjs +1 -50
- package/dist/components/ui/aspect-ratio.mjs +1 -17
- package/dist/components/ui/avatar.mjs +1 -97
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.mjs +1 -49
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.mjs +1 -50
- package/dist/components/ui/card.mjs +1 -65
- package/dist/components/ui/carousel.mjs +1 -142
- package/dist/components/ui/checkbox.mjs +1 -25
- package/dist/components/ui/collapsible.mjs +1 -31
- package/dist/components/ui/combobox.mjs +1 -185
- package/dist/components/ui/context-menu.mjs +1 -150
- package/dist/components/ui/dialog.mjs +1 -109
- package/dist/components/ui/drawer.mjs +1 -91
- package/dist/components/ui/dropdown-menu.mjs +1 -154
- package/dist/components/ui/empty-icons.mjs +7 -96
- package/dist/components/ui/empty.mjs +1 -95
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.mjs +1 -202
- package/dist/components/ui/infinite-scroll.mjs +1 -134
- package/dist/components/ui/input-group.mjs +1 -90
- package/dist/components/ui/input.mjs +1 -19
- package/dist/components/ui/item.mjs +1 -137
- package/dist/components/ui/kbd.mjs +1 -24
- package/dist/components/ui/label.mjs +1 -18
- package/dist/components/ui/legacy/badge.mjs +1 -80
- package/dist/components/ui/legacy/button.mjs +1 -55
- package/dist/components/ui/legacy/input.mjs +1 -22
- package/dist/components/ui/legacy/popover.mjs +1 -69
- package/dist/components/ui/link.mjs +1 -29
- package/dist/components/ui/list.mjs +5 -221
- package/dist/components/ui/loading.mjs +1 -44
- package/dist/components/ui/mask.mjs +1 -17
- package/dist/components/ui/menubar.mjs +1 -154
- package/dist/components/ui/native-select.mjs +1 -43
- package/dist/components/ui/pagination.mjs +1 -90
- package/dist/components/ui/popover.mjs +1 -73
- package/dist/components/ui/popup.mjs +1 -44
- package/dist/components/ui/progress.mjs +1 -53
- package/dist/components/ui/radio-group.mjs +1 -34
- package/dist/components/ui/rate.mjs +1 -69
- package/dist/components/ui/scroll-area.mjs +1 -43
- package/dist/components/ui/select.mjs +1 -113
- package/dist/components/ui/separator.mjs +1 -20
- package/dist/components/ui/sheet.mjs +1 -109
- package/dist/components/ui/skeleton.mjs +1 -16
- package/dist/components/ui/slider.mjs +1 -46
- package/dist/components/ui/sonner.mjs +1 -34
- package/dist/components/ui/spinner.mjs +1 -18
- package/dist/components/ui/switch.mjs +1 -65
- package/dist/components/ui/table.mjs +1 -78
- package/dist/components/ui/tabs.mjs +1 -54
- package/dist/components/ui/text.mjs +1 -20
- package/dist/components/ui/textarea.mjs +1 -16
- package/dist/components/ui/time.mjs +1 -91
- package/dist/components/ui/toggle-group.mjs +1 -59
- package/dist/components/ui/toggle.mjs +1 -41
- package/dist/components/ui/tooltip.mjs +1 -49
- package/dist/components/ui/wheel-picker.mjs +1 -28
- package/dist/constants/event-key.mjs +1 -18
- package/dist/constants/query-key.mjs +1 -32
- package/dist/constants/revalidate.mjs +1 -9
- package/dist/constants/site.mjs +1 -11
- package/dist/constants/url-prefix.mjs +1 -8
- package/dist/hooks/image-text-recommend.mjs +1 -71
- package/dist/hooks/query/hydration-boundary.mjs +1 -34
- package/dist/hooks/query/use-query.mjs +1 -114
- package/dist/hooks/use-auth.mjs +1 -198
- package/dist/hooks/use-browse-report.mjs +1 -466
- package/dist/hooks/use-card-decoration.mjs +1 -92
- package/dist/hooks/use-content-operate.mjs +1 -514
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-search-history.mjs +1 -40
- package/dist/hooks/use-sticky.mjs +1 -38
- package/dist/hooks.mjs +1 -14
- package/dist/i18n/locales/en.mjs +3 -813
- package/dist/i18n/locales/zh-CN.mjs +3 -813
- package/dist/i18n/messages.mjs +1 -20
- package/dist/i18n/translator.mjs +1 -38
- package/dist/i18n.mjs +1 -165
- package/dist/materials.mjs +1 -63
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
- package/dist/pages.mjs +1 -22
- package/dist/seo/build-metadata.mjs +1 -163
- package/dist/seo/config/index.mjs +1 -22
- package/dist/seo/config/page.mjs +6 -301
- package/dist/seo/config/site.mjs +1 -25
- package/dist/seo/constants.mjs +1 -31
- package/dist/seo/helpers.mjs +1 -120
- package/dist/seo/resource-hints.mjs +1 -60
- package/dist/seo/robots.mjs +1 -36
- package/dist/seo/sitemap.mjs +1 -44
- package/dist/seo/structured-data/article.mjs +1 -51
- package/dist/seo/structured-data/common.mjs +1 -60
- package/dist/seo/structured-data/video.mjs +1 -41
- package/dist/seo/viewport.mjs +1 -31
- package/dist/seo.mjs +1 -15
- package/dist/service/generated/client.mjs +1 -1138
- package/dist/service/generated/tanstack.mjs +1 -1049
- package/dist/service.mjs +1 -4
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -135
- package/dist/store/modules/media-preview-store.mjs +1 -54
- package/dist/store/modules/publish-store.mjs +1 -31
- package/dist/store/modules/use-demo-store.mjs +1 -17
- package/dist/store/modules/user-store.mjs +1 -113
- package/dist/store.mjs +1 -10
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -57
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -296
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -198
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -41
- package/dist/utils/http.mjs +1 -194
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -110
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -200
- package/dist/utils/schema/utils.mjs +1 -33
- package/dist/utils/share-manager.mjs +1 -156
- package/dist/utils/tools.mjs +1 -105
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils.mjs +1 -21
- package/package.json +1 -1
|
@@ -1,339 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { getChannelList } from "../../biz/utils/helpers/get-channel-list.mjs";
|
|
5
|
-
import { cn } from "../../../utils/cn.mjs";
|
|
6
|
-
import getResUrl from "../../../utils/get-res-url.mjs";
|
|
7
|
-
import { decryptImageToUint8Array } from "../../../utils/decrypt-image-client.mjs";
|
|
8
|
-
import { gContentGetAppChannels, gContentGetVideoDetail, pInteractionBrowse } from "../../../service/generated/client.mjs";
|
|
9
|
-
import { uint8ArrayToBase64 } from "../../../utils/uint8.mjs";
|
|
10
|
-
import { EmptyState } from "../../ui/empty.mjs";
|
|
11
|
-
import { useRequest } from "../../../hooks/query/use-query.mjs";
|
|
12
|
-
import { queryKey } from "../../../constants/query-key.mjs";
|
|
13
|
-
import { useKeepAliveEffect, useKeepAliveState } from "../../common/keep-scroll-position/index.mjs";
|
|
14
|
-
import { apiCollectClick } from "../../../utils/api-collect.mjs";
|
|
15
|
-
import { batchQueryContentInteractions } from "../../../hooks/use-content-operate.mjs";
|
|
16
|
-
import detail_search_bar_default from "../../biz/business/search-bar/variants/detail-search-bar/index.mjs";
|
|
17
|
-
import { VideoDetailMaterialRuntimeProvider } from "../../biz/business/detail/shared/runtime-context-provider.mjs";
|
|
18
|
-
import { resolveMaterialProps, videoDetailMaterials } from "../../biz/business/detail/shared/registry.mjs";
|
|
19
|
-
import { DetailHero } from "../../biz/business/detail/shared/video-hero.mjs";
|
|
20
|
-
import { Fragment, useCallback, useEffect, useMemo } from "react";
|
|
21
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { useTranslations } from "next-intl";
|
|
23
|
-
import { useParams, useSearchParams } from "next/navigation";
|
|
24
|
-
|
|
25
|
-
//#region components/pages/video-detail/video-detail-client.tsx
|
|
26
|
-
const DEFAULT_VIDEO_DETAIL_MATERIAL_CONFIG = [
|
|
27
|
-
{
|
|
28
|
-
id: "detail-info",
|
|
29
|
-
componentName: "video-detail-info",
|
|
30
|
-
props: {}
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
id: "detail-actions",
|
|
34
|
-
componentName: "video-detail-actions",
|
|
35
|
-
props: {}
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
id: "detail-recommend",
|
|
39
|
-
componentName: "video-detail-recommend",
|
|
40
|
-
props: { rows: 2 }
|
|
41
|
-
}
|
|
42
|
-
];
|
|
43
|
-
function VideoDetailClient({ detailId, initialInformation, isWebView = false, materialConfig }) {
|
|
44
|
-
const t = useTranslations("components.pages.videoDetail");
|
|
45
|
-
const params = useParams();
|
|
46
|
-
const searchParams = useSearchParams();
|
|
47
|
-
const level = params.level;
|
|
48
|
-
const normalizedLevel = Array.isArray(level) ? level : typeof level === "string" ? [level] : [];
|
|
49
|
-
const episodeTokenIndex = normalizedLevel.findIndex((item) => item === "episode");
|
|
50
|
-
const seriesNumText = episodeTokenIndex >= 0 ? normalizedLevel[episodeTokenIndex + 1] : normalizedLevel[2];
|
|
51
|
-
const routeSeriesNum = Math.max(1, Number(seriesNumText) || 1);
|
|
52
|
-
const [currentSeriesNum, setCurrentSeriesNum] = useKeepAliveState(`detail-current-series-num-${detailId}`, routeSeriesNum);
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
setCurrentSeriesNum(routeSeriesNum);
|
|
55
|
-
}, [
|
|
56
|
-
detailId,
|
|
57
|
-
routeSeriesNum,
|
|
58
|
-
setCurrentSeriesNum
|
|
59
|
-
]);
|
|
60
|
-
const episodeIndex = Math.max(0, currentSeriesNum - 1);
|
|
61
|
-
const { data: videoDetailRes } = useRequest(useMemo(() => {
|
|
62
|
-
return ["video-detail", detailId];
|
|
63
|
-
}, [detailId]), async () => {
|
|
64
|
-
if (!detailId) return null;
|
|
65
|
-
return await gContentGetVideoDetail({ id: detailId });
|
|
66
|
-
}, { enabled: Boolean(detailId) });
|
|
67
|
-
const resolvedDetailInformation = useMemo(() => {
|
|
68
|
-
const detail = videoDetailRes?.data?.video;
|
|
69
|
-
if (!detail || typeof detail !== "object") return null;
|
|
70
|
-
return {
|
|
71
|
-
...detail,
|
|
72
|
-
content_type: 1,
|
|
73
|
-
episode_cnt: detail.links?.length || 0
|
|
74
|
-
};
|
|
75
|
-
}, [videoDetailRes?.data?.video]);
|
|
76
|
-
const resolvedInitialInformation = initialInformation ?? resolvedDetailInformation ?? null;
|
|
77
|
-
const [information, setInformation] = useKeepAliveState(`detail-information-${detailId}`, resolvedInitialInformation);
|
|
78
|
-
const currentEpisodeId = information?.links?.[episodeIndex]?.id || "";
|
|
79
|
-
const { data: interactionData, isFetching: isInteractionFetching, isFetchedAfterMount: isInteractionFetchedAfterMount, isSuccess: isInteractionSuccess } = useRequest(useMemo(() => {
|
|
80
|
-
return [
|
|
81
|
-
"detail-interaction",
|
|
82
|
-
information?.id,
|
|
83
|
-
information?.content_type,
|
|
84
|
-
currentEpisodeId,
|
|
85
|
-
currentSeriesNum
|
|
86
|
-
];
|
|
87
|
-
}, [
|
|
88
|
-
currentEpisodeId,
|
|
89
|
-
currentSeriesNum,
|
|
90
|
-
information?.content_type,
|
|
91
|
-
information?.id
|
|
92
|
-
]), async () => {
|
|
93
|
-
if (!information?.id || typeof information.content_type !== "number") return null;
|
|
94
|
-
return await batchQueryContentInteractions([information.id], 1);
|
|
95
|
-
}, {
|
|
96
|
-
enabled: isWebView ? false : Boolean(information?.id),
|
|
97
|
-
staleTime: 0,
|
|
98
|
-
refetchOnMount: "always",
|
|
99
|
-
refetchOnWindowFocus: false
|
|
100
|
-
});
|
|
101
|
-
const resumeProgressSeconds = useMemo(() => {
|
|
102
|
-
if (!isInteractionFetchedAfterMount || isInteractionFetching || !isInteractionSuccess) return 0;
|
|
103
|
-
const browseRecord = (interactionData?.interaction_list?.[0])?.browse_record;
|
|
104
|
-
const browseDuration = Number(browseRecord?.browse_duration || 0);
|
|
105
|
-
if (!Number.isFinite(browseDuration) || browseDuration <= 0) return 0;
|
|
106
|
-
const browseEpisodeText = String(browseRecord?.browse_episode || "").trim();
|
|
107
|
-
if (!browseEpisodeText) return browseDuration;
|
|
108
|
-
const browseEpisode = Number.parseInt(browseEpisodeText, 10);
|
|
109
|
-
if (Number.isNaN(browseEpisode)) return 0;
|
|
110
|
-
return browseEpisode === currentSeriesNum ? browseDuration : 0;
|
|
111
|
-
}, [
|
|
112
|
-
currentSeriesNum,
|
|
113
|
-
interactionData,
|
|
114
|
-
isInteractionFetchedAfterMount,
|
|
115
|
-
isInteractionFetching,
|
|
116
|
-
isInteractionSuccess
|
|
117
|
-
]);
|
|
118
|
-
const [activeTab, setActiveTab] = useKeepAliveState(`info-detail-active-tab-${detailId}`, "video");
|
|
119
|
-
const [commentAddCount, setCommentAddCount] = useKeepAliveState(`info-detail-comment-add-count-${detailId}`, 0);
|
|
120
|
-
const [commentTotal, setCommentTotal] = useKeepAliveState(`info-detail-comment-total-${detailId}`, void 0);
|
|
121
|
-
const handleReportVideoBrowse = useCallback(async (payload) => {
|
|
122
|
-
const resolvedContentId = String(detailId || "").trim();
|
|
123
|
-
if (!resolvedContentId) return;
|
|
124
|
-
const resolvedBrowseEpisode = payload.browse_episode || currentSeriesNum;
|
|
125
|
-
const browsePageTs = Date.now();
|
|
126
|
-
const browseKey = String(payload.browse_key || browsePageTs);
|
|
127
|
-
try {
|
|
128
|
-
await pInteractionBrowse({
|
|
129
|
-
app_id: 0,
|
|
130
|
-
content_type: 1,
|
|
131
|
-
content_id: resolvedContentId,
|
|
132
|
-
browse_duration: Number(payload.browse_duration || 0),
|
|
133
|
-
browse_episode: String(resolvedBrowseEpisode),
|
|
134
|
-
browse_key: browseKey,
|
|
135
|
-
browse_page_ts: browsePageTs
|
|
136
|
-
});
|
|
137
|
-
} catch (error) {
|
|
138
|
-
console.error("上报播放进度失败:", error);
|
|
139
|
-
}
|
|
140
|
-
}, [currentSeriesNum, detailId]);
|
|
141
|
-
useEffect(() => {
|
|
142
|
-
if (!information && resolvedDetailInformation) setInformation(resolvedDetailInformation);
|
|
143
|
-
window.video = { [detailId]: information };
|
|
144
|
-
window.getVideoInfoAsync = async () => {
|
|
145
|
-
const m3u8Url = information?.links?.[episodeIndex]?.m3u8_url || "";
|
|
146
|
-
const src = m3u8Url ? `${process.env.NEXT_PUBLIC_API_BASE}/api/content/processM3u8?url=${encodeURIComponent(`${getResUrl()}/m3f/${m3u8Url}`)}` : "";
|
|
147
|
-
const posterUrl = information?.img_y || information?.img_x || information?.preview_images?.[0] || "";
|
|
148
|
-
let posterBase64 = "";
|
|
149
|
-
const res = await decryptImageToUint8Array(posterUrl);
|
|
150
|
-
if (res) posterBase64 = uint8ArrayToBase64(res.bytes);
|
|
151
|
-
return {
|
|
152
|
-
poster: posterBase64,
|
|
153
|
-
src,
|
|
154
|
-
title: information?.name || ""
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
window.getVideoBrowseRecordAsync = async () => {
|
|
158
|
-
const res = await batchQueryContentInteractions([detailId], 1);
|
|
159
|
-
if (res?.interaction_list?.[0]) return res.interaction_list[0].browse_record;
|
|
160
|
-
else return null;
|
|
161
|
-
};
|
|
162
|
-
window.reportVideoBrowse = handleReportVideoBrowse;
|
|
163
|
-
}, [
|
|
164
|
-
detailId,
|
|
165
|
-
episodeIndex,
|
|
166
|
-
information,
|
|
167
|
-
resolvedDetailInformation,
|
|
168
|
-
setInformation,
|
|
169
|
-
handleReportVideoBrowse
|
|
170
|
-
]);
|
|
171
|
-
useEffect(() => {
|
|
172
|
-
if (!interactionData?.interaction_list?.[0]) return;
|
|
173
|
-
const interaction = interactionData.interaction_list[0];
|
|
174
|
-
setInformation((prev) => {
|
|
175
|
-
if (!prev) return prev;
|
|
176
|
-
const rawLikeCnt = prev.static?.like_cnt;
|
|
177
|
-
const resolvedLikeCnt = typeof rawLikeCnt === "number" ? rawLikeCnt : Number(rawLikeCnt || 0);
|
|
178
|
-
const shouldFixLikeCnt = Boolean(interaction.is_liked) && resolvedLikeCnt === 0;
|
|
179
|
-
return {
|
|
180
|
-
...prev,
|
|
181
|
-
like: interaction.is_liked || false,
|
|
182
|
-
dislike: interaction.is_disliked || false,
|
|
183
|
-
collect: interaction.is_collected || false,
|
|
184
|
-
static: shouldFixLikeCnt ? {
|
|
185
|
-
...prev.static || {},
|
|
186
|
-
like_cnt: 1
|
|
187
|
-
} : prev.static
|
|
188
|
-
};
|
|
189
|
-
});
|
|
190
|
-
}, [interactionData, setInformation]);
|
|
191
|
-
const handleUpdateInformation = useCallback((nextData) => {
|
|
192
|
-
setInformation((prev) => {
|
|
193
|
-
if (!prev) return prev;
|
|
194
|
-
return {
|
|
195
|
-
...prev,
|
|
196
|
-
...nextData
|
|
197
|
-
};
|
|
198
|
-
});
|
|
199
|
-
}, [setInformation]);
|
|
200
|
-
useKeepAliveEffect(() => {
|
|
201
|
-
if (!information?.id) return;
|
|
202
|
-
/* @__PURE__ */ apiCollectClick({ contentId: information.id });
|
|
203
|
-
}, [information?.id], `detail-page-report-${detailId}`);
|
|
204
|
-
useEffect(() => {
|
|
205
|
-
if (!information || typeof window === "undefined") return;
|
|
206
|
-
window.sensors?.track?.("detail_page_view", {
|
|
207
|
-
object_id: information.id || detailId,
|
|
208
|
-
author_id: information.up_user,
|
|
209
|
-
object_type: information.content_type,
|
|
210
|
-
object_category: information.content_type,
|
|
211
|
-
object_tags: information.tags?.map((item) => item.name),
|
|
212
|
-
block_id: "",
|
|
213
|
-
page_source: window.location?.pathname || ""
|
|
214
|
-
});
|
|
215
|
-
}, [detailId, information]);
|
|
216
|
-
useEffect(() => {
|
|
217
|
-
setCommentAddCount(0);
|
|
218
|
-
}, [currentEpisodeId, setCommentAddCount]);
|
|
219
|
-
useMemo(() => {
|
|
220
|
-
return (typeof commentTotal === "number" ? commentTotal : 0) + commentAddCount;
|
|
221
|
-
}, [commentAddCount, commentTotal]);
|
|
222
|
-
const enableDiscussion = false;
|
|
223
|
-
const showVideoTab = true;
|
|
224
|
-
const handleNavigateToDiscussion = useCallback(() => {}, [enableDiscussion, setActiveTab]);
|
|
225
|
-
useCallback(() => {
|
|
226
|
-
setCommentAddCount((prev) => prev + 1);
|
|
227
|
-
}, [setCommentAddCount]);
|
|
228
|
-
useEffect(() => {}, [
|
|
229
|
-
enableDiscussion,
|
|
230
|
-
handleNavigateToDiscussion,
|
|
231
|
-
information?.id,
|
|
232
|
-
searchParams
|
|
233
|
-
]);
|
|
234
|
-
const handleEpisodeChange = useCallback((nextSeriesNum) => {
|
|
235
|
-
if (isWebView) {
|
|
236
|
-
const encodedName = encodeURIComponent(information?.name || "");
|
|
237
|
-
const newPath = `/webview/${information?.id}/${encodedName}/episode/${nextSeriesNum}`;
|
|
238
|
-
window.location.href = newPath;
|
|
239
|
-
} else setCurrentSeriesNum(nextSeriesNum);
|
|
240
|
-
}, [
|
|
241
|
-
information?.id,
|
|
242
|
-
information?.name,
|
|
243
|
-
isWebView,
|
|
244
|
-
setCurrentSeriesNum
|
|
245
|
-
]);
|
|
246
|
-
const isValidStatus = information?.status === "1";
|
|
247
|
-
const { data: _channelDataRes } = useRequest([queryKey.CHANNEL], () => gContentGetAppChannels());
|
|
248
|
-
const channelDataList = getChannelList(_channelDataRes?.data);
|
|
249
|
-
const resolvedMaterialConfig = useMemo(() => {
|
|
250
|
-
if (materialConfig !== void 0) {
|
|
251
|
-
const defaultMap = new Map(DEFAULT_VIDEO_DETAIL_MATERIAL_CONFIG.map((item) => [item.componentName, item]));
|
|
252
|
-
return materialConfig.map((config) => {
|
|
253
|
-
const fallback = defaultMap.get(config.componentName);
|
|
254
|
-
return {
|
|
255
|
-
...fallback,
|
|
256
|
-
...config,
|
|
257
|
-
props: {
|
|
258
|
-
...fallback?.props ?? {},
|
|
259
|
-
...config.props ?? {}
|
|
260
|
-
}
|
|
261
|
-
};
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
return DEFAULT_VIDEO_DETAIL_MATERIAL_CONFIG;
|
|
265
|
-
}, [materialConfig]);
|
|
266
|
-
const runtimeContext = useMemo(() => {
|
|
267
|
-
return {
|
|
268
|
-
information: information ?? void 0,
|
|
269
|
-
currentSeriesNum,
|
|
270
|
-
onEpisodeChange: handleEpisodeChange,
|
|
271
|
-
onUpdateInformation: handleUpdateInformation,
|
|
272
|
-
detailId,
|
|
273
|
-
episodeIndex,
|
|
274
|
-
resumeProgressSeconds,
|
|
275
|
-
isShow: showVideoTab
|
|
276
|
-
};
|
|
277
|
-
}, [
|
|
278
|
-
currentSeriesNum,
|
|
279
|
-
detailId,
|
|
280
|
-
episodeIndex,
|
|
281
|
-
handleEpisodeChange,
|
|
282
|
-
handleUpdateInformation,
|
|
283
|
-
information,
|
|
284
|
-
resumeProgressSeconds,
|
|
285
|
-
showVideoTab
|
|
286
|
-
]);
|
|
287
|
-
const renderMaterial = useCallback((config) => {
|
|
288
|
-
if (!information) return null;
|
|
289
|
-
const material = videoDetailMaterials[config.componentName];
|
|
290
|
-
if (!material) return null;
|
|
291
|
-
const Component = material.clientComponent;
|
|
292
|
-
const resolvedProps = resolveMaterialProps(material, config.props);
|
|
293
|
-
if (!resolvedProps.isValid) return /* @__PURE__ */ jsx("div", { children: "组件配置错误" });
|
|
294
|
-
return /* @__PURE__ */ jsx(Component, { ...resolvedProps.props });
|
|
295
|
-
}, [information]);
|
|
296
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
297
|
-
className: `w-full min-h-screen bg-bg2 text-text1 ${isWebView ? "" : "pt-11"}`,
|
|
298
|
-
children: [!isWebView && /* @__PURE__ */ jsx("div", {
|
|
299
|
-
className: "fixed bg-black top-0 left-0 right-0 z-[1000]",
|
|
300
|
-
children: /* @__PURE__ */ jsx(detail_search_bar_default, { data: { list: channelDataList } })
|
|
301
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
302
|
-
className: "mx-auto w-full max-w-[840px] pb-6",
|
|
303
|
-
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
304
|
-
information && !isValidStatus && /* @__PURE__ */ jsx(EmptyState, {
|
|
305
|
-
type: "no-content",
|
|
306
|
-
text: t("videoDetailClient.videoUnavailable")
|
|
307
|
-
}),
|
|
308
|
-
information && isValidStatus && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
309
|
-
!isWebView && /* @__PURE__ */ jsx(DetailHero, {
|
|
310
|
-
isVideo: true,
|
|
311
|
-
information,
|
|
312
|
-
episodeIndex,
|
|
313
|
-
resumeProgressSeconds
|
|
314
|
-
}),
|
|
315
|
-
/* @__PURE__ */ jsx("div", {
|
|
316
|
-
id: "selectPopupPosition",
|
|
317
|
-
className: "w-full"
|
|
318
|
-
}),
|
|
319
|
-
enableDiscussion,
|
|
320
|
-
/* @__PURE__ */ jsxs("div", {
|
|
321
|
-
className: cn("w-full", false),
|
|
322
|
-
children: [/* @__PURE__ */ jsx(VideoDetailMaterialRuntimeProvider, {
|
|
323
|
-
value: runtimeContext,
|
|
324
|
-
children: resolvedMaterialConfig.map((config) => /* @__PURE__ */ jsx(Fragment, { children: renderMaterial(config) }, config.id))
|
|
325
|
-
}), enableDiscussion]
|
|
326
|
-
}),
|
|
327
|
-
enableDiscussion
|
|
328
|
-
] }),
|
|
329
|
-
!information && /* @__PURE__ */ jsx(EmptyState, {
|
|
330
|
-
type: "no-content",
|
|
331
|
-
text: t("videoDetailClient.videoDeleted")
|
|
332
|
-
})
|
|
333
|
-
] })
|
|
334
|
-
})]
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
//#endregion
|
|
339
|
-
export { VideoDetailClient as default };
|
|
2
|
+
"use client";import{getChannelList as e}from"../../biz/utils/helpers/get-channel-list.mjs";import{cn as t}from"../../../utils/cn.mjs";import n from"../../../utils/get-res-url.mjs";import{decryptImageToUint8Array as r}from"../../../utils/decrypt-image-client.mjs";import{gContentGetAppChannels as i,gContentGetVideoDetail as a,pInteractionBrowse as o}from"../../../service/generated/client.mjs";import{uint8ArrayToBase64 as s}from"../../../utils/uint8.mjs";import{EmptyState as c}from"../../ui/empty.mjs";import{useRequest as l}from"../../../hooks/query/use-query.mjs";import{queryKey as u}from"../../../constants/query-key.mjs";import{useKeepAliveEffect as d,useKeepAliveState as f}from"../../common/keep-scroll-position/index.mjs";import{apiCollectClick as p}from"../../../utils/api-collect.mjs";import{batchQueryContentInteractions as m}from"../../../hooks/use-content-operate.mjs";import ee from"../../biz/business/search-bar/variants/detail-search-bar/index.mjs";import{VideoDetailMaterialRuntimeProvider as te}from"../../biz/business/detail/shared/runtime-context-provider.mjs";import{resolveMaterialProps as ne,videoDetailMaterials as re}from"../../biz/business/detail/shared/registry.mjs";import{DetailHero as ie}from"../../biz/business/detail/shared/video-hero.mjs";import{Fragment as h,useCallback as g,useEffect as _,useMemo as v}from"react";import{Fragment as y,jsx as b,jsxs as x}from"react/jsx-runtime";import{useTranslations as ae}from"next-intl";import{useParams as oe,useSearchParams as se}from"next/navigation";const S=[{id:`detail-info`,componentName:`video-detail-info`,props:{}},{id:`detail-actions`,componentName:`video-detail-actions`,props:{}},{id:`detail-recommend`,componentName:`video-detail-recommend`,props:{rows:2}}];function C({detailId:p,initialInformation:C,isWebView:w=!1,materialConfig:T}){let E=ae(`components.pages.videoDetail`),D=oe(),O=se(),k=D.level,A=Array.isArray(k)?k:typeof k==`string`?[k]:[],j=A.findIndex(e=>e===`episode`),ce=j>=0?A[j+1]:A[2],M=Math.max(1,Number(ce)||1),[N,P]=f(`detail-current-series-num-${p}`,M);_(()=>{P(M)},[p,M,P]);let F=Math.max(0,N-1),{data:I}=l(v(()=>[`video-detail`,p],[p]),async()=>p?await a({id:p}):null,{enabled:!!p}),L=v(()=>{let e=I?.data?.video;return!e||typeof e!=`object`?null:{...e,content_type:1,episode_cnt:e.links?.length||0}},[I?.data?.video]),le=C??L??null,[R,z]=f(`detail-information-${p}`,le),B=R?.links?.[F]?.id||``,{data:V,isFetching:H,isFetchedAfterMount:U,isSuccess:W}=l(v(()=>[`detail-interaction`,R?.id,R?.content_type,B,N],[B,N,R?.content_type,R?.id]),async()=>!R?.id||typeof R.content_type!=`number`?null:await m([R.id],1),{enabled:w?!1:!!R?.id,staleTime:0,refetchOnMount:`always`,refetchOnWindowFocus:!1}),G=v(()=>{if(!U||H||!W)return 0;let e=V?.interaction_list?.[0]?.browse_record,t=Number(e?.browse_duration||0);if(!Number.isFinite(t)||t<=0)return 0;let n=String(e?.browse_episode||``).trim();if(!n)return t;let r=Number.parseInt(n,10);return Number.isNaN(r)?0:r===N?t:0},[N,V,U,H,W]),[ue,de]=f(`info-detail-active-tab-${p}`,`video`),[K,q]=f(`info-detail-comment-add-count-${p}`,0),[J,fe]=f(`info-detail-comment-total-${p}`,void 0),Y=g(async e=>{let t=String(p||``).trim();if(!t)return;let n=e.browse_episode||N,r=Date.now(),i=String(e.browse_key||r);try{await o({app_id:0,content_type:1,content_id:t,browse_duration:Number(e.browse_duration||0),browse_episode:String(n),browse_key:i,browse_page_ts:r})}catch(e){console.error(`上报播放进度失败:`,e)}},[N,p]);_(()=>{!R&&L&&z(L),window.video={[p]:R},window.getVideoInfoAsync=async()=>{let e=R?.links?.[F]?.m3u8_url||``,t=e?`${process.env.NEXT_PUBLIC_API_BASE}/api/content/processM3u8?url=${encodeURIComponent(`${n()}/m3f/${e}`)}`:``,i=R?.img_y||R?.img_x||R?.preview_images?.[0]||``,a=``,o=await r(i);return o&&(a=s(o.bytes)),{poster:a,src:t,title:R?.name||``}},window.getVideoBrowseRecordAsync=async()=>{let e=await m([p],1);return e?.interaction_list?.[0]?e.interaction_list[0].browse_record:null},window.reportVideoBrowse=Y},[p,F,R,L,z,Y]),_(()=>{if(!V?.interaction_list?.[0])return;let e=V.interaction_list[0];z(t=>{if(!t)return t;let n=t.static?.like_cnt,r=typeof n==`number`?n:Number(n||0),i=!!e.is_liked&&r===0;return{...t,like:e.is_liked||!1,dislike:e.is_disliked||!1,collect:e.is_collected||!1,static:i?{...t.static||{},like_cnt:1}:t.static}})},[V,z]);let X=g(e=>{z(t=>t&&{...t,...e})},[z]);d(()=>{R?.id&&R.id},[R?.id],`detail-page-report-${p}`),_(()=>{!R||typeof window>`u`||window.sensors?.track?.(`detail_page_view`,{object_id:R.id||p,author_id:R.up_user,object_type:R.content_type,object_category:R.content_type,object_tags:R.tags?.map(e=>e.name),block_id:``,page_source:window.location?.pathname||``})},[p,R]),_(()=>{q(0)},[B,q]),v(()=>(typeof J==`number`?J:0)+K,[K,J]);let pe=g(()=>{},[!1,de]);g(()=>{q(e=>e+1)},[q]),_(()=>{},[!1,pe,R?.id,O]);let Z=g(e=>{if(w){let t=encodeURIComponent(R?.name||``),n=`/webview/${R?.id}/${t}/episode/${e}`;window.location.href=n}else P(e)},[R?.id,R?.name,w,P]),Q=R?.status===`1`,{data:me}=l([u.CHANNEL],()=>i()),he=e(me?.data),ge=v(()=>{if(T!==void 0){let e=new Map(S.map(e=>[e.componentName,e]));return T.map(t=>{let n=e.get(t.componentName);return{...n,...t,props:{...n?.props??{},...t.props??{}}}})}return S},[T]),$=v(()=>({information:R??void 0,currentSeriesNum:N,onEpisodeChange:Z,onUpdateInformation:X,detailId:p,episodeIndex:F,resumeProgressSeconds:G,isShow:!0}),[N,p,F,Z,X,R,G,!0]),_e=g(e=>{if(!R)return null;let t=re[e.componentName];if(!t)return null;let n=t.clientComponent,r=ne(t,e.props);return r.isValid?b(n,{...r.props}):b(`div`,{children:`组件配置错误`})},[R]);return x(`div`,{className:`w-full min-h-screen bg-bg2 text-text1 ${w?``:`pt-11`}`,children:[!w&&b(`div`,{className:`fixed bg-black top-0 left-0 right-0 z-[1000]`,children:b(ee,{data:{list:he}})}),b(`div`,{className:`mx-auto w-full max-w-[840px] pb-6`,children:x(y,{children:[R&&!Q&&b(c,{type:`no-content`,text:E(`videoDetailClient.videoUnavailable`)}),R&&Q&&x(y,{children:[!w&&b(ie,{isVideo:!0,information:R,episodeIndex:F,resumeProgressSeconds:G}),b(`div`,{id:`selectPopupPosition`,className:`w-full`}),!1,x(`div`,{className:t(`w-full`,!1),children:[b(te,{value:$,children:ge.map(e=>b(h,{children:_e(e)},e.id))}),!1]}),!1]}),!R&&b(c,{type:`no-content`,text:E(`videoDetailClient.videoDeleted`)})]})})]})}export{C as default};
|
|
@@ -1,59 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { pContentGetNewstVideoListKey, pContentGetPopularVideoListKey } from "../../../service/generated/tanstack.mjs";
|
|
4
|
-
import { HydrationBoundary } from "../../../hooks/query/hydration-boundary.mjs";
|
|
5
|
-
import { getNextVideoListPageParam, resolveNextCursor } from "./types.mjs";
|
|
6
|
-
import VideoListClient from "./video-list-client.mjs";
|
|
7
|
-
import { jsx } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
//#region components/pages/video-list/index.tsx
|
|
10
|
-
const PAGE_SIZE = 10;
|
|
11
|
-
const INITIAL_CURSOR = "";
|
|
12
|
-
async function VideoListPage({ title = "列表页", tags = [] } = {}) {
|
|
13
|
-
const baseQuery = {
|
|
14
|
-
page_size: PAGE_SIZE,
|
|
15
|
-
tags: tags.length ? tags : void 0
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ jsx(HydrationBoundary, {
|
|
18
|
-
prefetch: [{
|
|
19
|
-
type: "infinite",
|
|
20
|
-
queryKey: pContentGetPopularVideoListKey(baseQuery),
|
|
21
|
-
queryFn: async (cursor) => {
|
|
22
|
-
const d = (await pContentGetPopularVideoList({
|
|
23
|
-
page_size: PAGE_SIZE,
|
|
24
|
-
cursor: cursor || void 0,
|
|
25
|
-
tags: tags.length ? tags : void 0
|
|
26
|
-
})).data;
|
|
27
|
-
return {
|
|
28
|
-
list: d?.videos ?? [],
|
|
29
|
-
nextCursor: resolveNextCursor(d)
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
initialPageParam: INITIAL_CURSOR,
|
|
33
|
-
getNextPageParam: (last) => getNextVideoListPageParam(last)
|
|
34
|
-
}, {
|
|
35
|
-
type: "infinite",
|
|
36
|
-
queryKey: pContentGetNewstVideoListKey(baseQuery),
|
|
37
|
-
queryFn: async (cursor) => {
|
|
38
|
-
const d = (await pContentGetNewstVideoList({
|
|
39
|
-
page_size: PAGE_SIZE,
|
|
40
|
-
cursor: cursor || void 0,
|
|
41
|
-
tags: tags.length ? tags : void 0
|
|
42
|
-
})).data;
|
|
43
|
-
return {
|
|
44
|
-
list: d?.videos ?? [],
|
|
45
|
-
nextCursor: resolveNextCursor(d)
|
|
46
|
-
};
|
|
47
|
-
},
|
|
48
|
-
initialPageParam: INITIAL_CURSOR,
|
|
49
|
-
getNextPageParam: (last) => getNextVideoListPageParam(last)
|
|
50
|
-
}],
|
|
51
|
-
children: /* @__PURE__ */ jsx(VideoListClient, {
|
|
52
|
-
title,
|
|
53
|
-
tags
|
|
54
|
-
})
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
//#endregion
|
|
59
|
-
export { VideoListPage };
|
|
2
|
+
import{pContentGetNewstVideoList as e,pContentGetPopularVideoList as t}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as n,pContentGetPopularVideoListKey as r}from"../../../service/generated/tanstack.mjs";import{HydrationBoundary as i}from"../../../hooks/query/hydration-boundary.mjs";import{getNextVideoListPageParam as a,resolveNextCursor as o}from"./types.mjs";import s from"./video-list-client.mjs";import{jsx as c}from"react/jsx-runtime";async function l({title:l=`列表页`,tags:u=[]}={}){let d={page_size:10,tags:u.length?u:void 0};return c(i,{prefetch:[{type:`infinite`,queryKey:r(d),queryFn:async e=>{let n=(await t({page_size:10,cursor:e||void 0,tags:u.length?u:void 0})).data;return{list:n?.videos??[],nextCursor:o(n)}},initialPageParam:``,getNextPageParam:e=>a(e)},{type:`infinite`,queryKey:n(d),queryFn:async t=>{let n=(await e({page_size:10,cursor:t||void 0,tags:u.length?u:void 0})).data;return{list:n?.videos??[],nextCursor:o(n)}},initialPageParam:``,getNextPageParam:e=>a(e)}],children:c(s,{title:l,tags:u})})}export{l as VideoListPage};
|
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 兼容后端历史字段 `cusor` 与新字段 `cursor`,统一得到下一页游标。
|
|
5
|
-
*/
|
|
6
|
-
function resolveNextCursor(data) {
|
|
7
|
-
return data?.cursor ?? data?.cusor ?? "";
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 基于游标判断是否还有下一页。
|
|
11
|
-
*/
|
|
12
|
-
function getNextVideoListPageParam(last) {
|
|
13
|
-
return last.nextCursor === "" ? void 0 : last.nextCursor;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
export { getNextVideoListPageParam, resolveNextCursor };
|
|
2
|
+
function e(e){return e?.cursor??e?.cusor??``}function t(e){return e.nextCursor===``?void 0:e.nextCursor}export{t as getNextVideoListPageParam,e as resolveNextCursor};
|
|
@@ -1,112 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Button } from "../../ui/button.mjs";
|
|
5
|
-
import { pContentGetNewstVideoList, pContentGetPopularVideoList } from "../../../service/generated/client.mjs";
|
|
6
|
-
import { pContentGetNewstVideoListKey, pContentGetPopularVideoListKey } from "../../../service/generated/tanstack.mjs";
|
|
7
|
-
import { Box } from "../../ui/box.mjs";
|
|
8
|
-
import { InfiniteScroll } from "../../ui/infinite-scroll.mjs";
|
|
9
|
-
import { Text } from "../../ui/text.mjs";
|
|
10
|
-
import { usePaginated } from "../../../hooks/query/use-query.mjs";
|
|
11
|
-
import SvgLeftArrow from "../../../assets/icons/left_arrow.mjs";
|
|
12
|
-
import { getNextVideoListPageParam, resolveNextCursor } from "./types.mjs";
|
|
13
|
-
import { VideoListItemComponent } from "./video-list-item.mjs";
|
|
14
|
-
import { useMemo, useState } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import Link from "next/link";
|
|
17
|
-
import { useRouter } from "next/navigation";
|
|
18
|
-
|
|
19
|
-
//#region components/pages/video-list/video-list-client.tsx
|
|
20
|
-
const PAGE_SIZE = 10;
|
|
21
|
-
const DEFAULT_TITLE = "列表页";
|
|
22
|
-
const DEFAULT_TAGS = [];
|
|
23
|
-
const INITIAL_CURSOR = "";
|
|
24
|
-
function VideoListClient({ title = DEFAULT_TITLE, tags = DEFAULT_TAGS }) {
|
|
25
|
-
const router = useRouter();
|
|
26
|
-
const [currentTab, setCurrentTab] = useState("hot");
|
|
27
|
-
const baseQuery = {
|
|
28
|
-
page_size: PAGE_SIZE,
|
|
29
|
-
tags: tags.length ? tags : void 0
|
|
30
|
-
};
|
|
31
|
-
const { data, fetchNextPage, hasNextPage } = usePaginated({
|
|
32
|
-
key: currentTab === "hot" ? pContentGetPopularVideoListKey(baseQuery) : pContentGetNewstVideoListKey(baseQuery),
|
|
33
|
-
queryFn: async (cursor) => {
|
|
34
|
-
const params = {
|
|
35
|
-
page_size: PAGE_SIZE,
|
|
36
|
-
cursor: cursor || void 0,
|
|
37
|
-
tags: tags.length ? tags : void 0
|
|
38
|
-
};
|
|
39
|
-
const d = (currentTab === "hot" ? await pContentGetPopularVideoList(params) : await pContentGetNewstVideoList(params)).data;
|
|
40
|
-
return {
|
|
41
|
-
list: d?.videos ?? [],
|
|
42
|
-
nextCursor: resolveNextCursor(d)
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
getNextPageParam: getNextVideoListPageParam,
|
|
46
|
-
initialPageParam: INITIAL_CURSOR
|
|
47
|
-
});
|
|
48
|
-
const allList = useMemo(() => data?.pages?.flatMap((p) => p.list) ?? [], [data?.pages]);
|
|
49
|
-
function handleBack() {
|
|
50
|
-
router.back();
|
|
51
|
-
}
|
|
52
|
-
const videoGrid = useMemo(() => allList.map((item) => {
|
|
53
|
-
const itemId = item.id ?? item.mid ?? "";
|
|
54
|
-
return /* @__PURE__ */ jsx(Link, {
|
|
55
|
-
href: `/video/${itemId}/${item.name ?? ""}`,
|
|
56
|
-
children: /* @__PURE__ */ jsx(VideoListItemComponent, { item })
|
|
57
|
-
}, itemId);
|
|
58
|
-
}), [allList]);
|
|
59
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
60
|
-
as: "main",
|
|
61
|
-
className: "h-[100dvh] max-h-[100dvh] flex flex-col bg-bg1 overflow-hidden [overscroll-behavior-y:none]",
|
|
62
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
63
|
-
className: "shrink-0 bg-bg1",
|
|
64
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
65
|
-
as: "header",
|
|
66
|
-
className: "flex items-center gap-2 px-4 py-3",
|
|
67
|
-
children: [/* @__PURE__ */ jsx(SvgLeftArrow, {
|
|
68
|
-
className: "w-[16px] h-[16px]",
|
|
69
|
-
onClick: handleBack
|
|
70
|
-
}), /* @__PURE__ */ jsx(Text, {
|
|
71
|
-
as: "h1",
|
|
72
|
-
className: "flex-1 min-w-0 flex justify-center overflow-hidden text-[18px] pr-[16px]",
|
|
73
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
74
|
-
className: "block max-w-full truncate",
|
|
75
|
-
children: title
|
|
76
|
-
})
|
|
77
|
-
})]
|
|
78
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
79
|
-
as: "nav",
|
|
80
|
-
className: "px-4 pb-2 flex gap-2",
|
|
81
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
82
|
-
type: "button",
|
|
83
|
-
onClick: () => setCurrentTab("hot"),
|
|
84
|
-
className: `h-[30px] px-[12px] text-[14px] rounded-[50px] ${currentTab === "hot" ? "bg-theme5 text-text1" : "bg-transparent text-text2"}`,
|
|
85
|
-
children: "最热"
|
|
86
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
87
|
-
type: "button",
|
|
88
|
-
onClick: () => setCurrentTab("latest"),
|
|
89
|
-
className: `h-[30px] px-[12px] text-[14px] rounded-[50px] ${currentTab === "latest" ? "bg-theme5 text-text1" : "bg-transparent text-text2"}`,
|
|
90
|
-
children: "最新"
|
|
91
|
-
})]
|
|
92
|
-
})]
|
|
93
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
94
|
-
id: "video-list-scroll-container",
|
|
95
|
-
className: "flex-1 min-h-0 overflow-y-auto [overscroll-behavior-y:none]",
|
|
96
|
-
children: /* @__PURE__ */ jsx(InfiniteScroll, {
|
|
97
|
-
loadMore: () => fetchNextPage().then(() => void 0),
|
|
98
|
-
hasMore: hasNextPage,
|
|
99
|
-
rootId: "video-list-scroll-container",
|
|
100
|
-
threshold: 300,
|
|
101
|
-
className: "",
|
|
102
|
-
children: /* @__PURE__ */ jsx(Box, {
|
|
103
|
-
className: "grid grid-cols-2 gap-3 p-4",
|
|
104
|
-
children: videoGrid
|
|
105
|
-
})
|
|
106
|
-
})
|
|
107
|
-
})]
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
//#endregion
|
|
112
|
-
export { VideoListClient as default };
|
|
2
|
+
"use client";import{Button as e}from"../../ui/button.mjs";import{pContentGetNewstVideoList as t,pContentGetPopularVideoList as n}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as r,pContentGetPopularVideoListKey as i}from"../../../service/generated/tanstack.mjs";import{Box as a}from"../../ui/box.mjs";import{InfiniteScroll as o}from"../../ui/infinite-scroll.mjs";import{Text as s}from"../../ui/text.mjs";import{usePaginated as c}from"../../../hooks/query/use-query.mjs";import l from"../../../assets/icons/left_arrow.mjs";import{getNextVideoListPageParam as u,resolveNextCursor as d}from"./types.mjs";import{VideoListItemComponent as f}from"./video-list-item.mjs";import{useMemo as p,useState as m}from"react";import{jsx as h,jsxs as g}from"react/jsx-runtime";import _ from"next/link";import{useRouter as v}from"next/navigation";const y=[];function b({title:b=`列表页`,tags:x=y}){let S=v(),[C,w]=m(`hot`),T={page_size:10,tags:x.length?x:void 0},{data:E,fetchNextPage:D,hasNextPage:O}=c({key:C===`hot`?i(T):r(T),queryFn:async e=>{let r={page_size:10,cursor:e||void 0,tags:x.length?x:void 0},i=(C===`hot`?await n(r):await t(r)).data;return{list:i?.videos??[],nextCursor:d(i)}},getNextPageParam:u,initialPageParam:``}),k=p(()=>E?.pages?.flatMap(e=>e.list)??[],[E?.pages]);function A(){S.back()}let j=p(()=>k.map(e=>{let t=e.id??e.mid??``;return h(_,{href:`/video/${t}/${e.name??``}`,children:h(f,{item:e})},t)}),[k]);return g(a,{as:`main`,className:`h-[100dvh] max-h-[100dvh] flex flex-col bg-bg1 overflow-hidden [overscroll-behavior-y:none]`,children:[g(a,{className:`shrink-0 bg-bg1`,children:[g(a,{as:`header`,className:`flex items-center gap-2 px-4 py-3`,children:[h(l,{className:`w-[16px] h-[16px]`,onClick:A}),h(s,{as:`h1`,className:`flex-1 min-w-0 flex justify-center overflow-hidden text-[18px] pr-[16px]`,children:h(s,{className:`block max-w-full truncate`,children:b})})]}),g(a,{as:`nav`,className:`px-4 pb-2 flex gap-2`,children:[h(e,{type:`button`,onClick:()=>w(`hot`),className:`h-[30px] px-[12px] text-[14px] rounded-[50px] ${C===`hot`?`bg-theme5 text-text1`:`bg-transparent text-text2`}`,children:`最热`}),h(e,{type:`button`,onClick:()=>w(`latest`),className:`h-[30px] px-[12px] text-[14px] rounded-[50px] ${C===`latest`?`bg-theme5 text-text1`:`bg-transparent text-text2`}`,children:`最新`})]})]}),h(a,{id:`video-list-scroll-container`,className:`flex-1 min-h-0 overflow-y-auto [overscroll-behavior-y:none]`,children:h(o,{loadMore:()=>D().then(()=>void 0),hasMore:O,rootId:`video-list-scroll-container`,threshold:300,className:``,children:h(a,{className:`grid grid-cols-2 gap-3 p-4`,children:j})})})]})}export{b as default};
|
|
@@ -1,36 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Image } from "../../ui/image.mjs";
|
|
5
|
-
import { Box } from "../../ui/box.mjs";
|
|
6
|
-
import { Text } from "../../ui/text.mjs";
|
|
7
|
-
import { memo } from "react";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
//#region components/pages/video-list/video-list-item.tsx
|
|
11
|
-
const VideoListItemComponent = memo(({ item }) => {
|
|
12
|
-
const cover = item.img_x ?? item.img_y ?? "";
|
|
13
|
-
const title = item.name ?? item.id ?? "";
|
|
14
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
15
|
-
className: "overflow-hidden rounded-[8px] shadow-sm",
|
|
16
|
-
children: [cover ? /* @__PURE__ */ jsx(Box, {
|
|
17
|
-
className: "relative w-full aspect-video h-[240px]",
|
|
18
|
-
children: /* @__PURE__ */ jsx(Image, {
|
|
19
|
-
src: cover,
|
|
20
|
-
alt: title,
|
|
21
|
-
fill: true,
|
|
22
|
-
className: "object-cover"
|
|
23
|
-
})
|
|
24
|
-
}) : null, /* @__PURE__ */ jsx(Box, {
|
|
25
|
-
className: "py-[8px]",
|
|
26
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
27
|
-
as: "h3",
|
|
28
|
-
className: "line-clamp-1 font-[16px] font-bold text-text1",
|
|
29
|
-
children: title
|
|
30
|
-
})
|
|
31
|
-
})]
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
export { VideoListItemComponent };
|
|
2
|
+
"use client";import{Image as e}from"../../ui/image.mjs";import{Box as t}from"../../ui/box.mjs";import{Text as n}from"../../ui/text.mjs";import{memo as r}from"react";import{jsx as i,jsxs as a}from"react/jsx-runtime";const o=r(({item:r})=>{let o=r.img_x??r.img_y??``,s=r.name??r.id??``;return a(t,{className:`overflow-hidden rounded-[8px] shadow-sm`,children:[o?i(t,{className:`relative w-full aspect-video h-[240px]`,children:i(e,{src:o,alt:s,fill:!0,className:`object-cover`})}):null,i(t,{className:`py-[8px]`,children:i(n,{as:`h3`,className:`line-clamp-1 font-[16px] font-bold text-text1`,children:s})})]})});export{o as VideoListItemComponent};
|
|
@@ -1,63 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../utils/cn.mjs";
|
|
5
|
-
import { Accordion } from "@base-ui/react/accordion";
|
|
6
|
-
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
7
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
-
|
|
9
|
-
//#region components/ui/accordion.tsx
|
|
10
|
-
/** UI 组件模块。 */
|
|
11
|
-
/** Accordion 组件。 */
|
|
12
|
-
function Accordion$1({ className, ...props }) {
|
|
13
|
-
return /* @__PURE__ */ jsx(Accordion.Root, {
|
|
14
|
-
"data-slot": "accordion",
|
|
15
|
-
className: cn("flex w-full flex-col", className),
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
/** AccordionItem 组件。 */
|
|
20
|
-
function AccordionItem({ className, ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(Accordion.Item, {
|
|
22
|
-
"data-slot": "accordion-item",
|
|
23
|
-
className: cn("[&:not(:last-child)]:border-b", className),
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/** AccordionTrigger 组件。 */
|
|
28
|
-
function AccordionTrigger({ className, children, ...props }) {
|
|
29
|
-
return /* @__PURE__ */ jsx(Accordion.Header, {
|
|
30
|
-
className: "flex",
|
|
31
|
-
children: /* @__PURE__ */ jsxs(Accordion.Trigger, {
|
|
32
|
-
"data-slot": "accordion-trigger",
|
|
33
|
-
className: cn("focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring [&_*[data-slot=accordion-trigger-icon]]:text-muted-foreground rounded-lg py-2.5 text-left text-sm font-medium hover:underline focus-visible:ring-[3px] [&_*[data-slot=accordion-trigger-icon]]:ml-auto [&_*[data-slot=accordion-trigger-icon]]:w-4 [&_*[data-slot=accordion-trigger-icon]]:h-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50", className),
|
|
34
|
-
...props,
|
|
35
|
-
children: [
|
|
36
|
-
children,
|
|
37
|
-
/* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
38
|
-
"data-slot": "accordion-trigger-icon",
|
|
39
|
-
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
|
|
40
|
-
}),
|
|
41
|
-
/* @__PURE__ */ jsx(ChevronUpIcon, {
|
|
42
|
-
"data-slot": "accordion-trigger-icon",
|
|
43
|
-
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
|
|
44
|
-
})
|
|
45
|
-
]
|
|
46
|
-
})
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
/** AccordionContent 组件。 */
|
|
50
|
-
function AccordionContent({ className, children, ...props }) {
|
|
51
|
-
return /* @__PURE__ */ jsx(Accordion.Panel, {
|
|
52
|
-
"data-slot": "accordion-content",
|
|
53
|
-
className: "data-[open]:animate-accordion-down data-[closed]:animate-accordion-up text-sm overflow-hidden",
|
|
54
|
-
...props,
|
|
55
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
56
|
-
className: cn("pt-0 pb-2.5 [&_a]:hover:text-foreground h-[var(--accordion-panel-height)] data-[ending-style]:h-0 data-[starting-style]:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4", className),
|
|
57
|
-
children
|
|
58
|
-
})
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
//#endregion
|
|
63
|
-
export { Accordion$1 as Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
2
|
+
"use client";import{cn as e}from"../../utils/cn.mjs";import{Accordion as t}from"@base-ui/react/accordion";import{ChevronDownIcon as n,ChevronUpIcon as r}from"lucide-react";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({className:n,...r}){return i(t.Root,{"data-slot":`accordion`,className:e(`flex w-full flex-col`,n),...r})}function s({className:n,...r}){return i(t.Item,{"data-slot":`accordion-item`,className:e(`[&:not(:last-child)]:border-b`,n),...r})}function c({className:o,children:s,...c}){return i(t.Header,{className:`flex`,children:a(t.Trigger,{"data-slot":`accordion-trigger`,className:e(`focus-visible:ring-ring/50 focus-visible:border-ring focus-visible:after:border-ring [&_*[data-slot=accordion-trigger-icon]]:text-muted-foreground rounded-lg py-2.5 text-left text-sm font-medium hover:underline focus-visible:ring-[3px] [&_*[data-slot=accordion-trigger-icon]]:ml-auto [&_*[data-slot=accordion-trigger-icon]]:w-4 [&_*[data-slot=accordion-trigger-icon]]:h-4 group/accordion-trigger relative flex flex-1 items-start justify-between border border-transparent transition-all outline-none disabled:pointer-events-none disabled:opacity-50`,o),...c,children:[s,i(n,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden`}),i(r,{"data-slot":`accordion-trigger-icon`,className:`pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline`})]})})}function l({className:n,children:r,...a}){return i(t.Panel,{"data-slot":`accordion-content`,className:`data-[open]:animate-accordion-down data-[closed]:animate-accordion-up text-sm overflow-hidden`,...a,children:i(`div`,{className:e(`pt-0 pb-2.5 [&_a]:hover:text-foreground h-[var(--accordion-panel-height)] data-[ending-style]:h-0 data-[starting-style]:h-0 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,n),children:r})})}export{o as Accordion,l as AccordionContent,s as AccordionItem,c as AccordionTrigger};
|