@funhub/platform 0.1.53 → 0.1.54
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/README.md +13 -0
- package/bin/index.mjs +323 -0
- 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 +6 -0
- package/dist/biz.d.mts +16 -16
- package/dist/biz.mjs +145 -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 +391 -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.d.mts +1 -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 +120 -1
- package/dist/components/biz/business/banner-carousel/default-props.mjs +15 -1
- package/dist/components/biz/business/banner-carousel/material.d.mts +1 -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 +107 -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 +107 -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 +180 -1
- package/dist/components/biz/business/channel-list/client.mjs +111 -1
- package/dist/components/biz/business/channel-list/default-props.mjs +12 -1
- package/dist/components/biz/business/channel-list/material.d.mts +1 -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 +106 -0
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +25 -0
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +83 -0
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +65 -0
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +331 -0
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +64 -0
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +68 -0
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +22 -0
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +185 -0
- package/dist/components/biz/business/detail/{materials → shared}/registry.d.mts +25 -25
- package/dist/components/biz/business/detail/shared/registry.mjs +56 -0
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +26 -0
- package/dist/components/biz/business/detail/shared/seo-config.mjs +29 -0
- package/dist/components/biz/business/detail/shared/video-hero.mjs +394 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +29 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/material.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +19 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +12 -0
- package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +18 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +41 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/material.d.mts +5 -5
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +19 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +21 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +18 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title/client.mjs +28 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/material.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info-title/material.mjs +19 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info-title/schema.mjs +12 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title/server.mjs +18 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +50 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/material.d.mts +5 -5
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +19 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +21 -0
- package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +18 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +37 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/material.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +19 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +12 -0
- package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +18 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/client.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +270 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/material.d.mts +5 -5
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +19 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/schema.d.mts +3 -3
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +59 -0
- package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/server.d.mts +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +18 -0
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +52 -0
- 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.d.mts +1 -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.d.mts +1 -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.d.mts +1 -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.d.mts +1 -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.d.mts +1 -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.d.mts +1 -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.d.mts +24 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +49 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.d.mts +6 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +15 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/inspector-schema.d.mts +4 -4
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +182 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/material.d.mts +7 -7
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +19 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.d.mts +11 -0
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +25 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-grid → home-recommend-grid}/server.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +42 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.d.mts +24 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +45 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.d.mts +6 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +15 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/inspector-schema.d.mts +7 -4
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +158 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/material.d.mts +9 -7
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +19 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.d.mts +11 -0
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +25 -0
- package/dist/components/biz/business/home-recommend/{variants/home-recommend-waterfall → home-recommend-waterfall}/server.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +38 -0
- package/dist/components/biz/business/home-recommend/index.d.mts +12 -12
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +459 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +24 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +125 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +231 -1
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +38 -1
- package/dist/components/biz/business/home-recommend/types.d.mts +1 -5
- package/dist/components/biz/business/image-text-recommend/client.d.mts +31 -0
- package/dist/components/biz/business/image-text-recommend/client.mjs +380 -0
- package/dist/components/biz/business/image-text-recommend/index.d.mts +5 -0
- package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/material.d.mts +13 -14
- package/dist/components/biz/business/image-text-recommend/material.mjs +22 -0
- package/dist/components/biz/business/{video-horizontal-list → image-text-recommend}/schema.d.mts +11 -12
- package/dist/components/biz/business/image-text-recommend/schema.mjs +118 -0
- package/dist/components/biz/business/image-text-recommend/server.d.mts +13 -0
- package/dist/components/biz/business/image-text-recommend/server.mjs +66 -0
- package/dist/components/biz/business/index.d.mts +17 -17
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +84 -1
- package/dist/components/biz/business/large-feature-grid/client.mjs +88 -1
- package/dist/components/biz/business/large-feature-grid/material.d.mts +2 -2
- 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 +212 -1
- package/dist/components/biz/business/marquee/index.d.mts +1 -1
- package/dist/components/biz/business/marquee/marquee.module.mjs +13 -25
- package/dist/components/biz/business/marquee/material.d.mts +1 -1
- package/dist/components/biz/business/marquee/material.mjs +21 -1
- package/dist/components/biz/business/marquee/schema.d.mts +10 -2
- package/dist/components/biz/business/marquee/schema.mjs +91 -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 +120 -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 +289 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +2 -2
- package/dist/components/biz/business/profile/profile-header/material.mjs +60 -1
- package/dist/components/biz/business/profile/profile-header/schema.mjs +11 -1
- package/dist/components/biz/business/profile/profile-header/server.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/server.mjs +111 -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 +137 -1
- package/dist/components/biz/business/profile/profile-main/material.d.mts +1 -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 +161 -1
- package/dist/components/biz/business/profile/profile-main/shell.mjs +211 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +489 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +213 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +251 -1
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +47 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +251 -1
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +45 -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 +43 -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.d.mts +1 -1
- package/dist/components/biz/business/search-history/material.mjs +18 -1
- package/dist/components/biz/business/search-history/schema.d.mts +1 -1
- package/dist/components/biz/business/search-history/schema.mjs +20 -1
- package/dist/components/biz/business/search-history/server.mjs +22 -1
- package/dist/components/biz/business/search-input/client.d.mts +2 -0
- package/dist/components/biz/business/search-input/client.mjs +139 -1
- package/dist/components/biz/business/search-input/material.d.mts +1 -4
- package/dist/components/biz/business/search-input/material.mjs +18 -1
- package/dist/components/biz/business/search-input/schema.d.mts +1 -3
- package/dist/components/biz/business/search-input/schema.mjs +11 -1
- package/dist/components/biz/business/search-input/server.mjs +21 -1
- package/dist/components/biz/business/shortcut-grid/client.mjs +64 -1
- package/dist/components/biz/business/shortcut-grid/material.d.mts +1 -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 +78 -1
- package/dist/components/biz/business/tab-bar/material.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/material.mjs +21 -1
- package/dist/components/biz/business/tab-bar/schema.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/schema.mjs +69 -1
- package/dist/components/biz/business/tab-bar/server.mjs +18 -1
- package/dist/components/biz/business/text-recommend/client.mjs +80 -1
- package/dist/components/biz/business/text-recommend/material.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/material.mjs +18 -1
- package/dist/components/biz/business/text-recommend/schema.d.mts +1 -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.d.mts +1 -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 +35 -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.d.mts +1 -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 +429 -1
- package/dist/components/common/share-popup/share-content.mjs +152 -1
- package/dist/components/common/share-popup/share-drawer.mjs +100 -1
- package/dist/components/common/share-popup/share-popup.mjs +300 -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 +125 -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 +701 -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 -259
- 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 +518 -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 +576 -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 +263 -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 +169 -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/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 +10 -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 +301 -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 +89 -1
- package/dist/components/pages/search-result/page-client.mjs +110 -1
- package/dist/components/pages/search-result/search-all.mjs +79 -1
- package/dist/components/pages/search-result/search-tab.mjs +89 -1
- package/dist/components/pages/search-result/search-user.mjs +258 -1
- package/dist/components/pages/search-result/search-video.mjs +226 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +256 -1
- 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.d.mts +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +338 -1
- package/dist/components/pages/video-list/index.mjs +58 -1
- package/dist/components/pages/video-list/types.mjs +16 -1
- package/dist/components/pages/video-list/video-list-client.mjs +111 -1
- package/dist/components/pages/video-list/video-list-item.mjs +35 -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 +97 -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.mjs +49 -1
- 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.mjs +131 -1
- package/dist/components/ui/hover-card.mjs +43 -1
- package/dist/components/ui/image.mjs +202 -1
- package/dist/components/ui/infinite-scroll.mjs +134 -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 +29 -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 +8 -1
- package/dist/hooks/image-text-recommend.d.mts +17 -0
- package/dist/hooks/image-text-recommend.mjs +72 -0
- 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 +514 -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 +40 -1
- package/dist/hooks/use-sticky.mjs +38 -1
- package/dist/hooks.d.mts +2 -1
- package/dist/hooks.mjs +14 -1
- package/dist/i18n/locales/en.mjs +813 -3
- package/dist/i18n/locales/zh-CN.mjs +813 -3
- package/dist/i18n/messages.mjs +20 -1
- package/dist/i18n/translator.mjs +38 -1
- package/dist/i18n.mjs +165 -1
- package/dist/materials.d.mts +16 -16
- package/dist/materials.mjs +63 -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 +21 -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.d.mts +171 -275
- package/dist/service/generated/client.mjs +1138 -1
- package/dist/service/generated/tanstack.d.mts +172 -302
- package/dist/service/generated/tanstack.mjs +1049 -1
- package/dist/service.d.mts +3 -4
- 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 +135 -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/community-types.d.mts +46 -0
- 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/types.d.mts +2732 -5699
- 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 +198 -1
- package/dist/utils/decrypt.worker.mjs +20 -2
- package/dist/utils/event-bus.mjs +33 -1
- package/dist/utils/follow-service.d.mts +4 -4
- package/dist/utils/follow-service.mjs +87 -1
- package/dist/utils/get-res-url.mjs +94 -1
- package/dist/utils/helper.mjs +41 -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/media.mjs +128 -1
- package/dist/utils/password-validator.d.mts +28 -0
- package/dist/utils/password-validator.mjs +87 -0
- package/dist/utils/s3-uploader.mjs +40 -1
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/material.d.mts +7 -9
- package/dist/utils/schema/material.mjs +24 -1
- package/dist/utils/schema/schema.mjs +200 -1
- package/dist/utils/schema/utils.d.mts +13 -3
- package/dist/utils/schema/utils.mjs +33 -1
- package/dist/utils/share-manager.mjs +156 -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.d.mts +3 -2
- package/dist/utils.mjs +21 -1
- package/package.json +7 -2
- package/templates/base/_meta.json +4 -0
- package/templates/base/template/README.md.template +32 -0
- package/templates/base/template/__dot__gitignore +6 -0
- package/templates/base/template/app/[locale]/layout.tsx.template +36 -0
- package/templates/base/template/app/[locale]/page.tsx.template +24 -0
- package/templates/base/template/app/globals.css +26 -0
- package/templates/base/template/app/layout.tsx.template +38 -0
- package/templates/base/template/eslint.config.mjs.template +68 -0
- package/templates/base/template/i18n/request.ts.template +3 -0
- package/templates/base/template/next-env.d.ts.template +4 -0
- package/templates/base/template/next.config.ts.template +21 -0
- package/templates/base/template/package.json.template +37 -0
- package/templates/base/template/postcss.config.js.template +18 -0
- package/templates/base/template/proxy.ts.template +18 -0
- package/templates/base/template/tailwind.config.cjs.template +13 -0
- package/templates/base/template/tsconfig.json.template +43 -0
- package/dist/components/biz/business/detail/detail-follow-action.mjs +0 -2
- package/dist/components/biz/business/detail/detail-info-tags.mjs +0 -2
- package/dist/components/biz/business/detail/detail-info-title.mjs +0 -2
- package/dist/components/biz/business/detail/detail-introduction.mjs +0 -2
- package/dist/components/biz/business/detail/detail-operate.mjs +0 -2
- package/dist/components/biz/business/detail/detail-structured-data.mjs +0 -2
- package/dist/components/biz/business/detail/materials/editor-preview.mjs +0 -2
- package/dist/components/biz/business/detail/materials/registry.mjs +0 -2
- package/dist/components/biz/business/detail/materials/runtime-context-provider.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-actions/server.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info/server.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title/server.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/server.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-player/server.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/server.mjs +0 -2
- package/dist/components/biz/business/detail/materials/video-detail-recommend/utils.mjs +0 -2
- package/dist/components/biz/business/detail/metadata-utils.mjs +0 -2
- package/dist/components/biz/business/detail/post-recommend-list.mjs +0 -2
- package/dist/components/biz/business/detail/seo-config.mjs +0 -2
- package/dist/components/biz/business/detail/video-hero.mjs +0 -2
- package/dist/components/biz/business/home-recommend/shared/home-recommend-feed-mode.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.d.mts +0 -6
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/inspector-schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/prefetch-client.d.mts +0 -27
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/prefetch-client.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/component.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/data.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/event.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.d.mts +0 -8
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/style.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/server.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.d.mts +0 -6
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/material.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/prefetch-client.d.mts +0 -27
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/prefetch-client.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/component.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/data.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/event.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.d.mts +0 -8
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/style.schema.mjs +0 -2
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/server.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/client.d.mts +0 -19
- package/dist/components/biz/business/video-horizontal-list/client.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/index.d.mts +0 -5
- package/dist/components/biz/business/video-horizontal-list/material.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +0 -2
- package/dist/components/biz/business/video-horizontal-list/server.d.mts +0 -12
- package/dist/components/biz/business/video-horizontal-list/server.mjs +0 -2
- package/dist/service/content-batch-get-video-detail.d.mts +0 -21
- package/dist/service/content-batch-get-video-detail.mjs +0 -2
- /package/dist/components/biz/business/detail/{materials/video-detail-actions → video-detail-actions}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info → video-detail-info}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info-title → video-detail-info-title}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-info-title-tags-episodes → video-detail-info-title-tags-episodes}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-player → video-detail-player}/index.d.mts +0 -0
- /package/dist/components/biz/business/detail/{materials/video-detail-recommend → video-detail-recommend}/index.d.mts +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
font-family: var(--font-sans), Arial, Helvetica, sans-serif;
|
|
11
|
+
-webkit-text-size-adjust: 100%;
|
|
12
|
+
-moz-text-size-adjust: 100%;
|
|
13
|
+
-ms-text-size-adjust: 100%;
|
|
14
|
+
text-size-adjust: 100%;
|
|
15
|
+
background: var(--color-bg1);
|
|
16
|
+
color: var(--color-text1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
* {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a {
|
|
24
|
+
color: inherit;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Metadata, Viewport } from 'next';
|
|
2
|
+
import { ThemeSync } from '@funhub/platform/components/common';
|
|
3
|
+
import { defaultLocale } from '@funhub/platform/i18n';
|
|
4
|
+
import '@funhub/platform/theme.css';
|
|
5
|
+
import './globals.css';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Starter 应用默认 viewport 配置。
|
|
9
|
+
*/
|
|
10
|
+
export const viewport: Viewport = {
|
|
11
|
+
width: 'device-width',
|
|
12
|
+
initialScale: 1,
|
|
13
|
+
viewportFit: 'cover',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Starter 应用的站点元信息。
|
|
18
|
+
*/
|
|
19
|
+
export const metadata: Metadata = {
|
|
20
|
+
title: '{{PROJECT_NAME}}',
|
|
21
|
+
description: 'A starter app powered by @funhub/platform',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 根布局负责挂载主题和全局样式。
|
|
26
|
+
*/
|
|
27
|
+
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
28
|
+
const theme = 'dark';
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<html lang={defaultLocale} className={theme} data-prefers-color-scheme={theme}>
|
|
32
|
+
<body suppressHydrationWarning>
|
|
33
|
+
<ThemeSync defaultTheme={theme} />
|
|
34
|
+
{children}
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { antfu } from '@antfu/eslint-config';
|
|
2
|
+
|
|
3
|
+
export function react(options = {}) {
|
|
4
|
+
return antfu({
|
|
5
|
+
react: true,
|
|
6
|
+
ignores: [
|
|
7
|
+
'**/*.md',
|
|
8
|
+
'.next/**',
|
|
9
|
+
'out/**',
|
|
10
|
+
'build/**',
|
|
11
|
+
'public',
|
|
12
|
+
'next-env.d.ts',
|
|
13
|
+
...(options.ignores || []),
|
|
14
|
+
],
|
|
15
|
+
rules: {
|
|
16
|
+
'react-hooks/exhaustive-deps': 'error',
|
|
17
|
+
'eslint-comments/no-unlimited-disable': 'off',
|
|
18
|
+
'no-redeclare': 'off',
|
|
19
|
+
'jsdoc/require-returns-description': 'off',
|
|
20
|
+
'@typescript-eslint/no-redeclare': 'off',
|
|
21
|
+
'style/quotes': ['warn', 'single'],
|
|
22
|
+
'style/jsx-quotes': ['warn', 'prefer-single'],
|
|
23
|
+
'node/prefer-global/process': 'off',
|
|
24
|
+
'style/semi': ['warn', 'always'],
|
|
25
|
+
'package-json/valid-package-def': 'off',
|
|
26
|
+
'@eslint-react/no-missing-key': 'warn',
|
|
27
|
+
'no-restricted-syntax': 'off',
|
|
28
|
+
'react-hooks-extra/no-direct-set-state-in-use-effect': 'off',
|
|
29
|
+
'import/no-anonymous-default-export': 'off',
|
|
30
|
+
'eqeqeq': 'warn',
|
|
31
|
+
'ts/no-use-before-define': ['warn', { functions: false, variables: false }],
|
|
32
|
+
'no-use-before-define': ['warn', { functions: false, variables: false }],
|
|
33
|
+
'no-console': 'warn',
|
|
34
|
+
'unicorn/prefer-math-trunc': 'off',
|
|
35
|
+
'unicorn/prefer-dom-node-remove': 'off',
|
|
36
|
+
'@typescript-eslint/no-unsafe-function-type': 'off',
|
|
37
|
+
'no-empty': 'off',
|
|
38
|
+
'@typescript-eslint/no-empty-object-type': 'warn',
|
|
39
|
+
'unicorn/prefer-query-selector': 0,
|
|
40
|
+
'regexp/no-super-linear-backtracking': 0,
|
|
41
|
+
'regexp/no-useless-assertions': 0,
|
|
42
|
+
'unicorn/no-new-array': 0,
|
|
43
|
+
'@typescript-eslint/method-signature-style': 0,
|
|
44
|
+
'unicorn/prefer-code-point': 'warn',
|
|
45
|
+
'unicorn/no-object-as-default-parameter': 'warn',
|
|
46
|
+
'unused-imports/no-unused-vars': 'warn',
|
|
47
|
+
'@eslint-react/no-unstable-default-props': 'warn',
|
|
48
|
+
'unicorn/prefer-regexp-test': 'warn',
|
|
49
|
+
'no-unsafe-optional-chaining': 'warn',
|
|
50
|
+
'unicorn/prefer-logical-operator-over-ternary': 'warn',
|
|
51
|
+
'arrow-body-style': 0,
|
|
52
|
+
'unicorn/no-array-callback-reference': 0,
|
|
53
|
+
'prefer-regex-literals': 0,
|
|
54
|
+
'regexp/optimal-quantifier-concatenation': 'warn',
|
|
55
|
+
'unicorn/prefer-string-slice': 0,
|
|
56
|
+
'array-callback-return': 0,
|
|
57
|
+
'regexp/no-unused-capturing-group': 1,
|
|
58
|
+
'unicorn/no-anonymous-default-export': 0,
|
|
59
|
+
'unicorn/no-magic-array-flat-depth': 1,
|
|
60
|
+
'react-refresh/only-export-components': 0,
|
|
61
|
+
'react/no-array-index-key': 0,
|
|
62
|
+
'package-json/valid-name': 0,
|
|
63
|
+
...(options.rules || {}),
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export default react();
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
|
+
import createNextIntlPlugin from 'next-intl/plugin';
|
|
3
|
+
|
|
4
|
+
const withNextIntl = createNextIntlPlugin('./i18n/request.ts');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Starter 应用的 Next 配置。
|
|
8
|
+
*/
|
|
9
|
+
const nextConfig: NextConfig = {
|
|
10
|
+
transpilePackages: ['@funhub/platform'],
|
|
11
|
+
images: {
|
|
12
|
+
remotePatterns: [
|
|
13
|
+
{
|
|
14
|
+
protocol: 'https',
|
|
15
|
+
hostname: '*',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default withNextIntl(nextConfig);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{PACKAGE_NAME}}",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "next dev",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"fix": "eslint . --fix",
|
|
11
|
+
"typecheck": "tsc --noEmit"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@funhub/platform": "{{PLATFORM_VERSION}}",
|
|
15
|
+
"@tanstack/react-query": "^5.90.16",
|
|
16
|
+
"next": "16.1.6",
|
|
17
|
+
"next-intl": "^4.8.2",
|
|
18
|
+
"react": "19.2.0",
|
|
19
|
+
"react-dom": "19.2.0"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@antfu/eslint-config": "^7.4.3",
|
|
23
|
+
"@eslint-react/eslint-plugin": "^2.12.4",
|
|
24
|
+
"@types/node": "^20.19.17",
|
|
25
|
+
"@types/react": "^19.2.2",
|
|
26
|
+
"@types/react-dom": "^19.2.2",
|
|
27
|
+
"autoprefixer": "^10.4.23",
|
|
28
|
+
"eslint": "^10.0.0",
|
|
29
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
30
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
31
|
+
"postcss": "^8.5.6",
|
|
32
|
+
"postcss-nesting": "^13.0.2",
|
|
33
|
+
"postcss-px-to-viewport-8-plugin": "^1.2.5",
|
|
34
|
+
"tailwindcss": "^3.4.19",
|
|
35
|
+
"typescript": "^5.9.2"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
plugins: {
|
|
3
|
+
'postcss-nesting': {},
|
|
4
|
+
'tailwindcss': {},
|
|
5
|
+
'autoprefixer': {},
|
|
6
|
+
'postcss-px-to-viewport-8-plugin': {
|
|
7
|
+
unitToConvert: 'px',
|
|
8
|
+
viewportUnit: 'vw',
|
|
9
|
+
unitPrecision: 6,
|
|
10
|
+
fontViewportUnit: 'vw',
|
|
11
|
+
selectorBlackList: [],
|
|
12
|
+
minPixelValue: 1,
|
|
13
|
+
mediaQuery: false,
|
|
14
|
+
replace: true,
|
|
15
|
+
viewportWidth: 430,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { NextRequest } from 'next/server';
|
|
2
|
+
import { routing } from '@funhub/platform/i18n';
|
|
3
|
+
import createMiddleware from 'next-intl/middleware';
|
|
4
|
+
|
|
5
|
+
const handleI18nRouting = createMiddleware(routing);
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* 处理 Starter 应用的国际化路由。
|
|
9
|
+
* @param {NextRequest} request
|
|
10
|
+
*/
|
|
11
|
+
export default async function middleware(request: NextRequest) {
|
|
12
|
+
const response = handleI18nRouting(request);
|
|
13
|
+
return response;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export const config = {
|
|
17
|
+
matcher: '/((?!api|trpc|_next|_vercel|.*\\..*).*)',
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** @type {import('tailwindcss').Config} */
|
|
2
|
+
const {
|
|
3
|
+
platformTailwindPreset,
|
|
4
|
+
withPlatformTailwindContent,
|
|
5
|
+
} = require('@funhub/platform/config/tailwind');
|
|
6
|
+
|
|
7
|
+
module.exports = {
|
|
8
|
+
content: withPlatformTailwindContent([
|
|
9
|
+
'./app/**/*.{js,ts,jsx,tsx}',
|
|
10
|
+
'./components/**/*.{js,ts,jsx,tsx}',
|
|
11
|
+
]),
|
|
12
|
+
presets: [platformTailwindPreset],
|
|
13
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"incremental": true,
|
|
4
|
+
"target": "ES2017",
|
|
5
|
+
"jsx": "react-jsx",
|
|
6
|
+
"lib": [
|
|
7
|
+
"dom",
|
|
8
|
+
"dom.iterable",
|
|
9
|
+
"esnext"
|
|
10
|
+
],
|
|
11
|
+
"module": "esnext",
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"paths": {
|
|
14
|
+
"@/*": [
|
|
15
|
+
"./*"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"resolveJsonModule": true,
|
|
19
|
+
"allowJs": true,
|
|
20
|
+
"strict": true,
|
|
21
|
+
"noEmit": true,
|
|
22
|
+
"esModuleInterop": true,
|
|
23
|
+
"forceConsistentCasingInFileNames": true,
|
|
24
|
+
"isolatedModules": true,
|
|
25
|
+
"skipLibCheck": true,
|
|
26
|
+
"plugins": [
|
|
27
|
+
{
|
|
28
|
+
"name": "next"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"include": [
|
|
33
|
+
"next-env.d.ts",
|
|
34
|
+
"**/*.ts",
|
|
35
|
+
"**/*.tsx",
|
|
36
|
+
".next/types/**/*.ts",
|
|
37
|
+
".next/dev/types/**/*.ts",
|
|
38
|
+
"**/*.mts"
|
|
39
|
+
],
|
|
40
|
+
"exclude": [
|
|
41
|
+
"node_modules"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{useFollowIdsState as t}from"../../../../store/modules/follow-ids-store.mjs";import{useUserStore as n}from"../../../../store/modules/user-store.mjs";import{followUser as r,unfollowUser as i}from"../../../../utils/follow-service.mjs";import a from"../../../../assets/icons/common/follow_sel.mjs";import o from"../../../../assets/icons/common/follow_user.mjs";import{UnfollowConfirmDialog as s}from"../../../common/follow-button/unfollow-confirm-dialog.mjs";import{useEffect as c,useState as l}from"react";import{Fragment as u,jsx as d,jsxs as f}from"react/jsx-runtime";import{useTranslations as p}from"next-intl";function m({information:e,onUpdate:a}){let{userId:o,userInfo:p}=n(),m=o||p?.userId||``,g=e.author,_=e.up_user||g?.user_id||``,v=!!(m&&_&&m===_),[y,b]=l(!!e.is_followed),[x,S]=l(!1),[C,w]=l(!1);c(()=>{b(!!e.is_followed)},[e.id,e.is_followed]);async function T(){if(!_){console.warn(`用户信息不完整,无法执行关注操作`);return}w(!0);let e=!y;try{let n;if(n=e?await r({app_id:0,follower_id:m,followee_id:_}):await i({app_id:0,follower_id:m,followee_id:_}),n.success){b(e),a({is_followed:e});let{followIds:n,setFollowIds:r}=t.getState(),i=new Set(n);e?i.add(_):i.delete(_),r(Array.from(i))}else console.error(`关注操作失败:`,n.message)}catch(e){console.error(`关注操作异常:`,e)}finally{w(!1)}}function E(){if(!C){if(y){S(!0);return}T()}}function D(){S(!1),T()}function O(){S(!1)}return f(u,{children:[e.up_user&&_&&!v?d(h,{followed:y,loading:C,onToggle:E}):null,d(s,{open:x,onOpenChange:S,onCancel:O,onConfirm:D})]})}function h({followed:t,loading:n=!1,onToggle:r}){let i=p(`components.biz.business.detail`);return d(`button`,{type:`button`,disabled:n,className:e(`flex h-7 items-center rounded-full border border-solid px-3 text-xs font-medium transition-colors`,n&&`opacity-50 cursor-not-allowed`,t?`border-text3 text-text3`:`border-theme5 text-theme5`),onClick:r,children:t?f(u,{children:[d(a,{className:`w-[12px] h-[12px] text-text3 shrink-0`}),d(`span`,{className:`text-text3 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:i(`detailFollowAction.following`)})]}):f(u,{children:[d(o,{className:`block w-[12px] h-[12px] text-theme5 shrink-0`}),d(`span`,{className:`block text-theme5 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:i(`detailFollowAction.follow`)})]})})}export{m as DetailFollowAction};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";function i({tags:i,className:a=``}){return!i||i.length===0?null:n(e,{className:`flex items-center gap-[6px] overflow-x-auto overflow-y-hidden flex-nowrap [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden ${a}`,children:i.map((e,i)=>n(`div`,{className:`shrink-0 h-[28px] border-line1 border-[1px] rounded-[6px] px-[6px] flex items-center`,children:r(t,{className:`text-[14px] text-text1 leading-[20px]`,children:[`#`,e.name]})},`${i}-tag-${e.id}`))})}export{i as DetailInfoTags};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{Box as e}from"../../../ui/box.mjs";import t from"../../../../assets/icons/common/right_arrow.mjs";import{useEffect as n,useMemo as r,useRef as i,useState as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";function c({title:c,className:l=``}){let[u,d]=a(!1),[f,p]=a(!1),m=i(null),h=i(null),g=i(null),_=r(()=>c?.trim()??``,[c]);if(n(()=>{d(!1)},[_]),n(()=>{if(u){p(!0);return}if(!_){p(!1);return}let e=h.current,t=g.current;if(!e||!t){p(!1);return}let n=()=>{let n=e.clientWidth||e.getBoundingClientRect().width,r=t.getBoundingClientRect().width;p(r>n+1)};n();let r=new ResizeObserver(n);return r.observe(e),m.current&&r.observe(m.current),()=>{r.disconnect()}},[u,_]),!_)return null;function v(){d(e=>!e)}return s(e,{ref:m,className:`relative flex items-start min-w-0 ${l}`,children:[o(`span`,{ref:g,className:`absolute invisible whitespace-nowrap text-[20px] leading-[28px] font-bold`,children:_}),o(`p`,{ref:h,className:`flex-1 min-w-0 text-[20px] leading-[28px] font-bold text-text1 ${u?``:`line-clamp-1`}`,children:_}),f&&o(`button`,{type:`button`,className:`ml-[8px] h-[24px] w-[24px] flex items-center justify-center`,onClick:v,children:o(t,{className:`h-[12px] w-[12px] text-text2 transition-transform ${u?`-rotate-90`:`rotate-90`}`})})]})}export{c as DetailInfoTitle};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{Box as e}from"../../../ui/box.mjs";import{Text as t}from"../../../ui/text.mjs";import{useCardDecoration as n}from"../../../../hooks/use-card-decoration.mjs";import{DetailInfoTags as r}from"./detail-info-tags.mjs";import{DetailInfoTitle as i}from"./detail-info-title.mjs";import{useMemo as a}from"react";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{useTranslations as c}from"next-intl";function l({information:l,isShow:d,showTags:f=!0}){let p=c(`components.biz.business.detail`),{getTitleText:m}=n(),h=a(()=>m(l),[m,l]),g=a(()=>l.description||``,[l.description]),_=a(()=>u(l.score),[l.score]),v=l.tags||[],y=f&&v.length>0;return!h&&!g&&!y?null:s(e,{className:`w-full mt-4 px-[12px]`,children:[s(e,{className:`w-full flex items-start justify-between min-w-0`,children:[o(e,{className:`flex-1 pr-[12px] min-w-0`,children:o(i,{title:h})}),s(e,{className:`ml-4 shrink-0 flex flex-col items-center`,children:[o(e,{className:`text-[28px] leading-[36px] h-[36px] font-bold text-[#FF9F1A]`,children:_}),o(t,{className:`text-[12px] text-text2 leading-4`,children:p(`detailIntroduction.score`)})]})]}),g&&d&&o(t,{className:`mt-[12px] text-[14px] leading-[22px] text-text2`,children:g}),y&&o(r,{tags:v,className:`mt-[12px]`})]})}function u(e){let t=Number(e||`0`);return Number.isFinite(t)?(t>10?t/10:t).toFixed(1):`0`}export{l as DetailIntroduction};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{useUserStore as e}from"../../../../store/modules/user-store.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{useLoginModalStore as r}from"../../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as i}from"../../../../hooks/query/use-query.mjs";import{debounceFun as a}from"../../../../utils/tools.mjs";import o from"../../../common/interaction-animations.module.mjs";import s from"../../../common/collection-popup/index.mjs";import{useContentOperate as c}from"../../../../hooks/use-content-operate.mjs";import l from"../../../../assets/icons/detail/check-ok.mjs";import u from"../../../../assets/icons/detail/collect_nor.mjs";import d from"../../../../assets/icons/detail/collect_sel.mjs";import f from"../../../../assets/icons/detail/give_like.mjs";import p from"../../../../assets/icons/detail/give_like_sel.mjs";import m from"../../../../assets/icons/detail/share.mjs";import{useCallback as h,useMemo as g,useRef as _,useState as v}from"react";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{toast as x}from"sonner";import{useTranslations as S}from"next-intl";function C({mode:C=`renderer`,information:E,onUpdate:D}){let O=C===`editor`||!E?.id||E.id.startsWith(`preview-`),k=S(`components.biz.business.detail`),[A,j]=v(!1),[M,N]=v(!1),P=_(0),F=e(e=>e.userId),I=e(e=>e.isLogin),L=i(),R=h(()=>{F&&(L([`user-profile`,`mine`,F,`user-like-video`]),L([`user-profile`,`mine`,F,`user-like-post`]),L([`user-profile`,`mine`,F,`user-collect-video`,F]),L([`user-profile`,`mine`,F,`user-collect-post`,F]))},[L,F]),{likeAnimation:z,handleLikeOperate:B,handleDefaultCollectionOperate:V,handleShareOperate:H}=c({id:E.id,isLike:E.like||!1,isDislike:E.dislike||!1,isCollect:E.collect||!1,likeCnt:T(E.static?.like_cnt),dislikeCnt:T(E.static?.dislike_cnt),contentType:E.content_type,prefetchDefaultCollection:!O,animationClasses:{like:o.likeShakeAnimation,dislike:o.dislikeShakeAnimation}}),U=h(e=>{D?.({...e})},[D]),W=h(async()=>{if(A)return;if(!I){r.getState().open();return}let e=Date.now();if(e-P.current<300)return;P.current=e,j(!0);let t=E.like||!1,n=E.dislike||!1,i=T(E.static?.like_cnt),a=T(E.static?.dislike_cnt),o=!t,s=Math.max(0,i+(o?1:-1)),c=o?!1:n,l=o&&n?Math.max(0,a-1):a;U({like:o,dislike:c,static:{...E.static,like_cnt:s,dislike_cnt:l}});try{let e=await B();if(!e){U({like:t,dislike:n,static:{...E.static,like_cnt:i,dislike_cnt:a}});return}U({like:e.isLike,dislike:e.isDislike??c,static:{...E.static,like_cnt:e.likeCnt,dislike_cnt:e.dislikeCnt??l}}),R(),window.sensors?.track?.(`detail_like_click`,{object_id:E.id,action:e.isLike?`点赞`:`取消点赞`,like_count:e.likeCnt})}catch(e){console.error(`点赞操作失败:`,e),x.error(k(`detailOperate.operateFailed`))}finally{j(!1)}},[B,E,R,A,I,k,U]),G=g(()=>E.id,[E.id]),K=h(()=>{H(({isCollect:e})=>{U({collect:e})},G)},[H,G,U]);async function q(e){return await new Promise(e=>setTimeout(e,300)),e}let J=h(()=>{s.show({mode:`select`,onCollect:async e=>{try{await q({contentId:E.id,collectionId:e}),U({collect:!0}),R(),x.success(k(`detailOperate.modifyCollectionSuccess`))}catch(e){console.error(`修改收藏夹失败:`,e),x.error(k(`detailOperate.collectFailed`))}}})},[E.id,R,k,U]),Y=h(e=>{let t=e||k(`detailOperate.defaultCollection`);x.custom(e=>b(`div`,{className:`flex items-center justify-between gap-[16px] px-[16px] py-[12px] rounded-[12px] bg-black text-white shadow-lg min-w-[280px]`,children:[b(`div`,{className:`flex items-center gap-[10px]`,children:[y(`div`,{className:`w-[24px] h-[24px] rounded-full bg-white flex items-center justify-center`,children:y(l,{className:`w-[14px] h-[14px]`})}),b(`div`,{className:`flex items-center gap-[6px]`,children:[y(`span`,{className:`text-[14px] leading-[20px]`,children:k(`detailOperate.collectAdded`)}),y(`span`,{className:`text-[14px] leading-[20px] font-semibold`,children:t})]})]}),y(`button`,{type:`button`,className:`text-[14px] text-theme5 font-semibold`,onClick:()=>{x.dismiss(e),J()},children:k(`detailOperate.modifyCollection`)})]}))},[J,k]),X=h(async()=>{if(M)return;if(!I){r.getState().open();return}let e=E.collect||!1;N(!0),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:e?`取消收藏`:`收藏`});try{let t=await V({currentCollect:e,onUpdate:({isCollect:e})=>{U({collect:e})}});if(!t?.success){x.error(t?.message||k(`detailOperate.collectFailed`));return}R(),window.sensors?.track?.(`detail_fav_click`,{object_id:E.id,action:t.isCollect?`收藏`:`取消收藏`}),!e&&t.isCollect&&Y(t.collectionTitle)}catch(e){console.error(`收藏操作失败:`,e),x.error(e?.message||k(`detailOperate.collectFailed`))}finally{N(!1)}},[V,E.collect,E.id,R,M,I,Y,k,U]),Z=g(()=>a(X,300),[X]);return b(t,{className:`w-full h-[42px] mt-[16px] flex items-center justify-between ${O?`pointer-events-none`:``}`,children:[b(t,{className:`w-[25%] h-full flex flex-col items-center justify-center ${A?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:W,children:[E.like?y(p,{className:`w-[20px] h-[20px] ${z.animationClass}`}):y(f,{className:`w-[20px] h-[20px] text-text2`}),y(n,{className:`text-[12px] text-text2 leading-[20px]`,children:E.static?E.static.like_cnt===0?k(`detailOperate.like`):w(E.static?.like_cnt):k(`detailOperate.like`)})]}),b(t,{className:`w-[25%] h-full flex flex-col items-center justify-center ${M?`opacity-50 cursor-not-allowed`:`cursor-pointer`}`,onClick:Z,children:[E.collect?y(d,{className:`w-[20px] h-[20px]`}):y(u,{className:`w-[20px] h-[20px] text-text2`}),y(n,{className:`text-[12px] text-text2 leading-[20px]`,children:k(`detailOperate.collection`)})]}),b(t,{className:`w-[25%] h-full flex flex-col items-center justify-center cursor-pointer`,onClick:K,children:[y(m,{className:`w-[20px] h-[20px] text-text2`}),y(n,{className:`text-[12px] text-text2 leading-[20px]`,children:k(`detailOperate.share`)})]})]})}function w(e){let t=Number(e||0);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function T(e){if(e==null)return 0;if(typeof e==`number`)return e;let t=Number(e);return Number.isNaN(t)?0:t}export{C as DetailOperate};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{getSeoConfig as e}from"./seo-config.mjs";import{getGenerateSeoData as t}from"./metadata-utils.mjs";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";async function a({information:a,detailId:o}){if(!a||!o)return null;let s=await t({dataType:1,dataId:Number.parseInt(o,10)||0}),c=String(s?.title||``),l=String(s?.description||``),u=a.content_type===0||!!a.links?.length,d=c.substring(0,100),f=l.substring(0,200),p=e(),m=a.img_y||a.img_x||a.preview_images?.[0]||p.logoUrl,h=a.source_username||`用户`,g=a.show_at?new Date(a.show_at.replace(/-/g,`/`)).toISOString():new Date().toISOString(),_={"@context":`https://schema.org`,author:{"@type":`Person`,name:h}},v=u?{..._,"@type":`VideoObject`,name:d,description:f,thumbnailUrl:m,uploadDate:g,duration:a.duration?`PT${Math.floor(Number(a.duration))}S`:void 0}:{..._,"@type":`Article`,headline:d,description:f,image:m,datePublished:g,dateModified:g,publisher:{"@type":`Organization`,name:p.siteName,logo:{"@type":`ImageObject`,url:`${p.siteUrl}/favicon.png`}}};return i(n,{children:[r(`h1`,{className:`sr-only`,children:f}),r(`script`,{type:`application/ld+json`,dangerouslySetInnerHTML:{__html:JSON.stringify(v)}})]})}export{a as DetailStructuredData};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
const e=`/static/components-thumb/video_player.png`,t=[{id:`tag-1`,name:`标签`,group:`类型`},{id:`tag-2`,name:`标签`,group:`类型`},{id:`tag-3`,name:`标签`,group:`类型`}],n=Array.from({length:6}).map((e,t)=>({id:`episode-${t+1}`,name:`第${t+1}集`,preview_m3u8_url:``,m3u8_url:``})),r={id:`preview-detail`,mid:`preview-detail`,name:`电影名称电影名称电影名称电影名称电影名称`,img_x:e,img_y:e,preview_images:[e],description:`简介文案,简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案简介文案。`,score:`9.6`,is_more_link:`y`,update_status:`1`,tags:t,links:n,content_type:0,play_count:123,episode_cnt:n.length,like:!1,dislike:!1,collect:!1,static:{like_cnt:0,dislike_cnt:0}};function i(e=6){let t=Math.max(1,Math.floor(e));return Array.from({length:t}).map((e,t)=>({...r,id:`preview-recommend-${t+1}`,name:`猜你喜欢 ${t+1}`,play_count:8e3+t*873}))}export{i as buildEditorPreviewRecommendList,r as editorPreviewInformation};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{getSchemaDefaultProps as e}from"../../../../../utils/schema/schema.mjs";import{generateMaterialMap as t}from"../../../../../utils/schema/utils.mjs";import{videoDetailInfoMaterial as n}from"./video-detail-info/material.mjs";import{videoDetailInfoTitleMaterial as r}from"./video-detail-info-title/material.mjs";import{videoDetailInfoTitleTagsEpisodesMaterial as i}from"./video-detail-info-title-tags-episodes/material.mjs";import{videoDetailPlayerMaterial as a}from"./video-detail-player/material.mjs";import{videoDetailRecommendMaterial as o}from"./video-detail-recommend/material.mjs";import{videoDetailActionsMaterial as s}from"./video-detail-actions/material.mjs";function c(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>typeof t==`number`&&Number.isFinite(t)?[e,String(t)]:[e,t]))}function l(t,n){let r={...e(t.propsSchema),...n??{}},i=t.propsSchema.safeParse(r);if(i.success)return{isValid:!0,props:i.data};let a=c(r),o=t.propsSchema.safeParse(a);return o.success?{isValid:!0,props:o.data}:{isValid:!1,props:r}}const u=t([a,n,r,i,s,o]);export{l as resolveMaterialProps,u as videoDetailMaterials};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{createContext as e,use as t}from"react";import{jsx as n}from"react/jsx-runtime";const r=e(void 0);function i({value:e,children:t}){return n(r.Provider,{value:e,children:t})}function a(){return t(r)}export{i as VideoDetailMaterialRuntimeProvider,a as useVideoDetailMaterialRuntimeContext};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{DetailOperate as e}from"../../detail-operate.mjs";import{editorPreviewInformation as t}from"../editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as n}from"../runtime-context-provider.mjs";import{jsx as r}from"react/jsx-runtime";function i({mode:i=`renderer`}){let a=n(),o=a?.information,s=a?.onUpdateInformation,c=i===`editor`||!o;return r(`div`,{className:c?`pointer-events-none`:void 0,children:r(e,{mode:i,information:c?t:o,onUpdate:c?e=>{}:s??(()=>{})})})}export{i as VideoDetailActionsClient};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailActionsClient as t}from"./client.mjs";import{videoDetailActionsInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailActions as r}from"./server.mjs";const i=e({type:`video-detail-actions`,name:`行为模块`,icon:`/static/components-thumb/interaction_actions_default.png`,category:`行为组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailActionsMaterial};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{SeriesEpisodes as e}from"../../../../../common/series-episodes/index.mjs";import{DetailIntroduction as t}from"../../detail-introduction.mjs";import{editorPreviewInformation as n}from"../editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as r}from"../runtime-context-provider.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o({showTags:o=!1,showEpisodes:s=!1,mode:c=`renderer`}){let l=r(),u=l?.information,d=l?.currentSeriesNum??1,f=l?.onEpisodeChange,p=l?.isShow??!0,m=c===`editor`||!u,h=m?n:u,g=Math.max(1,Number(d||1)),_=m?e=>{}:f??(()=>{}),v=h?.is_more_link===`y`&&(h?.links?.length??0)>0;return a(`div`,{className:m?`pointer-events-none`:void 0,children:[i(t,{information:h,isShow:p,showTags:o}),s&&v&&i(e,{mode:`detail`,series_num:g,information:h,onEpisodeChange:_})]})}export{o as VideoDetailInfoClient};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoClient as t}from"./client.mjs";import{videoDetailInfoInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfo as r}from"./server.mjs";const i=e({type:`video-detail-info`,name:`专辑信息样式2`,icon:`/static/components-thumb/media_info_description_episode.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoMaterial};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineComponentPropsSchema as e,defineSwitchPropSchema as t,getSchemaDefaultProps as n}from"../../../../../../utils/schema/schema.mjs";const r=e({showTags:t({label:`显示标签`,defaultValue:!1}),showEpisodes:t({label:`显示选集`,defaultValue:!1})});n(r);export{r as videoDetailInfoInspectorPropsSchema};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{Box as e}from"../../../../../ui/box.mjs";import{useCardDecoration as t}from"../../../../../../hooks/use-card-decoration.mjs";import{DetailInfoTitle as n}from"../../detail-info-title.mjs";import{editorPreviewInformation as r}from"../editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as i}from"../runtime-context-provider.mjs";import{jsx as a}from"react/jsx-runtime";function o({mode:o=`renderer`}){let s=i()?.information,c=o===`editor`||!s?r:s,{getTitleText:l}=t(),u=l(c);return u?a(e,{className:`w-full mt-[16px] px-[12px]`,children:a(n,{title:u})}):null}export{o as VideoDetailInfoTitleClient};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleClient as t}from"./client.mjs";import{videoDetailInfoTitleInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitle as r}from"./server.mjs";const i=e({type:`video-detail-info-title`,name:`专辑信息样式1`,icon:`/static/components-thumb/media_info_basic.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoTitleMaterial};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{Box as e}from"../../../../../ui/box.mjs";import{useCardDecoration as t}from"../../../../../../hooks/use-card-decoration.mjs";import{SeriesEpisodes as n}from"../../../../../common/series-episodes/index.mjs";import{DetailInfoTags as r}from"../../detail-info-tags.mjs";import{DetailInfoTitle as i}from"../../detail-info-title.mjs";import{editorPreviewInformation as a}from"../editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as o}from"../runtime-context-provider.mjs";import{jsx as s,jsxs as c}from"react/jsx-runtime";function l({showTags:l=!0,showEpisodes:u=!0,mode:d=`renderer`}){let f=o(),p=f?.information,m=f?.currentSeriesNum??1,h=f?.onEpisodeChange,g=d===`editor`||!p,_=g?a:p,v=Math.max(1,Number(m||1)),y=g?e=>{}:h??(()=>{}),{getTitleText:b}=t(),x=b(_),S=_?.is_more_link===`y`&&(_?.links?.length??0)>0,C=l&&(_.tags?.length??0)>0,w=u&&S;return!x&&!C&&!w?null:c(e,{className:`w-full mt-[16px] ${g?`pointer-events-none`:``}`,children:[c(e,{className:`px-[12px]`,children:[x&&s(i,{title:x}),C&&s(r,{tags:_.tags||[],className:`mt-[12px]`})]}),w&&s(n,{mode:`detail`,series_num:v,information:_,onEpisodeChange:y})]})}export{l as VideoDetailInfoTitleTagsEpisodesClient};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailInfoTitleTagsEpisodesClient as t}from"./client.mjs";import{videoDetailInfoTitleTagsEpisodesInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailInfoTitleTagsEpisodes as r}from"./server.mjs";const i=e({type:`video-detail-info-title-tags-episodes`,name:`专辑信息样式3`,icon:`/static/components-thumb/media_info_episode_list.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailInfoTitleTagsEpisodesMaterial};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineComponentPropsSchema as e,defineSwitchPropSchema as t,getSchemaDefaultProps as n}from"../../../../../../utils/schema/schema.mjs";const r=e({showTags:t({label:`显示标签`,defaultValue:!0}),showEpisodes:t({label:`显示选集`,defaultValue:!0})});n(r);export{r as videoDetailInfoTitleTagsEpisodesInspectorPropsSchema};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{editorPreviewInformation as e}from"../editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as t}from"../runtime-context-provider.mjs";import{DetailHero as n}from"../../video-hero.mjs";import{jsx as r}from"react/jsx-runtime";function i({mode:i=`renderer`}){let a=t(),o=a?.information,s=a?.episodeIndex??0,c=a?.resumeProgressSeconds??0,l=i===`editor`||!o,u=l?{...e,id:``,mid:``}:o;return r(`div`,{className:l?`pointer-events-none`:void 0,children:r(n,{mode:i,isVideo:!0,information:u,episodeIndex:l?0:s,resumeProgressSeconds:l?0:c})})}export{i as VideoDetailPlayerClient};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailPlayerClient as t}from"./client.mjs";import{videoDetailPlayerInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailPlayer as r}from"./server.mjs";const i=e({type:`video-detail-player`,name:`视频播放器`,icon:`/static/components-thumb/video_player.png`,category:`视频模块`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailPlayerMaterial};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{gContentGetGuessYouLikeVideos as e}from"../../../../../../service/generated/client.mjs";import{Box as t}from"../../../../../ui/box.mjs";import{Text as n}from"../../../../../ui/text.mjs";import{useRequest as r}from"../../../../../../hooks/query/use-query.mjs";import i from"../../../../../../assets/icons/detail/video_flag.mjs";import{MiniThreeCard as a}from"../../../../../common/cards/mini-three-card.mjs";import{useCardDecoration as o}from"../../../../../../hooks/use-card-decoration.mjs";import{buildEditorPreviewRecommendList as s}from"../editor-preview.mjs";import{useVideoDetailMaterialRuntimeContext as c}from"../runtime-context-provider.mjs";import{buildEpisodeLabel as l,clampColumns as u,mergeManualAndPool as d,mockPagedList as f,resolveRows as p}from"./utils.mjs";import{useEffect as m,useMemo as h,useRef as g,useState as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";function b({rows:b,columns:ne,smartTagEnabled:S,smartTagIds:C,title:re,showPlayCount:w,playCountDelta:ie,showEpisode:T,enableInfinite:E,items:D,mode:O=`renderer`}){let k=c()?.detailId||``,A=O===`editor`,j=A||!k,{getVerticalHoCoverImageUrl:M,getTitleText:N}=o(),[P,F]=_(1),I=g(null),L=h(()=>C??[],[C]),R=h(()=>D??[],[D]),z=!!E&&!A,B=p(b,z),V=u(ne),H=B*V,U=h(()=>s(H),[H]),{data:W}=r([`video-detail-recommend`,k],async()=>!k||j?null:await e(),{enabled:!j&&!!k}),G=h(()=>{if(j)return U;let e=W?.data?.videos;return Array.isArray(e)?e.map(e=>x(e)).filter(e=>!k||!e.id||e.id!==k):[]},[W?.data?.videos,k,U,j]),K=h(()=>S?new Set:new Set(R.map(e=>e.contentId)),[R,S]),q=h(()=>{if(j)return G;let e=G.filter(e=>!K.has(e.id));if(!S||L.length===0)return e;let t=new Set(L.map(String));return e.filter(e=>(Array.isArray(e.source_tags)?e.source_tags:String(e.source_tags||``).split(`,`).filter(Boolean)).some(e=>t.has(String(e?.id??e))))},[j,K,G,S,L]),J=h(()=>{if(S||!R.length)return[];let e=new Map(q.map(e=>[e.id,e]));return R.map((t,n)=>{let r=U[n%Math.max(1,U.length)],i=e.get(t.contentId)??(j?{...r,id:t.contentId||r.id||`preview-manual-${n+1}`,name:r.name||`猜你喜欢 ${n+1}`}:null);if(!i)return null;let a=t.titleMode===`custom`?t.title:N(i),o=t.coverMode===`upload`?t.coverUrl:M(i);return{info:{...i,name:a||i.name,img_y:o||i.img_y,img_x:o||i.img_x},config:{showPlayCount:t.showPlayCount,playCountDelta:t.playCountDelta,showEpisode:t.showEpisode}}}).filter(Boolean)},[U,q,N,M,j,R,S]),Y=h(()=>q.map(e=>({info:e})),[q]),X=h(()=>d(J,Y,H),[J,H,Y]),Z=h(()=>{if(!z)return X;let e=f(Y,P,H,5);return P===1?X:X.concat(e)},[X,P,H,Y,z]),Q=z&&P<5&&Y.length>0,$=String(re||``).trim();return m(()=>{z&&F(1)},[k,z]),m(()=>{if(!z)return;let e=I.current;if(!e||!Q)return;let t=new IntersectionObserver(e=>{e[0]?.isIntersecting&&F(e=>Math.min(e+1,5))});return t.observe(e),()=>{t.disconnect()}},[Q,z]),Z.length?y(t,{className:`w-full mt-[16px] ${j?`pointer-events-none`:``}`,children:[$?v(n,{className:`block pl-[12px] mb-[8px] text-text1 text-[18px] leading-[26px] font-bold`,children:$}):null,v(t,{className:`w-full flex flex-wrap px-[12px]`,children:Z.map((e,t)=>{let n=w!==!1&&(e.config?.showPlayCount??!0),r=e.config?.showEpisode??T,o=ee(e.info.play_count||0),s=l(Number(e.info.update_status)===1?`done`:`updating`,e.info.episode_cnt||e.info.links?.length,e.info.episode_cnt||e.info.links?.length),c=Number.isFinite(V)&&V>0?V:3,u=`${100/c}%`,d=t%c,f=c>1?{paddingLeft:8*d/c,paddingRight:8*(c-d-1)/c}:null;return v(a,{url:M(e.info),text:N(e.info),style:{width:u,...f||{}},bottomLeftChild:n?y(`div`,{className:`h-[20px] leading-[20px] text-[#fff] text-[12px] px-[4px] rounded-[4px] bg-[#333] ml-[4px] flex items-center`,children:[v(i,{className:`w-[16px] h-[auto] text-[#fff] mr-[4px]`}),o]}):null,bottomRightChild:r&&s?v(`div`,{className:`text-[#fff] text-[12px] leading-[20px] pr-2`,children:s}):null,linkPath:j?``:te(e.info)},`guess-like-${t}`)})}),z&&v(`div`,{ref:I,className:`h-[1px] w-full`})]}):null}function x(e){return{id:e.video_id||``,mid:``,name:e.name||``,cat_id:``,cat_name:``,status:`1`,status_text:``,create_time:``,content_type:0,episode_cnt:e.episode_count||0,show_at:e.show_at??``,position:``,img_type:e.img_type??``,img_x:e.img_x??``,img_y:e.img_y??``,img_width:``,img_height:``,play_count:e.play_count,preview_images:[],duration:String(e.duration??``),score:String(e.score??``),is_more_link:e.is_more_link?`y`:`n`,update_status:String(e.update_status??``),description:e.description??``,language:``,director:``,actor:``,area:``,issue_date:``,publisher:``,series:``,number:``,tags:[],source_tags:e.source_tags??``,source_actor:[],links:Array.isArray(e.episodes)?e.episodes.map(e=>({id:e.id??``,name:e.name??``,preview_m3u8_url:e.preview_m3u8_url??``,m3u8_url:e.m3u8_url??``})):[],money:``,up_user:``,source_username:``,task_id:``,file_status:``}}function ee(e){let t=Number(e||`0`);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function te(e){if(e.content_type===0){let t=encodeURIComponent(e.name||``);return`/video/${e.id}/${t}/episode/1`}return`/post/${e.id}`}export{b as VideoDetailRecommendClient};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import{VideoDetailRecommendClient as t}from"./client.mjs";import{videoDetailRecommendInspectorPropsSchema as n}from"./schema.mjs";import{VideoDetailRecommend as r}from"./server.mjs";const i=e({type:`video-detail-recommend`,name:`详情页-推荐模块`,icon:`/static/components-thumb/video_guess_you_like.png`,category:`详情页`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as videoDetailRecommendMaterial};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../../../utils/schema/schema.mjs";import a from"zod";const o=e({rows:t({label:`行数`,defaultValue:1}),columns:t({label:`列数`,defaultValue:2}),smartTagEnabled:n({label:`智能铺设`,defaultValue:!1}),title:r({label:`推荐位名称`,defaultValue:`猜你喜欢`}),showPlayCount:n({label:`显示播放量`,defaultValue:!0}),playCountDelta:t({label:`播放量浮动`,defaultValue:0}),showEpisode:n({label:`显示集数`,defaultValue:!0}),enableInfinite:n({label:`无限下拉`,defaultValue:!1}),smartTagIds:a.array(a.string()).optional(),items:a.array(a.object({contentId:a.string(),coverMode:a.enum([`upload`,`content`]).optional(),coverUrl:a.string().optional(),titleMode:a.enum([`custom`,`content`]).optional(),title:a.string().optional(),description:a.string().optional(),showPlayCount:a.boolean().optional(),playCountDelta:a.number().optional(),showEpisode:a.boolean().optional()})).optional()});({...i(o)});export{o as videoDetailRecommendInspectorPropsSchema};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
function e(e,t){let n=Number(e||1);if(!Number.isFinite(n))return 1;let r=Math.max(1,Math.floor(n));return t?r:Math.min(10,r)}function t(e){let t=Number(e??3);return Number.isFinite(t)?Math.min(6,Math.max(1,Math.floor(t))):3}function n(e,t,n){return e===`done`?`全${Number(t||0)}集`:e===`updating`?`更新至${Number(n||0)}`:``}function r(e,t,n){let r=Math.max(0,n),i=e.slice(0,r);return i.length>=r?i:i.concat(t.slice(0,r-i.length))}function i(e,t,n,r){if(!e.length||t<1||t>r)return[];let i=Math.max(0,n);if(!i)return[];let a=(t-1)*i%e.length,o=a+i;return o<=e.length?e.slice(a,o):e.slice(a).concat(e.slice(0,o-e.length))}export{n as buildEpisodeLabel,t as clampColumns,r as mergeManualAndPool,i as mockPagedList,e as resolveRows};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{SEO_CONFIG as e}from"./seo-config.mjs";async function t(t){return{title:e.common.title,description:e.common.description,keywords:e.common.keywords,robots:{index:e.common.index.index,follow:e.common.index.follow,googleBot:{index:e.common.index.index,follow:e.common.index.follow}}}}export{t as getGenerateSeoData};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{useFollowIdsState as e}from"../../../../store/modules/follow-ids-store.mjs";import{useUserStore as t}from"../../../../store/modules/user-store.mjs";import{checkFollowStatus as n}from"../../../../utils/follow-service.mjs";import{useKeepAliveState as r}from"../../../common/keep-scroll-position/index.mjs";import{UserActivityListItem as i}from"../../../common/list/user-activity-list/user-activity-list-item.mjs";import a from"../../../common/follow-button/index.mjs";import{useCallback as o,useEffect as s,useMemo as c,useRef as l}from"react";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useTranslations as f}from"next-intl";function p(e){let t=typeof e==`number`?e:Number(e);return Number.isFinite(t)?t:0}function m(e){return typeof e==`string`?e.trim():typeof e==`number`?String(e):``}function h(e){let t=e?.medias;return Array.isArray(t)&&t.length>0?t:(Array.isArray(e.preview_images)?e.preview_images:[]).filter(Boolean).map(e=>({media_url:e,is_video:!1,cover_image:``}))}function g({information:g,initRecommendList:_}){let v=f(`components.biz.business.detail`),{isLogin:y,userInfo:b,userId:x}=t(),S=x||b?.userId||``,[C,w]=r(`post-detail-recommend-list-${g.id}`,_),{followIds:T,setFollowIds:E}=e(),D=l(new Set),O=c(()=>{let e=new Set;for(let t of C||[]){let n=m(t.author?.user_id??t?.up_user);n&&e.add(n)}return Array.from(e)},[C]);s(()=>{if(!y||!S||!O||O.length===0)return;let e=O.filter(e=>e!==S).filter(e=>!D.current.has(e));if(e.length===0)return;let t=!0;async function r(){let r=await n({app_id:0,follower_id:S,followee_ids:e});if(!t||!r?.success)return;let i=r.data?.is_following_map||{},a=new Set(T);for(let t of e)i[t]?a.add(t):a.delete(t),D.current.add(t);E(Array.from(a))}return r(),()=>{t=!1}},[S,T,y,O,E]);let k=o((e,t)=>{e&&w(n=>{let r=n.findIndex(t=>t.id===e);if(r===-1)return n;let i=[...n];return i[r]={...i[r],...t},i})},[w]);return!C||C.length===0?null:d(`section`,{className:`w-full mt-[-40px] border-t-[8px] border-bg2 pb-[68px]`,children:[u(`div`,{className:`w-full px-[16px] h-[40px] border-b-[1px] border-line1 flex items-center`,children:u(`p`,{className:`text-[16px] text-text1 font-bold`,children:v(`postRecommendList.title`)})}),C.map((e,t)=>{let n=m(e.author?.user_id??e?.up_user),r=!!(S&&n&&S===n),o=!!(n&&T.includes(n)),s=n&&!r?u(`div`,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:u(a,{userId:n,hasFollow:o})}):null;return u(`div`,{className:`border-b border-line1`,children:u(i,{type:2,content_id:e.id,rightSlot:s,author:{user_id:n,nick_name:e.author?.nickname||e.author?.name||``,avatar:e.author?.avatar_url||e.author?.avatar||``},create_time:e.show_at,content:e.description||e.info?.text||e.name,medias:h(e),like_count:p(e?.statics_cnt?.like_cnt??e.static?.like_cnt),dislike_count:p(e?.statics_cnt?.dislike_cnt??e.static?.dislike_cnt),comment_count:p(e?.statics_cnt?.comment_cnt??e.static?.comment_cnt),is_liked:!!e.like,is_dislike:!!e.dislike,onLikeSuccess:({isLiked:t,count:n})=>{let r=!!e.dislike,i=p(e?.statics_cnt?.dislike_cnt??e.static?.dislike_cnt),a=t&&r,o=a?Math.max(0,i-1):i;k(e.id,{like:t,dislike:a?!1:e.dislike,statics_cnt:{...e.statics_cnt,like_cnt:String(n),dislike_cnt:String(o)},static:{...e.static,like_cnt:n,dislike_cnt:o}})},onDislikeSuccess:({isDisliked:t,count:n})=>{let r=!!e.like,i=p(e?.statics_cnt?.like_cnt??e.static?.like_cnt),a=t&&r,o=a?Math.max(0,i-1):i;k(e.id,{dislike:t,like:a?!1:e.like,statics_cnt:{...e.statics_cnt,like_cnt:String(o),dislike_cnt:String(n)},static:{...e.static,like_cnt:o,dislike_cnt:n}})}})},`post-recommend-${e.id||t}`)})]})}export{g as PostRecommendList};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{site as e}from"../../../../constants/site.mjs";const t={siteName:e.APP_NAME,siteUrl:e.URL,logoUrl:`${e.URL}/favicon.png`,common:{title:e.TITLE,description:e.DESCRIPTION,keywords:e.KEYWORDS,index:{index:!0,follow:!0}},category:[],urls:[]};let n=null;function r(){return n||(n=t,n)}export{t as SEO_CONFIG,r as getSeoConfig};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{pxToVw as t}from"../../../../utils/helper.mjs";import{Image as n}from"../../../ui/image.mjs";import{Box as r}from"../../../ui/box.mjs";import{Text as i}from"../../../ui/text.mjs";import{useBrowseReport as a}from"../../../../hooks/use-browse-report.mjs";import{MediaPreview as o,useMediaPreview as s}from"../../../common/media-preview/index.mjs";import c from"../../../common/video-player/index.mjs";import{UserActivityMediaGrid as l}from"../../../common/list/user-activity-list/user-activity-list-item.mjs";import{memo as u,useCallback as d,useEffect as f,useMemo as p,useRef as m}from"react";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{useTranslations as v}from"next-intl";const y=u(({mode:t=`renderer`,information:n,isVideo:a,episodeIndex:c=0,resumeProgressSeconds:u=0,className:f=``})=>{let m=t===`editor`,h=p(()=>({id:n.id,name:n.name,preview_images:n.preview_images,img_y:n.img_y,img_x:n.img_x}),[n.id,n.name,n.preview_images,n.img_y,n.img_x]),v=p(()=>{let e=n?.medias,t=Array.isArray(e)?e.filter(Boolean):[];return t.length>0?t:(h.preview_images?.length?h.preview_images:[h.img_y||h.img_x||``].filter(Boolean)).filter(Boolean).map(e=>({media_url:e,is_video:!1,cover_image:``}))},[h.img_x,h.img_y,h.preview_images,n]),y=s(),x=p(()=>v.filter(Boolean).map(e=>{let t=e?.is_video?`video`:`image`,r=String(e?.media_url||``),i=e?.cover_image||n.img_y||n.img_x;return{src:r,type:t,...i?{cover:String(i)}:{}}}).filter(e=>!!e.src),[n.img_x,n.img_y,v]),S=d(e=>{m||!x.length||y.open(x,e)},[m,y,x]);return m?g(`img`,{src:`/static/components-thumb/video_player.png`,alt:`video-preview`,className:`w-full block`}):a?g(b,{information:n,episodeIndex:c,resumeProgressSeconds:u,isEditor:m}):_(`div`,{className:e(`w-full`,f),children:[_(r,{className:`mt-3 px-[12px] space-y-1`,children:[g(i,{as:`p`,className:`break-all`,dangerouslySetInnerHTML:{__html:n.description}}),g(l,{medias:v,onItemClick:S})]}),g(o,{})]})});y.displayName=`DetailHero`;const b=u(({information:e,episodeIndex:t,resumeProgressSeconds:n,isEditor:r})=>{let i=p(()=>({id:e.id,mid:e.mid,img_width:e.img_width,img_height:e.img_height,img_y:e.img_y,img_x:e.img_x,preview_images:e.preview_images}),[e.id,e.mid,e.img_width,e.img_height,e.img_y,e.img_x,e.preview_images]);return g(x,{information:{...e,...i},episodeIndex:t,resumeProgressSeconds:n,isEditor:r})},(e,t)=>{let n=e.information,r=t.information;return n.id===r.id&&n.mid===r.mid&&n.img_width===r.img_width&&n.img_height===r.img_height&&n.img_y===r.img_y&&n.img_x===r.img_x&&e.resumeProgressSeconds===t.resumeProgressSeconds&&e.episodeIndex===t.episodeIndex&&e.isEditor===t.isEditor});b.displayName=`StableDetailPlayerBox`;function x({information:e,episodeIndex:i,resumeProgressSeconds:o,isEditor:s}){let l=v(`components.biz.business.detail`),u=m(0),y=m(0),b=Math.max(0,Number(i)||0),x=b+1,T=p(()=>e?.id,[e?.id]),E=p(()=>({id:e.id,mid:e.mid,img_width:e.img_width,img_height:e.img_height,img_y:e.img_y,img_x:e.img_x,preview_images:e.preview_images,links:e.links}),[e.id,e.mid,e.img_width,e.img_height,e.img_y,e.img_x,e.preview_images,e.links]),D=p(()=>E.mid||E.id,[E.id,E.mid]),O=p(()=>{let e=E.links?.[b]?.id;return e?String(e):`ep-${b+1}`},[b,E.links]),k=p(()=>`__reportData_detail_page__${E.id}:${O}`,[O,E.id]),A=p(()=>{if(s||typeof window>`u`)return 0;try{let e=sessionStorage.getItem(k);if(!e)return 0;let t=JSON.parse(e),n=Number(t.currentTime||0),r=Number(t.duration||0);if(!Number.isFinite(n)||!Number.isFinite(r))return 0;if(n>0&&r>0)return n}catch(e){console.error(`读取 sessionStorage 数据失败:`,e)}return 0},[s,k]),j=p(()=>{let e=Number(o||0);return Number.isFinite(e)&&e>0?e:0},[o]),M=p(()=>j>0?j:A,[j,A]),N=p(()=>{let t=w(e),n=t[t.length?Math.max(0,Math.min(b,t.length-1)):0]?.url||``,r=!!t.length;if(!r)return{hasVideo:!1,hlsList:[],videoUrl:``,width:1,height:1,resolution:`0x0`,aspectRatio:1,poster:``};let i=Number(E.img_width||0)||1,a=Number(E.img_height||0)||1;return{hasVideo:r,hlsList:t,videoUrl:n,width:i,height:a,resolution:S(i,a),aspectRatio:(i||1)/(a||1),poster:E.img_y||E.img_x||E.preview_images?.[0]||``}},[e.id,e.links,b,E.img_width,E.img_height,E.img_y,E.img_x,E.preview_images]),P=d((e,t)=>{u.current=e,y.current=t},[]),F=p(()=>N.videoUrl.endsWith(`m3u8`)?{startTimeSeconds:M,preload:`none`}:{startTimeSeconds:M},[M,N.videoUrl]);f(()=>{u.current=0,y.current=0},[T,b]);let I=a({contentId:T,browseEpisode:x,contentType:1,enabled:!s&&!!T,intervalMs:60*1e3,getCurrentTimeSeconds:()=>u.current,getDurationSeconds:()=>y.current});if(f(()=>{if(s)return;let e=()=>{if(!(typeof window>`u`)&&!(u.current<=0||y.current<=0))try{sessionStorage.setItem(k,JSON.stringify({episodeId:O,currentTime:u.current,duration:y.current}))}catch(e){console.error(`写入 sessionStorage 失败:`,e)}},t=()=>{e()},n=()=>{document.visibilityState===`hidden`&&e()},r=()=>{e()};return window.addEventListener(`beforeunload`,t),document.addEventListener(`visibilitychange`,n),window.addEventListener(`popstate`,r),()=>{window.removeEventListener(`beforeunload`,t),document.removeEventListener(`visibilitychange`,n),window.removeEventListener(`popstate`,r),e()}},[O,s,k]),!N.hasVideo)return g(`div`,{className:`mt-3 rounded-xl bg-bg1 px-3 py-10 text-center text-text3`,children:l(`videoHero.noVideos`)});let L=C(430,N.aspectRatio,242),R=L.height>0?t(L.height):`auto`,z=t(242);return _(h,{children:[g(r,{suppressHydrationWarning:!0,className:`w-full`,style:{height:R,maxWidth:`100%`,maxHeight:z}}),_(r,{className:`w-full relative bg-bg2 !fixed !top-[44px] !left-0 z-[10]`,children:[N.poster&&_(`div`,{className:`w-full h-full bg-bg2 absolute top-0 left-0 z-[1] overflow-hidden`,style:{height:R},children:[g(n,{src:N.poster,alt:l(`videoHero.coverAlt`),fill:!0,className:`object-cover`,priority:!0}),g(`div`,{className:`w-full h-full absolute top-0 left-0 z-[1] bg-[rgba(255,255,255,0.2)] backdrop-blur-[4px]`})]}),g(r,{suppressHydrationWarning:!0,"data-aspect-ratio":N.resolution,className:`w-full overflow-hidden flex justify-center relative z-[2]`,style:{height:R,maxWidth:`100%`,maxHeight:z,backdropFilter:`blur(0)`,WebkitBackdropFilter:`blur(0)`},children:g(c,{plyerId:`detail-player-${E.id}-${b}`,parentId:D,resolution:N.resolution||`0x0`,videoUrl:N.videoUrl,poster:N.poster,mergeConfig:F,onProgressUpdate:s?void 0:P,onPlay:s?void 0:I.handlePlay,onPause:s?void 0:I.handlePause,onEnded:s?void 0:I.handleEnded},`stable-player-${E.id}-${b}`)})]})]})}function S(e,t){return!e||!t?``:`${e}x${t}`}function C(e,t,n){let r=e/t;return r<=n?{width:e,height:r}:{width:n*t,height:n}}function w(e){let t=e.links||[];return t.length>0?t.map((e,t)=>({text:e.name||String(t+1),url:e.m3u8_url||e.preview_m3u8_url||``,definition:``,isDefault:t===0})).filter(e=>e.url):[]}export{y as DetailHero};
|
package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.d.mts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { homeRecommendGridInspectorDefaultProps, homeRecommendGridInspectorPropsSchema } from "./inspector-schema.mjs";
|
|
3
|
-
import { HomeRecommendGridPrefetchClient } from "./runtime/prefetch-client.mjs";
|
|
4
|
-
import { schema } from "./schema/index.mjs";
|
|
5
|
-
import { HomeRecommendGrid } from "./server.mjs";
|
|
6
|
-
import { homeRecommendGridMaterial } from "./material.mjs";
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import e from"./runtime/prefetch-client.mjs";import{homeRecommendGridInspectorDefaultProps as t,homeRecommendGridInspectorPropsSchema as n}from"./inspector-schema.mjs";import{schema as r}from"./schema/index.mjs";import{HomeRecommendGrid as i}from"./server.mjs";import{homeRecommendGridMaterial as a}from"./material.mjs";var o=e;export{o as default};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineComponentPropsSchema as e,defineNumberPropSchema as t,defineSwitchPropSchema as n,defineTextPropSchema as r,getSchemaDefaultProps as i}from"../../../../../../utils/schema/schema.mjs";import{HOME_RECOMMEND_DEFAULT_ENABLE_INFINITE as a,HOME_RECOMMEND_DEFAULT_GRID_COLUMNS as o,HOME_RECOMMEND_DEFAULT_GRID_ROWS as s,HOME_RECOMMEND_DEFAULT_PLAY_COUNT_DELTA as c,HOME_RECOMMEND_DEFAULT_SHOW_EPISODE as l,HOME_RECOMMEND_DEFAULT_SHOW_PLAY_COUNT as u,HOME_RECOMMEND_DEFAULT_SMART_TAG_ENABLED as d,HOME_RECOMMEND_DEFAULT_TITLE as f}from"../../shared/home-recommend-default-config.mjs";import p from"zod";const m=e({rows:t({label:`行数`,defaultValue:s}),columns:t({label:`列数`,defaultValue:o}),smartTagEnabled:n({label:`智能铺设`,defaultValue:d}),title:r({label:`推荐位名称`,defaultValue:f}),showPlayCount:n({label:`显示播放量`,defaultValue:u}),playCountDelta:t({label:`播放量浮动`,defaultValue:c}),showEpisode:n({label:`显示集数`,defaultValue:l}),enableInfinite:n({label:`无限下拉`,defaultValue:a,required:!1}),moreLink:r({label:`更多`,description:``,required:!1,defaultValue:``}),smartTagIds:p.array(p.string()).optional(),items:p.array(p.object({contentId:p.string(),coverMode:p.enum([`upload`,`content`]).optional(),coverUrl:p.string().optional(),badge_url:p.string().optional(),titleMode:p.enum([`custom`,`content`]).optional(),title:p.string().optional(),description:p.string().optional(),showPlayCount:p.boolean().optional(),playCountDelta:p.number().optional(),showEpisode:p.boolean().optional()})).optional()}),h={...i(m),smartTagIds:[],items:[]},g={rows:{type:`number`,title:`行数`,default:h.rows},columns:{type:`number`,title:`列数`,default:h.columns},smartTagEnabled:{type:`boolean`,title:`智能铺设`,default:h.smartTagEnabled},title:{type:`string`,title:`推荐位名称`,default:h.title},showPlayCount:{type:`boolean`,title:`显示播放量`,default:h.showPlayCount},playCountDelta:{type:`number`,title:`播放量浮动`,default:h.playCountDelta},showEpisode:{type:`boolean`,title:`显示集数`,default:h.showEpisode},enableInfinite:{type:`boolean`,title:`无限下拉`,default:h.enableInfinite},moreLink:{type:`string`,title:`更多`,description:``,default:h.moreLink},smartTagIds:{type:`array`,title:`智能铺设标签`,default:h.smartTagIds,items:{type:`string`,title:`标签 ID`}},items:{type:`array`,title:`推荐项`,default:h.items,items:{type:`object`,title:`推荐项`,properties:{contentId:{type:`string`,title:`内容 ID`},coverMode:{type:`string`,title:`封面模式`},coverUrl:{type:`string`,title:`封面地址`},badge_url:{type:`string`,title:`角标地址`},titleMode:{type:`string`,title:`标题模式`},title:{type:`string`,title:`标题`},description:{type:`string`,title:`简介`},showPlayCount:{type:`boolean`,title:`显示播放量`},playCountDelta:{type:`number`,title:`播放量浮动`},showEpisode:{type:`boolean`,title:`显示集数`}}}}};export{h as homeRecommendGridInspectorDefaultProps,m as homeRecommendGridInspectorPropsSchema,g as homeRecommendGridPropsSchema};
|
package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.mjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import{defineMaterial as e}from"../../../../../../utils/schema/material.mjs";import t from"./runtime/prefetch-client.mjs";import{homeRecommendGridInspectorPropsSchema as n}from"./inspector-schema.mjs";import{HomeRecommendGrid as r}from"./server.mjs";const i=e({type:`home-recommend-grid`,name:`两列宫格`,icon:`/static/components-thumb/grid_two_column_single_row.png`,category:`内容组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as homeRecommendGridMaterial};
|