@funhub/platform 0.2.31 → 0.2.33
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/channel-list/channel-active-indicator.mjs +1 -31
- 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/header-menu.mjs +1 -29
- package/dist/assets/icons/common/header-search-icon.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/right_arrow_thin.mjs +1 -17
- 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/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/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 -24
- 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/marquee-close.mjs +1 -29
- package/dist/assets/icons/marquee-enter.mjs +1 -17
- package/dist/assets/icons/marquee-speaker.mjs +1 -22
- 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/search/filter.mjs +1 -17
- 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/shortcut-grid/shortcut-grid-card-bg-primary.mjs +1 -29
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -169
- package/dist/cli/init/create-client.mjs +1 -12
- package/dist/cli/init/create-sdk.mjs +1 -12
- package/dist/cli/init/shared/command.mjs +1 -31
- package/dist/cli/init/shared/constants.mjs +1 -24
- package/dist/cli/init/shared/create-project.mjs +2 -58
- package/dist/cli/init/shared/file.mjs +1 -21
- package/dist/cli/init/shared/package-manager.mjs +1 -42
- package/dist/cli/init/shared/prompts.mjs +1 -107
- package/dist/cli/init/shared/template.mjs +1 -66
- package/dist/cli.mjs +2 -128
- package/dist/common.mjs +1 -51
- 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 -390
- 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 -270
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -376
- 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 -171
- 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 -56
- 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 -33
- 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/advertisement/ad-match.mjs +1 -142
- package/dist/components/biz/business/advertisement/ad-provider.mjs +1 -50
- package/dist/components/biz/business/advertisement/ad-query.mjs +1 -39
- package/dist/components/biz/business/advertisement/ad-runtime-provider.mjs +1 -21
- package/dist/components/biz/business/advertisement/banner-ad/client.mjs +1 -274
- package/dist/components/biz/business/advertisement/banner-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/banner-ad/schema.mjs +1 -55
- package/dist/components/biz/business/advertisement/banner-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/feed-ad/index.mjs +1 -36
- package/dist/components/biz/business/advertisement/floating-ad/client.mjs +1 -109
- package/dist/components/biz/business/advertisement/floating-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/floating-ad/schema.mjs +1 -11
- package/dist/components/biz/business/advertisement/floating-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/icon-ad/client.mjs +1 -187
- package/dist/components/biz/business/advertisement/icon-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/icon-ad/schema.mjs +1 -42
- package/dist/components/biz/business/advertisement/icon-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/popup-ad/client.mjs +2 -203
- package/dist/components/biz/business/advertisement/popup-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/popup-ad/schema.mjs +1 -48
- package/dist/components/biz/business/advertisement/popup-ad/server.mjs +1 -24
- package/dist/components/biz/business/advertisement/text-ad/client.mjs +1 -370
- package/dist/components/biz/business/advertisement/text-ad/material.mjs +1 -21
- package/dist/components/biz/business/advertisement/text-ad/schema.mjs +1 -34
- package/dist/components/biz/business/advertisement/text-ad/server.mjs +1 -24
- 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 -62
- 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 -140
- 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 -133
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -22
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -94
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -87
- 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 -106
- 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 -106
- 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 -190
- package/dist/components/biz/business/channel-list/client.mjs +1 -157
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -13
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -40
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -182
- 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 -969
- 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 -114
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -33
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -84
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -432
- 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/material-route-context.mjs +1 -44
- 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 -225
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -320
- package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +1 -46
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -902
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -97
- 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 -47
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -201
- 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 -14
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -51
- 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 -14
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -136
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- 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-player-bridge-only/client.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/schema.mjs +1 -13
- package/dist/components/biz/business/detail/video-detail-player-bridge-only/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -89
- 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 -35
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -35
- package/dist/components/biz/business/detail/video-detail-recommend/shared.mjs +1 -548
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -60
- 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 -20
- 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 -21
- 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 -142
- 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 -23
- 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 -38
- 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 -20
- 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 -32
- 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 -22
- 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 -19
- 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 -53
- package/dist/components/biz/business/header-search/shared/header-action.mjs +1 -29
- package/dist/components/biz/business/header-search/shared/header-search-icon.mjs +1 -26
- package/dist/components/biz/business/header-search/shared/header-shell.mjs +1 -21
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -25
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -47
- 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.mjs +1 -229
- 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 -48
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -47
- 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.mjs +1 -211
- 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 -42
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -890
- 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-play-count.mjs +1 -31
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -178
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -47
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -336
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-layout.mjs +1 -73
- package/dist/components/biz/business/home-recommend/shared/home-recommend-smart-tag.mjs +1 -21
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -73
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -436
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -79
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -33
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -106
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -256
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -127
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -303
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -86
- 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 -159
- 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 -119
- 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 -343
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -59
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -262
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -182
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -235
- package/dist/components/biz/business/profile/profile-main/empty-state.mjs +1 -43
- 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 -13
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -275
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -747
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/video-waterfall.mjs +1 -178
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -259
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -258
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -13
- 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 -13
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -266
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/profile/tracking.mjs +1 -19
- 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 -54
- 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 -182
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -16
- package/dist/components/biz/business/search-history/server.mjs +1 -17
- package/dist/components/biz/business/search-input/client.mjs +1 -115
- 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 -17
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -86
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -65
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -157
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -11
- package/dist/components/biz/business/tab-bar/server.mjs +1 -17
- package/dist/components/biz/business/text-recommend/client.mjs +1 -104
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -25
- 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 -44
- 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 -67
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/analytics-init/analytics-init.mjs +1 -75
- package/dist/components/common/analytics-init/page-lifecycle-tracker.mjs +1 -248
- package/dist/components/common/analytics-init/sensor-init.mjs +1 -126
- 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/create-collection-sheet.mjs +1 -271
- package/dist/components/common/collection-popup/index.mjs +1 -293
- 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 -23
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -50
- 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 -27
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -71
- 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 -139
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -27
- package/dist/components/common/list/collection-list/collection-select-icon.mjs +1 -53
- 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 -469
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -143
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -100
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/list/waterfall-recommend/recommend-badge-style.mjs +1 -18
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend-display.mjs +1 -26
- package/dist/components/common/list/waterfall-recommend/waterfall-recommend.mjs +1 -183
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -46
- 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 -98
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -826
- package/dist/components/common/share-popup/share-content.mjs +1 -155
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -326
- 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 -150
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -70
- 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/user-info-initializer/index.mjs +1 -37
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -700
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/preroll-skip-button-content.mjs +1 -20
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -281
- package/dist/components/common/video-player/style.module.mjs +260 -7
- package/dist/components/common/video-player/video-blind-ad-overlay.mjs +1 -155
- package/dist/components/common/video-player/video-player-ref-context.mjs +1 -18
- package/dist/components/common/video-player/video-preroll-ad-overlay.mjs +1 -167
- package/dist/components/common/video-player/video-preroll-ad.mjs +1 -187
- 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 -44
- 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 -164
- package/dist/components/pages/collection-create/form.mjs +1 -164
- 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/_components/collection-detail-video-card.mjs +1 -135
- package/dist/components/pages/collection-detail/detail.mjs +1 -539
- 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 -683
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -383
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -271
- 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 -105
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -149
- package/dist/components/pages/home/index.mjs +1 -59
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -37
- package/dist/components/pages/login/auth-page-styles.mjs +2 -17
- package/dist/components/pages/login/forgot.mjs +1 -136
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -233
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -204
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/tracking.mjs +1 -32
- package/dist/components/pages/login/verify.mjs +1 -243
- 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 -192
- 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 -211
- package/dist/components/pages/search/search-result/index.mjs +1 -31
- package/dist/components/pages/search/search-result/search-all.mjs +1 -167
- package/dist/components/pages/search/search-result/search-user.mjs +1 -306
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -134
- package/dist/components/pages/search/search-result/shared.mjs +1 -114
- package/dist/components/pages/search/style.module.mjs +85 -12
- package/dist/components/pages/search/top-header.mjs +1 -131
- package/dist/components/pages/search/tracking.mjs +1 -51
- package/dist/components/pages/search-result/page-client.mjs +1 -130
- package/dist/components/pages/search-result/search-all.mjs +1 -180
- package/dist/components/pages/search-result/search-empty.mjs +1 -52
- package/dist/components/pages/search-result/search-tab.mjs +1 -95
- package/dist/components/pages/search-result/search-user.mjs +1 -315
- package/dist/components/pages/search-result/search-video-info.mjs +1 -195
- package/dist/components/pages/search-result/shared.mjs +1 -46
- package/dist/components/pages/search-result/top-header.mjs +1 -105
- package/dist/components/pages/search-result/tracking.mjs +1 -39
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -381
- package/dist/components/pages/settings/_components/settings.mjs +1 -192
- 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 -395
- package/dist/components/pages/video-list/index.mjs +1 -61
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -144
- package/dist/components/pages/video-list/video-list-recommend-item.mjs +1 -94
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -91
- 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 -107
- 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.d.mts +1 -1
- 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.d.mts +1 -1
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.mjs +1 -257
- package/dist/components/ui/infinite-scroll.mjs +1 -168
- 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 -52
- 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 -11
- 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 -489
- package/dist/hooks/use-card-decoration.mjs +1 -96
- package/dist/hooks/use-content-operate.mjs +1 -526
- package/dist/hooks/use-first-row-height.mjs +1 -105
- 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-is-client.mjs +1 -20
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-min-duration-loading.mjs +1 -63
- package/dist/hooks/use-search-history.mjs +1 -53
- package/dist/hooks/use-sticky.mjs +1 -50
- package/dist/hooks.mjs +1 -17
- package/dist/i18n/locales/en.mjs +3 -836
- package/dist/i18n/locales/zh-CN.mjs +3 -836
- 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 -73
- 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 -23
- 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/advertisement.mjs +1 -88
- package/dist/service/generated/client.mjs +1 -1281
- package/dist/service/generated/tanstack.mjs +1 -1179
- package/dist/service/register-by-verify-email-code.mjs +1 -17
- package/dist/service.mjs +1 -6
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blind-spot-ad-store.mjs +1 -95
- 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 -155
- 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 -133
- package/dist/store/modules/video-player-ref-store.mjs +1 -13
- package/dist/store.mjs +1 -12
- package/dist/theme-tokens.mjs +1 -82
- 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 -58
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/browser-fingerprint.mjs +1 -53
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -311
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -325
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/device-id.mjs +1 -20
- package/dist/utils/email-validator.mjs +1 -108
- 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 -33
- package/dist/utils/http.mjs +1 -202
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -63
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/login-modal-bridge.mjs +1 -65
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/request-user-id.mjs +1 -16
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/inspector.d.mts +2 -2
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -207
- package/dist/utils/schema/utils.mjs +1 -27
- package/dist/utils/share-manager.mjs +1 -183
- package/dist/utils/tools.mjs +1 -92
- package/dist/utils/tracking.mjs +1 -183
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils/use-compatible-router.mjs +1 -84
- package/dist/utils.mjs +1 -27
- package/package.json +1 -1
- package/theme.css +1 -1
|
@@ -1,396 +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 { gContentGetAppChannels, gContentGetVideoDetail } from "../../../service/generated/client.mjs";
|
|
7
|
-
import { trackAppPageView } from "../../../utils/tracking.mjs";
|
|
8
|
-
import { useRouter as useRouter$1 } from "../../../utils/use-compatible-router.mjs";
|
|
9
|
-
import { EmptyState } from "../../ui/empty.mjs";
|
|
10
|
-
import { buildVideoPlayerSrc } from "../../common/video-player/process-m3u8-cache.mjs";
|
|
11
|
-
import { notifyBridgeEpisodeChanged } from "../../../utils/login-modal-bridge.mjs";
|
|
12
|
-
import { useRequest } from "../../../hooks/query/use-query.mjs";
|
|
13
|
-
import { queryKey } from "../../../constants/query-key.mjs";
|
|
14
|
-
import { useKeepAliveEffect, useKeepAliveState } from "../../common/keep-scroll-position/index.mjs";
|
|
15
|
-
import { apiCollectClick } from "../../../utils/api-collect.mjs";
|
|
16
|
-
import detail_search_bar_default from "../../biz/business/search-bar/variants/detail-search-bar/index.mjs";
|
|
17
|
-
import { normalizeHomeRecommendRuntimeProps } from "../../biz/business/home-recommend/shared/home-recommend-runtime-props.mjs";
|
|
18
|
-
import { VideoDetailMaterialRuntimeProvider } from "../../biz/business/detail/shared/runtime-context-provider.mjs";
|
|
19
|
-
import { resolveMaterialProps, videoDetailMaterials } from "../../biz/business/detail/shared/registry.mjs";
|
|
20
|
-
import { DetailHero } from "../../biz/business/detail/shared/video-hero.mjs";
|
|
21
|
-
import { useParams, useSearchParams } from "next/navigation";
|
|
22
|
-
import { Fragment, useCallback, useEffect, useMemo, useRef } from "react";
|
|
23
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { useTranslations } from "next-intl";
|
|
25
|
-
|
|
26
|
-
//#region components/pages/video-detail/video-detail-client.tsx
|
|
27
|
-
const DEFAULT_VIDEO_DETAIL_MATERIAL_CONFIG = [
|
|
28
|
-
{
|
|
29
|
-
id: "detail-info",
|
|
30
|
-
componentName: "video-detail-info",
|
|
31
|
-
props: {}
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "detail-info-title-tags-episodes",
|
|
35
|
-
componentName: "video-detail-info-title-tags-episodes",
|
|
36
|
-
props: {}
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
id: "detail-actions",
|
|
40
|
-
componentName: "video-detail-actions",
|
|
41
|
-
props: {}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "detail-recommend",
|
|
45
|
-
componentName: "video-detail-recommend",
|
|
46
|
-
props: {
|
|
47
|
-
title: "猜你喜欢",
|
|
48
|
-
rows: 2,
|
|
49
|
-
columns: 3,
|
|
50
|
-
recommendContentConfig: {
|
|
51
|
-
enabled: false,
|
|
52
|
-
categories: [],
|
|
53
|
-
tags: [{ name: "腐剧" }],
|
|
54
|
-
sortRule: "popular",
|
|
55
|
-
contentForms: []
|
|
56
|
-
},
|
|
57
|
-
showPlayCount: true,
|
|
58
|
-
playCountDelta: 0,
|
|
59
|
-
showEpisode: true,
|
|
60
|
-
enableInfinite: false,
|
|
61
|
-
items: [
|
|
62
|
-
{
|
|
63
|
-
contentId: "d6a35ba3279e6f0d",
|
|
64
|
-
contentName: "贺总的私宠罪妻",
|
|
65
|
-
titleMode: "custom",
|
|
66
|
-
title: "贺总的私宠罪妻",
|
|
67
|
-
description: "简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百",
|
|
68
|
-
coverMode: "upload",
|
|
69
|
-
coverUrl: "/truss/20260227/69a136457d10f.jpgxxx",
|
|
70
|
-
showPlayCount: true,
|
|
71
|
-
playCountDelta: 0,
|
|
72
|
-
showEpisode: true
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
contentId: "b0f42fed731239a7",
|
|
76
|
-
contentName: "少年江湖物语",
|
|
77
|
-
titleMode: "custom",
|
|
78
|
-
title: "少年江湖物语",
|
|
79
|
-
description: "网剧《少年江湖物语》讲述了一个江湖中邪不压正,青春正好,有情有爱的温暖故事。剧中有魔教教主,有天下第一剑客,有身世成谜的江湖大夫,有忠心耿耿的小丫鬟,更有艳压秦淮的当红花魁,众多看似完全没有交集的人物纷纷亮相登场,搅乱江湖一池春水。",
|
|
80
|
-
coverMode: "content",
|
|
81
|
-
coverUrl: "/md-204/uploads/default/other/2024-08-26/14664d2c31e61c201a29cd4abba267c5.jpg",
|
|
82
|
-
showPlayCount: true,
|
|
83
|
-
playCountDelta: 0,
|
|
84
|
-
showEpisode: true
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
contentId: "c2304e94ec0ba208",
|
|
88
|
-
contentName: "王的男人",
|
|
89
|
-
titleMode: "custom",
|
|
90
|
-
title: "王的男人",
|
|
91
|
-
description: "朝鲜第十代王燕山王君时期,艺人长生(甘宇成饰)和孔吉(李俊基饰)因为不肯加入当地的艺人团,来到京城汉阳谋生。此时暴君燕山君(郑镇荣饰)沉迷于宠妾张绿水(姜成妍饰),朝纲混乱,民不聊生。长生与孔吉二人在街头开始表演讽刺君主的喜剧,大受欢迎,却遭逮捕。后要求到王面前表演,求得一笑。结果,多亏孔吉的急中生智,燕山君才笑了出来。两人随即被留在宫中取乐,孔吉更是因为美色令王倍加宠爱。他们不停表演,大臣们却各自心怀鬼胎,导致了杀戮局面。最终,君王和艺人的命运又将如何呢?",
|
|
92
|
-
coverMode: "content",
|
|
93
|
-
coverUrl: "/md-204/resource/8c/8cb28f46831558fbeb2f34b2076c3b4e.jpg",
|
|
94
|
-
showPlayCount: true,
|
|
95
|
-
playCountDelta: 0,
|
|
96
|
-
showEpisode: true
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
contentId: "c7ffc6a558ae8683",
|
|
100
|
-
contentName: "怒",
|
|
101
|
-
titleMode: "custom",
|
|
102
|
-
title: "怒",
|
|
103
|
-
description: "炎炎夏日,东京八王子郊外社区,一对夫妇惨遭杀害。事后凶手用血在墙上写下大大的“怒”字,随后逃亡,销声匿迹长达一年之久。而在此期间,三个身份不明的男子和身边的人相遇了。曾自甘堕落的爱子(宫崎葵饰)被父亲(渡边谦饰)领回海滨小镇,邂逅了不善言辞的哲也(松山研一饰)。在东京工作的同性恋优马(妻夫木聪饰)将柔情似水的直人(绫野刚饰)带回了家,他不相信对方,却又尝试去相信。随母亲搬到冲绳的小泉(广濑铃饰)跟着同学辰哉(佐久本宝饰)登上一座荒岛,在废墟中遇到了背包客田中(森山未来饰),他们短暂成为朋友,而可怕的命运突然降临泉的头上。不久之后,通缉令遍布全国,三个男子的真实身份引人生疑……本片根据吉田修一的同名原作改编。",
|
|
104
|
-
coverMode: "content",
|
|
105
|
-
coverUrl: "/md-204/resource/24/24ef267eef2c35b5e4cf12dac8b55c14.jpg",
|
|
106
|
-
showPlayCount: true,
|
|
107
|
-
playCountDelta: 0,
|
|
108
|
-
showEpisode: true
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
contentId: "98217427ed96ec51",
|
|
112
|
-
contentName: "熔炉",
|
|
113
|
-
titleMode: "custom",
|
|
114
|
-
title: "熔炉",
|
|
115
|
-
description: "来自首尔的哑语美术老师仁浩(孔宥饰)来到雾津,应聘慈爱聋哑人学校。天降大雾,他意外撞车,维修时邂逅了人权组织成员柔珍(郑有美饰)。仁浩妻子早亡,8岁女儿天生哮喘由祖母照看,所以他不辞辛苦谋职养家。然而,双胞胎的校长与教导主任竟逼仁浩索贿5千万韩元。同时,仁浩逐渐发现学校笼罩着一种紧张压抑的气氛,令人窒息。有三个孩子引人关注:聪颖的金妍斗(金贤秀饰)、贪吃的陈宥利(郑仁絮饰)和弟弟自杀身亡的全民秀(白承焕饰),民秀总是满脸淤青。下课后,仁浩还听到女厕所中有呼喊与哭泣,在门卫的阻拦下他未深究。之后。他意外目睹了校长行贿警察,教导员毒打民秀,宿导溺罚妍斗的行径。一个惊天的隐秘被慢慢揭开,真相令韩国震惊……本片取材于2005年光州一所聋哑障碍人学校的真实事件,改编自韩国作家孔枝泳的同名小说。",
|
|
116
|
-
coverMode: "content",
|
|
117
|
-
coverUrl: "/md-204/resource/b4/b410ccdcd86936455b9460a9152aaa47.jpg",
|
|
118
|
-
showPlayCount: true,
|
|
119
|
-
playCountDelta: 0,
|
|
120
|
-
showEpisode: true
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
contentId: "caa2b4eb4eb40de0",
|
|
124
|
-
contentName: "再次来寻我",
|
|
125
|
-
titleMode: "custom",
|
|
126
|
-
title: "再次来寻我",
|
|
127
|
-
description: "在宇回到曾经与初恋志勋相遇的303号房,这里即将被拆迁,他在房间里回忆和志勋的点点滴滴,突然被书桌上的电话所吸引,一拿起话筒听到的竟是志勋的声音!在房子主人的同意下,在宇带着电话离开了303室,在回家的途中他发现自己像走在一个陌生的地方,而对面走来的竟是已消失已久的志勋…",
|
|
128
|
-
coverMode: "content",
|
|
129
|
-
coverUrl: "/md-204/resource/2b/2b43375f2248c1a012847d4507fd21a3.jpg",
|
|
130
|
-
showPlayCount: true,
|
|
131
|
-
playCountDelta: 0,
|
|
132
|
-
showEpisode: true
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
];
|
|
138
|
-
/**
|
|
139
|
-
* 判断当前 pathname 是否命中同一详情页路由(/video/:id 或 /webview/:id)。
|
|
140
|
-
*/
|
|
141
|
-
function isSameDetailEpisodeRoute(pathname, expectedDetailId) {
|
|
142
|
-
const segments = String(pathname || "").split("/").filter(Boolean);
|
|
143
|
-
const routeRootIndex = segments.findIndex((segment) => segment === "video" || segment === "webview");
|
|
144
|
-
if (routeRootIndex < 0) return false;
|
|
145
|
-
return segments[routeRootIndex + 1] === expectedDetailId;
|
|
146
|
-
}
|
|
147
|
-
function VideoDetailClient({ detailId, initialInformation, isWebView = false, materialConfig }) {
|
|
148
|
-
const t = useTranslations("components.pages.videoDetail");
|
|
149
|
-
const router = useRouter$1();
|
|
150
|
-
const params = useParams();
|
|
151
|
-
const searchParams = useSearchParams();
|
|
152
|
-
const hasTrackedPageViewRef = useRef(false);
|
|
153
|
-
const level = params.level;
|
|
154
|
-
const normalizedLevel = Array.isArray(level) ? level : typeof level === "string" ? [level] : [];
|
|
155
|
-
const episodeTokenIndex = normalizedLevel.findIndex((item) => item === "episode");
|
|
156
|
-
const seriesNumText = episodeTokenIndex >= 0 ? normalizedLevel[episodeTokenIndex + 1] : normalizedLevel[2];
|
|
157
|
-
const routeSeriesNum = Math.max(1, Number(seriesNumText) || 1);
|
|
158
|
-
const [activeSeriesNum, setActiveSeriesNum] = useKeepAliveState(`detail-current-series-num-${detailId}`, routeSeriesNum);
|
|
159
|
-
useEffect(() => {
|
|
160
|
-
setActiveSeriesNum(routeSeriesNum);
|
|
161
|
-
}, [routeSeriesNum, setActiveSeriesNum]);
|
|
162
|
-
const currentSeriesNum = Math.max(1, Number(activeSeriesNum) || 1);
|
|
163
|
-
const episodeIndex = Math.max(0, currentSeriesNum - 1);
|
|
164
|
-
const { data: videoDetailRes, isPending: isDetailPending, isFetching: isDetailFetching, isError: isDetailError, isSuccess: isDetailSuccess } = useRequest(useMemo(() => {
|
|
165
|
-
return ["video-detail", detailId];
|
|
166
|
-
}, [detailId]), async () => {
|
|
167
|
-
if (!detailId) return null;
|
|
168
|
-
return await gContentGetVideoDetail({ id: detailId });
|
|
169
|
-
}, { enabled: Boolean(detailId) });
|
|
170
|
-
const resolvedDetailInformation = useMemo(() => {
|
|
171
|
-
const detail = videoDetailRes?.data?.video;
|
|
172
|
-
if (!detail || typeof detail !== "object") return null;
|
|
173
|
-
return {
|
|
174
|
-
...detail,
|
|
175
|
-
content_type: 1,
|
|
176
|
-
episode_cnt: detail.links?.length || 0
|
|
177
|
-
};
|
|
178
|
-
}, [videoDetailRes?.data?.video]);
|
|
179
|
-
const resolvedInitialInformation = initialInformation ?? resolvedDetailInformation ?? null;
|
|
180
|
-
const [information, setInformation] = useKeepAliveState(`detail-information-${detailId}`, resolvedInitialInformation);
|
|
181
|
-
useEffect(() => {
|
|
182
|
-
if (!information?.id || hasTrackedPageViewRef.current) return;
|
|
183
|
-
hasTrackedPageViewRef.current = true;
|
|
184
|
-
trackAppPageView({
|
|
185
|
-
page_key: "page_video_detail",
|
|
186
|
-
page_name: "详情页"
|
|
187
|
-
});
|
|
188
|
-
}, [information?.id]);
|
|
189
|
-
const currentEpisodeId = information?.links?.[episodeIndex]?.id || "";
|
|
190
|
-
const isInformationLoading = Boolean(detailId) && !information && (isDetailPending || isDetailFetching);
|
|
191
|
-
const isInformationResolved = !detailId || Boolean(information) || isDetailError || isDetailSuccess;
|
|
192
|
-
const [activeTab, setActiveTab] = useKeepAliveState(`info-detail-active-tab-${detailId}`, "video");
|
|
193
|
-
const [commentAddCount, setCommentAddCount] = useKeepAliveState(`info-detail-comment-add-count-${detailId}`, 0);
|
|
194
|
-
const [commentTotal, setCommentTotal] = useKeepAliveState(`info-detail-comment-total-${detailId}`, void 0);
|
|
195
|
-
useEffect(() => {
|
|
196
|
-
if (!information && resolvedDetailInformation) setInformation(resolvedDetailInformation);
|
|
197
|
-
}, [
|
|
198
|
-
information,
|
|
199
|
-
resolvedDetailInformation,
|
|
200
|
-
setInformation
|
|
201
|
-
]);
|
|
202
|
-
const handleUpdateInformation = useCallback((nextData) => {
|
|
203
|
-
setInformation((prev) => {
|
|
204
|
-
if (!prev) return prev;
|
|
205
|
-
return {
|
|
206
|
-
...prev,
|
|
207
|
-
...nextData
|
|
208
|
-
};
|
|
209
|
-
});
|
|
210
|
-
}, [setInformation]);
|
|
211
|
-
useKeepAliveEffect(() => {
|
|
212
|
-
if (!information?.id) return;
|
|
213
|
-
/* @__PURE__ */ apiCollectClick({ contentId: information.id });
|
|
214
|
-
}, [information?.id], `detail-page-report-${detailId}`);
|
|
215
|
-
useEffect(() => {
|
|
216
|
-
if (!information || typeof window === "undefined") return;
|
|
217
|
-
window.sensors?.track?.("detail_page_view", {
|
|
218
|
-
object_id: information.id || detailId,
|
|
219
|
-
author_id: information.up_user,
|
|
220
|
-
object_type: information.content_type,
|
|
221
|
-
object_category: information.content_type,
|
|
222
|
-
object_tags: information.tags?.map((item) => item.name),
|
|
223
|
-
block_id: "",
|
|
224
|
-
page_source: window.location?.pathname || ""
|
|
225
|
-
});
|
|
226
|
-
}, [detailId, information]);
|
|
227
|
-
useEffect(() => {
|
|
228
|
-
setCommentAddCount(0);
|
|
229
|
-
}, [currentEpisodeId, setCommentAddCount]);
|
|
230
|
-
useMemo(() => {
|
|
231
|
-
return (typeof commentTotal === "number" ? commentTotal : 0) + commentAddCount;
|
|
232
|
-
}, [commentAddCount, commentTotal]);
|
|
233
|
-
const enableDiscussion = false;
|
|
234
|
-
const showVideoTab = true;
|
|
235
|
-
const handleNavigateToDiscussion = useCallback(() => {}, [enableDiscussion, setActiveTab]);
|
|
236
|
-
useCallback(() => {
|
|
237
|
-
setCommentAddCount((prev) => prev + 1);
|
|
238
|
-
}, [setCommentAddCount]);
|
|
239
|
-
useEffect(() => {}, [
|
|
240
|
-
enableDiscussion,
|
|
241
|
-
handleNavigateToDiscussion,
|
|
242
|
-
information?.id,
|
|
243
|
-
searchParams
|
|
244
|
-
]);
|
|
245
|
-
const handleEpisodeChange = useCallback((nextSeriesNum) => {
|
|
246
|
-
const resolvedSeriesNum = Math.max(1, Math.floor(Number(nextSeriesNum) || 1));
|
|
247
|
-
if (typeof window === "undefined") return;
|
|
248
|
-
const resolvedDetailId = String(information?.id || detailId || "").trim();
|
|
249
|
-
if (!resolvedDetailId) return;
|
|
250
|
-
const runtimeIsWebView = isWebView || window.isWebView === true;
|
|
251
|
-
const nextPath = `/${runtimeIsWebView ? "webview" : "video"}/${resolvedDetailId}/${encodeURIComponent(information?.name || "")}/episode/${resolvedSeriesNum}`;
|
|
252
|
-
const { search, hash, pathname } = window.location;
|
|
253
|
-
const nextUrl = `${nextPath}${search}${hash}`;
|
|
254
|
-
const currentUrl = `${pathname}${search}${hash}`;
|
|
255
|
-
const canUseHistoryReplace = isSameDetailEpisodeRoute(pathname, resolvedDetailId);
|
|
256
|
-
if (currentUrl !== nextUrl) {
|
|
257
|
-
if (runtimeIsWebView) {
|
|
258
|
-
const episodeLink = information?.links?.[Math.max(0, resolvedSeriesNum - 1)];
|
|
259
|
-
const src = buildVideoPlayerSrc(String(episodeLink?.m3u8_url || episodeLink?.preview_m3u8_url || "").trim());
|
|
260
|
-
notifyBridgeEpisodeChanged({
|
|
261
|
-
poster: String(information?.img_y || information?.img_x || information?.preview_images?.[0] || "").trim(),
|
|
262
|
-
src,
|
|
263
|
-
title: String(information?.title || information?.name || "").trim(),
|
|
264
|
-
contentId: resolvedDetailId,
|
|
265
|
-
episode: resolvedSeriesNum
|
|
266
|
-
});
|
|
267
|
-
if (currentSeriesNum !== resolvedSeriesNum) setActiveSeriesNum(resolvedSeriesNum);
|
|
268
|
-
return;
|
|
269
|
-
}
|
|
270
|
-
if (canUseHistoryReplace && typeof window.history?.replaceState === "function") {
|
|
271
|
-
window.history.replaceState(window.history.state, "", nextUrl);
|
|
272
|
-
setActiveSeriesNum(resolvedSeriesNum);
|
|
273
|
-
} else router.replace(nextUrl, { scroll: false });
|
|
274
|
-
return;
|
|
275
|
-
}
|
|
276
|
-
if (currentSeriesNum !== resolvedSeriesNum) setActiveSeriesNum(resolvedSeriesNum);
|
|
277
|
-
}, [
|
|
278
|
-
currentSeriesNum,
|
|
279
|
-
detailId,
|
|
280
|
-
information?.id,
|
|
281
|
-
information?.img_x,
|
|
282
|
-
information?.img_y,
|
|
283
|
-
information?.links,
|
|
284
|
-
information?.name,
|
|
285
|
-
information?.preview_images,
|
|
286
|
-
information?.title,
|
|
287
|
-
isWebView,
|
|
288
|
-
router,
|
|
289
|
-
setActiveSeriesNum
|
|
290
|
-
]);
|
|
291
|
-
useEffect(() => {
|
|
292
|
-
const availableEpisodeCount = Array.isArray(information?.links) ? information.links.length : 0;
|
|
293
|
-
if (availableEpisodeCount <= 0 || currentSeriesNum <= availableEpisodeCount) return;
|
|
294
|
-
handleEpisodeChange(1);
|
|
295
|
-
}, [
|
|
296
|
-
currentSeriesNum,
|
|
297
|
-
handleEpisodeChange,
|
|
298
|
-
information?.links
|
|
299
|
-
]);
|
|
300
|
-
const isValidStatus = information?.status === "1";
|
|
301
|
-
const { data: _channelDataRes } = useRequest([queryKey.CHANNEL], () => gContentGetAppChannels());
|
|
302
|
-
const channelDataList = getChannelList(_channelDataRes?.data);
|
|
303
|
-
const resolvedMaterialConfig = useMemo(() => {
|
|
304
|
-
if (materialConfig !== void 0) {
|
|
305
|
-
const defaultMap = new Map(DEFAULT_VIDEO_DETAIL_MATERIAL_CONFIG.map((item) => [item.componentName, item]));
|
|
306
|
-
return materialConfig.map((config) => {
|
|
307
|
-
const fallback = defaultMap.get(config.componentName);
|
|
308
|
-
return {
|
|
309
|
-
...fallback,
|
|
310
|
-
...config,
|
|
311
|
-
props: {
|
|
312
|
-
...fallback?.props ?? {},
|
|
313
|
-
...config.props ?? {}
|
|
314
|
-
}
|
|
315
|
-
};
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
return DEFAULT_VIDEO_DETAIL_MATERIAL_CONFIG;
|
|
319
|
-
}, [materialConfig]);
|
|
320
|
-
const runtimeContext = useMemo(() => {
|
|
321
|
-
return {
|
|
322
|
-
information: information ?? void 0,
|
|
323
|
-
currentSeriesNum,
|
|
324
|
-
onEpisodeChange: handleEpisodeChange,
|
|
325
|
-
onUpdateInformation: handleUpdateInformation,
|
|
326
|
-
detailId,
|
|
327
|
-
episodeIndex,
|
|
328
|
-
isShow: showVideoTab,
|
|
329
|
-
isWebView,
|
|
330
|
-
isInformationLoading,
|
|
331
|
-
isInformationResolved
|
|
332
|
-
};
|
|
333
|
-
}, [
|
|
334
|
-
currentSeriesNum,
|
|
335
|
-
detailId,
|
|
336
|
-
episodeIndex,
|
|
337
|
-
handleEpisodeChange,
|
|
338
|
-
handleUpdateInformation,
|
|
339
|
-
information,
|
|
340
|
-
isInformationLoading,
|
|
341
|
-
isInformationResolved,
|
|
342
|
-
isWebView,
|
|
343
|
-
showVideoTab
|
|
344
|
-
]);
|
|
345
|
-
const renderMaterial = useCallback((config) => {
|
|
346
|
-
if (!information) return null;
|
|
347
|
-
const material = videoDetailMaterials[config.componentName];
|
|
348
|
-
if (!material) return null;
|
|
349
|
-
const Component = material.clientComponent;
|
|
350
|
-
const resolvedProps = resolveMaterialProps(material, config.props);
|
|
351
|
-
if (!resolvedProps.isValid) return /* @__PURE__ */ jsx("div", { children: "组件配置错误" });
|
|
352
|
-
return /* @__PURE__ */ jsx(Component, { ...config.componentName === "video-detail-recommend" ? normalizeHomeRecommendRuntimeProps(resolvedProps.props) : resolvedProps.props });
|
|
353
|
-
}, [information]);
|
|
354
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
355
|
-
className: `w-full min-h-screen bg-bg2 text-text1 ${isWebView ? "" : "pt-11"}`,
|
|
356
|
-
children: [!isWebView && /* @__PURE__ */ jsx("div", {
|
|
357
|
-
className: "fixed bg-black top-0 left-0 right-0 z-[1000]",
|
|
358
|
-
children: /* @__PURE__ */ jsx(detail_search_bar_default, { data: { list: channelDataList } })
|
|
359
|
-
}), /* @__PURE__ */ jsx("div", {
|
|
360
|
-
className: "mx-auto w-full max-w-[840px] pb-6",
|
|
361
|
-
children: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
362
|
-
information && !isValidStatus && /* @__PURE__ */ jsx(EmptyState, {
|
|
363
|
-
type: "no-content",
|
|
364
|
-
text: t("videoDetailClient.videoUnavailable")
|
|
365
|
-
}),
|
|
366
|
-
information && isValidStatus && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
367
|
-
!isWebView && /* @__PURE__ */ jsx(DetailHero, {
|
|
368
|
-
isVideo: true,
|
|
369
|
-
information,
|
|
370
|
-
episodeIndex
|
|
371
|
-
}),
|
|
372
|
-
/* @__PURE__ */ jsx("div", {
|
|
373
|
-
id: "selectPopupPosition",
|
|
374
|
-
className: "w-full"
|
|
375
|
-
}),
|
|
376
|
-
enableDiscussion,
|
|
377
|
-
/* @__PURE__ */ jsxs("div", {
|
|
378
|
-
className: cn("w-full", false),
|
|
379
|
-
children: [/* @__PURE__ */ jsx(VideoDetailMaterialRuntimeProvider, {
|
|
380
|
-
value: runtimeContext,
|
|
381
|
-
children: resolvedMaterialConfig.map((config) => /* @__PURE__ */ jsx(Fragment, { children: renderMaterial(config) }, config.id))
|
|
382
|
-
}), enableDiscussion]
|
|
383
|
-
}),
|
|
384
|
-
enableDiscussion
|
|
385
|
-
] }),
|
|
386
|
-
!information && /* @__PURE__ */ jsx(EmptyState, {
|
|
387
|
-
type: "no-content",
|
|
388
|
-
text: t("videoDetailClient.videoDeleted")
|
|
389
|
-
})
|
|
390
|
-
] })
|
|
391
|
-
})]
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
//#endregion
|
|
396
|
-
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{gContentGetAppChannels as n,gContentGetVideoDetail as r}from"../../../service/generated/client.mjs";import{trackAppPageView as i}from"../../../utils/tracking.mjs";import{useRouter as a}from"../../../utils/use-compatible-router.mjs";import{EmptyState as o}from"../../ui/empty.mjs";import{buildVideoPlayerSrc as ee}from"../../common/video-player/process-m3u8-cache.mjs";import{notifyBridgeEpisodeChanged as te}from"../../../utils/login-modal-bridge.mjs";import{useRequest as s}from"../../../hooks/query/use-query.mjs";import{queryKey as c}from"../../../constants/query-key.mjs";import{useKeepAliveEffect as l,useKeepAliveState as u}from"../../common/keep-scroll-position/index.mjs";import{apiCollectClick as d}from"../../../utils/api-collect.mjs";import ne from"../../biz/business/search-bar/variants/detail-search-bar/index.mjs";import{normalizeHomeRecommendRuntimeProps as re}from"../../biz/business/home-recommend/shared/home-recommend-runtime-props.mjs";import{VideoDetailMaterialRuntimeProvider as f}from"../../biz/business/detail/shared/runtime-context-provider.mjs";import{resolveMaterialProps as ie,videoDetailMaterials as ae}from"../../biz/business/detail/shared/registry.mjs";import{DetailHero as oe}from"../../biz/business/detail/shared/video-hero.mjs";import{useParams as p,useSearchParams as m}from"next/navigation";import{Fragment as h,useCallback as g,useEffect as _,useMemo as v,useRef as se}from"react";import{Fragment as y,jsx as b,jsxs as x}from"react/jsx-runtime";import{useTranslations as S}from"next-intl";const C=[{id:`detail-info`,componentName:`video-detail-info`,props:{}},{id:`detail-info-title-tags-episodes`,componentName:`video-detail-info-title-tags-episodes`,props:{}},{id:`detail-actions`,componentName:`video-detail-actions`,props:{}},{id:`detail-recommend`,componentName:`video-detail-recommend`,props:{title:`猜你喜欢`,rows:2,columns:3,recommendContentConfig:{enabled:!1,categories:[],tags:[{name:`腐剧`}],sortRule:`popular`,contentForms:[]},showPlayCount:!0,playCountDelta:0,showEpisode:!0,enableInfinite:!1,items:[{contentId:`d6a35ba3279e6f0d`,contentName:`贺总的私宠罪妻`,titleMode:`custom`,title:`贺总的私宠罪妻`,description:`简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百简介多少字是不是两百`,coverMode:`upload`,coverUrl:`/truss/20260227/69a136457d10f.jpgxxx`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`b0f42fed731239a7`,contentName:`少年江湖物语`,titleMode:`custom`,title:`少年江湖物语`,description:`网剧《少年江湖物语》讲述了一个江湖中邪不压正,青春正好,有情有爱的温暖故事。剧中有魔教教主,有天下第一剑客,有身世成谜的江湖大夫,有忠心耿耿的小丫鬟,更有艳压秦淮的当红花魁,众多看似完全没有交集的人物纷纷亮相登场,搅乱江湖一池春水。`,coverMode:`content`,coverUrl:`/md-204/uploads/default/other/2024-08-26/14664d2c31e61c201a29cd4abba267c5.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`c2304e94ec0ba208`,contentName:`王的男人`,titleMode:`custom`,title:`王的男人`,description:`朝鲜第十代王燕山王君时期,艺人长生(甘宇成饰)和孔吉(李俊基饰)因为不肯加入当地的艺人团,来到京城汉阳谋生。此时暴君燕山君(郑镇荣饰)沉迷于宠妾张绿水(姜成妍饰),朝纲混乱,民不聊生。长生与孔吉二人在街头开始表演讽刺君主的喜剧,大受欢迎,却遭逮捕。后要求到王面前表演,求得一笑。结果,多亏孔吉的急中生智,燕山君才笑了出来。两人随即被留在宫中取乐,孔吉更是因为美色令王倍加宠爱。他们不停表演,大臣们却各自心怀鬼胎,导致了杀戮局面。最终,君王和艺人的命运又将如何呢?`,coverMode:`content`,coverUrl:`/md-204/resource/8c/8cb28f46831558fbeb2f34b2076c3b4e.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`c7ffc6a558ae8683`,contentName:`怒`,titleMode:`custom`,title:`怒`,description:`炎炎夏日,东京八王子郊外社区,一对夫妇惨遭杀害。事后凶手用血在墙上写下大大的“怒”字,随后逃亡,销声匿迹长达一年之久。而在此期间,三个身份不明的男子和身边的人相遇了。曾自甘堕落的爱子(宫崎葵饰)被父亲(渡边谦饰)领回海滨小镇,邂逅了不善言辞的哲也(松山研一饰)。在东京工作的同性恋优马(妻夫木聪饰)将柔情似水的直人(绫野刚饰)带回了家,他不相信对方,却又尝试去相信。随母亲搬到冲绳的小泉(广濑铃饰)跟着同学辰哉(佐久本宝饰)登上一座荒岛,在废墟中遇到了背包客田中(森山未来饰),他们短暂成为朋友,而可怕的命运突然降临泉的头上。不久之后,通缉令遍布全国,三个男子的真实身份引人生疑……本片根据吉田修一的同名原作改编。`,coverMode:`content`,coverUrl:`/md-204/resource/24/24ef267eef2c35b5e4cf12dac8b55c14.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`98217427ed96ec51`,contentName:`熔炉`,titleMode:`custom`,title:`熔炉`,description:`来自首尔的哑语美术老师仁浩(孔宥饰)来到雾津,应聘慈爱聋哑人学校。天降大雾,他意外撞车,维修时邂逅了人权组织成员柔珍(郑有美饰)。仁浩妻子早亡,8岁女儿天生哮喘由祖母照看,所以他不辞辛苦谋职养家。然而,双胞胎的校长与教导主任竟逼仁浩索贿5千万韩元。同时,仁浩逐渐发现学校笼罩着一种紧张压抑的气氛,令人窒息。有三个孩子引人关注:聪颖的金妍斗(金贤秀饰)、贪吃的陈宥利(郑仁絮饰)和弟弟自杀身亡的全民秀(白承焕饰),民秀总是满脸淤青。下课后,仁浩还听到女厕所中有呼喊与哭泣,在门卫的阻拦下他未深究。之后。他意外目睹了校长行贿警察,教导员毒打民秀,宿导溺罚妍斗的行径。一个惊天的隐秘被慢慢揭开,真相令韩国震惊……本片取材于2005年光州一所聋哑障碍人学校的真实事件,改编自韩国作家孔枝泳的同名小说。`,coverMode:`content`,coverUrl:`/md-204/resource/b4/b410ccdcd86936455b9460a9152aaa47.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0},{contentId:`caa2b4eb4eb40de0`,contentName:`再次来寻我`,titleMode:`custom`,title:`再次来寻我`,description:`在宇回到曾经与初恋志勋相遇的303号房,这里即将被拆迁,他在房间里回忆和志勋的点点滴滴,突然被书桌上的电话所吸引,一拿起话筒听到的竟是志勋的声音!在房子主人的同意下,在宇带着电话离开了303室,在回家的途中他发现自己像走在一个陌生的地方,而对面走来的竟是已消失已久的志勋…`,coverMode:`content`,coverUrl:`/md-204/resource/2b/2b43375f2248c1a012847d4507fd21a3.jpg`,showPlayCount:!0,playCountDelta:0,showEpisode:!0}]}}];function ce(e,t){let n=String(e||``).split(`/`).filter(Boolean),r=n.findIndex(e=>e===`video`||e===`webview`);return r<0?!1:n[r+1]===t}function w({detailId:d,initialInformation:w,isWebView:T=!1,materialConfig:E}){let D=S(`components.pages.videoDetail`),O=a(),k=p(),le=m(),A=se(!1),j=k.level,M=Array.isArray(j)?j:typeof j==`string`?[j]:[],N=M.findIndex(e=>e===`episode`),ue=N>=0?M[N+1]:M[2],P=Math.max(1,Number(ue)||1),[F,I]=u(`detail-current-series-num-${d}`,P);_(()=>{I(P)},[P,I]);let L=Math.max(1,Number(F)||1),R=Math.max(0,L-1),{data:z,isPending:B,isFetching:V,isError:H,isSuccess:de}=s(v(()=>[`video-detail`,d],[d]),async()=>d?await r({id:d}):null,{enabled:!!d}),U=v(()=>{let e=z?.data?.video;return!e||typeof e!=`object`?null:{...e,content_type:1,episode_cnt:e.links?.length||0}},[z?.data?.video]),fe=w??U??null,[W,G]=u(`detail-information-${d}`,fe);_(()=>{!W?.id||A.current||(A.current=!0,i({page_key:`page_video_detail`,page_name:`详情页`}))},[W?.id]);let pe=W?.links?.[R]?.id||``,K=!!d&&!W&&(B||V),q=!d||!!W||H||de,[me,he]=u(`info-detail-active-tab-${d}`,`video`),[J,Y]=u(`info-detail-comment-add-count-${d}`,0),[X,ge]=u(`info-detail-comment-total-${d}`,void 0);_(()=>{!W&&U&&G(U)},[W,U,G]);let Z=g(e=>{G(t=>t&&{...t,...e})},[G]);l(()=>{W?.id&&W.id},[W?.id],`detail-page-report-${d}`),_(()=>{!W||typeof window>`u`||window.sensors?.track?.(`detail_page_view`,{object_id:W.id||d,author_id:W.up_user,object_type:W.content_type,object_category:W.content_type,object_tags:W.tags?.map(e=>e.name),block_id:``,page_source:window.location?.pathname||``})},[d,W]),_(()=>{Y(0)},[pe,Y]),v(()=>(typeof X==`number`?X:0)+J,[J,X]);let _e=g(()=>{},[!1,he]);g(()=>{Y(e=>e+1)},[Y]),_(()=>{},[!1,_e,W?.id,le]);let Q=g(e=>{let t=Math.max(1,Math.floor(Number(e)||1));if(typeof window>`u`)return;let n=String(W?.id||d||``).trim();if(!n)return;let r=T||window.isWebView===!0,i=`/${r?`webview`:`video`}/${n}/${encodeURIComponent(W?.name||``)}/episode/${t}`,{search:a,hash:o,pathname:s}=window.location,c=`${i}${a}${o}`,l=`${s}${a}${o}`,u=ce(s,n);if(l!==c){if(r){let e=W?.links?.[Math.max(0,t-1)],r=ee(String(e?.m3u8_url||e?.preview_m3u8_url||``).trim());te({poster:String(W?.img_y||W?.img_x||W?.preview_images?.[0]||``).trim(),src:r,title:String(W?.title||W?.name||``).trim(),contentId:n,episode:t}),L!==t&&I(t);return}u&&typeof window.history?.replaceState==`function`?(window.history.replaceState(window.history.state,``,c),I(t)):O.replace(c,{scroll:!1});return}L!==t&&I(t)},[L,d,W?.id,W?.img_x,W?.img_y,W?.links,W?.name,W?.preview_images,W?.title,T,O,I]);_(()=>{let e=Array.isArray(W?.links)?W.links.length:0;e<=0||L<=e||Q(1)},[L,Q,W?.links]);let $=W?.status===`1`,{data:ve}=s([c.CHANNEL],()=>n()),ye=e(ve?.data),be=v(()=>{if(E!==void 0){let e=new Map(C.map(e=>[e.componentName,e]));return E.map(t=>{let n=e.get(t.componentName);return{...n,...t,props:{...n?.props??{},...t.props??{}}}})}return C},[E]),xe=v(()=>({information:W??void 0,currentSeriesNum:L,onEpisodeChange:Q,onUpdateInformation:Z,detailId:d,episodeIndex:R,isShow:!0,isWebView:T,isInformationLoading:K,isInformationResolved:q}),[L,d,R,Q,Z,W,K,q,T,!0]),Se=g(e=>{if(!W)return null;let t=ae[e.componentName];if(!t)return null;let n=t.clientComponent,r=ie(t,e.props);return r.isValid?b(n,{...e.componentName===`video-detail-recommend`?re(r.props):r.props}):b(`div`,{children:`组件配置错误`})},[W]);return x(`div`,{className:`w-full min-h-screen bg-bg2 text-text1 ${T?``:`pt-11`}`,children:[!T&&b(`div`,{className:`fixed bg-black top-0 left-0 right-0 z-[1000]`,children:b(ne,{data:{list:ye}})}),b(`div`,{className:`mx-auto w-full max-w-[840px] pb-6`,children:x(y,{children:[W&&!$&&b(o,{type:`no-content`,text:D(`videoDetailClient.videoUnavailable`)}),W&&$&&x(y,{children:[!T&&b(oe,{isVideo:!0,information:W,episodeIndex:R}),b(`div`,{id:`selectPopupPosition`,className:`w-full`}),!1,x(`div`,{className:t(`w-full`,!1),children:[b(f,{value:xe,children:be.map(e=>b(h,{children:Se(e)},e.id))}),!1]}),!1]}),!W&&b(o,{type:`no-content`,text:D(`videoDetailClient.videoDeleted`)})]})})]})}export{w as default};
|
|
@@ -1,62 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { pContentGetNewstVideoListKey, pContentGetTopRatedVideoListKey } from "../../../service/generated/tanstack.mjs";
|
|
4
|
-
import { HydrationBoundary } from "../../../hooks/query/hydration-boundary.mjs";
|
|
5
|
-
import { revalidate } from "../../../constants/revalidate.mjs";
|
|
6
|
-
import { getNextVideoListPageParam, resolveNextCursor } from "./types.mjs";
|
|
7
|
-
import VideoListClient from "./video-list-client.mjs";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
//#region components/pages/video-list/index.tsx
|
|
11
|
-
const PAGE_SIZE = 10;
|
|
12
|
-
const INITIAL_CURSOR = "";
|
|
13
|
-
async function VideoListPage({ title = "列表页", tags = [] } = {}) {
|
|
14
|
-
const baseQuery = {
|
|
15
|
-
page_size: PAGE_SIZE,
|
|
16
|
-
tags: tags.length ? tags : void 0
|
|
17
|
-
};
|
|
18
|
-
return /* @__PURE__ */ jsx(HydrationBoundary, {
|
|
19
|
-
prefetch: [{
|
|
20
|
-
type: "infinite",
|
|
21
|
-
queryKey: pContentGetTopRatedVideoListKey(baseQuery),
|
|
22
|
-
queryFn: async (cursor) => {
|
|
23
|
-
const d = (await pContentGetTopRatedVideoList({
|
|
24
|
-
page_size: PAGE_SIZE,
|
|
25
|
-
cursor: cursor || void 0,
|
|
26
|
-
tags: tags.length ? tags : void 0
|
|
27
|
-
}, { revalidate: revalidate.TIME })).data;
|
|
28
|
-
const nextList = Array.isArray(d?.videos) ? d.videos : [];
|
|
29
|
-
return {
|
|
30
|
-
list: nextList,
|
|
31
|
-
nextCursor: nextList.length < PAGE_SIZE ? "" : resolveNextCursor(d)
|
|
32
|
-
};
|
|
33
|
-
},
|
|
34
|
-
initialPageParam: INITIAL_CURSOR,
|
|
35
|
-
getNextPageParam: (last) => getNextVideoListPageParam(last)
|
|
36
|
-
}, {
|
|
37
|
-
type: "infinite",
|
|
38
|
-
queryKey: pContentGetNewstVideoListKey(baseQuery),
|
|
39
|
-
queryFn: async (cursor) => {
|
|
40
|
-
const d = (await pContentGetNewstVideoList({
|
|
41
|
-
page_size: PAGE_SIZE,
|
|
42
|
-
cursor: cursor || void 0,
|
|
43
|
-
tags: tags.length ? tags : void 0
|
|
44
|
-
}, { revalidate: revalidate.TIME })).data;
|
|
45
|
-
const nextList = Array.isArray(d?.videos) ? d.videos : [];
|
|
46
|
-
return {
|
|
47
|
-
list: nextList,
|
|
48
|
-
nextCursor: nextList.length < PAGE_SIZE ? "" : resolveNextCursor(d)
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
initialPageParam: INITIAL_CURSOR,
|
|
52
|
-
getNextPageParam: (last) => getNextVideoListPageParam(last)
|
|
53
|
-
}],
|
|
54
|
-
children: /* @__PURE__ */ jsx(VideoListClient, {
|
|
55
|
-
title,
|
|
56
|
-
tags
|
|
57
|
-
})
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
export { VideoListPage };
|
|
2
|
+
import{pContentGetNewstVideoList as e,pContentGetTopRatedVideoList as t}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as n,pContentGetTopRatedVideoListKey as r}from"../../../service/generated/tanstack.mjs";import{HydrationBoundary as i}from"../../../hooks/query/hydration-boundary.mjs";import{revalidate as a}from"../../../constants/revalidate.mjs";import{getNextVideoListPageParam as o,resolveNextCursor as s}from"./types.mjs";import c from"./video-list-client.mjs";import{jsx as l}from"react/jsx-runtime";async function u({title:u=`列表页`,tags:d=[]}={}){let f={page_size:10,tags:d.length?d:void 0};return l(i,{prefetch:[{type:`infinite`,queryKey:r(f),queryFn:async e=>{let n=(await t({page_size:10,cursor:e||void 0,tags:d.length?d:void 0},{revalidate:a.TIME})).data,r=Array.isArray(n?.videos)?n.videos:[];return{list:r,nextCursor:r.length<10?``:s(n)}},initialPageParam:``,getNextPageParam:e=>o(e)},{type:`infinite`,queryKey:n(f),queryFn:async t=>{let n=(await e({page_size:10,cursor:t||void 0,tags:d.length?d:void 0},{revalidate:a.TIME})).data,r=Array.isArray(n?.videos)?n.videos:[];return{list:r,nextCursor:r.length<10?``:s(n)}},initialPageParam:``,getNextPageParam:e=>o(e)}],children:l(c,{title:u,tags:d})})}export{u 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,145 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { cn } from "../../../utils/cn.mjs";
|
|
5
|
-
import { pContentGetNewstVideoList, pContentGetTopRatedVideoList } from "../../../service/generated/client.mjs";
|
|
6
|
-
import { pContentGetNewstVideoListKey, pContentGetTopRatedVideoListKey } from "../../../service/generated/tanstack.mjs";
|
|
7
|
-
import { useRouter } from "../../../utils/use-compatible-router.mjs";
|
|
8
|
-
import { Button } from "../../ui/button.mjs";
|
|
9
|
-
import { Box } from "../../ui/box.mjs";
|
|
10
|
-
import { InfiniteScroll } from "../../ui/infinite-scroll.mjs";
|
|
11
|
-
import { Text } from "../../ui/text.mjs";
|
|
12
|
-
import { usePaginated } from "../../../hooks/query/use-query.mjs";
|
|
13
|
-
import SvgLeftArrow from "../../../assets/icons/left_arrow.mjs";
|
|
14
|
-
import { getNextVideoListPageParam, resolveNextCursor } from "./types.mjs";
|
|
15
|
-
import { VideoListRecommendItem } from "./video-list-recommend-item.mjs";
|
|
16
|
-
import { VideoListSkeleton } from "./video-list-skeleton.mjs";
|
|
17
|
-
import { useEffect, useMemo, useState } from "react";
|
|
18
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
|
|
20
|
-
//#region components/pages/video-list/video-list-client.tsx
|
|
21
|
-
const PAGE_SIZE = 10;
|
|
22
|
-
const DEFAULT_TITLE = "列表页";
|
|
23
|
-
const DEFAULT_TAGS = [];
|
|
24
|
-
const INITIAL_CURSOR = "";
|
|
25
|
-
function VideoListClient({ title = DEFAULT_TITLE, tags = DEFAULT_TAGS }) {
|
|
26
|
-
const router = useRouter();
|
|
27
|
-
const [currentTab, setCurrentTab] = useState("hot");
|
|
28
|
-
const baseQuery = useMemo(() => {
|
|
29
|
-
return {
|
|
30
|
-
page_size: PAGE_SIZE,
|
|
31
|
-
tags: tags.length ? tags : void 0
|
|
32
|
-
};
|
|
33
|
-
}, [tags]);
|
|
34
|
-
const { data, fetchNextPage, hasNextPage, isPending, isFetching } = usePaginated({
|
|
35
|
-
key: useMemo(() => {
|
|
36
|
-
return currentTab === "hot" ? pContentGetTopRatedVideoListKey(baseQuery) : pContentGetNewstVideoListKey(baseQuery);
|
|
37
|
-
}, [baseQuery, currentTab]),
|
|
38
|
-
queryFn: async (cursor) => {
|
|
39
|
-
const params = {
|
|
40
|
-
page_size: PAGE_SIZE,
|
|
41
|
-
cursor: cursor || void 0,
|
|
42
|
-
tags: tags.length ? tags : void 0
|
|
43
|
-
};
|
|
44
|
-
const d = (currentTab === "hot" ? await pContentGetTopRatedVideoList(params) : await pContentGetNewstVideoList(params)).data;
|
|
45
|
-
const nextList = Array.isArray(d?.videos) ? d.videos : [];
|
|
46
|
-
return {
|
|
47
|
-
list: nextList,
|
|
48
|
-
nextCursor: nextList.length < PAGE_SIZE ? "" : resolveNextCursor(d)
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
getNextPageParam: getNextVideoListPageParam,
|
|
52
|
-
initialPageParam: INITIAL_CURSOR,
|
|
53
|
-
options: {
|
|
54
|
-
staleTime: 0,
|
|
55
|
-
refetchOnMount: "always",
|
|
56
|
-
refetchOnWindowFocus: false,
|
|
57
|
-
refetchOnReconnect: false
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
const allList = useMemo(() => data?.pages?.flatMap((p) => p.list) ?? [], [data?.pages]);
|
|
61
|
-
const hasLoadedAnyPage = (data?.pages?.length ?? 0) > 0;
|
|
62
|
-
const resolvedHasMore = useMemo(() => {
|
|
63
|
-
if (!hasLoadedAnyPage) return true;
|
|
64
|
-
return hasNextPage ?? false;
|
|
65
|
-
}, [hasLoadedAnyPage, hasNextPage]);
|
|
66
|
-
const shouldShowInitialSkeleton = allList.length === 0 && (!hasLoadedAnyPage || isPending || isFetching);
|
|
67
|
-
useEffect(() => {
|
|
68
|
-
if (typeof window === "undefined") return;
|
|
69
|
-
window.scrollTo({
|
|
70
|
-
top: 0,
|
|
71
|
-
behavior: "auto"
|
|
72
|
-
});
|
|
73
|
-
}, [currentTab]);
|
|
74
|
-
function handleBack() {
|
|
75
|
-
router.back();
|
|
76
|
-
}
|
|
77
|
-
const videoGrid = useMemo(() => allList.map((item) => {
|
|
78
|
-
const itemId = item.id ?? item.mid ?? "";
|
|
79
|
-
return /* @__PURE__ */ jsx(VideoListRecommendItem, {
|
|
80
|
-
item,
|
|
81
|
-
href: `/video/${itemId}/${item.name ?? ""}`
|
|
82
|
-
}, itemId);
|
|
83
|
-
}), [allList]);
|
|
84
|
-
if (shouldShowInitialSkeleton) return /* @__PURE__ */ jsx(VideoListSkeleton, {});
|
|
85
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
86
|
-
as: "main",
|
|
87
|
-
className: "min-h-[100dvh] bg-[linear-gradient(180deg,#160320_0%,#2a0a56_100%)] text-white",
|
|
88
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
89
|
-
className: "sticky top-0 z-20 bg-[linear-gradient(180deg,rgba(22,3,32,0.98)_0%,rgba(22,3,32,0.92)_100%)] no-vw-x-16 pb-[12px] pt-[10px] backdrop-blur-[16px]",
|
|
90
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
91
|
-
as: "header",
|
|
92
|
-
className: "flex items-center justify-between",
|
|
93
|
-
children: [
|
|
94
|
-
/* @__PURE__ */ jsx(Button, {
|
|
95
|
-
type: "button",
|
|
96
|
-
variant: "ghost",
|
|
97
|
-
size: "icon-sm",
|
|
98
|
-
onClick: handleBack,
|
|
99
|
-
className: "h-[24px] w-[24px] rounded-none p-0 text-white hover:bg-transparent",
|
|
100
|
-
children: /* @__PURE__ */ jsx(SvgLeftArrow, { className: "h-[16px] w-[16px]" })
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ jsx(Text, {
|
|
103
|
-
as: "h1",
|
|
104
|
-
className: "min-w-0 flex-1 truncate px-[16px] text-center text-[18px] font-medium leading-[22px] text-white",
|
|
105
|
-
children: title
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ jsx(Box, {
|
|
108
|
-
className: "h-[24px] w-[24px] shrink-0 opacity-0",
|
|
109
|
-
"aria-hidden": true
|
|
110
|
-
})
|
|
111
|
-
]
|
|
112
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
113
|
-
as: "nav",
|
|
114
|
-
className: "mt-[12px] flex gap-[14px]",
|
|
115
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
116
|
-
type: "button",
|
|
117
|
-
variant: "ghost",
|
|
118
|
-
onClick: () => setCurrentTab("hot"),
|
|
119
|
-
className: cn("h-[28px] min-w-[64px] rounded-[100px] px-[16px] text-[14px] font-normal leading-[20px] text-white", currentTab === "hot" ? "bg-[linear-gradient(90deg,#9756e3_0%,#6c43ee_100%)] shadow-[0_8px_20px_rgba(122,76,255,0.35)] hover:bg-transparent" : "bg-white/20 hover:bg-white/25"),
|
|
120
|
-
children: "最热"
|
|
121
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
122
|
-
type: "button",
|
|
123
|
-
variant: "ghost",
|
|
124
|
-
onClick: () => setCurrentTab("latest"),
|
|
125
|
-
className: cn("h-[28px] min-w-[64px] rounded-[100px] px-[16px] text-[14px] font-normal leading-[20px] text-white", currentTab === "latest" ? "bg-[linear-gradient(90deg,#9756e3_0%,#6c43ee_100%)] shadow-[0_8px_20px_rgba(122,76,255,0.35)] hover:bg-transparent" : "bg-white/20 hover:bg-white/25"),
|
|
126
|
-
children: "最新"
|
|
127
|
-
})]
|
|
128
|
-
})]
|
|
129
|
-
}), /* @__PURE__ */ jsx(InfiniteScroll, {
|
|
130
|
-
loadMore: () => fetchNextPage().then(() => void 0),
|
|
131
|
-
hasMore: resolvedHasMore,
|
|
132
|
-
noMoreText: "没有更多了",
|
|
133
|
-
threshold: 300,
|
|
134
|
-
className: "no-vw-x-16 pb-[24px]",
|
|
135
|
-
children: /* @__PURE__ */ jsx(Box, {
|
|
136
|
-
as: "section",
|
|
137
|
-
className: "flex flex-col gap-[16px]",
|
|
138
|
-
children: videoGrid
|
|
139
|
-
})
|
|
140
|
-
}, currentTab)]
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//#endregion
|
|
145
|
-
export { VideoListClient as default };
|
|
2
|
+
"use client";import{cn as e}from"../../../utils/cn.mjs";import{pContentGetNewstVideoList as t,pContentGetTopRatedVideoList as n}from"../../../service/generated/client.mjs";import{pContentGetNewstVideoListKey as r,pContentGetTopRatedVideoListKey as i}from"../../../service/generated/tanstack.mjs";import{useRouter as a}from"../../../utils/use-compatible-router.mjs";import{Button as o}from"../../ui/button.mjs";import{Box as s}from"../../ui/box.mjs";import{InfiniteScroll as c}from"../../ui/infinite-scroll.mjs";import{Text as l}from"../../ui/text.mjs";import{usePaginated as u}from"../../../hooks/query/use-query.mjs";import d from"../../../assets/icons/left_arrow.mjs";import{getNextVideoListPageParam as f,resolveNextCursor as p}from"./types.mjs";import{VideoListRecommendItem as m}from"./video-list-recommend-item.mjs";import{VideoListSkeleton as h}from"./video-list-skeleton.mjs";import{useEffect as g,useMemo as _,useState as v}from"react";import{jsx as y,jsxs as b}from"react/jsx-runtime";const x=[];function S({title:S=`列表页`,tags:C=x}){let w=a(),[T,E]=v(`hot`),D=_(()=>({page_size:10,tags:C.length?C:void 0}),[C]),{data:O,fetchNextPage:k,hasNextPage:A,isPending:j,isFetching:M}=u({key:_(()=>T===`hot`?i(D):r(D),[D,T]),queryFn:async e=>{let r={page_size:10,cursor:e||void 0,tags:C.length?C:void 0},i=(T===`hot`?await n(r):await t(r)).data,a=Array.isArray(i?.videos)?i.videos:[];return{list:a,nextCursor:a.length<10?``:p(i)}},getNextPageParam:f,initialPageParam:``,options:{staleTime:0,refetchOnMount:`always`,refetchOnWindowFocus:!1,refetchOnReconnect:!1}}),N=_(()=>O?.pages?.flatMap(e=>e.list)??[],[O?.pages]),P=(O?.pages?.length??0)>0,F=_(()=>P?A??!1:!0,[P,A]),I=N.length===0&&(!P||j||M);g(()=>{typeof window>`u`||window.scrollTo({top:0,behavior:`auto`})},[T]);function L(){w.back()}let R=_(()=>N.map(e=>{let t=e.id??e.mid??``;return y(m,{item:e,href:`/video/${t}/${e.name??``}`},t)}),[N]);return I?y(h,{}):b(s,{as:`main`,className:`min-h-[100dvh] bg-[linear-gradient(180deg,#160320_0%,#2a0a56_100%)] text-white`,children:[b(s,{className:`sticky top-0 z-20 bg-[linear-gradient(180deg,rgba(22,3,32,0.98)_0%,rgba(22,3,32,0.92)_100%)] no-vw-x-16 pb-[12px] pt-[10px] backdrop-blur-[16px]`,children:[b(s,{as:`header`,className:`flex items-center justify-between`,children:[y(o,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:L,className:`h-[24px] w-[24px] rounded-none p-0 text-white hover:bg-transparent`,children:y(d,{className:`h-[16px] w-[16px]`})}),y(l,{as:`h1`,className:`min-w-0 flex-1 truncate px-[16px] text-center text-[18px] font-medium leading-[22px] text-white`,children:S}),y(s,{className:`h-[24px] w-[24px] shrink-0 opacity-0`,"aria-hidden":!0})]}),b(s,{as:`nav`,className:`mt-[12px] flex gap-[14px]`,children:[y(o,{type:`button`,variant:`ghost`,onClick:()=>E(`hot`),className:e(`h-[28px] min-w-[64px] rounded-[100px] px-[16px] text-[14px] font-normal leading-[20px] text-white`,T===`hot`?`bg-[linear-gradient(90deg,#9756e3_0%,#6c43ee_100%)] shadow-[0_8px_20px_rgba(122,76,255,0.35)] hover:bg-transparent`:`bg-white/20 hover:bg-white/25`),children:`最热`}),y(o,{type:`button`,variant:`ghost`,onClick:()=>E(`latest`),className:e(`h-[28px] min-w-[64px] rounded-[100px] px-[16px] text-[14px] font-normal leading-[20px] text-white`,T===`latest`?`bg-[linear-gradient(90deg,#9756e3_0%,#6c43ee_100%)] shadow-[0_8px_20px_rgba(122,76,255,0.35)] hover:bg-transparent`:`bg-white/20 hover:bg-white/25`),children:`最新`})]})]}),y(c,{loadMore:()=>k().then(()=>void 0),hasMore:F,noMoreText:`没有更多了`,threshold:300,className:`no-vw-x-16 pb-[24px]`,children:y(s,{as:`section`,className:`flex flex-col gap-[16px]`,children:R})},T)]})}export{S as default};
|