@funhub/platform 0.1.127 → 0.1.130
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 +18 -1
- package/dist/assets/icons/clear.mjs +17 -1
- package/dist/assets/icons/close-icon.mjs +18 -1
- package/dist/assets/icons/close.mjs +14 -1
- package/dist/assets/icons/common/collect_nor.mjs +21 -1
- package/dist/assets/icons/common/collect_sel.mjs +21 -1
- package/dist/assets/icons/common/follow_sel.mjs +17 -1
- package/dist/assets/icons/common/follow_user.mjs +17 -1
- package/dist/assets/icons/common/full_screen.mjs +17 -1
- package/dist/assets/icons/common/god_comment.mjs +17 -1
- package/dist/assets/icons/common/heart-like.mjs +31 -1
- package/dist/assets/icons/common/heart-unlike.mjs +18 -1
- package/dist/assets/icons/common/qq.mjs +32 -1
- package/dist/assets/icons/common/right_arrow.mjs +14 -1
- package/dist/assets/icons/common/share.mjs +17 -1
- package/dist/assets/icons/common/solid-arrow.mjs +17 -1
- package/dist/assets/icons/common/video_play.mjs +18 -1
- package/dist/assets/icons/common/wechat-friends.mjs +40 -1
- package/dist/assets/icons/common/wechat.mjs +39 -1
- package/dist/assets/icons/detail/check-ok.mjs +17 -1
- package/dist/assets/icons/detail/collect_nor.mjs +21 -1
- package/dist/assets/icons/detail/collect_sel.mjs +21 -1
- package/dist/assets/icons/detail/comment.mjs +19 -1
- package/dist/assets/icons/detail/commet_at.mjs +53 -1
- package/dist/assets/icons/detail/give_like.mjs +20 -1
- package/dist/assets/icons/detail/give_like_sel.mjs +27 -1
- package/dist/assets/icons/detail/min-collection.mjs +38 -1
- package/dist/assets/icons/detail/publish_pic.mjs +27 -1
- package/dist/assets/icons/detail/publish_video.mjs +30 -1
- package/dist/assets/icons/detail/share.mjs +17 -1
- package/dist/assets/icons/detail/un_like.mjs +20 -1
- package/dist/assets/icons/detail/un_like_sel.mjs +27 -1
- package/dist/assets/icons/detail/video_flag.mjs +17 -1
- package/dist/assets/icons/detail/video_play.mjs +18 -1
- package/dist/assets/icons/dislike.mjs +20 -1
- package/dist/assets/icons/dislike_sel.mjs +27 -1
- package/dist/assets/icons/empty/img-empty-adduser.mjs +463 -1
- package/dist/assets/icons/empty/img-empty-nodata.mjs +194 -1
- package/dist/assets/icons/eye-icon.mjs +21 -1
- package/dist/assets/icons/eye-off-icon.mjs +21 -1
- package/dist/assets/icons/filter_dark.mjs +17 -1
- package/dist/assets/icons/follow_nor.mjs +44 -1
- package/dist/assets/icons/follow_sel.mjs +31 -1
- package/dist/assets/icons/left-arrow-icon.mjs +18 -1
- package/dist/assets/icons/left_arrow.mjs +14 -1
- package/dist/assets/icons/like.mjs +20 -1
- package/dist/assets/icons/like_sel.mjs +27 -1
- package/dist/assets/icons/publish/publish_add.mjs +17 -1
- package/dist/assets/icons/publish/publish_at.mjs +53 -1
- package/dist/assets/icons/publish/publish_collection.mjs +28 -1
- package/dist/assets/icons/publish/publish_pic.mjs +27 -1
- package/dist/assets/icons/publish/publish_video.mjs +30 -1
- package/dist/assets/icons/refresh.mjs +18 -1
- package/dist/assets/icons/right_arrow.mjs +14 -1
- package/dist/assets/icons/search/avatar.mjs +36 -1
- package/dist/assets/icons/search/filter.mjs +17 -1
- package/dist/assets/icons/search/video.mjs +27 -1
- package/dist/assets/icons/search.mjs +23 -1
- package/dist/assets/icons/share/share-link.mjs +39 -1
- package/dist/assets/icons/tabs/follow.mjs +20 -1
- package/dist/assets/icons/tabs/follow_active.mjs +17 -1
- package/dist/assets/icons/tabs/home.mjs +17 -1
- package/dist/assets/icons/tabs/home_active.mjs +17 -1
- package/dist/assets/icons/tabs/mine.mjs +26 -1
- package/dist/assets/icons/tabs/mine_active.mjs +17 -1
- package/dist/assets/icons/view.mjs +17 -1
- package/dist/assets/images/add.mjs +5 -1
- package/dist/assets/images/default_avatar.mjs +5 -1
- package/dist/assets/images/default_collection_cover.mjs +5 -1
- package/dist/assets/images/empty/img_empty_adduser.mjs +463 -1
- package/dist/assets/images/empty/img_empty_message.mjs +408 -1
- package/dist/assets/images/empty/img_empty_network.mjs +168 -1
- package/dist/assets/images/empty/img_empty_nodata.mjs +194 -1
- package/dist/assets/images/empty/img_empty_picture.mjs +59 -1
- package/dist/assets/images/empty/img_empty_search.mjs +250 -1
- package/dist/assets/images/frame.mjs +5 -1
- package/dist/assets/images/less.mjs +5 -1
- package/dist/assets/images/logo.mjs +5 -1
- package/dist/assets/images/marquee.mjs +5 -1
- package/dist/assets/images/subscript.mjs +5 -1
- package/dist/assets/images/user/default_avatar.mjs +5 -1
- package/dist/biz.mjs +144 -1
- package/dist/common.mjs +44 -1
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +10 -1
- package/dist/components/biz/basics/card-item/runtime/client.mjs +83 -1
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +33 -1
- package/dist/components/biz/basics/card-item/schema/component.mjs +14 -1
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +8 -1
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +8 -1
- package/dist/components/biz/basics/card-item/schema/index.mjs +17 -1
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +18 -1
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +7 -1
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +13 -1
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +38 -1
- package/dist/components/biz/basics/card-layout/schema/component.mjs +14 -1
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +8 -1
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +5 -1
- package/dist/components/biz/basics/card-layout/schema/index.mjs +17 -1
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +28 -1
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +7 -1
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +268 -1
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +11 -1
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +12 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +97 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +125 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +390 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +107 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +134 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +232 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +25 -152
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +193 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +212 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +273 -1
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +373 -1
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +14 -1
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +11 -1
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +13 -1
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +17 -1
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +20 -1
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +5 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +19 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +9 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +169 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +14 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +9 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +23 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +17 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +78 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +7 -1
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +55 -1
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +15 -1
- package/dist/components/biz/basics/search/shared/config/schema.mjs +50 -1
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +10 -1
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +12 -1
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +31 -1
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +14 -1
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +8 -1
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +17 -1
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +14 -1
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +12 -1
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +63 -1
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +14 -1
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +8 -1
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +17 -1
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +22 -1
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +10 -1
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +9 -1
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +37 -1
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +14 -1
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +8 -1
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +17 -1
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +18 -1
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +9 -1
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +67 -1
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +14 -1
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +8 -1
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +7 -1
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +17 -1
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +37 -1
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +15 -1
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +12 -1
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +64 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +21 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +126 -1
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +14 -1
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +53 -1
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +17 -1
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +40 -1
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +25 -1
- package/dist/components/biz/business/banner-carousel/client.mjs +122 -1
- package/dist/components/biz/business/banner-carousel/default-props.mjs +15 -1
- package/dist/components/biz/business/banner-carousel/material.mjs +21 -1
- package/dist/components/biz/business/banner-carousel/schema.mjs +85 -1
- package/dist/components/biz/business/banner-carousel/server.mjs +22 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +9 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +41 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +14 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +17 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +12 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +9 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +106 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +14 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +17 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +12 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +9 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +41 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +14 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +17 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +12 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +9 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +41 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +14 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +17 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +12 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +9 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +106 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +14 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +8 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +17 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +12 -1
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +190 -1
- package/dist/components/biz/business/channel-list/client.mjs +136 -1
- package/dist/components/biz/business/channel-list/default-props.mjs +12 -1
- package/dist/components/biz/business/channel-list/material.mjs +21 -1
- package/dist/components/biz/business/channel-list/schema.mjs +39 -1
- package/dist/components/biz/business/comment/comment-input.mjs +772 -5
- package/dist/components/biz/business/comment/comment-item.mjs +190 -1
- package/dist/components/biz/business/comment/comment-list.mjs +722 -1
- package/dist/components/biz/business/comment/comment-media.mjs +57 -1
- package/dist/components/biz/business/comment/comment-rich-text.mjs +69 -1
- package/dist/components/biz/business/comment/reply-detail.mjs +978 -1
- package/dist/components/biz/business/comment/time-display.mjs +20 -1
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +142 -1
- package/dist/components/biz/business/contact/contact-item.mjs +45 -1
- package/dist/components/biz/business/contact/contact-list.mjs +212 -1
- package/dist/components/biz/business/contact/contact-search.mjs +128 -1
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +105 -1
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +24 -1
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +82 -1
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +109 -1
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +340 -1
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +63 -1
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +67 -1
- package/dist/components/biz/business/detail/shared/material-route-context.mjs +44 -1
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +21 -1
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +184 -1
- package/dist/components/biz/business/detail/shared/registry.mjs +52 -1
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +191 -1
- package/dist/components/biz/business/detail/shared/seo-config.mjs +28 -1
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +89 -1
- package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +46 -1
- package/dist/components/biz/business/detail/shared/video-hero.mjs +395 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +106 -1
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +18 -1
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +11 -1
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +47 -1
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +41 -1
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +18 -1
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +20 -1
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +98 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +51 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +18 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +20 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +45 -1
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +144 -1
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +18 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +11 -1
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +17 -1
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +552 -1
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +18 -1
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +58 -1
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +18 -1
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +68 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +12 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +9 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +66 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +14 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +43 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +17 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +32 -1
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/floating-ball/client.mjs +31 -1
- package/dist/components/biz/business/floating-ball/material.mjs +18 -1
- package/dist/components/biz/business/floating-ball/schema.mjs +22 -1
- package/dist/components/biz/business/floating-ball/server.mjs +17 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +11 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +9 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +71 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +14 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +11 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +17 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +11 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +9 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +64 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +14 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +11 -1
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +17 -1
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +522 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +29 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +18 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +11 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +17 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +36 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +18 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +24 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +17 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +45 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +18 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +22 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +17 -1
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +33 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +18 -1
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +24 -1
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +17 -1
- package/dist/components/biz/business/header-search/header-search/client.mjs +20 -1
- package/dist/components/biz/business/header-search/header-search/material.mjs +18 -1
- package/dist/components/biz/business/header-search/header-search/schema.mjs +11 -1
- package/dist/components/biz/business/header-search/header-search/server.mjs +17 -1
- package/dist/components/biz/business/header-search/shared/avatar.mjs +44 -1
- package/dist/components/biz/business/header-search/shared/logo.mjs +28 -1
- package/dist/components/biz/business/header-search/shared/search.mjs +28 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +48 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +14 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +193 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +18 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +24 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +49 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +44 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +14 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +169 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +18 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +24 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +44 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +498 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +25 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +130 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +34 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +288 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +38 -1
- package/dist/components/biz/business/image-text-recommend/client.mjs +423 -1
- package/dist/components/biz/business/image-text-recommend/material.mjs +21 -1
- package/dist/components/biz/business/image-text-recommend/schema.mjs +117 -1
- package/dist/components/biz/business/image-text-recommend/server.mjs +53 -1
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +32 -1
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +91 -1
- package/dist/components/biz/business/large-feature-grid/client.mjs +88 -1
- package/dist/components/biz/business/large-feature-grid/material.mjs +21 -1
- package/dist/components/biz/business/large-feature-grid/schema.mjs +81 -1
- package/dist/components/biz/business/large-feature-grid/server.mjs +16 -1
- package/dist/components/biz/business/marquee/client.mjs +230 -1
- package/dist/components/biz/business/marquee/marquee.module.mjs +13 -25
- package/dist/components/biz/business/marquee/material.mjs +21 -1
- package/dist/components/biz/business/marquee/schema.mjs +97 -1
- package/dist/components/biz/business/marquee/server.mjs +17 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +21 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +9 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +180 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +148 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +14 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +9 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +27 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +17 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +92 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +8 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +9 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +119 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +14 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +8 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +17 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +5 -1
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +243 -1
- package/dist/components/biz/business/profile/profile-header/material.mjs +59 -1
- package/dist/components/biz/business/profile/profile-header/schema.mjs +11 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +235 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +135 -1
- package/dist/components/biz/business/profile/profile-main/client.mjs +234 -1
- package/dist/components/biz/business/profile/profile-main/material.mjs +18 -1
- package/dist/components/biz/business/profile/profile-main/schema.mjs +11 -1
- package/dist/components/biz/business/profile/profile-main/server.mjs +13 -1
- package/dist/components/biz/business/profile/profile-main/shell.mjs +187 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +519 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +13 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +250 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +13 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +250 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +13 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +149 -1
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +13 -1
- package/dist/components/biz/business/profile/profile-main/utils.mjs +248 -1
- package/dist/components/biz/business/profile/profile-main/variants.mjs +40 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +15 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +9 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +168 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +119 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +14 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +9 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +17 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +17 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +54 -1
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +15 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +52 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +14 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +17 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +117 -1
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +22 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +53 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +14 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +5 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +17 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +117 -1
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +15 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +52 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +14 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +25 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +17 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +128 -1
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +15 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +12 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +58 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +14 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +9 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +38 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +17 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +144 -1
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +7 -1
- package/dist/components/biz/business/search-history/client.mjs +121 -1
- package/dist/components/biz/business/search-history/material.mjs +18 -1
- package/dist/components/biz/business/search-history/schema.mjs +20 -1
- package/dist/components/biz/business/search-history/server.mjs +17 -1
- package/dist/components/biz/business/search-input/client.mjs +108 -1
- package/dist/components/biz/business/search-input/material.mjs +18 -1
- package/dist/components/biz/business/search-input/schema.mjs +11 -1
- package/dist/components/biz/business/search-input/server.mjs +17 -1
- package/dist/components/biz/business/shortcut-grid/client.mjs +64 -1
- package/dist/components/biz/business/shortcut-grid/material.mjs +18 -1
- package/dist/components/biz/business/shortcut-grid/schema.mjs +70 -1
- package/dist/components/biz/business/shortcut-grid/server.mjs +17 -1
- package/dist/components/biz/business/tab-bar/client.mjs +102 -1
- package/dist/components/biz/business/tab-bar/material.mjs +21 -1
- package/dist/components/biz/business/tab-bar/schema.mjs +11 -1
- package/dist/components/biz/business/tab-bar/server.mjs +17 -1
- package/dist/components/biz/business/text-recommend/client.mjs +69 -1
- package/dist/components/biz/business/text-recommend/material.mjs +18 -1
- package/dist/components/biz/business/text-recommend/schema.mjs +28 -1
- package/dist/components/biz/business/text-recommend/server.mjs +18 -1
- package/dist/components/biz/example/button/client.mjs +43 -1
- package/dist/components/biz/example/button/material.mjs +18 -1
- package/dist/components/biz/example/button/schema.mjs +47 -1
- package/dist/components/biz/example/button/server.mjs +32 -1
- package/dist/components/biz/example/button/variants.mjs +22 -1
- package/dist/components/biz/renderer/renderer.mjs +73 -1
- package/dist/components/biz/utils/constants/card-spec.mjs +48 -1
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +14 -1
- package/dist/components/biz/utils/helpers/url.mjs +16 -1
- package/dist/components/biz/utils/schema/data.mjs +22 -1
- package/dist/components/biz/utils/styles/helpers.mjs +84 -1
- package/dist/components/biz/utils/styles/schema.mjs +306 -1
- package/dist/components/biz/utils/transformers/card-grid.mjs +71 -1
- package/dist/components/biz/utils/transformers/data.mjs +171 -1
- package/dist/components/common/at-element/index.mjs +47 -1
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +73 -1
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +54 -1
- package/dist/components/common/cards/mini-three-card.mjs +55 -1
- package/dist/components/common/cards/style.module.mjs +12 -24
- package/dist/components/common/collection-popup/collection-create-modal.mjs +130 -1
- package/dist/components/common/collection-popup/index.mjs +292 -1
- package/dist/components/common/debug-locale-switcher/index.mjs +59 -1
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +66 -1
- package/dist/components/common/empty/index.mjs +51 -1
- package/dist/components/common/follow-button/index.mjs +133 -1
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +23 -1
- package/dist/components/common/funhub-provider/funhub-provider.mjs +85 -1
- package/dist/components/common/header-nav/client.mjs +51 -1
- package/dist/components/common/icons/add.mjs +21 -1
- package/dist/components/common/icons/comment.mjs +30 -1
- package/dist/components/common/icons/delete.mjs +32 -1
- package/dist/components/common/icons/left-arrow.mjs +15 -1
- package/dist/components/common/icons/more.mjs +30 -1
- package/dist/components/common/icons/right-arrow.mjs +19 -1
- package/dist/components/common/icons/setting.mjs +45 -1
- package/dist/components/common/icons/share.mjs +20 -1
- package/dist/components/common/icons/video.mjs +22 -1
- package/dist/components/common/image-crop/image-crop.mjs +182 -1
- package/dist/components/common/image-crop/show-image-crop.mjs +102 -1
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +128 -2
- package/dist/components/common/info-card/card-header.mjs +70 -1
- package/dist/components/common/info-card/card-text.mjs +49 -1
- package/dist/components/common/interaction-animations.module.mjs +14 -84
- package/dist/components/common/intl-provider/intl-provider.mjs +21 -1
- package/dist/components/common/keep-scroll-position/index.mjs +39 -1
- package/dist/components/common/list/collection-list/collection-list-item.mjs +93 -1
- package/dist/components/common/list/collection-list/collection-list.mjs +21 -1
- package/dist/components/common/list/post-list/post-list-item.mjs +54 -1
- package/dist/components/common/list/post-list/post-list.mjs +143 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +269 -1
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +468 -1
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +139 -1
- package/dist/components/common/list/video-list/video-list-item.mjs +104 -1
- package/dist/components/common/list/video-list/video-list.mjs +152 -1
- package/dist/components/common/locale-sync/locale-sync.mjs +62 -1
- package/dist/components/common/login-dialog/login-dialog.mjs +29 -1
- package/dist/components/common/media-preview/index.mjs +162 -1
- package/dist/components/common/media-preview/video-play.mjs +237 -1
- package/dist/components/common/page-loading/index.mjs +20 -1
- package/dist/components/common/page-skeleton/page-skeleton.mjs +7 -1
- package/dist/components/common/photo-grid/common-photo-grid.d.mts +0 -1
- package/dist/components/common/photo-grid/common-photo-grid.mjs +320 -1
- package/dist/components/common/photo-grid/index.mjs +226 -1
- package/dist/components/common/photo-preview/common-photo-preview.mjs +96 -1
- package/dist/components/common/photo-preview/decrypt-loading.mjs +66 -2
- package/dist/components/common/photo-preview/index.d.mts +0 -2
- package/dist/components/common/photo-preview/index.mjs +63 -1
- package/dist/components/common/photo-preview/style.mjs +7 -19
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +66 -1
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +78 -1
- package/dist/components/common/popup-video/index.mjs +76 -1
- package/dist/components/common/popup-video/popup-video.module.mjs +7 -16
- package/dist/components/common/series-episodes/index.mjs +555 -1
- package/dist/components/common/share-popup/share-content.mjs +155 -1
- package/dist/components/common/share-popup/share-drawer.mjs +100 -1
- package/dist/components/common/share-popup/share-popup.mjs +326 -1
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +99 -1
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +146 -1
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +110 -1
- package/dist/components/common/tab-bar/index.mjs +120 -1
- package/dist/components/common/theme-sync/index.mjs +22 -1
- package/dist/components/common/top-nav-bar/client.mjs +63 -1
- package/dist/components/common/top-nav-bar/fullscreen.mjs +27 -1
- package/dist/components/common/top-nav-bar/index.mjs +29 -1
- package/dist/components/common/top-nav-bar/normal.mjs +20 -1
- package/dist/components/common/video-player/create-video.mjs +27 -2
- package/dist/components/common/video-player/index.mjs +710 -5
- package/dist/components/common/video-player/playing-videos.mjs +73 -1
- package/dist/components/common/video-player/process-m3u8-cache.mjs +282 -1
- package/dist/components/common/video-player/style.module.mjs +7 -257
- package/dist/components/common/wait-loading.mjs +119 -1
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +80 -1
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +13 -1
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +43 -1
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +139 -1
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +46 -1
- package/dist/components/pages/(follow)/fans/index.mjs +10 -1
- package/dist/components/pages/(follow)/fans/page.mjs +95 -1
- package/dist/components/pages/(follow)/followed/index.mjs +10 -1
- package/dist/components/pages/(follow)/followed/page.mjs +95 -1
- package/dist/components/pages/collection-add/index.mjs +10 -1
- package/dist/components/pages/collection-add/page.mjs +161 -1
- package/dist/components/pages/collection-create/form.mjs +163 -1
- package/dist/components/pages/collection-create/index.mjs +10 -1
- package/dist/components/pages/collection-create/page.mjs +28 -1
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +183 -1
- package/dist/components/pages/collection-detail/detail.mjs +538 -1
- package/dist/components/pages/collection-detail/index.mjs +10 -1
- package/dist/components/pages/collection-detail/page.mjs +18 -1
- package/dist/components/pages/edit/index.mjs +10 -1
- package/dist/components/pages/edit/page.mjs +655 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +382 -1
- package/dist/components/pages/feed-series/page.mjs +97 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +256 -1
- package/dist/components/pages/feedback/index.mjs +10 -1
- package/dist/components/pages/feedback/page.mjs +10 -1
- package/dist/components/pages/fullscreen-feed/index.mjs +10 -1
- package/dist/components/pages/fullscreen-feed/page.mjs +104 -1
- package/dist/components/pages/home/channel-matcher.mjs +30 -1
- package/dist/components/pages/home/client.mjs +155 -1
- package/dist/components/pages/home/index.mjs +56 -1
- package/dist/components/pages/login/agreement-dialog.mjs +104 -1
- package/dist/components/pages/login/auth-guard.mjs +37 -1
- package/dist/components/pages/login/forgot.mjs +130 -1
- package/dist/components/pages/login/index.mjs +107 -1
- package/dist/components/pages/login/login-client.mjs +214 -1
- package/dist/components/pages/login/password.mjs +186 -1
- package/dist/components/pages/login/register.mjs +189 -1
- package/dist/components/pages/login/reset-password.mjs +193 -1
- package/dist/components/pages/login/verify.mjs +212 -3
- package/dist/components/pages/post-detail/page.mjs +28 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +516 -1
- package/dist/components/pages/profile/index.mjs +10 -1
- package/dist/components/pages/profile/page.mjs +28 -1
- package/dist/components/pages/publish/components/collection-card.mjs +49 -1
- package/dist/components/pages/publish/components/collection-popup.mjs +81 -1
- package/dist/components/pages/publish/components/collection.mjs +97 -1
- package/dist/components/pages/publish/components/cover-item.mjs +46 -1
- package/dist/components/pages/publish/components/editor.mjs +208 -1
- package/dist/components/pages/publish/components/header.mjs +31 -1
- package/dist/components/pages/publish/components/material-grid.mjs +52 -1
- package/dist/components/pages/publish/components/material-item.mjs +68 -1
- package/dist/components/pages/publish/components/toolbar.mjs +39 -1
- package/dist/components/pages/publish/components/upload-progress.mjs +53 -1
- package/dist/components/pages/publish/components/video-item.mjs +36 -1
- package/dist/components/pages/publish/constants.mjs +8 -1
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +162 -1
- package/dist/components/pages/publish/page-client.mjs +345 -1
- package/dist/components/pages/publish/page.mjs +11 -1
- package/dist/components/pages/publish/utils/file-upload.mjs +155 -1
- package/dist/components/pages/publish/utils/publish-utils.mjs +11 -1
- package/dist/components/pages/search/hot-recommend.mjs +185 -1
- package/dist/components/pages/search/hot-search.mjs +70 -1
- package/dist/components/pages/search/index.mjs +17 -1
- package/dist/components/pages/search/page-client.mjs +159 -1
- package/dist/components/pages/search/search-result/index.mjs +22 -1
- package/dist/components/pages/search/search-result/search-all.mjs +223 -1
- package/dist/components/pages/search/search-result/search-user.mjs +203 -1
- package/dist/components/pages/search/search-result/search-video-info.mjs +324 -1
- package/dist/components/pages/search/search-utils.mjs +48 -1
- package/dist/components/pages/search/style.module.mjs +13 -113
- package/dist/components/pages/search/top-header.mjs +91 -1
- package/dist/components/pages/search-result/page-client.mjs +117 -1
- package/dist/components/pages/search-result/search-all.mjs +82 -1
- package/dist/components/pages/search-result/search-result-skeleton.mjs +22 -1
- package/dist/components/pages/search-result/search-tab.mjs +89 -1
- package/dist/components/pages/search-result/search-user.mjs +253 -1
- package/dist/components/pages/search-result/search-video.mjs +226 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +256 -4
- package/dist/components/pages/settings/_components/settings.mjs +183 -1
- package/dist/components/pages/settings/index.mjs +10 -1
- package/dist/components/pages/settings/page.mjs +13 -1
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +34 -1
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +25 -1
- package/dist/components/pages/user-follow/_components/post-tab.mjs +96 -1
- package/dist/components/pages/user-follow/index.mjs +10 -1
- package/dist/components/pages/user-follow/page.mjs +106 -1
- package/dist/components/pages/user-follow/skeleton.mjs +62 -1
- package/dist/components/pages/video-detail/page.mjs +47 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +357 -1
- package/dist/components/pages/video-list/index.mjs +59 -1
- package/dist/components/pages/video-list/types.mjs +16 -1
- package/dist/components/pages/video-list/video-list-client.mjs +106 -1
- package/dist/components/pages/video-list/video-list-item.mjs +92 -1
- package/dist/components/pages/video-list/video-list-skeleton.mjs +62 -1
- package/dist/components/ui/accordion.mjs +62 -1
- package/dist/components/ui/alert-dialog.mjs +114 -1
- package/dist/components/ui/alert.mjs +50 -1
- package/dist/components/ui/aspect-ratio.mjs +17 -1
- package/dist/components/ui/avatar.mjs +106 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +38 -1
- package/dist/components/ui/box.mjs +17 -1
- package/dist/components/ui/breadcrumb.mjs +84 -1
- package/dist/components/ui/button-group.d.mts +1 -1
- package/dist/components/ui/button-group.mjs +49 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/components/ui/button.mjs +50 -1
- package/dist/components/ui/card.mjs +65 -1
- package/dist/components/ui/carousel.mjs +142 -1
- package/dist/components/ui/checkbox.mjs +25 -1
- package/dist/components/ui/collapsible.mjs +31 -1
- package/dist/components/ui/combobox.mjs +185 -1
- package/dist/components/ui/context-menu.mjs +150 -1
- package/dist/components/ui/dialog.mjs +109 -1
- package/dist/components/ui/drawer.mjs +91 -1
- package/dist/components/ui/dropdown-menu.mjs +154 -1
- package/dist/components/ui/empty-icons.mjs +96 -7
- package/dist/components/ui/empty.mjs +95 -1
- package/dist/components/ui/field.d.mts +1 -1
- package/dist/components/ui/field.mjs +131 -1
- package/dist/components/ui/hover-card.mjs +43 -1
- package/dist/components/ui/image.mjs +257 -1
- package/dist/components/ui/infinite-scroll.mjs +168 -1
- package/dist/components/ui/input-group.mjs +90 -1
- package/dist/components/ui/input.mjs +19 -1
- package/dist/components/ui/item.mjs +137 -1
- package/dist/components/ui/kbd.mjs +24 -1
- package/dist/components/ui/label.mjs +18 -1
- package/dist/components/ui/legacy/badge.mjs +80 -1
- package/dist/components/ui/legacy/button.mjs +55 -1
- package/dist/components/ui/legacy/input.mjs +22 -1
- package/dist/components/ui/legacy/popover.mjs +69 -1
- package/dist/components/ui/link.mjs +32 -1
- package/dist/components/ui/list.mjs +221 -5
- package/dist/components/ui/loading.mjs +44 -1
- package/dist/components/ui/mask.mjs +17 -1
- package/dist/components/ui/menubar.mjs +154 -1
- package/dist/components/ui/native-select.mjs +43 -1
- package/dist/components/ui/pagination.mjs +90 -1
- package/dist/components/ui/popover.mjs +73 -1
- package/dist/components/ui/popup.mjs +44 -1
- package/dist/components/ui/progress.mjs +53 -1
- package/dist/components/ui/radio-group.mjs +34 -1
- package/dist/components/ui/rate.mjs +69 -1
- package/dist/components/ui/scroll-area.mjs +43 -1
- package/dist/components/ui/select.mjs +113 -1
- package/dist/components/ui/separator.mjs +20 -1
- package/dist/components/ui/sheet.mjs +109 -1
- package/dist/components/ui/skeleton.mjs +16 -1
- package/dist/components/ui/slider.mjs +46 -1
- package/dist/components/ui/sonner.mjs +34 -1
- package/dist/components/ui/spinner.mjs +18 -1
- package/dist/components/ui/switch.mjs +65 -1
- package/dist/components/ui/table.mjs +78 -1
- package/dist/components/ui/tabs.mjs +54 -1
- package/dist/components/ui/text.mjs +20 -1
- package/dist/components/ui/textarea.mjs +16 -1
- package/dist/components/ui/time.mjs +91 -1
- package/dist/components/ui/toggle-group.mjs +59 -1
- package/dist/components/ui/toggle.mjs +41 -1
- package/dist/components/ui/tooltip.mjs +49 -1
- package/dist/components/ui/wheel-picker.mjs +28 -1
- package/dist/constants/event-key.mjs +18 -1
- package/dist/constants/query-key.mjs +32 -1
- package/dist/constants/revalidate.mjs +9 -1
- package/dist/constants/site.mjs +11 -1
- package/dist/constants/url-prefix.mjs +11 -1
- package/dist/hooks/image-text-recommend.mjs +71 -1
- package/dist/hooks/query/hydration-boundary.mjs +34 -1
- package/dist/hooks/query/use-query.mjs +114 -1
- package/dist/hooks/use-auth.mjs +198 -1
- package/dist/hooks/use-browse-report.mjs +466 -1
- package/dist/hooks/use-card-decoration.mjs +92 -1
- package/dist/hooks/use-content-operate.mjs +525 -1
- package/dist/hooks/use-follow.mjs +69 -1
- package/dist/hooks/use-fullscreen-gestures.mjs +144 -1
- package/dist/hooks/use-interaction-animation.mjs +26 -1
- package/dist/hooks/use-keyboard-open.mjs +56 -1
- package/dist/hooks/use-like-dislike.mjs +40 -1
- package/dist/hooks/use-search-history.mjs +53 -1
- package/dist/hooks/use-sticky.mjs +50 -1
- package/dist/hooks.mjs +14 -1
- package/dist/i18n/locales/en.mjs +820 -3
- package/dist/i18n/locales/zh-CN.mjs +820 -3
- package/dist/i18n/messages.mjs +20 -1
- package/dist/i18n/translator.mjs +38 -1
- package/dist/i18n.mjs +165 -1
- package/dist/materials.mjs +61 -1
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +17 -1
- package/dist/pages.mjs +23 -1
- package/dist/seo/build-metadata.mjs +163 -1
- package/dist/seo/config/index.mjs +22 -1
- package/dist/seo/config/page.mjs +301 -6
- package/dist/seo/config/site.mjs +25 -1
- package/dist/seo/constants.mjs +31 -1
- package/dist/seo/helpers.mjs +120 -1
- package/dist/seo/resource-hints.mjs +60 -1
- package/dist/seo/robots.mjs +36 -1
- package/dist/seo/sitemap.mjs +44 -1
- package/dist/seo/structured-data/article.mjs +51 -1
- package/dist/seo/structured-data/common.mjs +60 -1
- package/dist/seo/structured-data/video.mjs +41 -1
- package/dist/seo/viewport.mjs +31 -1
- package/dist/seo.mjs +15 -1
- package/dist/service/generated/client.mjs +1138 -1
- package/dist/service/generated/tanstack.mjs +1049 -1
- package/dist/service.d.mts +1 -2
- package/dist/service.mjs +4 -1
- package/dist/store/create-store.mjs +25 -1
- package/dist/store/modules/app-config-store.mjs +28 -1
- package/dist/store/modules/blocked-modal-store.mjs +30 -1
- package/dist/store/modules/follow-ids-store.mjs +12 -1
- package/dist/store/modules/login-modal-store.mjs +155 -1
- package/dist/store/modules/media-preview-store.mjs +54 -1
- package/dist/store/modules/publish-store.mjs +31 -1
- package/dist/store/modules/use-demo-store.mjs +17 -1
- package/dist/store/modules/user-store.mjs +113 -1
- package/dist/store.mjs +10 -1
- package/dist/types/safe-at-user.mjs +15 -1
- package/dist/types/safe-comment.mjs +30 -1
- package/dist/types/safe-grid.mjs +36 -1
- package/dist/types/safe-replay.mjs +43 -1
- package/dist/types/share.mjs +16 -1
- package/dist/ui.mjs +57 -1
- package/dist/utils/api-collect.mjs +14 -1
- package/dist/utils/channel-storage.mjs +57 -1
- package/dist/utils/cn.mjs +15 -1
- package/dist/utils/common.mjs +296 -1
- package/dist/utils/db.mjs +80 -1
- package/dist/utils/decrypt-image-client.mjs +325 -1
- package/dist/utils/decrypt.worker.mjs +20 -2
- package/dist/utils/event-bus.mjs +33 -1
- package/dist/utils/follow-service.mjs +87 -1
- package/dist/utils/get-res-url.mjs +94 -1
- package/dist/utils/helper.mjs +33 -1
- package/dist/utils/http.mjs +194 -1
- package/dist/utils/image-compression.mjs +59 -1
- package/dist/utils/image-crop.mjs +110 -1
- package/dist/utils/loaders.mjs +51 -1
- package/dist/utils/login-modal-bridge.mjs +65 -1
- package/dist/utils/media.mjs +128 -1
- package/dist/utils/password-validator.mjs +86 -1
- package/dist/utils/s3-uploader.mjs +40 -1
- package/dist/utils/schema/material.mjs +24 -1
- package/dist/utils/schema/schema.mjs +147 -1
- package/dist/utils/schema/utils.mjs +27 -1
- package/dist/utils/share-manager.mjs +183 -1
- package/dist/utils/tools.mjs +105 -1
- package/dist/utils/uint8.mjs +46 -1
- package/dist/utils/upload-file.mjs +429 -1
- package/dist/utils.mjs +21 -1
- package/package.json +30 -30
- package/dist/components/common/skeleton/search-video-card-skeleton.mjs +0 -2
- package/dist/service/register-by-verify-email-code.d.mts +0 -15
- package/dist/service/register-by-verify-email-code.mjs +0 -2
|
@@ -1,2 +1,74 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
//#region components/common/video-player/playing-videos.ts
|
|
3
|
+
const playingVideos = {};
|
|
4
|
+
const VIDEO_RENDER_STUCK_MEDIA_TIME_GAP_SECONDS = .35;
|
|
5
|
+
const FPS_STUCK_RECOVERY_MIN_DURATION_MS = 1e3;
|
|
6
|
+
const RETRY_RESUME_END_GAP_SECONDS = .35;
|
|
7
|
+
/**
|
|
8
|
+
* 读取安全的非负数字,非法值统一回退为 0。
|
|
9
|
+
*/
|
|
10
|
+
function toSafeNonNegativeNumber(input) {
|
|
11
|
+
const parsedValue = Number(input);
|
|
12
|
+
if (!Number.isFinite(parsedValue) || parsedValue < 0) return 0;
|
|
13
|
+
return parsedValue;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 根据 fps_stuck 事件载荷判断是否需要触发恢复。
|
|
17
|
+
*/
|
|
18
|
+
function shouldTriggerFpsStuckRecovery(payload) {
|
|
19
|
+
if (!Array.isArray(payload) || payload.length === 0) return true;
|
|
20
|
+
let totalCheckInterval = 0;
|
|
21
|
+
let hasDecodedFrames = false;
|
|
22
|
+
payload.forEach((item) => {
|
|
23
|
+
if (!item || typeof item !== "object") return;
|
|
24
|
+
const sample = item;
|
|
25
|
+
if (toSafeNonNegativeNumber(sample.curDecodedFrames) > 0) {
|
|
26
|
+
hasDecodedFrames = true;
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
totalCheckInterval += toSafeNonNegativeNumber(sample.checkInterval);
|
|
30
|
+
});
|
|
31
|
+
if (hasDecodedFrames) return false;
|
|
32
|
+
return totalCheckInterval >= FPS_STUCK_RECOVERY_MIN_DURATION_MS;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 在自动重试前记录恢复位置,避免重建后跳到外部传入的旧进度。
|
|
36
|
+
*/
|
|
37
|
+
function prepareRetryResumeState({ failureType, player, renderedMediaTime }) {
|
|
38
|
+
if (!player) return {
|
|
39
|
+
time: null,
|
|
40
|
+
shouldPlay: null
|
|
41
|
+
};
|
|
42
|
+
const media = player?.media || player?.video;
|
|
43
|
+
let resumeTime = Number(player?.currentTime ?? media?.currentTime ?? 0);
|
|
44
|
+
if (failureType === "fps_stuck" && Number.isFinite(renderedMediaTime) && renderedMediaTime > 0) resumeTime = Math.min(resumeTime, renderedMediaTime + VIDEO_RENDER_STUCK_MEDIA_TIME_GAP_SECONDS);
|
|
45
|
+
return {
|
|
46
|
+
time: Number.isFinite(resumeTime) && resumeTime > 0 ? resumeTime : null,
|
|
47
|
+
shouldPlay: !(media?.paused ?? false)
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function pauseOtherVideos(currentVideoId, currentPlayer) {
|
|
51
|
+
playingVideos[currentVideoId] = currentPlayer;
|
|
52
|
+
for (const videoId in playingVideos) if (videoId !== currentVideoId) {
|
|
53
|
+
const player = playingVideos[videoId];
|
|
54
|
+
try {
|
|
55
|
+
if (player && typeof player.pause === "function" && !player.paused) {
|
|
56
|
+
console.log(`暂停视频播放器: ${videoId}`);
|
|
57
|
+
player.pause();
|
|
58
|
+
}
|
|
59
|
+
} catch (error) {
|
|
60
|
+
console.warn(`暂停播放器 ${videoId} 时出错:`, error);
|
|
61
|
+
delete playingVideos[videoId];
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function registerVideo(videoId, player) {
|
|
66
|
+
playingVideos[videoId] = player;
|
|
67
|
+
}
|
|
68
|
+
function unregisterVideo(videoId) {
|
|
69
|
+
delete playingVideos[videoId];
|
|
70
|
+
console.log(`注销视频播放器: ${videoId}`);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
export { RETRY_RESUME_END_GAP_SECONDS, pauseOtherVideos, prepareRetryResumeState, registerVideo, shouldTriggerFpsStuckRecovery, unregisterVideo };
|
|
@@ -1,2 +1,283 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
2
|
+
import getResUrl from "../../../utils/get-res-url.mjs";
|
|
3
|
+
|
|
4
|
+
//#region components/common/video-player/process-m3u8-cache.ts
|
|
5
|
+
const PROCESS_M3U8_CACHE_MAX_SIZE = 80;
|
|
6
|
+
const PROCESS_M3U8_SUCCESS_TTL_MS = 30 * 1e3;
|
|
7
|
+
const PROCESS_M3U8_FALLBACK_TTL_MS = 10 * 1e3;
|
|
8
|
+
const PROCESS_M3U8_WARMUP_TIMEOUT_MS = 3e3;
|
|
9
|
+
const PROCESS_M3U8_WARMUP_MAX_AWAIT_MS = 160;
|
|
10
|
+
const ENABLE_PROCESS_M3U8_WARMUP_LOG = process.env.NODE_ENV !== "production";
|
|
11
|
+
const RETRY_RECOVERED_MIN_PLAY_SECONDS = 1;
|
|
12
|
+
const processM3u8Cache = /* @__PURE__ */ new Map();
|
|
13
|
+
/**
|
|
14
|
+
* 判断地址是否为 m3u8 资源(支持 query/hash)。
|
|
15
|
+
*/
|
|
16
|
+
function isM3u8VideoUrl(url) {
|
|
17
|
+
return /\.m3u8(?:$|[?#])/i.test(url);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 兼容绝对地址(http/blob/data),避免重复拼接资源域名。
|
|
21
|
+
*/
|
|
22
|
+
function isAbsoluteOrBlobUrl(url) {
|
|
23
|
+
return /^(?:https?:)?\/\//i.test(url) || /^(?:blob:|data:)/i.test(url);
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 生成 processM3u8 接口地址。
|
|
27
|
+
*/
|
|
28
|
+
function buildProcessM3u8ApiUrl(url) {
|
|
29
|
+
return `${process.env.NEXT_PUBLIC_API_BASE}/api/content/processM3u8?url=${encodeURIComponent(`${getResUrl()}/m3f/${url}`)}`;
|
|
30
|
+
}
|
|
31
|
+
function revokeObjectUrl(url) {
|
|
32
|
+
if (!url || !url.startsWith("blob:")) return;
|
|
33
|
+
try {
|
|
34
|
+
URL.revokeObjectURL(url);
|
|
35
|
+
} catch {}
|
|
36
|
+
}
|
|
37
|
+
function removeCacheItem(url) {
|
|
38
|
+
const cacheItem = processM3u8Cache.get(url);
|
|
39
|
+
if (!cacheItem) return;
|
|
40
|
+
revokeObjectUrl(cacheItem.objectUrl);
|
|
41
|
+
processM3u8Cache.delete(url);
|
|
42
|
+
}
|
|
43
|
+
function trimCacheSize() {
|
|
44
|
+
while (processM3u8Cache.size > PROCESS_M3U8_CACHE_MAX_SIZE) {
|
|
45
|
+
const oldestKey = processM3u8Cache.keys().next().value;
|
|
46
|
+
if (!oldestKey) break;
|
|
47
|
+
removeCacheItem(oldestKey);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function touchCacheItem(url, cacheItem) {
|
|
51
|
+
processM3u8Cache.delete(url);
|
|
52
|
+
processM3u8Cache.set(url, cacheItem);
|
|
53
|
+
}
|
|
54
|
+
function getValidCacheItem(url) {
|
|
55
|
+
const cacheItem = processM3u8Cache.get(url);
|
|
56
|
+
if (!cacheItem) return null;
|
|
57
|
+
if (cacheItem.expiresAt <= Date.now()) {
|
|
58
|
+
removeCacheItem(url);
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
touchCacheItem(url, cacheItem);
|
|
62
|
+
return cacheItem;
|
|
63
|
+
}
|
|
64
|
+
async function fetchProcessedM3u8AsBlobUrl(url) {
|
|
65
|
+
const processApiUrl = buildProcessM3u8ApiUrl(url);
|
|
66
|
+
try {
|
|
67
|
+
const response = await fetch(processApiUrl, {
|
|
68
|
+
method: "GET",
|
|
69
|
+
credentials: "omit",
|
|
70
|
+
cache: "no-store"
|
|
71
|
+
});
|
|
72
|
+
if (!response.ok) throw new Error(`processM3u8 status ${response.status}`);
|
|
73
|
+
const playlistText = await response.text();
|
|
74
|
+
if (!playlistText.includes("#EXTM3U")) throw new Error("processM3u8 invalid playlist");
|
|
75
|
+
const objectUrl = URL.createObjectURL(new Blob([playlistText], { type: "application/vnd.apple.mpegurl" }));
|
|
76
|
+
const cacheItem = processM3u8Cache.get(url);
|
|
77
|
+
if (cacheItem) {
|
|
78
|
+
revokeObjectUrl(cacheItem.objectUrl);
|
|
79
|
+
cacheItem.objectUrl = objectUrl;
|
|
80
|
+
cacheItem.expiresAt = Date.now() + PROCESS_M3U8_SUCCESS_TTL_MS;
|
|
81
|
+
touchCacheItem(url, cacheItem);
|
|
82
|
+
trimCacheSize();
|
|
83
|
+
return objectUrl;
|
|
84
|
+
}
|
|
85
|
+
revokeObjectUrl(objectUrl);
|
|
86
|
+
return processApiUrl;
|
|
87
|
+
} catch {
|
|
88
|
+
const cacheItem = processM3u8Cache.get(url);
|
|
89
|
+
if (cacheItem) {
|
|
90
|
+
cacheItem.expiresAt = Date.now() + PROCESS_M3U8_FALLBACK_TTL_MS;
|
|
91
|
+
touchCacheItem(url, cacheItem);
|
|
92
|
+
}
|
|
93
|
+
return processApiUrl;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function getOrCreateCacheItem(url) {
|
|
97
|
+
const cached = getValidCacheItem(url);
|
|
98
|
+
if (cached) return cached;
|
|
99
|
+
const cacheItem = {
|
|
100
|
+
expiresAt: Date.now() + PROCESS_M3U8_FALLBACK_TTL_MS,
|
|
101
|
+
objectUrl: "",
|
|
102
|
+
promise: Promise.resolve("")
|
|
103
|
+
};
|
|
104
|
+
cacheItem.promise = fetchProcessedM3u8AsBlobUrl(url);
|
|
105
|
+
processM3u8Cache.set(url, cacheItem);
|
|
106
|
+
trimCacheSize();
|
|
107
|
+
return cacheItem;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 移动端 / WebView 优先走 processM3u8 直连地址,避免 blob playlist 兼容问题。
|
|
111
|
+
*/
|
|
112
|
+
function shouldPreferProcessM3u8Url(userAgent) {
|
|
113
|
+
if (!userAgent) return false;
|
|
114
|
+
const ua = userAgent.toLowerCase();
|
|
115
|
+
if (/(android|iphone|ipad|ipod|mobile|harmonyos|windows phone)/.test(ua)) return true;
|
|
116
|
+
return /; wv\)|webview|micromessenger|qq\//.test(ua);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 同步生成播放器可直接请求的地址。
|
|
120
|
+
* - 普通资源:拼接资源域名
|
|
121
|
+
* - m3u8:返回 processM3u8 接口地址
|
|
122
|
+
*/
|
|
123
|
+
function buildVideoPlayerSrc(url) {
|
|
124
|
+
if (!url) return "";
|
|
125
|
+
if (isAbsoluteOrBlobUrl(url)) return url;
|
|
126
|
+
if (isM3u8VideoUrl(url)) return buildProcessM3u8ApiUrl(url);
|
|
127
|
+
return `${getResUrl()}/${url}`;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* 异步解析播放器地址:m3u8 优先返回本地 blob URL(失败自动降级到 processM3u8 接口)。
|
|
131
|
+
*/
|
|
132
|
+
async function resolveVideoPlayerSrc(url) {
|
|
133
|
+
if (!url) return "";
|
|
134
|
+
if (!isM3u8VideoUrl(url) || typeof window === "undefined") return buildVideoPlayerSrc(url);
|
|
135
|
+
if (shouldPreferProcessM3u8Url(window.navigator?.userAgent || "")) return buildVideoPlayerSrc(url);
|
|
136
|
+
return await getOrCreateCacheItem(url).promise;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* 预热 m3u8 地址(用于全屏流/详情页首帧前提速)。
|
|
140
|
+
*/
|
|
141
|
+
function prefetchVideoPlayerSrc(url) {
|
|
142
|
+
if (!url || !isM3u8VideoUrl(url) || typeof window === "undefined") return;
|
|
143
|
+
if (shouldPreferProcessM3u8Url(window.navigator?.userAgent || "")) return;
|
|
144
|
+
getOrCreateCacheItem(url).promise;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* 读取服务端可用的主 CDN 域名。
|
|
148
|
+
*/
|
|
149
|
+
function getPrimaryCdnOrigin() {
|
|
150
|
+
const firstCdn = (process.env.NEXT_PUBLIC_CDN || "").split(",").map((item) => item.trim()).find(Boolean);
|
|
151
|
+
if (!firstCdn) return "";
|
|
152
|
+
return firstCdn.replace(/\/+$/, "");
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* 将接口返回的 m3u8 字段转换成 processM3u8 需要的源文件地址。
|
|
156
|
+
*/
|
|
157
|
+
function buildServerM3u8SourceUrl(rawM3u8Url) {
|
|
158
|
+
if (!rawM3u8Url) return "";
|
|
159
|
+
if (/^https?:\/\//i.test(rawM3u8Url)) return rawM3u8Url;
|
|
160
|
+
const origin = getPrimaryCdnOrigin();
|
|
161
|
+
if (!origin) return "";
|
|
162
|
+
const normalizedPath = rawM3u8Url.replace(/^\/+/, "");
|
|
163
|
+
if (!normalizedPath) return "";
|
|
164
|
+
if (normalizedPath.startsWith("m3f/")) return `${origin}/${normalizedPath}`;
|
|
165
|
+
return `${origin}/m3f/${normalizedPath}`;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* 统一规范 episode 序号,最小为 1。
|
|
169
|
+
*/
|
|
170
|
+
function normalizeEpisodeNumber(input, fallback = 1) {
|
|
171
|
+
const fallbackValue = Number.isFinite(fallback) ? Math.max(1, Math.floor(fallback)) : 1;
|
|
172
|
+
if (typeof input === "number") {
|
|
173
|
+
if (!Number.isFinite(input)) return fallbackValue;
|
|
174
|
+
return Math.max(1, Math.floor(input));
|
|
175
|
+
}
|
|
176
|
+
if (typeof input === "string") {
|
|
177
|
+
const trimmed = input.trim();
|
|
178
|
+
if (!trimmed) return fallbackValue;
|
|
179
|
+
const parsed = Number.parseInt(trimmed, 10);
|
|
180
|
+
if (Number.isNaN(parsed)) return fallbackValue;
|
|
181
|
+
return Math.max(1, parsed);
|
|
182
|
+
}
|
|
183
|
+
return fallbackValue;
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* 从 links 列表中按集数提取 m3u8 地址,兼容 `m3u8_url` 与 `m3u8url`。
|
|
187
|
+
*/
|
|
188
|
+
function resolveEpisodeM3u8UrlFromLinks(links, episodeInput) {
|
|
189
|
+
if (!Array.isArray(links) || links.length === 0) return "";
|
|
190
|
+
const episodeNumber = normalizeEpisodeNumber(episodeInput, 1);
|
|
191
|
+
const target = links[Math.max(0, episodeNumber - 1)] || links[0];
|
|
192
|
+
if (!target || typeof target !== "object") return "";
|
|
193
|
+
const rawLink = target;
|
|
194
|
+
return rawLink.m3u8_url || rawLink.m3u8url || "";
|
|
195
|
+
}
|
|
196
|
+
function pickM3u8Url(candidate) {
|
|
197
|
+
if (typeof candidate === "string") return candidate;
|
|
198
|
+
if (!candidate || typeof candidate !== "object") return "";
|
|
199
|
+
const raw = candidate;
|
|
200
|
+
return raw.m3u8_url || raw.m3u8url || "";
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* 自动识别入参(单个 url / url 数组 / links 数组),提取可预热的 m3u8 地址。
|
|
204
|
+
*/
|
|
205
|
+
function resolveM3u8Urls(input, episodeInput) {
|
|
206
|
+
if (typeof input === "string") return input ? [input] : [];
|
|
207
|
+
if (!Array.isArray(input) || input.length === 0) return [];
|
|
208
|
+
if (input.every((item) => typeof item === "string")) return Array.from(new Set(input.filter(Boolean)));
|
|
209
|
+
const episodeUrl = resolveEpisodeM3u8UrlFromLinks(input, episodeInput);
|
|
210
|
+
if (episodeUrl) return [episodeUrl];
|
|
211
|
+
return Array.from(new Set(input.map((item) => pickM3u8Url(item)).filter(Boolean)));
|
|
212
|
+
}
|
|
213
|
+
function sleep(ms) {
|
|
214
|
+
return new Promise((resolve) => {
|
|
215
|
+
setTimeout(() => resolve(), ms);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function simplifyWarmupUrl(url) {
|
|
219
|
+
try {
|
|
220
|
+
const parsed = new URL(url);
|
|
221
|
+
return `${parsed.origin}${parsed.pathname}`;
|
|
222
|
+
} catch {
|
|
223
|
+
return url;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function logWarmupProcessM3u8(message, payload) {
|
|
227
|
+
if (!ENABLE_PROCESS_M3U8_WARMUP_LOG) return;
|
|
228
|
+
console.warn(`[processM3u8-warmup] ${message}`, payload);
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* 服务端预热 processM3u8。
|
|
232
|
+
*
|
|
233
|
+
* 说明:
|
|
234
|
+
* - 最多等待一小段时间,确保请求尽早发出;
|
|
235
|
+
* - 超时后不阻塞 SSR 渲染,剩余请求在后台继续。
|
|
236
|
+
*/
|
|
237
|
+
async function warmupProcessM3u8(rawM3u8Url) {
|
|
238
|
+
const sourceUrl = buildServerM3u8SourceUrl(rawM3u8Url);
|
|
239
|
+
if (!sourceUrl || typeof window !== "undefined") return;
|
|
240
|
+
const warmupUrl = simplifyWarmupUrl(sourceUrl);
|
|
241
|
+
const startAt = Date.now();
|
|
242
|
+
logWarmupProcessM3u8("start", { url: warmupUrl });
|
|
243
|
+
const processApiUrl = `${process.env.NEXT_PUBLIC_API_BASE}/api/content/processM3u8?url=${encodeURIComponent(sourceUrl)}`;
|
|
244
|
+
const controller = new AbortController();
|
|
245
|
+
const timeoutId = setTimeout(() => controller.abort(), PROCESS_M3U8_WARMUP_TIMEOUT_MS);
|
|
246
|
+
const warmupPromise = fetch(processApiUrl, {
|
|
247
|
+
method: "GET",
|
|
248
|
+
credentials: "omit",
|
|
249
|
+
cache: "no-store",
|
|
250
|
+
signal: controller.signal
|
|
251
|
+
}).then(async (response) => {
|
|
252
|
+
if (!response.ok) throw new Error(`processM3u8 status ${response.status}`);
|
|
253
|
+
if (!(await response.text()).includes("#EXTM3U")) throw new Error("processM3u8 invalid playlist");
|
|
254
|
+
logWarmupProcessM3u8("done", {
|
|
255
|
+
url: warmupUrl,
|
|
256
|
+
costMs: Date.now() - startAt
|
|
257
|
+
});
|
|
258
|
+
return "done";
|
|
259
|
+
}).catch((error) => {
|
|
260
|
+
logWarmupProcessM3u8("fail", {
|
|
261
|
+
url: warmupUrl,
|
|
262
|
+
costMs: Date.now() - startAt,
|
|
263
|
+
error: error instanceof Error ? error.message : String(error || "")
|
|
264
|
+
});
|
|
265
|
+
return "fail";
|
|
266
|
+
}).finally(() => {
|
|
267
|
+
clearTimeout(timeoutId);
|
|
268
|
+
});
|
|
269
|
+
if (await Promise.race([warmupPromise, sleep(PROCESS_M3U8_WARMUP_MAX_AWAIT_MS).then(() => "timeout")]) === "timeout") logWarmupProcessM3u8("detach", {
|
|
270
|
+
url: warmupUrl,
|
|
271
|
+
awaitMs: PROCESS_M3U8_WARMUP_MAX_AWAIT_MS
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* 自动预热:支持传入单个 url、url 数组或 links 数组。
|
|
276
|
+
*/
|
|
277
|
+
async function warmupProcessM3u8Auto(input, episodeInput) {
|
|
278
|
+
const urls = resolveM3u8Urls(input, episodeInput);
|
|
279
|
+
await Promise.all(urls.map((url) => warmupProcessM3u8(url)));
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
//#endregion
|
|
283
|
+
export { RETRY_RECOVERED_MIN_PLAY_SECONDS, buildVideoPlayerSrc, isM3u8VideoUrl, normalizeEpisodeNumber, prefetchVideoPlayerSrc, resolveVideoPlayerSrc, warmupProcessM3u8Auto };
|
|
@@ -1,260 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
position: relative;
|
|
6
|
-
z-index: 2;
|
|
7
|
-
}
|
|
2
|
+
import styleInject from "../../../node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs";
|
|
8
3
|
|
|
9
|
-
|
|
10
|
-
overflow: inherit;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
height: 100%;
|
|
14
|
-
}
|
|
4
|
+
//#region components/common/video-player/style.module.css
|
|
5
|
+
var css_248z = ".style-module_videoBox__4Gmdw {\n width: 100%;\n height: 100%;\n position: relative;\n z-index: 2;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer {\n overflow: inherit;\n background: transparent;\n width: 100%;\n height: 100%;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer video {\n z-index: -1 !important;\n width: 100% !important;\n height: 100% !important;\n object-fit: contain;\n object-position: center;\n background: transparent !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-progress-played,\n.style-module_videoBox__4Gmdw .xgplayer .xg-mini-progress-played {\n background: var(--color-theme4) !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xg-options-list {\n background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)) !important;\n padding-left: 10px;\n box-sizing: content-box;\n animation: none !important;\n}\n\n.style-module_videoBox__4Gmdw .xg-options-list.xg-right-side {\n left: -50%;\n right: auto;\n transform: translate(-50%);\n transition-duration: .2s;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xg-options-list.xg-right-side.active {\n left: 10%;\n right: auto;\n animation: none;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xg-options-list .option-item.selected {\n color: #fff !important;\n font-weight: 600;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-controls {\n background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-enter {\n background:\n url('/images/common/loading.gif') no-repeat center center,\n rgba(0, 0, 0, 0.5) !important;\n background-size: 30px 30px !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-enter .xgplayer-enter-spinner {\n display: none !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-loading {\n width: 30px !important;\n height: 30px !important;\n background: url('/images/common/loading.gif') no-repeat center center !important;\n background-size: 30px 30px !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-loading xg-loading-inner {\n display: none !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-progress-btn {\n background: transparent !important;\n border-color: transparent !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-start {\n background-color: rgba(0, 0, 0, 0.5) !important;\n border-radius: 100% !important;\n width: 42px !important;\n height: 42px !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-start.interact {\n background: none !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-poster {\n background-size: cover !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .time-preview .xg-cur {\n color: var(--color-theme4) !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer xg-trigger .time-preview .xg-bar .xg-curbar {\n background-color: var(--color-theme4) !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xg-get-fullscreen,\n.style-module_videoBox__4Gmdw .xgplayer .xg-exit-fullscreen,\n.style-module_videoBox__4Gmdw .xgplayer .xg-icon-play,\n.style-module_videoBox__4Gmdw .xgplayer .xg-icon-pause,\n.style-module_videoBox__4Gmdw .xgplayer .xg-volume-mute,\n.style-module_videoBox__4Gmdw .xgplayer .xg-volume {\n transform: scale(0.8);\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-drag {\n background: var(--color-theme4);\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-replay svg {\n width: 22px;\n height: 22px;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer .xgplayer-replay .xgplayer-replay-txt {\n margin-top: 12px;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-isloading .xgplayer-start {\n display: none;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-pc .xgplayer-cssfullscreen {\n display: none !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-inner-controls,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-replay,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-loading,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-error,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-enter,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-cur,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-dur,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-options-list.xg-side-list li span {\n zoom: 0.6;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-play,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-pause,\n.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-exit-fullscreen {\n transform: scale(1.4) !important;\n transform-origin: center center;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-error .xgplayer-error-text {\n position: relative;\n color: transparent;\n width: 300px;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-error .xgplayer-error-text::after {\n position: absolute;\n left: 0;\n top: 0;\n content: 'Video playback failed';\n width: 100%;\n height: 100%;\n color: #fff;\n font-size: 14px;\n text-align: center;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-error .xgplayer-error-refresh {\n color: var(--color-theme4);\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-playbackrate {\n margin-right: 0 !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-playbackrate .btn-text span {\n background: transparent !important;\n font-size: 14px !important;\n font-weight: 600 !important;\n color: #fff;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-definition {\n margin-right: 0 !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-definition .btn-text span {\n background: transparent !important;\n font-size: 14px !important;\n font-weight: 600 !important;\n color: #fff;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-time {\n color: #fff;\n font-size: 14px !important;\n font-weight: 600 !important;\n}\n\n.style-module_videoBox__4Gmdw .xgplayer-progress {\n order: 3;\n}\n\n.style-module_videoBox__4Gmdw .xg-time-left {\n margin-right: 0 !important;\n}\n\n.style-module_videoBox__4Gmdw .xg-time-left::after {\n content: '/';\n}\n\n.style-module_videoBox__4Gmdw .xg-time-right {\n margin-right: 16px !important;\n margin-left: 0 !important;\n}\n\n.style-module_videoBox__4Gmdw .xg-seek-icon {\n display: flex;\n justify-content: center;\n}\n\n@media screen and (max-width: 1150px) {\n .style-module_videoBox__4Gmdw .xgplayer-volume {\n position: fixed;\n left: 10px;\n top: 10px;\n padding: 8px;\n background-color: rgba(0, 0, 0, 0.5);\n border-radius: 8px;\n }\n}\n\n@media screen and (orientation: landscape) {\n\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-inner-controls,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-replay,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-loading,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-error,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-enter,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-cur,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-dur,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-options-list.xg-side-list li span {\n zoom: 0.6;\n }\n\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-play,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-pause,\n .style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-exit-fullscreen {\n transform: scale(1.4) !important;\n transform-origin: center center;\n }\n}\n";
|
|
6
|
+
var style_module_default = { "videoBox": "style-module_videoBox__4Gmdw" };
|
|
7
|
+
styleInject(css_248z);
|
|
15
8
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
width: 100% !important;
|
|
19
|
-
height: 100% !important;
|
|
20
|
-
object-fit: contain;
|
|
21
|
-
object-position: center;
|
|
22
|
-
background: transparent !important;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-progress-played,
|
|
26
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-mini-progress-played {
|
|
27
|
-
background: var(--color-theme4) !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-options-list {
|
|
31
|
-
background: linear-gradient(to left, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)) !important;
|
|
32
|
-
padding-left: 10px;
|
|
33
|
-
box-sizing: content-box;
|
|
34
|
-
animation: none !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.style-module_videoBox__4Gmdw .xg-options-list.xg-right-side {
|
|
38
|
-
left: -50%;
|
|
39
|
-
right: auto;
|
|
40
|
-
transform: translate(-50%);
|
|
41
|
-
transition-duration: .2s;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-options-list.xg-right-side.active {
|
|
45
|
-
left: 10%;
|
|
46
|
-
right: auto;
|
|
47
|
-
animation: none;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-options-list .option-item.selected {
|
|
51
|
-
color: #fff !important;
|
|
52
|
-
font-weight: 600;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-controls {
|
|
56
|
-
background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-enter {
|
|
60
|
-
background:
|
|
61
|
-
url('/images/common/loading.gif') no-repeat center center,
|
|
62
|
-
rgba(0, 0, 0, 0.5) !important;
|
|
63
|
-
background-size: 30px 30px !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-enter .xgplayer-enter-spinner {
|
|
67
|
-
display: none !important;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-loading {
|
|
71
|
-
width: 30px !important;
|
|
72
|
-
height: 30px !important;
|
|
73
|
-
background: url('/images/common/loading.gif') no-repeat center center !important;
|
|
74
|
-
background-size: 30px 30px !important;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-loading xg-loading-inner {
|
|
78
|
-
display: none !important;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-progress-btn {
|
|
82
|
-
background: transparent !important;
|
|
83
|
-
border-color: transparent !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-start {
|
|
87
|
-
background-color: rgba(0, 0, 0, 0.5) !important;
|
|
88
|
-
border-radius: 100% !important;
|
|
89
|
-
width: 42px !important;
|
|
90
|
-
height: 42px !important;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-start.interact {
|
|
94
|
-
background: none !important;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-poster {
|
|
98
|
-
background-size: cover !important;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.style-module_videoBox__4Gmdw .xgplayer .time-preview .xg-cur {
|
|
102
|
-
color: var(--color-theme4) !important;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.style-module_videoBox__4Gmdw .xgplayer xg-trigger .time-preview .xg-bar .xg-curbar {
|
|
106
|
-
background-color: var(--color-theme4) !important;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-get-fullscreen,
|
|
110
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-exit-fullscreen,
|
|
111
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-icon-play,
|
|
112
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-icon-pause,
|
|
113
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-volume-mute,
|
|
114
|
-
.style-module_videoBox__4Gmdw .xgplayer .xg-volume {
|
|
115
|
-
transform: scale(0.8);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-drag {
|
|
119
|
-
background: var(--color-theme4);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-replay svg {
|
|
123
|
-
width: 22px;
|
|
124
|
-
height: 22px;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.style-module_videoBox__4Gmdw .xgplayer .xgplayer-replay .xgplayer-replay-txt {
|
|
128
|
-
margin-top: 12px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-isloading .xgplayer-start {
|
|
132
|
-
display: none;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-pc .xgplayer-cssfullscreen {
|
|
136
|
-
display: none !important;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-inner-controls,
|
|
140
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-replay,
|
|
141
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-loading,
|
|
142
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-error,
|
|
143
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-enter,
|
|
144
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-cur,
|
|
145
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-dur,
|
|
146
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-options-list.xg-side-list li span {
|
|
147
|
-
zoom: 0.6;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-play,
|
|
151
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-pause,
|
|
152
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-exit-fullscreen {
|
|
153
|
-
transform: scale(1.4) !important;
|
|
154
|
-
transform-origin: center center;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.style-module_videoBox__4Gmdw .xgplayer-error .xgplayer-error-text {
|
|
158
|
-
position: relative;
|
|
159
|
-
color: transparent;
|
|
160
|
-
width: 300px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.style-module_videoBox__4Gmdw .xgplayer-error .xgplayer-error-text::after {
|
|
164
|
-
position: absolute;
|
|
165
|
-
left: 0;
|
|
166
|
-
top: 0;
|
|
167
|
-
content: 'Video playback failed';
|
|
168
|
-
width: 100%;
|
|
169
|
-
height: 100%;
|
|
170
|
-
color: #fff;
|
|
171
|
-
font-size: 14px;
|
|
172
|
-
text-align: center;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.style-module_videoBox__4Gmdw .xgplayer-error .xgplayer-error-refresh {
|
|
176
|
-
color: var(--color-theme4);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.style-module_videoBox__4Gmdw .xgplayer-playbackrate {
|
|
180
|
-
margin-right: 0 !important;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.style-module_videoBox__4Gmdw .xgplayer-playbackrate .btn-text span {
|
|
184
|
-
background: transparent !important;
|
|
185
|
-
font-size: 14px !important;
|
|
186
|
-
font-weight: 600 !important;
|
|
187
|
-
color: #fff;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.style-module_videoBox__4Gmdw .xgplayer-definition {
|
|
191
|
-
margin-right: 0 !important;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.style-module_videoBox__4Gmdw .xgplayer-definition .btn-text span {
|
|
195
|
-
background: transparent !important;
|
|
196
|
-
font-size: 14px !important;
|
|
197
|
-
font-weight: 600 !important;
|
|
198
|
-
color: #fff;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.style-module_videoBox__4Gmdw .xgplayer-time {
|
|
202
|
-
color: #fff;
|
|
203
|
-
font-size: 14px !important;
|
|
204
|
-
font-weight: 600 !important;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.style-module_videoBox__4Gmdw .xgplayer-progress {
|
|
208
|
-
order: 3;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.style-module_videoBox__4Gmdw .xg-time-left {
|
|
212
|
-
margin-right: 0 !important;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.style-module_videoBox__4Gmdw .xg-time-left::after {
|
|
216
|
-
content: '/';
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.style-module_videoBox__4Gmdw .xg-time-right {
|
|
220
|
-
margin-right: 16px !important;
|
|
221
|
-
margin-left: 0 !important;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.style-module_videoBox__4Gmdw .xg-seek-icon {
|
|
225
|
-
display: flex;
|
|
226
|
-
justify-content: center;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
@media screen and (max-width: 1150px) {
|
|
230
|
-
.style-module_videoBox__4Gmdw .xgplayer-volume {
|
|
231
|
-
position: fixed;
|
|
232
|
-
left: 10px;
|
|
233
|
-
top: 10px;
|
|
234
|
-
padding: 8px;
|
|
235
|
-
background-color: rgba(0, 0, 0, 0.5);
|
|
236
|
-
border-radius: 8px;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
@media screen and (orientation: landscape) {
|
|
241
|
-
|
|
242
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-inner-controls,
|
|
243
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-replay,
|
|
244
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-loading,
|
|
245
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-error,
|
|
246
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-enter,
|
|
247
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-cur,
|
|
248
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-dur,
|
|
249
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xg-options-list.xg-side-list li span {
|
|
250
|
-
zoom: 0.6;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-play,
|
|
254
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-icon-pause,
|
|
255
|
-
.style-module_videoBox__4Gmdw .xgplayer.xgplayer-mobile.xgplayer-is-fullscreen .xgplayer-controls .xg-exit-fullscreen {
|
|
256
|
-
transform: scale(1.4) !important;
|
|
257
|
-
transform-origin: center center;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
`,n={videoBox:`style-module_videoBox__4Gmdw`};e(t);export{n as default};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { style_module_default as default };
|