@funhub/platform 0.1.130 → 0.1.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/collect_nor.mjs +1 -21
- package/dist/assets/icons/detail/collect_sel.mjs +1 -21
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/share.mjs +1 -17
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -21
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/right_arrow.mjs +1 -14
- package/dist/assets/icons/search/avatar.mjs +1 -36
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search/video.mjs +1 -27
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/marquee.mjs +1 -5
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -144
- package/dist/common.mjs +1 -44
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -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 -273
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -373
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -169
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -55
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -31
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -64
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -126
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -122
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -21
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -85
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -22
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -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 -136
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -12
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -39
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -190
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -978
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -105
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -24
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -82
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +1 -109
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -340
- 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 -52
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -191
- 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 -89
- 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 -395
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -106
- 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 -41
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -98
- 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 -20
- 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 -144
- 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-recommend/client.mjs +1 -552
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -58
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -68
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -22
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -29
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -36
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -45
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -33
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -20
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -44
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -28
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -28
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -193
- 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 -49
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -44
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -169
- 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 -44
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -498
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -25
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -130
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -34
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -288
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -38
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -423
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -117
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -32
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -91
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -88
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -81
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -230
- package/dist/components/biz/business/marquee/marquee.module.mjs +25 -13
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -97
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -148
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -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 -243
- 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 -235
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -135
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -234
- 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 -187
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -519
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -250
- 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 -250
- 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 -248
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -121
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -20
- package/dist/components/biz/business/search-history/server.mjs +1 -17
- package/dist/components/biz/business/search-input/client.mjs +1 -108
- 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 -64
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -70
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -102
- 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 -69
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -28
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.mjs +1 -47
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -71
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/collection-create-modal.mjs +1 -130
- package/dist/components/common/collection-popup/index.mjs +1 -292
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -23
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -85
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -45
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop/image-crop.mjs +1 -182
- package/dist/components/common/image-crop/show-image-crop.mjs +1 -102
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -70
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -93
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -21
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -468
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -139
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -104
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -29
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.d.mts +1 -0
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -320
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -96
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.d.mts +2 -0
- package/dist/components/common/photo-preview/index.mjs +1 -63
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -76
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -555
- 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/search-video-card-skeleton.mjs +2 -0
- 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 -120
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -63
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -710
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -282
- package/dist/components/common/video-player/style.module.mjs +257 -7
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -43
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -161
- package/dist/components/pages/collection-create/form.mjs +1 -163
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/detail.mjs +1 -538
- 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 -655
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -382
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -256
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -104
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -155
- package/dist/components/pages/home/index.mjs +1 -56
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -37
- package/dist/components/pages/login/forgot.mjs +1 -130
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -214
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -189
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/verify.mjs +3 -212
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -185
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -159
- package/dist/components/pages/search/search-result/index.mjs +1 -22
- package/dist/components/pages/search/search-result/search-all.mjs +1 -223
- package/dist/components/pages/search/search-result/search-user.mjs +1 -203
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -324
- package/dist/components/pages/search/search-utils.mjs +1 -48
- package/dist/components/pages/search/style.module.mjs +113 -13
- package/dist/components/pages/search/top-header.mjs +1 -91
- package/dist/components/pages/search-result/page-client.mjs +1 -117
- package/dist/components/pages/search-result/search-all.mjs +1 -82
- package/dist/components/pages/search-result/search-result-skeleton.mjs +1 -22
- package/dist/components/pages/search-result/search-tab.mjs +1 -89
- package/dist/components/pages/search-result/search-user.mjs +1 -253
- package/dist/components/pages/search-result/search-video.mjs +1 -226
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +4 -256
- package/dist/components/pages/settings/_components/settings.mjs +1 -183
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -357
- package/dist/components/pages/video-list/index.mjs +1 -59
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -106
- package/dist/components/pages/video-list/video-list-item.mjs +1 -92
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -62
- 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 -106
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.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 -32
- 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 -466
- package/dist/hooks/use-card-decoration.mjs +1 -92
- package/dist/hooks/use-content-operate.mjs +1 -525
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-search-history.mjs +1 -53
- package/dist/hooks/use-sticky.mjs +1 -50
- package/dist/hooks.mjs +1 -14
- package/dist/i18n/locales/en.mjs +3 -820
- package/dist/i18n/locales/zh-CN.mjs +3 -820
- 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 -61
- 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/generated/client.mjs +1 -1138
- package/dist/service/generated/tanstack.mjs +1 -1049
- package/dist/service/register-by-verify-email-code.d.mts +15 -0
- package/dist/service/register-by-verify-email-code.mjs +2 -0
- package/dist/service.d.mts +2 -1
- package/dist/service.mjs +1 -4
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -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 -113
- package/dist/store.mjs +1 -10
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -57
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -296
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -325
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -33
- package/dist/utils/http.mjs +1 -194
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -110
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/login-modal-bridge.mjs +1 -65
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -147
- package/dist/utils/schema/utils.mjs +1 -27
- package/dist/utils/share-manager.mjs +1 -183
- package/dist/utils/tools.mjs +1 -105
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils.mjs +1 -21
- package/package.json +1 -1
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { videoDetailActionsInspectorPropsSchema } from "./schema.mjs";
|
|
4
|
-
import { VideoDetailActions } from "./server.mjs";
|
|
5
|
-
import { defineMaterial } from "create-funhub/sdk";
|
|
6
|
-
|
|
7
|
-
//#region components/biz/business/detail/video-detail-actions/material.ts
|
|
8
|
-
const videoDetailActionsMaterial = defineMaterial({
|
|
9
|
-
type: "video-detail-actions",
|
|
10
|
-
name: "行为模块",
|
|
11
|
-
icon: "/static/components-thumb/interaction_actions_default.png",
|
|
12
|
-
category: "行为组件",
|
|
13
|
-
serverComponent: VideoDetailActions,
|
|
14
|
-
clientComponent: VideoDetailActionsClient,
|
|
15
|
-
propsSchema: videoDetailActionsInspectorPropsSchema
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { videoDetailActionsMaterial };
|
|
2
|
+
import{VideoDetailActionsClient as e}from"./client.mjs";import{videoDetailActionsInspectorPropsSchema as t}from"./schema.mjs";import{VideoDetailActions as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`video-detail-actions`,name:`行为模块`,icon:`/static/components-thumb/interaction_actions_default.png`,category:`行为组件`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as videoDetailActionsMaterial};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region components/biz/business/detail/video-detail-actions/schema.ts
|
|
5
|
-
/**
|
|
6
|
-
* 行为模块物料暂不对外开放配置。
|
|
7
|
-
*/
|
|
8
|
-
const videoDetailActionsInspectorPropsSchema = defineComponentPropsSchema({});
|
|
9
|
-
const videoDetailActionsInspectorDefaultProps = getSchemaDefaultProps(videoDetailActionsInspectorPropsSchema);
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { videoDetailActionsInspectorPropsSchema };
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"create-funhub/sdk";const n=e({});t(n);export{n as videoDetailActionsInspectorPropsSchema};
|
|
@@ -1,48 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { resolveVideoDetailRouteFromMaterialContext } from "../shared/material-route-context.mjs";
|
|
4
|
-
import { getVideoDetailServerInformation } from "../shared/video-detail-server-data.mjs";
|
|
5
|
-
import { VideoDetailActionsClient } from "./client.mjs";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
//#region components/biz/business/detail/video-detail-actions/server.tsx
|
|
9
|
-
/**
|
|
10
|
-
* 视频详情行为模块服务端组件。
|
|
11
|
-
*/
|
|
12
|
-
async function VideoDetailActions(props) {
|
|
13
|
-
const { mode = "renderer", detailId, currentSeriesNum, __route, ...rest } = props;
|
|
14
|
-
if (mode !== "renderer") return /* @__PURE__ */ jsx(VideoDetailActionsClient, {
|
|
15
|
-
...rest,
|
|
16
|
-
mode
|
|
17
|
-
});
|
|
18
|
-
const routeContext = resolveVideoDetailRouteFromMaterialContext(__route);
|
|
19
|
-
const resolvedDetailId = String(detailId || routeContext.detailId || "").trim();
|
|
20
|
-
if (!resolvedDetailId) return /* @__PURE__ */ jsx(VideoDetailActionsClient, {
|
|
21
|
-
...rest,
|
|
22
|
-
mode
|
|
23
|
-
});
|
|
24
|
-
const information = await getVideoDetailServerInformation(resolvedDetailId);
|
|
25
|
-
if (!information) return /* @__PURE__ */ jsx(VideoDetailActionsClient, {
|
|
26
|
-
...rest,
|
|
27
|
-
mode
|
|
28
|
-
});
|
|
29
|
-
const resolvedSeriesNum = Math.max(1, Number(currentSeriesNum || routeContext.currentSeriesNum || 1));
|
|
30
|
-
return /* @__PURE__ */ jsx(VideoDetailMaterialRuntimeProvider, {
|
|
31
|
-
value: {
|
|
32
|
-
information,
|
|
33
|
-
detailId: resolvedDetailId,
|
|
34
|
-
currentSeriesNum: resolvedSeriesNum,
|
|
35
|
-
episodeIndex: Math.max(0, resolvedSeriesNum - 1),
|
|
36
|
-
isShow: true,
|
|
37
|
-
isInformationLoading: false,
|
|
38
|
-
isInformationResolved: true
|
|
39
|
-
},
|
|
40
|
-
children: /* @__PURE__ */ jsx(VideoDetailActionsClient, {
|
|
41
|
-
...rest,
|
|
42
|
-
mode
|
|
43
|
-
})
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
//#endregion
|
|
48
|
-
export { VideoDetailActions };
|
|
2
|
+
import{VideoDetailMaterialRuntimeProvider as e}from"../shared/runtime-context-provider.mjs";import{resolveVideoDetailRouteFromMaterialContext as t}from"../shared/material-route-context.mjs";import{getVideoDetailServerInformation as n}from"../shared/video-detail-server-data.mjs";import{VideoDetailActionsClient as r}from"./client.mjs";import{jsx as i}from"react/jsx-runtime";async function a(a){let{mode:o=`renderer`,detailId:s,currentSeriesNum:c,__route:l,...u}=a;if(o!==`renderer`)return i(r,{...u,mode:o});let d=t(l),f=String(s||d.detailId||``).trim();if(!f)return i(r,{...u,mode:o});let p=await n(f);if(!p)return i(r,{...u,mode:o});let m=Math.max(1,Number(c||d.currentSeriesNum||1));return i(e,{value:{information:p,detailId:f,currentSeriesNum:m,episodeIndex:Math.max(0,m-1),isShow:!0,isInformationLoading:!1,isInformationResolved:!0},children:i(r,{...u,mode:o})})}export{a as VideoDetailActions};
|
|
@@ -1,42 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { SeriesEpisodes } from "../../../../common/series-episodes/index.mjs";
|
|
5
|
-
import { DetailIntroduction } from "../shared/detail-introduction.mjs";
|
|
6
|
-
import { editorPreviewInformation } from "../shared/editor-preview.mjs";
|
|
7
|
-
import { useVideoDetailMaterialRuntimeContext } from "../shared/runtime-context-provider.mjs";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
|
|
10
|
-
//#region components/biz/business/detail/video-detail-info/client.tsx
|
|
11
|
-
/**
|
|
12
|
-
* 媒体信息-简介&选集物料客户端组件。
|
|
13
|
-
*/
|
|
14
|
-
function VideoDetailInfoClient({ showTags = false, showEpisodes = false, mode = "renderer" }) {
|
|
15
|
-
const runtimeContext = useVideoDetailMaterialRuntimeContext();
|
|
16
|
-
const information = runtimeContext?.information;
|
|
17
|
-
const currentSeriesNum = runtimeContext?.currentSeriesNum ?? 1;
|
|
18
|
-
const onEpisodeChange = runtimeContext?.onEpisodeChange;
|
|
19
|
-
const isShow = runtimeContext?.isShow ?? true;
|
|
20
|
-
const shouldUsePreview = mode === "editor";
|
|
21
|
-
const resolvedInformation = shouldUsePreview ? editorPreviewInformation : information;
|
|
22
|
-
if (!resolvedInformation) return null;
|
|
23
|
-
const resolvedSeriesNum = Math.max(1, Number(currentSeriesNum || 1));
|
|
24
|
-
const handleEpisodeChange = shouldUsePreview ? (_nextSeriesNum) => {} : onEpisodeChange ?? (() => {});
|
|
25
|
-
const isShowSeries = resolvedInformation?.is_more_link === "y" && (resolvedInformation?.links?.length ?? 0) > 1;
|
|
26
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
27
|
-
className: shouldUsePreview ? "pointer-events-none" : void 0,
|
|
28
|
-
children: [/* @__PURE__ */ jsx(DetailIntroduction, {
|
|
29
|
-
information: resolvedInformation,
|
|
30
|
-
isShow,
|
|
31
|
-
showTags
|
|
32
|
-
}), showEpisodes && isShowSeries && /* @__PURE__ */ jsx(SeriesEpisodes, {
|
|
33
|
-
mode: "detail",
|
|
34
|
-
series_num: resolvedSeriesNum,
|
|
35
|
-
information: resolvedInformation,
|
|
36
|
-
onEpisodeChange: handleEpisodeChange
|
|
37
|
-
})]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
export { VideoDetailInfoClient };
|
|
2
|
+
"use client";import{SeriesEpisodes as e}from"../../../../common/series-episodes/index.mjs";import{DetailIntroduction as t}from"../shared/detail-introduction.mjs";import{editorPreviewInformation as n}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as r}from"../shared/runtime-context-provider.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({showTags:o=!1,showEpisodes:s=!1,mode:c=`renderer`}){let l=r(),u=l?.information,d=l?.currentSeriesNum??1,f=l?.onEpisodeChange,p=l?.isShow??!0,m=c===`editor`,h=m?n:u;if(!h)return null;let g=Math.max(1,Number(d||1)),_=m?e=>{}:f??(()=>{}),v=h?.is_more_link===`y`&&(h?.links?.length??0)>1;return a(`div`,{className:m?`pointer-events-none`:void 0,children:[i(t,{information:h,isShow:p,showTags:o}),s&&v&&i(e,{mode:`detail`,series_num:g,information:h,onEpisodeChange:_})]})}export{o as VideoDetailInfoClient};
|
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { videoDetailInfoInspectorPropsSchema } from "./schema.mjs";
|
|
4
|
-
import { VideoDetailInfo } from "./server.mjs";
|
|
5
|
-
import { defineMaterial } from "create-funhub/sdk";
|
|
6
|
-
|
|
7
|
-
//#region components/biz/business/detail/video-detail-info/material.ts
|
|
8
|
-
const videoDetailInfoMaterial = defineMaterial({
|
|
9
|
-
type: "video-detail-info",
|
|
10
|
-
name: "专辑信息样式1",
|
|
11
|
-
icon: "/static/components-thumb/media_info_description_episode.png",
|
|
12
|
-
category: "内容组件",
|
|
13
|
-
serverComponent: VideoDetailInfo,
|
|
14
|
-
clientComponent: VideoDetailInfoClient,
|
|
15
|
-
propsSchema: videoDetailInfoInspectorPropsSchema
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { videoDetailInfoMaterial };
|
|
2
|
+
import{VideoDetailInfoClient as e}from"./client.mjs";import{videoDetailInfoInspectorPropsSchema as t}from"./schema.mjs";import{VideoDetailInfo as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`video-detail-info`,name:`专辑信息样式1`,icon:`/static/components-thumb/media_info_description_episode.png`,category:`内容组件`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as videoDetailInfoMaterial};
|
|
@@ -1,21 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region components/biz/business/detail/video-detail-info/schema.ts
|
|
5
|
-
/**
|
|
6
|
-
* 媒体信息-简介&选集物料暂不对外开放配置。
|
|
7
|
-
*/
|
|
8
|
-
const videoDetailInfoInspectorPropsSchema = defineComponentPropsSchema({
|
|
9
|
-
showTags: defineSwitchPropSchema({
|
|
10
|
-
label: "显示标签",
|
|
11
|
-
defaultValue: false
|
|
12
|
-
}),
|
|
13
|
-
showEpisodes: defineSwitchPropSchema({
|
|
14
|
-
label: "显示选集",
|
|
15
|
-
defaultValue: false
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
const videoDetailInfoInspectorDefaultProps = getSchemaDefaultProps(videoDetailInfoInspectorPropsSchema);
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { videoDetailInfoInspectorPropsSchema };
|
|
2
|
+
import{defineComponentPropsSchema as e,defineSwitchPropSchema as t,getSchemaDefaultProps as n}from"create-funhub/sdk";const r=e({showTags:t({label:`显示标签`,defaultValue:!1}),showEpisodes:t({label:`显示选集`,defaultValue:!1})});n(r);export{r as videoDetailInfoInspectorPropsSchema};
|
|
@@ -1,99 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { VideoDetailInfoClient } from "./client.mjs";
|
|
4
|
-
import { resolveVideoDetailRouteFromMaterialContext } from "../shared/material-route-context.mjs";
|
|
5
|
-
import { getVideoDetailServerInformation } from "../shared/video-detail-server-data.mjs";
|
|
6
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import Link from "next/link";
|
|
8
|
-
|
|
9
|
-
//#region components/biz/business/detail/video-detail-info/server.tsx
|
|
10
|
-
/**
|
|
11
|
-
* 媒体信息-简介&选集物料服务端组件。
|
|
12
|
-
*/
|
|
13
|
-
async function VideoDetailInfo(props) {
|
|
14
|
-
const { mode = "renderer", showEpisodes = false, detailId, currentSeriesNum, __route, ...rest } = props;
|
|
15
|
-
if (mode !== "renderer") return /* @__PURE__ */ jsx(VideoDetailInfoClient, {
|
|
16
|
-
...rest,
|
|
17
|
-
showEpisodes,
|
|
18
|
-
mode
|
|
19
|
-
});
|
|
20
|
-
const routeContext = resolveVideoDetailRouteFromMaterialContext(__route);
|
|
21
|
-
const resolvedDetailId = String(detailId || routeContext.detailId || "").trim();
|
|
22
|
-
if (!resolvedDetailId) return /* @__PURE__ */ jsx(VideoDetailInfoClient, {
|
|
23
|
-
...rest,
|
|
24
|
-
showEpisodes,
|
|
25
|
-
mode
|
|
26
|
-
});
|
|
27
|
-
const information = await getVideoDetailServerInformation(resolvedDetailId);
|
|
28
|
-
if (!information) return /* @__PURE__ */ jsx(VideoDetailInfoClient, {
|
|
29
|
-
...rest,
|
|
30
|
-
showEpisodes,
|
|
31
|
-
mode
|
|
32
|
-
});
|
|
33
|
-
const resolvedSeriesNum = Math.max(1, Number(currentSeriesNum || routeContext.currentSeriesNum || 1));
|
|
34
|
-
const episodeItems = buildServerEpisodeItems(information);
|
|
35
|
-
const shouldRenderServerEpisodeList = showEpisodes && information.is_more_link === "y" && episodeItems.length > 1;
|
|
36
|
-
return /* @__PURE__ */ jsxs(VideoDetailMaterialRuntimeProvider, {
|
|
37
|
-
value: {
|
|
38
|
-
information,
|
|
39
|
-
detailId: resolvedDetailId,
|
|
40
|
-
currentSeriesNum: resolvedSeriesNum,
|
|
41
|
-
episodeIndex: Math.max(0, resolvedSeriesNum - 1),
|
|
42
|
-
isShow: true,
|
|
43
|
-
isInformationLoading: false,
|
|
44
|
-
isInformationResolved: true
|
|
45
|
-
},
|
|
46
|
-
children: [/* @__PURE__ */ jsx(VideoDetailInfoClient, {
|
|
47
|
-
...rest,
|
|
48
|
-
showEpisodes: false,
|
|
49
|
-
mode
|
|
50
|
-
}), shouldRenderServerEpisodeList && /* @__PURE__ */ jsx("div", {
|
|
51
|
-
className: "w-full px-[12px] mt-[12px]",
|
|
52
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
53
|
-
className: "flex flex-wrap gap-[8px]",
|
|
54
|
-
children: episodeItems.map((item) => {
|
|
55
|
-
const isActive = item.seriesNum === resolvedSeriesNum;
|
|
56
|
-
return /* @__PURE__ */ jsx(Link, {
|
|
57
|
-
href: buildEpisodePath(resolvedDetailId, information.name || "", item.seriesNum),
|
|
58
|
-
className: `h-[28px] min-w-[40px] rounded-[6px] border px-[8px] text-[12px] leading-[26px] text-center ${isActive ? "border-theme5 text-theme5 bg-theme5/10" : "border-line1 text-text2 bg-bg1"}`,
|
|
59
|
-
children: item.label
|
|
60
|
-
}, item.key);
|
|
61
|
-
})
|
|
62
|
-
})
|
|
63
|
-
})]
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* 生成服务端选集按钮数据。
|
|
68
|
-
*/
|
|
69
|
-
function buildServerEpisodeItems(information) {
|
|
70
|
-
return (Array.isArray(information.links) ? information.links : []).map((item, index) => {
|
|
71
|
-
const raw = item || {};
|
|
72
|
-
const rawId = typeof raw.id === "string" ? raw.id : "";
|
|
73
|
-
const seriesNum = resolveSeriesNum(raw.id, raw.name, index + 1);
|
|
74
|
-
return {
|
|
75
|
-
key: rawId || `episode-${seriesNum}-${index + 1}`,
|
|
76
|
-
seriesNum,
|
|
77
|
-
label: `第${seriesNum}集`
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* 解析分集序号:优先 id,再兜底 name,最后退化为索引。
|
|
83
|
-
*/
|
|
84
|
-
function resolveSeriesNum(rawId, rawName, fallback) {
|
|
85
|
-
const byId = Number(rawId);
|
|
86
|
-
if (Number.isFinite(byId) && byId > 0) return Math.floor(byId);
|
|
87
|
-
const byName = Number(rawName);
|
|
88
|
-
if (Number.isFinite(byName) && byName > 0) return Math.floor(byName);
|
|
89
|
-
return fallback;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* 构造详情页分集跳转路径。
|
|
93
|
-
*/
|
|
94
|
-
function buildEpisodePath(detailId, detailName, seriesNum) {
|
|
95
|
-
return `/video/${detailId}/${encodeURIComponent(detailName || "")}/episode/${seriesNum}`;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
//#endregion
|
|
99
|
-
export { VideoDetailInfo };
|
|
2
|
+
import{VideoDetailMaterialRuntimeProvider as e}from"../shared/runtime-context-provider.mjs";import{VideoDetailInfoClient as t}from"./client.mjs";import{resolveVideoDetailRouteFromMaterialContext as n}from"../shared/material-route-context.mjs";import{getVideoDetailServerInformation as r}from"../shared/video-detail-server-data.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";import o from"next/link";async function s(s){let{mode:l=`renderer`,showEpisodes:d=!1,detailId:f,currentSeriesNum:p,__route:m,...h}=s;if(l!==`renderer`)return i(t,{...h,showEpisodes:d,mode:l});let g=n(m),_=String(f||g.detailId||``).trim();if(!_)return i(t,{...h,showEpisodes:d,mode:l});let v=await r(_);if(!v)return i(t,{...h,showEpisodes:d,mode:l});let y=Math.max(1,Number(p||g.currentSeriesNum||1)),b=c(v),x=d&&v.is_more_link===`y`&&b.length>1;return a(e,{value:{information:v,detailId:_,currentSeriesNum:y,episodeIndex:Math.max(0,y-1),isShow:!0,isInformationLoading:!1,isInformationResolved:!0},children:[i(t,{...h,showEpisodes:!1,mode:l}),x&&i(`div`,{className:`w-full px-[12px] mt-[12px]`,children:i(`div`,{className:`flex flex-wrap gap-[8px]`,children:b.map(e=>{let t=e.seriesNum===y;return i(o,{href:u(_,v.name||``,e.seriesNum),className:`h-[28px] min-w-[40px] rounded-[6px] border px-[8px] text-[12px] leading-[26px] text-center ${t?`border-theme5 text-theme5 bg-theme5/10`:`border-line1 text-text2 bg-bg1`}`,children:e.label},e.key)})})})]})}function c(e){return(Array.isArray(e.links)?e.links:[]).map((e,t)=>{let n=e||{},r=typeof n.id==`string`?n.id:``,i=l(n.id,n.name,t+1);return{key:r||`episode-${i}-${t+1}`,seriesNum:i,label:`第${i}集`}})}function l(e,t,n){let r=Number(e);if(Number.isFinite(r)&&r>0)return Math.floor(r);let i=Number(t);return Number.isFinite(i)&&i>0?Math.floor(i):n}function u(e,t,n){return`/video/${e}/${encodeURIComponent(t||``)}/episode/${n}`}export{s as VideoDetailInfo};
|
package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs
CHANGED
|
@@ -1,52 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Box } from "../../../../ui/box.mjs";
|
|
5
|
-
import { SeriesEpisodes } from "../../../../common/series-episodes/index.mjs";
|
|
6
|
-
import { useCardDecoration } from "../../../../../hooks/use-card-decoration.mjs";
|
|
7
|
-
import { DetailInfoTags } from "../shared/detail-info-tags.mjs";
|
|
8
|
-
import { DetailInfoTitle } from "../shared/detail-info-title.mjs";
|
|
9
|
-
import { editorPreviewInformation } from "../shared/editor-preview.mjs";
|
|
10
|
-
import { useVideoDetailMaterialRuntimeContext } from "../shared/runtime-context-provider.mjs";
|
|
11
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
|
-
|
|
13
|
-
//#region components/biz/business/detail/video-detail-info-title-tags-episodes/client.tsx
|
|
14
|
-
/**
|
|
15
|
-
* 媒体信息-选集物料客户端组件。
|
|
16
|
-
*/
|
|
17
|
-
function VideoDetailInfoTitleTagsEpisodesClient({ showTags = true, showEpisodes = true, mode = "renderer" }) {
|
|
18
|
-
const runtimeContext = useVideoDetailMaterialRuntimeContext();
|
|
19
|
-
const information = runtimeContext?.information;
|
|
20
|
-
const currentSeriesNum = runtimeContext?.currentSeriesNum ?? 1;
|
|
21
|
-
const onEpisodeChange = runtimeContext?.onEpisodeChange;
|
|
22
|
-
const isEditor = mode === "editor";
|
|
23
|
-
const { getTitleText } = useCardDecoration();
|
|
24
|
-
const shouldUsePreview = isEditor;
|
|
25
|
-
const resolvedInformation = shouldUsePreview ? editorPreviewInformation : information;
|
|
26
|
-
if (!resolvedInformation) return null;
|
|
27
|
-
const resolvedSeriesNum = Math.max(1, Number(currentSeriesNum || 1));
|
|
28
|
-
const handleEpisodeChange = shouldUsePreview ? (_nextSeriesNum) => {} : onEpisodeChange ?? (() => {});
|
|
29
|
-
const titleText = getTitleText(resolvedInformation);
|
|
30
|
-
const isShowSeries = resolvedInformation?.is_more_link === "y" && (resolvedInformation?.links?.length ?? 0) > 1;
|
|
31
|
-
const shouldShowTags = showTags && (resolvedInformation.tags?.length ?? 0) > 0;
|
|
32
|
-
const shouldShowSeries = showEpisodes && isShowSeries;
|
|
33
|
-
if (!titleText && !shouldShowTags && !shouldShowSeries) return null;
|
|
34
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
35
|
-
className: `w-full pt-[16px] ${shouldUsePreview ? "pointer-events-none" : ""}`,
|
|
36
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
37
|
-
className: "px-[12px]",
|
|
38
|
-
children: [titleText && /* @__PURE__ */ jsx(DetailInfoTitle, { title: titleText }), shouldShowTags && /* @__PURE__ */ jsx(DetailInfoTags, {
|
|
39
|
-
tags: resolvedInformation.tags || [],
|
|
40
|
-
className: "mt-[12px]"
|
|
41
|
-
})]
|
|
42
|
-
}), shouldShowSeries && /* @__PURE__ */ jsx(SeriesEpisodes, {
|
|
43
|
-
mode: "detail",
|
|
44
|
-
series_num: resolvedSeriesNum,
|
|
45
|
-
information: resolvedInformation,
|
|
46
|
-
onEpisodeChange: handleEpisodeChange
|
|
47
|
-
})]
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { VideoDetailInfoTitleTagsEpisodesClient };
|
|
2
|
+
"use client";import{Box as e}from"../../../../ui/box.mjs";import{SeriesEpisodes as t}from"../../../../common/series-episodes/index.mjs";import{useCardDecoration as n}from"../../../../../hooks/use-card-decoration.mjs";import{DetailInfoTags as r}from"../shared/detail-info-tags.mjs";import{DetailInfoTitle as i}from"../shared/detail-info-title.mjs";import{editorPreviewInformation as a}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as o}from"../shared/runtime-context-provider.mjs";import{jsx as s,jsxs as c}from"react/jsx-runtime";function l({showTags:l=!0,showEpisodes:u=!0,mode:d=`renderer`}){let f=o(),p=f?.information,m=f?.currentSeriesNum??1,h=f?.onEpisodeChange,g=d===`editor`,{getTitleText:_}=n(),v=g,y=v?a:p;if(!y)return null;let b=Math.max(1,Number(m||1)),x=v?e=>{}:h??(()=>{}),S=_(y),C=y?.is_more_link===`y`&&(y?.links?.length??0)>1,w=l&&(y.tags?.length??0)>0,T=u&&C;return!S&&!w&&!T?null:c(e,{className:`w-full pt-[16px] ${v?`pointer-events-none`:``}`,children:[c(e,{className:`px-[12px]`,children:[S&&s(i,{title:S}),w&&s(r,{tags:y.tags||[],className:`mt-[12px]`})]}),T&&s(t,{mode:`detail`,series_num:b,information:y,onEpisodeChange:x})]})}export{l as VideoDetailInfoTitleTagsEpisodesClient};
|
package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { videoDetailInfoTitleTagsEpisodesInspectorPropsSchema } from "./schema.mjs";
|
|
4
|
-
import { VideoDetailInfoTitleTagsEpisodes } from "./server.mjs";
|
|
5
|
-
import { defineMaterial } from "create-funhub/sdk";
|
|
6
|
-
|
|
7
|
-
//#region components/biz/business/detail/video-detail-info-title-tags-episodes/material.ts
|
|
8
|
-
const videoDetailInfoTitleTagsEpisodesMaterial = defineMaterial({
|
|
9
|
-
type: "video-detail-info-title-tags-episodes",
|
|
10
|
-
name: "专辑信息样式2",
|
|
11
|
-
icon: "/static/components-thumb/media_info_episode_list.png",
|
|
12
|
-
category: "内容组件",
|
|
13
|
-
serverComponent: VideoDetailInfoTitleTagsEpisodes,
|
|
14
|
-
clientComponent: VideoDetailInfoTitleTagsEpisodesClient,
|
|
15
|
-
propsSchema: videoDetailInfoTitleTagsEpisodesInspectorPropsSchema
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { videoDetailInfoTitleTagsEpisodesMaterial };
|
|
2
|
+
import{VideoDetailInfoTitleTagsEpisodesClient as e}from"./client.mjs";import{videoDetailInfoTitleTagsEpisodesInspectorPropsSchema as t}from"./schema.mjs";import{VideoDetailInfoTitleTagsEpisodes as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`video-detail-info-title-tags-episodes`,name:`专辑信息样式2`,icon:`/static/components-thumb/media_info_episode_list.png`,category:`内容组件`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as videoDetailInfoTitleTagsEpisodesMaterial};
|
package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs
CHANGED
|
@@ -1,21 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region components/biz/business/detail/video-detail-info-title-tags-episodes/schema.ts
|
|
5
|
-
/**
|
|
6
|
-
* 媒体信息-选集物料暂不对外开放配置。
|
|
7
|
-
*/
|
|
8
|
-
const videoDetailInfoTitleTagsEpisodesInspectorPropsSchema = defineComponentPropsSchema({
|
|
9
|
-
showTags: defineSwitchPropSchema({
|
|
10
|
-
label: "显示标签",
|
|
11
|
-
defaultValue: true
|
|
12
|
-
}),
|
|
13
|
-
showEpisodes: defineSwitchPropSchema({
|
|
14
|
-
label: "显示选集",
|
|
15
|
-
defaultValue: true
|
|
16
|
-
})
|
|
17
|
-
});
|
|
18
|
-
const videoDetailInfoTitleTagsEpisodesInspectorDefaultProps = getSchemaDefaultProps(videoDetailInfoTitleTagsEpisodesInspectorPropsSchema);
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
export { videoDetailInfoTitleTagsEpisodesInspectorPropsSchema };
|
|
2
|
+
import{defineComponentPropsSchema as e,defineSwitchPropSchema as t,getSchemaDefaultProps as n}from"create-funhub/sdk";const r=e({showTags:t({label:`显示标签`,defaultValue:!0}),showEpisodes:t({label:`显示选集`,defaultValue:!0})});n(r);export{r as videoDetailInfoTitleTagsEpisodesInspectorPropsSchema};
|
package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs
CHANGED
|
@@ -1,46 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { resolveVideoDetailRouteFromMaterialContext } from "../shared/material-route-context.mjs";
|
|
4
|
-
import { getVideoDetailServerInformation } from "../shared/video-detail-server-data.mjs";
|
|
5
|
-
import { VideoDetailInfoTitleTagsEpisodesClient } from "./client.mjs";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
|
|
8
|
-
//#region components/biz/business/detail/video-detail-info-title-tags-episodes/server.tsx
|
|
9
|
-
/**
|
|
10
|
-
* 媒体信息-选集物料服务端组件。
|
|
11
|
-
*/
|
|
12
|
-
async function VideoDetailInfoTitleTagsEpisodes(props) {
|
|
13
|
-
const { mode = "renderer", detailId, currentSeriesNum, __route, ...rest } = props;
|
|
14
|
-
if (mode !== "renderer") return /* @__PURE__ */ jsx(VideoDetailInfoTitleTagsEpisodesClient, {
|
|
15
|
-
...rest,
|
|
16
|
-
mode
|
|
17
|
-
});
|
|
18
|
-
const routeContext = resolveVideoDetailRouteFromMaterialContext(__route);
|
|
19
|
-
const resolvedDetailId = String(detailId || routeContext.detailId || "").trim();
|
|
20
|
-
if (!resolvedDetailId) return /* @__PURE__ */ jsx(VideoDetailInfoTitleTagsEpisodesClient, {
|
|
21
|
-
...rest,
|
|
22
|
-
mode
|
|
23
|
-
});
|
|
24
|
-
const information = await getVideoDetailServerInformation(resolvedDetailId);
|
|
25
|
-
if (!information) return /* @__PURE__ */ jsx(VideoDetailInfoTitleTagsEpisodesClient, {
|
|
26
|
-
...rest,
|
|
27
|
-
mode
|
|
28
|
-
});
|
|
29
|
-
return /* @__PURE__ */ jsx(VideoDetailMaterialRuntimeProvider, {
|
|
30
|
-
value: {
|
|
31
|
-
information,
|
|
32
|
-
detailId: resolvedDetailId,
|
|
33
|
-
currentSeriesNum: Math.max(1, Number(currentSeriesNum || routeContext.currentSeriesNum || 1)),
|
|
34
|
-
isShow: true,
|
|
35
|
-
isInformationLoading: false,
|
|
36
|
-
isInformationResolved: true
|
|
37
|
-
},
|
|
38
|
-
children: /* @__PURE__ */ jsx(VideoDetailInfoTitleTagsEpisodesClient, {
|
|
39
|
-
...rest,
|
|
40
|
-
mode
|
|
41
|
-
})
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
//#endregion
|
|
46
|
-
export { VideoDetailInfoTitleTagsEpisodes };
|
|
2
|
+
import{VideoDetailMaterialRuntimeProvider as e}from"../shared/runtime-context-provider.mjs";import{resolveVideoDetailRouteFromMaterialContext as t}from"../shared/material-route-context.mjs";import{getVideoDetailServerInformation as n}from"../shared/video-detail-server-data.mjs";import{VideoDetailInfoTitleTagsEpisodesClient as r}from"./client.mjs";import{jsx as i}from"react/jsx-runtime";async function a(a){let{mode:o=`renderer`,detailId:s,currentSeriesNum:c,__route:l,...u}=a;if(o!==`renderer`)return i(r,{...u,mode:o});let d=t(l),f=String(s||d.detailId||``).trim();if(!f)return i(r,{...u,mode:o});let p=await n(f);return p?i(e,{value:{information:p,detailId:f,currentSeriesNum:Math.max(1,Number(c||d.currentSeriesNum||1)),isShow:!0,isInformationLoading:!1,isInformationResolved:!0},children:i(r,{...u,mode:o})}):i(r,{...u,mode:o})}export{a as VideoDetailInfoTitleTagsEpisodes};
|
|
@@ -1,145 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { pxToVw } from "../../../../../utils/helper.mjs";
|
|
5
|
-
import { EmptyState } from "../../../../ui/empty.mjs";
|
|
6
|
-
import { Skeleton } from "../../../../ui/skeleton.mjs";
|
|
7
|
-
import { useRequest } from "../../../../../hooks/query/use-query.mjs";
|
|
8
|
-
import { batchQueryContentInteractions } from "../../../../../hooks/use-content-operate.mjs";
|
|
9
|
-
import SvgVideoPlay from "../../../../../assets/icons/detail/video_play.mjs";
|
|
10
|
-
import detail_search_bar_default from "../../search-bar/variants/detail-search-bar/index.mjs";
|
|
11
|
-
import { editorPreviewInformation } from "../shared/editor-preview.mjs";
|
|
12
|
-
import { useVideoDetailMaterialRuntimeContext } from "../shared/runtime-context-provider.mjs";
|
|
13
|
-
import { useVideoDetailWebViewBridge } from "../shared/use-video-detail-webview-bridge.mjs";
|
|
14
|
-
import { DetailHero } from "../shared/video-hero.mjs";
|
|
15
|
-
import { useMemo } from "react";
|
|
16
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
-
import { useTranslations } from "next-intl";
|
|
18
|
-
|
|
19
|
-
//#region components/biz/business/detail/video-detail-player/client.tsx
|
|
20
|
-
const DETAIL_VIDEO_BASE_WIDTH = 430;
|
|
21
|
-
const DETAIL_VIDEO_DEFAULT_ASPECT_RATIO = 16 / 9;
|
|
22
|
-
const DETAIL_VIDEO_MAX_HEIGHT = 242;
|
|
23
|
-
const DETAIL_VIDEO_DEFAULT_HEIGHT = DETAIL_VIDEO_BASE_WIDTH / DETAIL_VIDEO_DEFAULT_ASPECT_RATIO;
|
|
24
|
-
/**
|
|
25
|
-
* 视频播放器物料客户端组件。
|
|
26
|
-
*/
|
|
27
|
-
function VideoDetailPlayerClient({ mode = "renderer", children }) {
|
|
28
|
-
const t = useTranslations("components.pages.videoDetail");
|
|
29
|
-
const runtimeContext = useVideoDetailMaterialRuntimeContext();
|
|
30
|
-
const information = runtimeContext?.information;
|
|
31
|
-
const episodeIndex = runtimeContext?.episodeIndex ?? 0;
|
|
32
|
-
const currentSeriesNum = runtimeContext?.currentSeriesNum ?? 1;
|
|
33
|
-
const resumeProgressSeconds = runtimeContext?.resumeProgressSeconds ?? 0;
|
|
34
|
-
const isWebView = runtimeContext?.isWebView ?? false;
|
|
35
|
-
const isInformationLoading = runtimeContext?.isInformationLoading ?? false;
|
|
36
|
-
const isInformationResolved = runtimeContext?.isInformationResolved ?? Boolean(information);
|
|
37
|
-
useVideoDetailWebViewBridge({
|
|
38
|
-
enabled: mode === "renderer",
|
|
39
|
-
detailId: runtimeContext?.detailId || information?.id || "",
|
|
40
|
-
information,
|
|
41
|
-
episodeIndex,
|
|
42
|
-
currentSeriesNum
|
|
43
|
-
});
|
|
44
|
-
const shouldUsePreview = mode === "editor";
|
|
45
|
-
const resolvedInformation = shouldUsePreview ? {
|
|
46
|
-
...editorPreviewInformation,
|
|
47
|
-
id: "",
|
|
48
|
-
mid: ""
|
|
49
|
-
} : information;
|
|
50
|
-
const resolvedEpisodeIndex = shouldUsePreview ? 0 : episodeIndex;
|
|
51
|
-
const currentEpisodeId = resolvedInformation?.links?.[resolvedEpisodeIndex]?.id || "";
|
|
52
|
-
const shouldHydrateBrowseRecord = mode === "renderer" && !isWebView && Boolean(resolvedInformation?.id);
|
|
53
|
-
const { data: interactionData, isFetching: isInteractionFetching, isFetchedAfterMount: isInteractionFetchedAfterMount, isSuccess: isInteractionSuccess } = useRequest(useMemo(() => {
|
|
54
|
-
return [
|
|
55
|
-
"video-detail-player-interaction",
|
|
56
|
-
resolvedInformation?.id,
|
|
57
|
-
currentEpisodeId,
|
|
58
|
-
currentSeriesNum
|
|
59
|
-
];
|
|
60
|
-
}, [
|
|
61
|
-
currentEpisodeId,
|
|
62
|
-
currentSeriesNum,
|
|
63
|
-
resolvedInformation?.id
|
|
64
|
-
]), async () => {
|
|
65
|
-
if (!resolvedInformation?.id) return null;
|
|
66
|
-
return await batchQueryContentInteractions([resolvedInformation.id], 1);
|
|
67
|
-
}, {
|
|
68
|
-
enabled: shouldHydrateBrowseRecord,
|
|
69
|
-
staleTime: 0,
|
|
70
|
-
refetchOnMount: "always",
|
|
71
|
-
refetchOnWindowFocus: false
|
|
72
|
-
});
|
|
73
|
-
const queriedResumeProgressSeconds = useMemo(() => {
|
|
74
|
-
if (!isInteractionFetchedAfterMount || isInteractionFetching || !isInteractionSuccess) return 0;
|
|
75
|
-
const browseRecord = (interactionData?.interaction_list?.[0])?.browse_record;
|
|
76
|
-
const browseDuration = Number(browseRecord?.browse_duration || 0);
|
|
77
|
-
if (!Number.isFinite(browseDuration) || browseDuration <= 0) return 0;
|
|
78
|
-
const browseEpisodeText = String(browseRecord?.browse_episode || "").trim();
|
|
79
|
-
if (!browseEpisodeText) return browseDuration;
|
|
80
|
-
const browseEpisode = Number.parseInt(browseEpisodeText, 10);
|
|
81
|
-
if (Number.isNaN(browseEpisode)) return 0;
|
|
82
|
-
return browseEpisode === currentSeriesNum ? browseDuration : 0;
|
|
83
|
-
}, [
|
|
84
|
-
currentSeriesNum,
|
|
85
|
-
interactionData,
|
|
86
|
-
isInteractionFetchedAfterMount,
|
|
87
|
-
isInteractionFetching,
|
|
88
|
-
isInteractionSuccess
|
|
89
|
-
]);
|
|
90
|
-
const resolvedResumeProgressSeconds = shouldUsePreview ? 0 : queriedResumeProgressSeconds > 0 ? queriedResumeProgressSeconds : resumeProgressSeconds;
|
|
91
|
-
const isValidStatus = resolvedInformation?.status === "1";
|
|
92
|
-
if (shouldUsePreview && resolvedInformation) return /* @__PURE__ */ jsx("div", {
|
|
93
|
-
className: "pointer-events-none",
|
|
94
|
-
children: /* @__PURE__ */ jsx(DetailHero, {
|
|
95
|
-
mode,
|
|
96
|
-
isVideo: true,
|
|
97
|
-
information: resolvedInformation,
|
|
98
|
-
episodeIndex: resolvedEpisodeIndex,
|
|
99
|
-
resumeProgressSeconds: resolvedResumeProgressSeconds
|
|
100
|
-
})
|
|
101
|
-
});
|
|
102
|
-
return /* @__PURE__ */ jsxs("div", {
|
|
103
|
-
className: `w-full bg-bg2 text-text1 ${isWebView ? "" : "pt-11"}`,
|
|
104
|
-
children: [!isWebView && /* @__PURE__ */ jsx("div", {
|
|
105
|
-
className: "fixed h-[44px] bg-black top-0 left-0 right-0 z-[1000]",
|
|
106
|
-
children: /* @__PURE__ */ jsx(detail_search_bar_default, {})
|
|
107
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
108
|
-
className: "mx-auto w-full max-w-[840px]",
|
|
109
|
-
children: [
|
|
110
|
-
resolvedInformation && !isValidStatus && /* @__PURE__ */ jsx(EmptyState, {
|
|
111
|
-
type: "no-content",
|
|
112
|
-
text: t("videoDetailClient.videoUnavailable")
|
|
113
|
-
}),
|
|
114
|
-
resolvedInformation && isValidStatus && /* @__PURE__ */ jsxs(Fragment$1, { children: [!isWebView && /* @__PURE__ */ jsx(DetailHero, {
|
|
115
|
-
mode,
|
|
116
|
-
isVideo: true,
|
|
117
|
-
information: resolvedInformation,
|
|
118
|
-
episodeIndex: resolvedEpisodeIndex,
|
|
119
|
-
resumeProgressSeconds: resolvedResumeProgressSeconds
|
|
120
|
-
}), children] }),
|
|
121
|
-
!resolvedInformation && isInformationLoading && /* @__PURE__ */ jsxs("div", {
|
|
122
|
-
className: "relative w-full overflow-hidden",
|
|
123
|
-
style: {
|
|
124
|
-
height: pxToVw(DETAIL_VIDEO_DEFAULT_HEIGHT),
|
|
125
|
-
maxHeight: pxToVw(DETAIL_VIDEO_MAX_HEIGHT)
|
|
126
|
-
},
|
|
127
|
-
children: [/* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full rounded-none" }), /* @__PURE__ */ jsx("div", {
|
|
128
|
-
className: "absolute inset-0 z-[1] flex items-center justify-center pointer-events-none",
|
|
129
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
130
|
-
className: "flex items-center justify-center w-10 h-10 rounded-full bg-[rgba(0,0,0,0.45)]",
|
|
131
|
-
children: /* @__PURE__ */ jsx(SvgVideoPlay, { className: "w-[14px] h-[20px] text-white" })
|
|
132
|
-
})
|
|
133
|
-
})]
|
|
134
|
-
}),
|
|
135
|
-
!resolvedInformation && !isInformationLoading && isInformationResolved && /* @__PURE__ */ jsx(EmptyState, {
|
|
136
|
-
type: "no-content",
|
|
137
|
-
text: t("videoDetailClient.videoDeleted")
|
|
138
|
-
})
|
|
139
|
-
]
|
|
140
|
-
})]
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//#endregion
|
|
145
|
-
export { VideoDetailPlayerClient };
|
|
2
|
+
"use client";import{pxToVw as e}from"../../../../../utils/helper.mjs";import{EmptyState as t}from"../../../../ui/empty.mjs";import{Skeleton as n}from"../../../../ui/skeleton.mjs";import{useRequest as r}from"../../../../../hooks/query/use-query.mjs";import{batchQueryContentInteractions as i}from"../../../../../hooks/use-content-operate.mjs";import a from"../../../../../assets/icons/detail/video_play.mjs";import o from"../../search-bar/variants/detail-search-bar/index.mjs";import{editorPreviewInformation as s}from"../shared/editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as c}from"../shared/runtime-context-provider.mjs";import{useVideoDetailWebViewBridge as l}from"../shared/use-video-detail-webview-bridge.mjs";import{DetailHero as u}from"../shared/video-hero.mjs";import{useMemo as d}from"react";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{useTranslations as h}from"next-intl";function g({mode:g=`renderer`,children:_}){let v=h(`components.pages.videoDetail`),y=c(),b=y?.information,x=y?.episodeIndex??0,S=y?.currentSeriesNum??1,C=y?.resumeProgressSeconds??0,w=y?.isWebView??!1,T=y?.isInformationLoading??!1,E=y?.isInformationResolved??!!b;l({enabled:g===`renderer`,detailId:y?.detailId||b?.id||``,information:b,episodeIndex:x,currentSeriesNum:S});let D=g===`editor`,O=D?{...s,id:``,mid:``}:b,k=D?0:x,A=O?.links?.[k]?.id||``,j=g===`renderer`&&!w&&!!O?.id,{data:M,isFetching:N,isFetchedAfterMount:P,isSuccess:F}=r(d(()=>[`video-detail-player-interaction`,O?.id,A,S],[A,S,O?.id]),async()=>O?.id?await i([O.id],1):null,{enabled:j,staleTime:0,refetchOnMount:`always`,refetchOnWindowFocus:!1}),I=d(()=>{if(!P||N||!F)return 0;let e=M?.interaction_list?.[0]?.browse_record,t=Number(e?.browse_duration||0);if(!Number.isFinite(t)||t<=0)return 0;let n=String(e?.browse_episode||``).trim();if(!n)return t;let r=Number.parseInt(n,10);return Number.isNaN(r)?0:r===S?t:0},[S,M,P,N,F]),L=D?0:I>0?I:C,R=O?.status===`1`;return D&&O?p(`div`,{className:`pointer-events-none`,children:p(u,{mode:g,isVideo:!0,information:O,episodeIndex:k,resumeProgressSeconds:L})}):m(`div`,{className:`w-full bg-bg2 text-text1 ${w?``:`pt-11`}`,children:[!w&&p(`div`,{className:`fixed h-[44px] bg-black top-0 left-0 right-0 z-[1000]`,children:p(o,{})}),m(`div`,{className:`mx-auto w-full max-w-[840px]`,children:[O&&!R&&p(t,{type:`no-content`,text:v(`videoDetailClient.videoUnavailable`)}),O&&R&&m(f,{children:[!w&&p(u,{mode:g,isVideo:!0,information:O,episodeIndex:k,resumeProgressSeconds:L}),_]}),!O&&T&&m(`div`,{className:`relative w-full overflow-hidden`,style:{height:e(241.875),maxHeight:e(242)},children:[p(n,{className:`h-full w-full rounded-none`}),p(`div`,{className:`absolute inset-0 z-[1] flex items-center justify-center pointer-events-none`,children:p(`div`,{className:`flex items-center justify-center w-10 h-10 rounded-full bg-[rgba(0,0,0,0.45)]`,children:p(a,{className:`w-[14px] h-[20px] text-white`})})})]}),!O&&!T&&E&&p(t,{type:`no-content`,text:v(`videoDetailClient.videoDeleted`)})]})]})}export{g as VideoDetailPlayerClient};
|
|
@@ -1,19 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { videoDetailPlayerInspectorPropsSchema } from "./schema.mjs";
|
|
4
|
-
import { VideoDetailPlayer } from "./server.mjs";
|
|
5
|
-
import { defineMaterial } from "create-funhub/sdk";
|
|
6
|
-
|
|
7
|
-
//#region components/biz/business/detail/video-detail-player/material.ts
|
|
8
|
-
const videoDetailPlayerMaterial = defineMaterial({
|
|
9
|
-
type: "video-detail-player",
|
|
10
|
-
name: "视频播放器",
|
|
11
|
-
icon: "/static/components-thumb/video_player.png",
|
|
12
|
-
category: "视频模块",
|
|
13
|
-
serverComponent: VideoDetailPlayer,
|
|
14
|
-
clientComponent: VideoDetailPlayerClient,
|
|
15
|
-
propsSchema: videoDetailPlayerInspectorPropsSchema
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
//#endregion
|
|
19
|
-
export { videoDetailPlayerMaterial };
|
|
2
|
+
import{VideoDetailPlayerClient as e}from"./client.mjs";import{videoDetailPlayerInspectorPropsSchema as t}from"./schema.mjs";import{VideoDetailPlayer as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`video-detail-player`,name:`视频播放器`,icon:`/static/components-thumb/video_player.png`,category:`视频模块`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as videoDetailPlayerMaterial};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region components/biz/business/detail/video-detail-player/schema.ts
|
|
5
|
-
/**
|
|
6
|
-
* 播放器物料暂不对外开放配置。
|
|
7
|
-
*/
|
|
8
|
-
const videoDetailPlayerInspectorPropsSchema = defineComponentPropsSchema({});
|
|
9
|
-
const videoDetailPlayerInspectorDefaultProps = getSchemaDefaultProps(videoDetailPlayerInspectorPropsSchema);
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { videoDetailPlayerInspectorPropsSchema };
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"create-funhub/sdk";const n=e({});t(n);export{n as videoDetailPlayerInspectorPropsSchema};
|
|
@@ -1,18 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
|
|
5
|
-
//#region components/biz/business/detail/video-detail-player/server.tsx
|
|
6
|
-
/**
|
|
7
|
-
* 视频播放器物料服务端组件。
|
|
8
|
-
*/
|
|
9
|
-
function VideoDetailPlayer(props) {
|
|
10
|
-
const { mode = "renderer", ...rest } = props;
|
|
11
|
-
return /* @__PURE__ */ jsx(VideoDetailPlayerClient, {
|
|
12
|
-
...rest,
|
|
13
|
-
mode
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { VideoDetailPlayer };
|
|
2
|
+
import{VideoDetailPlayerClient as e}from"./client.mjs";import{jsx as t}from"react/jsx-runtime";function n(n){let{mode:r=`renderer`,...i}=n;return t(e,{...i,mode:r})}export{n as VideoDetailPlayer};
|