@funhub/platform 0.1.130 → 0.1.132
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/collect_nor.mjs +1 -21
- package/dist/assets/icons/detail/collect_sel.mjs +1 -21
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/share.mjs +1 -17
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -21
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/right_arrow.mjs +1 -14
- package/dist/assets/icons/search/avatar.mjs +1 -36
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search/video.mjs +1 -27
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/marquee.mjs +1 -5
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.d.mts +12 -12
- package/dist/biz.mjs +1 -144
- package/dist/common.mjs +1 -44
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -390
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -273
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -373
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -169
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -55
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -31
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/index.d.mts +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.d.mts +2 -2
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.d.mts +2 -24
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -64
- package/dist/components/biz/business/banner/variants/basic-banner/material.d.mts +1 -18
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -126
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -122
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.d.mts +1 -21
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -21
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -85
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -22
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -190
- package/dist/components/biz/business/channel-list/client.mjs +1 -136
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -12
- package/dist/components/biz/business/channel-list/material.d.mts +1 -17
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -39
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -190
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -978
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -105
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -24
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -82
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +1 -109
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -340
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -67
- package/dist/components/biz/business/detail/shared/material-route-context.mjs +1 -44
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
- package/dist/components/biz/business/detail/shared/registry.d.mts +1 -72
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -52
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -191
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -89
- package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +1 -46
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -395
- package/dist/components/biz/business/detail/video-detail-actions/client.d.mts +2 -12
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -106
- package/dist/components/biz/business/detail/video-detail-actions/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-actions/material.d.mts +1 -12
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-actions/schema.d.mts +1 -19
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-actions/server.d.mts +2 -15
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -47
- package/dist/components/biz/business/detail/video-detail-info/client.d.mts +2 -14
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -41
- package/dist/components/biz/business/detail/video-detail-info/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info/material.d.mts +1 -14
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.d.mts +1 -22
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info/server.d.mts +2 -15
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -98
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.d.mts +2 -14
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -51
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.d.mts +1 -14
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.d.mts +1 -22
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.d.mts +2 -15
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-player/client.d.mts +2 -13
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -144
- package/dist/components/biz/business/detail/video-detail-player/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-player/material.d.mts +1 -12
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +1 -21
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-player/server.d.mts +2 -10
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.d.mts +2 -22
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -552
- package/dist/components/biz/business/detail/video-detail-recommend/index.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-recommend/material.d.mts +1 -38
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.d.mts +1 -42
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -58
- package/dist/components/biz/business/detail/video-detail-recommend/server.d.mts +2 -10
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -68
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/index.d.mts +2 -2
- package/dist/components/biz/business/floating-ball/material.d.mts +1 -14
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.d.mts +2 -15
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -22
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.d.mts +2 -13
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -29
- package/dist/components/biz/business/header-search/header-avatar-icon/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-icon/material.d.mts +1 -12
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.d.mts +1 -17
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.d.mts +2 -10
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +2 -11
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -36
- package/dist/components/biz/business/header-search/header-avatar-logo-search/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +1 -14
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +1 -22
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.d.mts +2 -10
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.d.mts +2 -11
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -45
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +1 -14
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +1 -20
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.d.mts +2 -10
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.d.mts +2 -13
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -33
- package/dist/components/biz/business/header-search/header-logo-search/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +1 -14
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +1 -22
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-logo-search/server.d.mts +2 -10
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.d.mts +2 -13
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -20
- package/dist/components/biz/business/header-search/header-search/index.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-search/material.d.mts +1 -12
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.d.mts +1 -17
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.d.mts +2 -10
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -44
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -28
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -28
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +2 -51
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -193
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +1 -41
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -49
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -44
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +2 -46
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -169
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +1 -38
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -44
- package/dist/components/biz/business/home-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -498
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -25
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -130
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -34
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -288
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -38
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -423
- package/dist/components/biz/business/image-text-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/image-text-recommend/material.d.mts +1 -33
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.d.mts +1 -30
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -117
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -32
- package/dist/components/biz/business/index.d.mts +11 -11
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -91
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -88
- package/dist/components/biz/business/large-feature-grid/material.d.mts +1 -8
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -81
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -230
- package/dist/components/biz/business/marquee/index.d.mts +2 -2
- package/dist/components/biz/business/marquee/marquee.module.mjs +25 -13
- package/dist/components/biz/business/marquee/material.d.mts +1 -32
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.d.mts +1 -29
- package/dist/components/biz/business/marquee/schema.mjs +1 -97
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -148
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -119
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/profile/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -243
- package/dist/components/biz/business/profile/profile-header/material.d.mts +2 -30
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -59
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +2 -9
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -235
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -135
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -234
- package/dist/components/biz/business/profile/profile-main/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-main/material.d.mts +1 -12
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
- package/dist/components/biz/business/profile/profile-main/schema.d.mts +2 -9
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -187
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -519
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -250
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -250
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -248
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -121
- package/dist/components/biz/business/search-history/index.d.mts +2 -2
- package/dist/components/biz/business/search-history/material.d.mts +1 -14
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.d.mts +1 -12
- package/dist/components/biz/business/search-history/schema.mjs +1 -20
- package/dist/components/biz/business/search-history/server.mjs +1 -17
- package/dist/components/biz/business/search-input/client.mjs +1 -108
- package/dist/components/biz/business/search-input/index.d.mts +2 -2
- package/dist/components/biz/business/search-input/material.d.mts +1 -12
- package/dist/components/biz/business/search-input/material.mjs +1 -18
- package/dist/components/biz/business/search-input/schema.d.mts +2 -9
- package/dist/components/biz/business/search-input/schema.mjs +1 -11
- package/dist/components/biz/business/search-input/server.mjs +1 -17
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -64
- package/dist/components/biz/business/shortcut-grid/material.d.mts +1 -20
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -70
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -102
- package/dist/components/biz/business/tab-bar/index.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/material.d.mts +1 -12
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.d.mts +2 -9
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -11
- package/dist/components/biz/business/tab-bar/server.mjs +1 -17
- package/dist/components/biz/business/text-recommend/client.mjs +1 -69
- package/dist/components/biz/business/text-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/text-recommend/material.d.mts +1 -17
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.d.mts +1 -14
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -28
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/index.d.mts +2 -2
- package/dist/components/biz/example/button/material.d.mts +1 -22
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.d.mts +2 -29
- package/dist/components/biz/example/button/schema.mjs +1 -47
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -71
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/collection-create-modal.mjs +1 -130
- package/dist/components/common/collection-popup/index.mjs +1 -292
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -23
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -85
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -45
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop/image-crop.mjs +1 -182
- package/dist/components/common/image-crop/show-image-crop.mjs +1 -102
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -70
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -93
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -21
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -468
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -139
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -104
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -29
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.d.mts +1 -0
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -320
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -96
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.d.mts +2 -0
- package/dist/components/common/photo-preview/index.mjs +1 -63
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -76
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -555
- package/dist/components/common/share-popup/share-content.mjs +1 -155
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -326
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
- package/dist/components/common/skeleton/search-video-card-skeleton.mjs +2 -0
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
- package/dist/components/common/tab-bar/index.mjs +1 -120
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -63
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -710
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -282
- package/dist/components/common/video-player/style.module.mjs +257 -7
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -43
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -161
- package/dist/components/pages/collection-create/form.mjs +1 -163
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/detail.mjs +1 -538
- package/dist/components/pages/collection-detail/index.mjs +1 -10
- package/dist/components/pages/collection-detail/page.mjs +1 -18
- package/dist/components/pages/edit/index.mjs +1 -10
- package/dist/components/pages/edit/page.mjs +1 -655
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -382
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -256
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -104
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -155
- package/dist/components/pages/home/index.mjs +1 -56
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -37
- package/dist/components/pages/login/forgot.mjs +1 -130
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -214
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -189
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/verify.mjs +3 -212
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -185
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -159
- package/dist/components/pages/search/search-result/index.mjs +1 -22
- package/dist/components/pages/search/search-result/search-all.mjs +1 -223
- package/dist/components/pages/search/search-result/search-user.mjs +1 -203
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -324
- package/dist/components/pages/search/search-utils.mjs +1 -48
- package/dist/components/pages/search/style.module.mjs +113 -13
- package/dist/components/pages/search/top-header.mjs +1 -91
- package/dist/components/pages/search-result/page-client.mjs +1 -117
- package/dist/components/pages/search-result/search-all.mjs +1 -82
- package/dist/components/pages/search-result/search-result-skeleton.mjs +1 -22
- package/dist/components/pages/search-result/search-tab.mjs +1 -89
- package/dist/components/pages/search-result/search-user.mjs +1 -253
- package/dist/components/pages/search-result/search-video.mjs +1 -226
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +4 -256
- package/dist/components/pages/settings/_components/settings.mjs +1 -183
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -357
- package/dist/components/pages/video-list/index.mjs +1 -59
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -106
- package/dist/components/pages/video-list/video-list-item.mjs +1 -92
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -62
- package/dist/components/ui/accordion.mjs +1 -62
- package/dist/components/ui/alert-dialog.mjs +1 -114
- package/dist/components/ui/alert.mjs +1 -50
- package/dist/components/ui/aspect-ratio.mjs +1 -17
- package/dist/components/ui/avatar.mjs +1 -106
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.d.mts +1 -1
- package/dist/components/ui/button-group.mjs +1 -49
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.mjs +1 -50
- package/dist/components/ui/card.mjs +1 -65
- package/dist/components/ui/carousel.mjs +1 -142
- package/dist/components/ui/checkbox.mjs +1 -25
- package/dist/components/ui/collapsible.mjs +1 -31
- package/dist/components/ui/combobox.mjs +1 -185
- package/dist/components/ui/context-menu.mjs +1 -150
- package/dist/components/ui/dialog.mjs +1 -109
- package/dist/components/ui/drawer.mjs +1 -91
- package/dist/components/ui/dropdown-menu.mjs +1 -154
- package/dist/components/ui/empty-icons.mjs +7 -96
- package/dist/components/ui/empty.mjs +1 -95
- package/dist/components/ui/field.d.mts +1 -1
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/components/ui/image.mjs +1 -257
- package/dist/components/ui/infinite-scroll.mjs +1 -168
- package/dist/components/ui/input-group.mjs +1 -90
- package/dist/components/ui/input.mjs +1 -19
- package/dist/components/ui/item.mjs +1 -137
- package/dist/components/ui/kbd.mjs +1 -24
- package/dist/components/ui/label.mjs +1 -18
- package/dist/components/ui/legacy/badge.mjs +1 -80
- package/dist/components/ui/legacy/button.mjs +1 -55
- package/dist/components/ui/legacy/input.mjs +1 -22
- package/dist/components/ui/legacy/popover.mjs +1 -69
- package/dist/components/ui/link.mjs +1 -32
- package/dist/components/ui/list.mjs +5 -221
- package/dist/components/ui/loading.mjs +1 -44
- package/dist/components/ui/mask.mjs +1 -17
- package/dist/components/ui/menubar.mjs +1 -154
- package/dist/components/ui/native-select.mjs +1 -43
- package/dist/components/ui/pagination.mjs +1 -90
- package/dist/components/ui/popover.mjs +1 -73
- package/dist/components/ui/popup.mjs +1 -44
- package/dist/components/ui/progress.mjs +1 -53
- package/dist/components/ui/radio-group.mjs +1 -34
- package/dist/components/ui/rate.mjs +1 -69
- package/dist/components/ui/scroll-area.mjs +1 -43
- package/dist/components/ui/select.mjs +1 -113
- package/dist/components/ui/separator.mjs +1 -20
- package/dist/components/ui/sheet.mjs +1 -109
- package/dist/components/ui/skeleton.mjs +1 -16
- package/dist/components/ui/slider.mjs +1 -46
- package/dist/components/ui/sonner.mjs +1 -34
- package/dist/components/ui/spinner.mjs +1 -18
- package/dist/components/ui/switch.mjs +1 -65
- package/dist/components/ui/table.mjs +1 -78
- package/dist/components/ui/tabs.mjs +1 -54
- package/dist/components/ui/text.mjs +1 -20
- package/dist/components/ui/textarea.mjs +1 -16
- package/dist/components/ui/time.mjs +1 -91
- package/dist/components/ui/toggle-group.mjs +1 -59
- package/dist/components/ui/toggle.mjs +1 -41
- package/dist/components/ui/tooltip.mjs +1 -49
- package/dist/components/ui/wheel-picker.mjs +1 -28
- package/dist/constants/event-key.mjs +1 -18
- package/dist/constants/query-key.mjs +1 -32
- package/dist/constants/revalidate.mjs +1 -9
- package/dist/constants/site.mjs +1 -11
- package/dist/constants/url-prefix.mjs +1 -11
- package/dist/hooks/image-text-recommend.mjs +1 -71
- package/dist/hooks/query/hydration-boundary.mjs +1 -34
- package/dist/hooks/query/use-query.mjs +1 -114
- package/dist/hooks/use-auth.mjs +1 -198
- package/dist/hooks/use-browse-report.mjs +1 -466
- package/dist/hooks/use-card-decoration.mjs +1 -92
- package/dist/hooks/use-content-operate.mjs +1 -525
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-search-history.mjs +1 -53
- package/dist/hooks/use-sticky.mjs +1 -50
- package/dist/hooks.mjs +1 -14
- package/dist/i18n/locales/en.mjs +3 -820
- package/dist/i18n/locales/zh-CN.mjs +3 -820
- package/dist/i18n/messages.mjs +1 -20
- package/dist/i18n/translator.mjs +1 -38
- package/dist/i18n.mjs +1 -165
- package/dist/materials.mjs +1 -61
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
- package/dist/pages.mjs +1 -23
- package/dist/seo/build-metadata.mjs +1 -163
- package/dist/seo/config/index.mjs +1 -22
- package/dist/seo/config/page.mjs +6 -301
- package/dist/seo/config/site.mjs +1 -25
- package/dist/seo/constants.mjs +1 -31
- package/dist/seo/helpers.mjs +1 -120
- package/dist/seo/resource-hints.mjs +1 -60
- package/dist/seo/robots.mjs +1 -36
- package/dist/seo/sitemap.mjs +1 -44
- package/dist/seo/structured-data/article.mjs +1 -51
- package/dist/seo/structured-data/common.mjs +1 -60
- package/dist/seo/structured-data/video.mjs +1 -41
- package/dist/seo/viewport.mjs +1 -31
- package/dist/seo.mjs +1 -15
- package/dist/service/generated/client.mjs +1 -1138
- package/dist/service/generated/tanstack.mjs +1 -1049
- package/dist/service/register-by-verify-email-code.d.mts +15 -0
- package/dist/service/register-by-verify-email-code.mjs +2 -0
- package/dist/service.d.mts +2 -1
- package/dist/service.mjs +1 -4
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -155
- package/dist/store/modules/media-preview-store.mjs +1 -54
- package/dist/store/modules/publish-store.mjs +1 -31
- package/dist/store/modules/use-demo-store.mjs +1 -17
- package/dist/store/modules/user-store.mjs +1 -113
- package/dist/store.mjs +1 -10
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -57
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -296
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -325
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -33
- package/dist/utils/http.mjs +1 -194
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -110
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/login-modal-bridge.mjs +1 -65
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -147
- package/dist/utils/schema/utils.mjs +1 -27
- package/dist/utils/share-manager.mjs +1 -183
- package/dist/utils/tools.mjs +1 -105
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils.mjs +1 -21
- package/package.json +1 -1
- package/dist/components/biz/business/banner-carousel/schema.d.mts +0 -28
- package/dist/components/biz/business/banner-carousel/server.d.mts +0 -18
- package/dist/components/biz/business/channel-list/client.d.mts +0 -8
- package/dist/components/biz/business/channel-list/schema.d.mts +0 -30
- package/dist/components/biz/business/shortcut-grid/client.d.mts +0 -12
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +0 -26
- package/dist/components/biz/business/shortcut-grid/server.d.mts +0 -11
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { PostApiUserVerifyEmailCodeReqBody, PostApiUserVerifyEmailCodeRes } from "../types.mjs";
|
|
3
|
+
import { RequestConfig, ResponseData } from "../utils/http.mjs";
|
|
4
|
+
|
|
5
|
+
//#region service/register-by-verify-email-code.d.ts
|
|
6
|
+
type ExtraRequestConfig = Omit<RequestConfig, 'url' | 'method' | 'params' | 'data'>;
|
|
7
|
+
type RegisterByVerifyEmailCodeReqBody = PostApiUserVerifyEmailCodeReqBody & {
|
|
8
|
+
user_id?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 注册验证码校验并进入下一步。
|
|
12
|
+
*/
|
|
13
|
+
declare function pUserRegisterByVerifyEmailCode(data: RegisterByVerifyEmailCodeReqBody, config?: ExtraRequestConfig): Promise<ResponseData<PostApiUserVerifyEmailCodeRes>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { pUserRegisterByVerifyEmailCode };
|
package/dist/service.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannels, gContentGetAppComponent, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentListVisibleFloatingBall, gContentProcessM3u8, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserViewUserInfo, pCommunityAddContentToCollection, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentBatchGetVideoDetail, pContentGetNewstVideoList, pContentGetPopularVideoList, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetFollowStats, pInteractionBatchGetLikeStatus, pInteractionBatchQueryContentInteractions, pInteractionBrowse, pInteractionCancelDislike, pInteractionCancelLike, pInteractionCheckCollect, pInteractionCheckFollow, pInteractionClearBrowseHistory, pInteractionCreateFolder, pInteractionDeleteBrowseRecord, pInteractionDeleteFolder, pInteractionDislike, pInteractionDislikeComment, pInteractionFollow, pInteractionLike, pInteractionLikeComment, pInteractionMoveCollects, pInteractionRemoveCollect, pInteractionTrackEventsBatch, pInteractionUnfollow, pInteractionUnifiedBatchLikeDislike, pInteractionUpdateFolder, pInteractionUpdateFollowingContentUpdateTime, pUserEditUserInfo, pUserLogin, pUserRegister, pUserResetForgetPassword, pUserResetPassword, pUserSendEmailCode, pUserSendForgetEmailCode, pUserSendResetPasswordEmailCode, pUserUploadUserBgImage, pUserUserFeedback, pUserUserPrivacySettings, pUserVerifyEmailCode, pUserVerifyForgetEmailCode, pUserVerifyResetPasswordEmailCode } from "./service/generated/client.mjs";
|
|
3
3
|
import { createQueryKey, gCommunityGetCollectionInfoKey, gCommunityGetCommentsKey, gCommunityGetContentInfoKey, gCommunityGetContentListKey, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannelsKey, gContentGetAppComponentKey, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoListKey, gContentGetRecommendSearchListKey, gContentGetRecommendVideoListKey, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBallKey, gContentProcessM3u8Key, gInteractionCheckMutualFollowKey, gInteractionGetBrowseListKey, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeListKey, gInteractionGetDislikeListKey, gInteractionGetFolderKey, gInteractionGetFolderStatsKey, gInteractionGetFollowStatsKey, gInteractionGetFollowerListKey, gInteractionGetFollowingContentListKey, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeListKey, gInteractionListCollectsKey, gInteractionListFoldersKey, gUserGetGuestIdentityKey, gUserGetUserEditInfoKey, gUserGetUserInfoKey, gUserGetUserPrivacySettingsKey, gUserViewUserInfoKey, pCommunityAddContentToCollectionKey, pCommunityCreateCollectionKey, pCommunityCreateCommentKey, pCommunityDeleteCollectionKey, pCommunityDeleteCommentKey, pCommunityDeleteContentKey, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURLKey, pCommunityLikeCommentKey, pCommunityMoveCollectionContentKey, pCommunityPublishContentKey, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContentKey, pCommunitySubscribeCollectionKey, pCommunityUpdateCollectionKey, pCommunityUpdateContentKey, pCommunityUploadMediaKey, pContentBatchGetVideoDetailKey, pContentGetNewstVideoListKey, pContentGetPopularVideoListKey, pInteractionAddCollectKey, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowseKey, pInteractionCancelDislikeKey, pInteractionCancelLikeKey, pInteractionCheckCollectKey, pInteractionCheckFollowKey, pInteractionClearBrowseHistoryKey, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolderKey, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollowKey, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollectsKey, pInteractionRemoveCollectKey, pInteractionTrackEventsBatchKey, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfoKey, pUserLoginKey, pUserRegisterKey, pUserResetForgetPasswordKey, pUserResetPasswordKey, pUserSendEmailCodeKey, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImageKey, pUserUserFeedbackKey, pUserUserPrivacySettingsKey, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCodeKey } from "./service/generated/tanstack.mjs";
|
|
4
|
-
|
|
4
|
+
import { pUserRegisterByVerifyEmailCode } from "./service/register-by-verify-email-code.mjs";
|
|
5
|
+
export { createQueryKey, gCommunityGetCollectionInfo, gCommunityGetCollectionInfoKey, gCommunityGetComments, gCommunityGetCommentsKey, gCommunityGetContentInfo, gCommunityGetContentInfoKey, gCommunityGetContentList, gCommunityGetContentListKey, gCommunityGetHotContentList, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollections, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollections, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCode, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannels, gContentGetAppChannelsKey, gContentGetAppComponent, gContentGetAppComponentKey, gContentGetGuessYouLikeVideos, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoList, gContentGetHotVideoListKey, gContentGetRecommendSearchList, gContentGetRecommendSearchListKey, gContentGetRecommendVideoList, gContentGetRecommendVideoListKey, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBall, gContentListVisibleFloatingBallKey, gContentProcessM3u8, gContentProcessM3u8Key, gInteractionCheckMutualFollow, gInteractionCheckMutualFollowKey, gInteractionGetBrowseList, gInteractionGetBrowseListKey, gInteractionGetContentDislikeList, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeList, gInteractionGetContentLikeListKey, gInteractionGetDislikeList, gInteractionGetDislikeListKey, gInteractionGetFolder, gInteractionGetFolderKey, gInteractionGetFolderStats, gInteractionGetFolderStatsKey, gInteractionGetFollowStats, gInteractionGetFollowStatsKey, gInteractionGetFollowerList, gInteractionGetFollowerListKey, gInteractionGetFollowingContentList, gInteractionGetFollowingContentListKey, gInteractionGetFollowingList, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdates, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeList, gInteractionGetLikeListKey, gInteractionListCollects, gInteractionListCollectsKey, gInteractionListFolders, gInteractionListFoldersKey, gUserGetGuestIdentity, gUserGetGuestIdentityKey, gUserGetUserEditInfo, gUserGetUserEditInfoKey, gUserGetUserInfo, gUserGetUserInfoKey, gUserGetUserPrivacySettings, gUserGetUserPrivacySettingsKey, gUserViewUserInfo, gUserViewUserInfoKey, pCommunityAddContentToCollection, pCommunityAddContentToCollectionKey, pCommunityCreateCollection, pCommunityCreateCollectionKey, pCommunityCreateComment, pCommunityCreateCommentKey, pCommunityDeleteCollection, pCommunityDeleteCollectionKey, pCommunityDeleteComment, pCommunityDeleteCommentKey, pCommunityDeleteContent, pCommunityDeleteContentKey, pCommunityDislikeComment, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURL, pCommunityGetUploadPresignedURLKey, pCommunityLikeComment, pCommunityLikeCommentKey, pCommunityMoveCollectionContent, pCommunityMoveCollectionContentKey, pCommunityPublishContent, pCommunityPublishContentKey, pCommunityRemoveContentFromCollection, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfo, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContent, pCommunityShareContentKey, pCommunitySubscribeCollection, pCommunitySubscribeCollectionKey, pCommunityUpdateCollection, pCommunityUpdateCollectionKey, pCommunityUpdateContent, pCommunityUpdateContentKey, pCommunityUploadMedia, pCommunityUploadMediaKey, pContentBatchGetVideoDetail, pContentBatchGetVideoDetailKey, pContentGetNewstVideoList, pContentGetNewstVideoListKey, pContentGetPopularVideoList, pContentGetPopularVideoListKey, pInteractionAddCollect, pInteractionAddCollectKey, pInteractionBatchClearBrowse, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollects, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStats, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatus, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractions, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowse, pInteractionBrowseKey, pInteractionCancelDislike, pInteractionCancelDislikeKey, pInteractionCancelLike, pInteractionCancelLikeKey, pInteractionCheckCollect, pInteractionCheckCollectKey, pInteractionCheckFollow, pInteractionCheckFollowKey, pInteractionClearBrowseHistory, pInteractionClearBrowseHistoryKey, pInteractionCreateFolder, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecord, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolder, pInteractionDeleteFolderKey, pInteractionDislike, pInteractionDislikeComment, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollow, pInteractionFollowKey, pInteractionLike, pInteractionLikeComment, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollects, pInteractionMoveCollectsKey, pInteractionRemoveCollect, pInteractionRemoveCollectKey, pInteractionTrackEventsBatch, pInteractionTrackEventsBatchKey, pInteractionUnfollow, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislike, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolder, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTime, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfo, pUserEditUserInfoKey, pUserLogin, pUserLoginKey, pUserRegister, pUserRegisterByVerifyEmailCode, pUserRegisterKey, pUserResetForgetPassword, pUserResetForgetPasswordKey, pUserResetPassword, pUserResetPasswordKey, pUserSendEmailCode, pUserSendEmailCodeKey, pUserSendForgetEmailCode, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCode, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImage, pUserUploadUserBgImageKey, pUserUserFeedback, pUserUserFeedbackKey, pUserUserPrivacySettings, pUserUserPrivacySettingsKey, pUserVerifyEmailCode, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCode, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCode, pUserVerifyResetPasswordEmailCodeKey };
|
package/dist/service.mjs
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import { gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannels, gContentGetAppComponent, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentListVisibleFloatingBall, gContentProcessM3u8, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserViewUserInfo, pCommunityAddContentToCollection, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentBatchGetVideoDetail, pContentGetNewstVideoList, pContentGetPopularVideoList, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetFollowStats, pInteractionBatchGetLikeStatus, pInteractionBatchQueryContentInteractions, pInteractionBrowse, pInteractionCancelDislike, pInteractionCancelLike, pInteractionCheckCollect, pInteractionCheckFollow, pInteractionClearBrowseHistory, pInteractionCreateFolder, pInteractionDeleteBrowseRecord, pInteractionDeleteFolder, pInteractionDislike, pInteractionDislikeComment, pInteractionFollow, pInteractionLike, pInteractionLikeComment, pInteractionMoveCollects, pInteractionRemoveCollect, pInteractionTrackEventsBatch, pInteractionUnfollow, pInteractionUnifiedBatchLikeDislike, pInteractionUpdateFolder, pInteractionUpdateFollowingContentUpdateTime, pUserEditUserInfo, pUserLogin, pUserRegister, pUserResetForgetPassword, pUserResetPassword, pUserSendEmailCode, pUserSendForgetEmailCode, pUserSendResetPasswordEmailCode, pUserUploadUserBgImage, pUserUserFeedback, pUserUserPrivacySettings, pUserVerifyEmailCode, pUserVerifyForgetEmailCode, pUserVerifyResetPasswordEmailCode } from "./service/generated/client.mjs";
|
|
3
|
-
import { createQueryKey, gCommunityGetCollectionInfoKey, gCommunityGetCommentsKey, gCommunityGetContentInfoKey, gCommunityGetContentListKey, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannelsKey, gContentGetAppComponentKey, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoListKey, gContentGetRecommendSearchListKey, gContentGetRecommendVideoListKey, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBallKey, gContentProcessM3u8Key, gInteractionCheckMutualFollowKey, gInteractionGetBrowseListKey, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeListKey, gInteractionGetDislikeListKey, gInteractionGetFolderKey, gInteractionGetFolderStatsKey, gInteractionGetFollowStatsKey, gInteractionGetFollowerListKey, gInteractionGetFollowingContentListKey, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeListKey, gInteractionListCollectsKey, gInteractionListFoldersKey, gUserGetGuestIdentityKey, gUserGetUserEditInfoKey, gUserGetUserInfoKey, gUserGetUserPrivacySettingsKey, gUserViewUserInfoKey, pCommunityAddContentToCollectionKey, pCommunityCreateCollectionKey, pCommunityCreateCommentKey, pCommunityDeleteCollectionKey, pCommunityDeleteCommentKey, pCommunityDeleteContentKey, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURLKey, pCommunityLikeCommentKey, pCommunityMoveCollectionContentKey, pCommunityPublishContentKey, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContentKey, pCommunitySubscribeCollectionKey, pCommunityUpdateCollectionKey, pCommunityUpdateContentKey, pCommunityUploadMediaKey, pContentBatchGetVideoDetailKey, pContentGetNewstVideoListKey, pContentGetPopularVideoListKey, pInteractionAddCollectKey, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowseKey, pInteractionCancelDislikeKey, pInteractionCancelLikeKey, pInteractionCheckCollectKey, pInteractionCheckFollowKey, pInteractionClearBrowseHistoryKey, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolderKey, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollowKey, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollectsKey, pInteractionRemoveCollectKey, pInteractionTrackEventsBatchKey, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfoKey, pUserLoginKey, pUserRegisterKey, pUserResetForgetPasswordKey, pUserResetPasswordKey, pUserSendEmailCodeKey, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImageKey, pUserUserFeedbackKey, pUserUserPrivacySettingsKey, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCodeKey } from "./service/generated/tanstack.mjs";
|
|
4
|
-
|
|
5
|
-
export { createQueryKey, gCommunityGetCollectionInfo, gCommunityGetCollectionInfoKey, gCommunityGetComments, gCommunityGetCommentsKey, gCommunityGetContentInfo, gCommunityGetContentInfoKey, gCommunityGetContentList, gCommunityGetContentListKey, gCommunityGetHotContentList, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollections, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollections, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCode, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannels, gContentGetAppChannelsKey, gContentGetAppComponent, gContentGetAppComponentKey, gContentGetGuessYouLikeVideos, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoList, gContentGetHotVideoListKey, gContentGetRecommendSearchList, gContentGetRecommendSearchListKey, gContentGetRecommendVideoList, gContentGetRecommendVideoListKey, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBall, gContentListVisibleFloatingBallKey, gContentProcessM3u8, gContentProcessM3u8Key, gInteractionCheckMutualFollow, gInteractionCheckMutualFollowKey, gInteractionGetBrowseList, gInteractionGetBrowseListKey, gInteractionGetContentDislikeList, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeList, gInteractionGetContentLikeListKey, gInteractionGetDislikeList, gInteractionGetDislikeListKey, gInteractionGetFolder, gInteractionGetFolderKey, gInteractionGetFolderStats, gInteractionGetFolderStatsKey, gInteractionGetFollowStats, gInteractionGetFollowStatsKey, gInteractionGetFollowerList, gInteractionGetFollowerListKey, gInteractionGetFollowingContentList, gInteractionGetFollowingContentListKey, gInteractionGetFollowingList, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdates, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeList, gInteractionGetLikeListKey, gInteractionListCollects, gInteractionListCollectsKey, gInteractionListFolders, gInteractionListFoldersKey, gUserGetGuestIdentity, gUserGetGuestIdentityKey, gUserGetUserEditInfo, gUserGetUserEditInfoKey, gUserGetUserInfo, gUserGetUserInfoKey, gUserGetUserPrivacySettings, gUserGetUserPrivacySettingsKey, gUserViewUserInfo, gUserViewUserInfoKey, pCommunityAddContentToCollection, pCommunityAddContentToCollectionKey, pCommunityCreateCollection, pCommunityCreateCollectionKey, pCommunityCreateComment, pCommunityCreateCommentKey, pCommunityDeleteCollection, pCommunityDeleteCollectionKey, pCommunityDeleteComment, pCommunityDeleteCommentKey, pCommunityDeleteContent, pCommunityDeleteContentKey, pCommunityDislikeComment, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURL, pCommunityGetUploadPresignedURLKey, pCommunityLikeComment, pCommunityLikeCommentKey, pCommunityMoveCollectionContent, pCommunityMoveCollectionContentKey, pCommunityPublishContent, pCommunityPublishContentKey, pCommunityRemoveContentFromCollection, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfo, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContent, pCommunityShareContentKey, pCommunitySubscribeCollection, pCommunitySubscribeCollectionKey, pCommunityUpdateCollection, pCommunityUpdateCollectionKey, pCommunityUpdateContent, pCommunityUpdateContentKey, pCommunityUploadMedia, pCommunityUploadMediaKey, pContentBatchGetVideoDetail, pContentBatchGetVideoDetailKey, pContentGetNewstVideoList, pContentGetNewstVideoListKey, pContentGetPopularVideoList, pContentGetPopularVideoListKey, pInteractionAddCollect, pInteractionAddCollectKey, pInteractionBatchClearBrowse, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollects, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStats, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatus, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractions, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowse, pInteractionBrowseKey, pInteractionCancelDislike, pInteractionCancelDislikeKey, pInteractionCancelLike, pInteractionCancelLikeKey, pInteractionCheckCollect, pInteractionCheckCollectKey, pInteractionCheckFollow, pInteractionCheckFollowKey, pInteractionClearBrowseHistory, pInteractionClearBrowseHistoryKey, pInteractionCreateFolder, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecord, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolder, pInteractionDeleteFolderKey, pInteractionDislike, pInteractionDislikeComment, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollow, pInteractionFollowKey, pInteractionLike, pInteractionLikeComment, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollects, pInteractionMoveCollectsKey, pInteractionRemoveCollect, pInteractionRemoveCollectKey, pInteractionTrackEventsBatch, pInteractionTrackEventsBatchKey, pInteractionUnfollow, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislike, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolder, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTime, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfo, pUserEditUserInfoKey, pUserLogin, pUserLoginKey, pUserRegister, pUserRegisterKey, pUserResetForgetPassword, pUserResetForgetPasswordKey, pUserResetPassword, pUserResetPasswordKey, pUserSendEmailCode, pUserSendEmailCodeKey, pUserSendForgetEmailCode, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCode, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImage, pUserUploadUserBgImageKey, pUserUserFeedback, pUserUserFeedbackKey, pUserUserPrivacySettings, pUserUserPrivacySettingsKey, pUserVerifyEmailCode, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCode, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCode, pUserVerifyResetPasswordEmailCodeKey };
|
|
2
|
+
import{gCommunityGetCollectionInfo as e,gCommunityGetComments as t,gCommunityGetContentInfo as n,gCommunityGetContentList as r,gCommunityGetHotContentList as i,gCommunityGetSubscribedCollections as a,gCommunityGetUserCollections as o,gContentGetAdvertiseByCode as s,gContentGetAppChannelBlock as c,gContentGetAppChannelBlockData as l,gContentGetAppChannels as u,gContentGetAppComponent as d,gContentGetGuessYouLikeVideos as f,gContentGetHotVideoList as p,gContentGetRecommendSearchList as m,gContentGetRecommendVideoList as h,gContentGetVideoDetail as g,gContentGetVideoDetailByApi as _,gContentListVisibleFloatingBall as v,gContentProcessM3u8 as y,gInteractionCheckMutualFollow as b,gInteractionGetBrowseList as x,gInteractionGetContentDislikeList as S,gInteractionGetContentLikeList as C,gInteractionGetDislikeList as w,gInteractionGetFolder as T,gInteractionGetFolderStats as E,gInteractionGetFollowStats as D,gInteractionGetFollowerList as O,gInteractionGetFollowingContentList as k,gInteractionGetFollowingList as A,gInteractionGetFollowingUserUpdates as j,gInteractionGetLikeList as M,gInteractionListCollects as N,gInteractionListFolders as P,gUserGetGuestIdentity as F,gUserGetUserEditInfo as I,gUserGetUserInfo as L,gUserGetUserPrivacySettings as R,gUserViewUserInfo as z,pCommunityAddContentToCollection as B,pCommunityCreateCollection as V,pCommunityCreateComment as H,pCommunityDeleteCollection as U,pCommunityDeleteComment as W,pCommunityDeleteContent as G,pCommunityDislikeComment as K,pCommunityGetUploadPresignedURL as q,pCommunityLikeComment as J,pCommunityMoveCollectionContent as Y,pCommunityPublishContent as X,pCommunityRemoveContentFromCollection as Z,pCommunitySearchCurAccountFollowingUsersInfo as Q,pCommunityShareContent as $,pCommunitySubscribeCollection as ee,pCommunityUpdateCollection as te,pCommunityUpdateContent as ne,pCommunityUploadMedia as re,pContentBatchGetVideoDetail as ie,pContentGetNewstVideoList as ae,pContentGetPopularVideoList as oe,pInteractionAddCollect as se,pInteractionBatchClearBrowse as ce,pInteractionBatchDeleteCollects as le,pInteractionBatchGetCommentLikeStatus as ue,pInteractionBatchGetFollowStats as de,pInteractionBatchGetLikeStatus as fe,pInteractionBatchQueryContentInteractions as pe,pInteractionBrowse as me,pInteractionCancelDislike as he,pInteractionCancelLike as ge,pInteractionCheckCollect as _e,pInteractionCheckFollow as ve,pInteractionClearBrowseHistory as ye,pInteractionCreateFolder as be,pInteractionDeleteBrowseRecord as xe,pInteractionDeleteFolder as Se,pInteractionDislike as Ce,pInteractionDislikeComment as we,pInteractionFollow as Te,pInteractionLike as Ee,pInteractionLikeComment as De,pInteractionMoveCollects as Oe,pInteractionRemoveCollect as ke,pInteractionTrackEventsBatch as Ae,pInteractionUnfollow as je,pInteractionUnifiedBatchLikeDislike as Me,pInteractionUpdateFolder as Ne,pInteractionUpdateFollowingContentUpdateTime as Pe,pUserEditUserInfo as Fe,pUserLogin as Ie,pUserRegister as Le,pUserResetForgetPassword as Re,pUserResetPassword as ze,pUserSendEmailCode as Be,pUserSendForgetEmailCode as Ve,pUserSendResetPasswordEmailCode as He,pUserUploadUserBgImage as Ue,pUserUserFeedback as We,pUserUserPrivacySettings as Ge,pUserVerifyEmailCode as Ke,pUserVerifyForgetEmailCode as qe,pUserVerifyResetPasswordEmailCode as Je}from"./service/generated/client.mjs";import{createQueryKey as Ye,gCommunityGetCollectionInfoKey as Xe,gCommunityGetCommentsKey as Ze,gCommunityGetContentInfoKey as Qe,gCommunityGetContentListKey as $e,gCommunityGetHotContentListKey as et,gCommunityGetSubscribedCollectionsKey as tt,gCommunityGetUserCollectionsKey as nt,gContentGetAdvertiseByCodeKey as rt,gContentGetAppChannelBlockDataKey as it,gContentGetAppChannelBlockKey as at,gContentGetAppChannelsKey as ot,gContentGetAppComponentKey as st,gContentGetGuessYouLikeVideosKey as ct,gContentGetHotVideoListKey as lt,gContentGetRecommendSearchListKey as ut,gContentGetRecommendVideoListKey as dt,gContentGetVideoDetailByApiKey as ft,gContentGetVideoDetailKey as pt,gContentListVisibleFloatingBallKey as mt,gContentProcessM3u8Key as ht,gInteractionCheckMutualFollowKey as gt,gInteractionGetBrowseListKey as _t,gInteractionGetContentDislikeListKey as vt,gInteractionGetContentLikeListKey as yt,gInteractionGetDislikeListKey as bt,gInteractionGetFolderKey as xt,gInteractionGetFolderStatsKey as St,gInteractionGetFollowStatsKey as Ct,gInteractionGetFollowerListKey as wt,gInteractionGetFollowingContentListKey as Tt,gInteractionGetFollowingListKey as Et,gInteractionGetFollowingUserUpdatesKey as Dt,gInteractionGetLikeListKey as Ot,gInteractionListCollectsKey as kt,gInteractionListFoldersKey as At,gUserGetGuestIdentityKey as jt,gUserGetUserEditInfoKey as Mt,gUserGetUserInfoKey as Nt,gUserGetUserPrivacySettingsKey as Pt,gUserViewUserInfoKey as Ft,pCommunityAddContentToCollectionKey as It,pCommunityCreateCollectionKey as Lt,pCommunityCreateCommentKey as Rt,pCommunityDeleteCollectionKey as zt,pCommunityDeleteCommentKey as Bt,pCommunityDeleteContentKey as Vt,pCommunityDislikeCommentKey as Ht,pCommunityGetUploadPresignedURLKey as Ut,pCommunityLikeCommentKey as Wt,pCommunityMoveCollectionContentKey as Gt,pCommunityPublishContentKey as Kt,pCommunityRemoveContentFromCollectionKey as qt,pCommunitySearchCurAccountFollowingUsersInfoKey as Jt,pCommunityShareContentKey as Yt,pCommunitySubscribeCollectionKey as Xt,pCommunityUpdateCollectionKey as Zt,pCommunityUpdateContentKey as Qt,pCommunityUploadMediaKey as $t,pContentBatchGetVideoDetailKey as en,pContentGetNewstVideoListKey as tn,pContentGetPopularVideoListKey as nn,pInteractionAddCollectKey as rn,pInteractionBatchClearBrowseKey as an,pInteractionBatchDeleteCollectsKey as on,pInteractionBatchGetCommentLikeStatusKey as sn,pInteractionBatchGetFollowStatsKey as cn,pInteractionBatchGetLikeStatusKey as ln,pInteractionBatchQueryContentInteractionsKey as un,pInteractionBrowseKey as dn,pInteractionCancelDislikeKey as fn,pInteractionCancelLikeKey as pn,pInteractionCheckCollectKey as mn,pInteractionCheckFollowKey as hn,pInteractionClearBrowseHistoryKey as gn,pInteractionCreateFolderKey as _n,pInteractionDeleteBrowseRecordKey as vn,pInteractionDeleteFolderKey as yn,pInteractionDislikeCommentKey as bn,pInteractionDislikeKey as xn,pInteractionFollowKey as Sn,pInteractionLikeCommentKey as Cn,pInteractionLikeKey as wn,pInteractionMoveCollectsKey as Tn,pInteractionRemoveCollectKey as En,pInteractionTrackEventsBatchKey as Dn,pInteractionUnfollowKey as On,pInteractionUnifiedBatchLikeDislikeKey as kn,pInteractionUpdateFolderKey as An,pInteractionUpdateFollowingContentUpdateTimeKey as jn,pUserEditUserInfoKey as Mn,pUserLoginKey as Nn,pUserRegisterKey as Pn,pUserResetForgetPasswordKey as Fn,pUserResetPasswordKey as In,pUserSendEmailCodeKey as Ln,pUserSendForgetEmailCodeKey as Rn,pUserSendResetPasswordEmailCodeKey as zn,pUserUploadUserBgImageKey as Bn,pUserUserFeedbackKey as Vn,pUserUserPrivacySettingsKey as Hn,pUserVerifyEmailCodeKey as Un,pUserVerifyForgetEmailCodeKey as Wn,pUserVerifyResetPasswordEmailCodeKey as Gn}from"./service/generated/tanstack.mjs";import{pUserRegisterByVerifyEmailCode as Kn}from"./service/register-by-verify-email-code.mjs";export{Ye as createQueryKey,e as gCommunityGetCollectionInfo,Xe as gCommunityGetCollectionInfoKey,t as gCommunityGetComments,Ze as gCommunityGetCommentsKey,n as gCommunityGetContentInfo,Qe as gCommunityGetContentInfoKey,r as gCommunityGetContentList,$e as gCommunityGetContentListKey,i as gCommunityGetHotContentList,et as gCommunityGetHotContentListKey,a as gCommunityGetSubscribedCollections,tt as gCommunityGetSubscribedCollectionsKey,o as gCommunityGetUserCollections,nt as gCommunityGetUserCollectionsKey,s as gContentGetAdvertiseByCode,rt as gContentGetAdvertiseByCodeKey,c as gContentGetAppChannelBlock,l as gContentGetAppChannelBlockData,it as gContentGetAppChannelBlockDataKey,at as gContentGetAppChannelBlockKey,u as gContentGetAppChannels,ot as gContentGetAppChannelsKey,d as gContentGetAppComponent,st as gContentGetAppComponentKey,f as gContentGetGuessYouLikeVideos,ct as gContentGetGuessYouLikeVideosKey,p as gContentGetHotVideoList,lt as gContentGetHotVideoListKey,m as gContentGetRecommendSearchList,ut as gContentGetRecommendSearchListKey,h as gContentGetRecommendVideoList,dt as gContentGetRecommendVideoListKey,g as gContentGetVideoDetail,_ as gContentGetVideoDetailByApi,ft as gContentGetVideoDetailByApiKey,pt as gContentGetVideoDetailKey,v as gContentListVisibleFloatingBall,mt as gContentListVisibleFloatingBallKey,y as gContentProcessM3u8,ht as gContentProcessM3u8Key,b as gInteractionCheckMutualFollow,gt as gInteractionCheckMutualFollowKey,x as gInteractionGetBrowseList,_t as gInteractionGetBrowseListKey,S as gInteractionGetContentDislikeList,vt as gInteractionGetContentDislikeListKey,C as gInteractionGetContentLikeList,yt as gInteractionGetContentLikeListKey,w as gInteractionGetDislikeList,bt as gInteractionGetDislikeListKey,T as gInteractionGetFolder,xt as gInteractionGetFolderKey,E as gInteractionGetFolderStats,St as gInteractionGetFolderStatsKey,D as gInteractionGetFollowStats,Ct as gInteractionGetFollowStatsKey,O as gInteractionGetFollowerList,wt as gInteractionGetFollowerListKey,k as gInteractionGetFollowingContentList,Tt as gInteractionGetFollowingContentListKey,A as gInteractionGetFollowingList,Et as gInteractionGetFollowingListKey,j as gInteractionGetFollowingUserUpdates,Dt as gInteractionGetFollowingUserUpdatesKey,M as gInteractionGetLikeList,Ot as gInteractionGetLikeListKey,N as gInteractionListCollects,kt as gInteractionListCollectsKey,P as gInteractionListFolders,At as gInteractionListFoldersKey,F as gUserGetGuestIdentity,jt as gUserGetGuestIdentityKey,I as gUserGetUserEditInfo,Mt as gUserGetUserEditInfoKey,L as gUserGetUserInfo,Nt as gUserGetUserInfoKey,R as gUserGetUserPrivacySettings,Pt as gUserGetUserPrivacySettingsKey,z as gUserViewUserInfo,Ft as gUserViewUserInfoKey,B as pCommunityAddContentToCollection,It as pCommunityAddContentToCollectionKey,V as pCommunityCreateCollection,Lt as pCommunityCreateCollectionKey,H as pCommunityCreateComment,Rt as pCommunityCreateCommentKey,U as pCommunityDeleteCollection,zt as pCommunityDeleteCollectionKey,W as pCommunityDeleteComment,Bt as pCommunityDeleteCommentKey,G as pCommunityDeleteContent,Vt as pCommunityDeleteContentKey,K as pCommunityDislikeComment,Ht as pCommunityDislikeCommentKey,q as pCommunityGetUploadPresignedURL,Ut as pCommunityGetUploadPresignedURLKey,J as pCommunityLikeComment,Wt as pCommunityLikeCommentKey,Y as pCommunityMoveCollectionContent,Gt as pCommunityMoveCollectionContentKey,X as pCommunityPublishContent,Kt as pCommunityPublishContentKey,Z as pCommunityRemoveContentFromCollection,qt as pCommunityRemoveContentFromCollectionKey,Q as pCommunitySearchCurAccountFollowingUsersInfo,Jt as pCommunitySearchCurAccountFollowingUsersInfoKey,$ as pCommunityShareContent,Yt as pCommunityShareContentKey,ee as pCommunitySubscribeCollection,Xt as pCommunitySubscribeCollectionKey,te as pCommunityUpdateCollection,Zt as pCommunityUpdateCollectionKey,ne as pCommunityUpdateContent,Qt as pCommunityUpdateContentKey,re as pCommunityUploadMedia,$t as pCommunityUploadMediaKey,ie as pContentBatchGetVideoDetail,en as pContentBatchGetVideoDetailKey,ae as pContentGetNewstVideoList,tn as pContentGetNewstVideoListKey,oe as pContentGetPopularVideoList,nn as pContentGetPopularVideoListKey,se as pInteractionAddCollect,rn as pInteractionAddCollectKey,ce as pInteractionBatchClearBrowse,an as pInteractionBatchClearBrowseKey,le as pInteractionBatchDeleteCollects,on as pInteractionBatchDeleteCollectsKey,ue as pInteractionBatchGetCommentLikeStatus,sn as pInteractionBatchGetCommentLikeStatusKey,de as pInteractionBatchGetFollowStats,cn as pInteractionBatchGetFollowStatsKey,fe as pInteractionBatchGetLikeStatus,ln as pInteractionBatchGetLikeStatusKey,pe as pInteractionBatchQueryContentInteractions,un as pInteractionBatchQueryContentInteractionsKey,me as pInteractionBrowse,dn as pInteractionBrowseKey,he as pInteractionCancelDislike,fn as pInteractionCancelDislikeKey,ge as pInteractionCancelLike,pn as pInteractionCancelLikeKey,_e as pInteractionCheckCollect,mn as pInteractionCheckCollectKey,ve as pInteractionCheckFollow,hn as pInteractionCheckFollowKey,ye as pInteractionClearBrowseHistory,gn as pInteractionClearBrowseHistoryKey,be as pInteractionCreateFolder,_n as pInteractionCreateFolderKey,xe as pInteractionDeleteBrowseRecord,vn as pInteractionDeleteBrowseRecordKey,Se as pInteractionDeleteFolder,yn as pInteractionDeleteFolderKey,Ce as pInteractionDislike,we as pInteractionDislikeComment,bn as pInteractionDislikeCommentKey,xn as pInteractionDislikeKey,Te as pInteractionFollow,Sn as pInteractionFollowKey,Ee as pInteractionLike,De as pInteractionLikeComment,Cn as pInteractionLikeCommentKey,wn as pInteractionLikeKey,Oe as pInteractionMoveCollects,Tn as pInteractionMoveCollectsKey,ke as pInteractionRemoveCollect,En as pInteractionRemoveCollectKey,Ae as pInteractionTrackEventsBatch,Dn as pInteractionTrackEventsBatchKey,je as pInteractionUnfollow,On as pInteractionUnfollowKey,Me as pInteractionUnifiedBatchLikeDislike,kn as pInteractionUnifiedBatchLikeDislikeKey,Ne as pInteractionUpdateFolder,An as pInteractionUpdateFolderKey,Pe as pInteractionUpdateFollowingContentUpdateTime,jn as pInteractionUpdateFollowingContentUpdateTimeKey,Fe as pUserEditUserInfo,Mn as pUserEditUserInfoKey,Ie as pUserLogin,Nn as pUserLoginKey,Le as pUserRegister,Kn as pUserRegisterByVerifyEmailCode,Pn as pUserRegisterKey,Re as pUserResetForgetPassword,Fn as pUserResetForgetPasswordKey,ze as pUserResetPassword,In as pUserResetPasswordKey,Be as pUserSendEmailCode,Ln as pUserSendEmailCodeKey,Ve as pUserSendForgetEmailCode,Rn as pUserSendForgetEmailCodeKey,He as pUserSendResetPasswordEmailCode,zn as pUserSendResetPasswordEmailCodeKey,Ue as pUserUploadUserBgImage,Bn as pUserUploadUserBgImageKey,We as pUserUserFeedback,Vn as pUserUserFeedbackKey,Ge as pUserUserPrivacySettings,Hn as pUserUserPrivacySettingsKey,Ke as pUserVerifyEmailCode,Un as pUserVerifyEmailCodeKey,qe as pUserVerifyForgetEmailCode,Wn as pUserVerifyForgetEmailCodeKey,Je as pUserVerifyResetPasswordEmailCode,Gn as pUserVerifyResetPasswordEmailCodeKey};
|
|
@@ -1,26 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { devtools, persist, subscribeWithSelector } from "zustand/middleware";
|
|
4
|
-
import { immer } from "zustand/middleware/immer";
|
|
5
|
-
|
|
6
|
-
//#region store/create-store.ts
|
|
7
|
-
/**
|
|
8
|
-
* 创建 store
|
|
9
|
-
* @param initializer - 初始化函数
|
|
10
|
-
* @param options - 选项
|
|
11
|
-
* @returns create<T>()(withMiddlewares as any)
|
|
12
|
-
*/
|
|
13
|
-
function createStore(initializer, options = {}) {
|
|
14
|
-
const { name, persist: usePersist, version = 1, partialize } = options;
|
|
15
|
-
const storeName = name ?? "zustand-store";
|
|
16
|
-
const persistConfig = {
|
|
17
|
-
name: storeName,
|
|
18
|
-
version,
|
|
19
|
-
...typeof partialize === "function" ? { partialize } : {}
|
|
20
|
-
};
|
|
21
|
-
const withMiddlewares = subscribeWithSelector(devtools(immer(usePersist ? persist(initializer, persistConfig) : initializer), { name: storeName }));
|
|
22
|
-
return create()(withMiddlewares);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { createStore };
|
|
2
|
+
import{create as e}from"zustand";import{devtools as t,persist as n,subscribeWithSelector as r}from"zustand/middleware";import{immer as i}from"zustand/middleware/immer";function a(a,o={}){let{name:s,persist:c,version:l=1,partialize:u}=o,d=s??`zustand-store`,f={name:d,version:l,...typeof u==`function`?{partialize:u}:{}},p=r(t(i(c?n(a,f):a),{name:d}));return e()(p)}export{a as createStore};
|
|
@@ -1,29 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region store/modules/app-config-store.ts
|
|
5
|
-
let StorageType = /* @__PURE__ */ function(StorageType) {
|
|
6
|
-
StorageType[StorageType["COS"] = 0] = "COS";
|
|
7
|
-
StorageType[StorageType["AWS"] = 2] = "AWS";
|
|
8
|
-
return StorageType;
|
|
9
|
-
}({});
|
|
10
|
-
const useAppConfigStore = createStore((set, get) => ({
|
|
11
|
-
config: null,
|
|
12
|
-
async getConfig() {
|
|
13
|
-
const cached = get().config;
|
|
14
|
-
if (cached) return cached;
|
|
15
|
-
return { storage_type: StorageType.COS };
|
|
16
|
-
},
|
|
17
|
-
async getStorageType() {
|
|
18
|
-
return (await get().getConfig()).storage_type ?? StorageType.COS;
|
|
19
|
-
},
|
|
20
|
-
async getCaptchaApiKey() {
|
|
21
|
-
return (await get().getConfig()).captcha_api_key ?? "";
|
|
22
|
-
}
|
|
23
|
-
}), {
|
|
24
|
-
persist: true,
|
|
25
|
-
name: "app-config-store"
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
|
-
export { StorageType, useAppConfigStore };
|
|
2
|
+
import{createStore as e}from"../create-store.mjs";let t=function(e){return e[e.COS=0]=`COS`,e[e.AWS=2]=`AWS`,e}({});const n=e((e,n)=>({config:null,async getConfig(){return n().config||{storage_type:t.COS}},async getStorageType(){return(await n().getConfig()).storage_type??t.COS},async getCaptchaApiKey(){return(await n().getConfig()).captcha_api_key??``}}),{persist:!0,name:`app-config-store`});export{t as StorageType,n as useAppConfigStore};
|
|
@@ -1,31 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region store/modules/blocked-modal-store.ts
|
|
5
|
-
/**
|
|
6
|
-
* 全局封禁弹窗状态管理。
|
|
7
|
-
*/
|
|
8
|
-
const useBlockedModalStore = createStore((set) => ({
|
|
9
|
-
isOpen: false,
|
|
10
|
-
blockedRemark: "",
|
|
11
|
-
blockedEndTime: 0,
|
|
12
|
-
open: (payload) => set((s) => ({
|
|
13
|
-
...s,
|
|
14
|
-
isOpen: true,
|
|
15
|
-
...payload
|
|
16
|
-
})),
|
|
17
|
-
setOpen: (open) => set((s) => ({
|
|
18
|
-
...s,
|
|
19
|
-
isOpen: open
|
|
20
|
-
})),
|
|
21
|
-
close: () => set((s) => ({
|
|
22
|
-
...s,
|
|
23
|
-
isOpen: false
|
|
24
|
-
}))
|
|
25
|
-
}), {
|
|
26
|
-
name: "blocked-modal-store",
|
|
27
|
-
persist: false
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
//#endregion
|
|
31
|
-
export { useBlockedModalStore };
|
|
2
|
+
import{createStore as e}from"../create-store.mjs";const t=e(e=>({isOpen:!1,blockedRemark:``,blockedEndTime:0,open:t=>e(e=>({...e,isOpen:!0,...t})),setOpen:t=>e(e=>({...e,isOpen:t})),close:()=>e(e=>({...e,isOpen:!1}))}),{name:`blocked-modal-store`,persist:!1});export{t as useBlockedModalStore};
|
|
@@ -1,13 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region store/modules/follow-ids-store.ts
|
|
5
|
-
const useFollowIdsState = create()((set) => ({
|
|
6
|
-
followIds: [],
|
|
7
|
-
setFollowIds: (ids) => {
|
|
8
|
-
set({ followIds: ids });
|
|
9
|
-
}
|
|
10
|
-
}));
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { useFollowIdsState };
|
|
2
|
+
import{create as e}from"zustand";const t=e()(e=>({followIds:[],setFollowIds:t=>{e({followIds:t})}}));export{t as useFollowIdsState};
|
|
@@ -1,156 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { notifyBridgeLoginModalClosed, notifyBridgeLoginModalOpened, notifyBridgeLoginSuccessClosed } from "../../utils/login-modal-bridge.mjs";
|
|
4
|
-
|
|
5
|
-
//#region store/modules/login-modal-store.ts
|
|
6
|
-
let hiddenVideosSnapshot = null;
|
|
7
|
-
function hidePageVideosForLoginModal() {
|
|
8
|
-
if (typeof document === "undefined") return;
|
|
9
|
-
if (hiddenVideosSnapshot) return;
|
|
10
|
-
const videos = Array.from(document.querySelectorAll("video"));
|
|
11
|
-
hiddenVideosSnapshot = videos.map((el) => ({
|
|
12
|
-
el,
|
|
13
|
-
display: el.style.display
|
|
14
|
-
}));
|
|
15
|
-
videos.forEach((el) => {
|
|
16
|
-
try {
|
|
17
|
-
el.pause();
|
|
18
|
-
} catch (error) {
|
|
19
|
-
console.warn("暂停 video 元素失败:", error);
|
|
20
|
-
}
|
|
21
|
-
el.style.display = "none";
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function restorePageVideosAfterLoginModal() {
|
|
25
|
-
if (typeof document === "undefined") return;
|
|
26
|
-
if (!hiddenVideosSnapshot) return;
|
|
27
|
-
hiddenVideosSnapshot.forEach(({ el, display }) => {
|
|
28
|
-
el.style.display = display;
|
|
29
|
-
});
|
|
30
|
-
hiddenVideosSnapshot = null;
|
|
31
|
-
}
|
|
32
|
-
const useLoginModalStore = createStore((set, get) => {
|
|
33
|
-
let pendingResolve = null;
|
|
34
|
-
let pendingId = 0;
|
|
35
|
-
function finalize(result) {
|
|
36
|
-
if (!pendingResolve) return;
|
|
37
|
-
const resolve = pendingResolve;
|
|
38
|
-
pendingResolve = null;
|
|
39
|
-
resolve(result);
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
isOpen: false,
|
|
43
|
-
verifyStep: null,
|
|
44
|
-
entryStep: null,
|
|
45
|
-
open: () => {
|
|
46
|
-
hidePageVideosForLoginModal();
|
|
47
|
-
notifyBridgeLoginModalOpened();
|
|
48
|
-
set((s) => ({
|
|
49
|
-
...s,
|
|
50
|
-
isOpen: true
|
|
51
|
-
}));
|
|
52
|
-
},
|
|
53
|
-
openWithStep: (step) => {
|
|
54
|
-
hidePageVideosForLoginModal();
|
|
55
|
-
notifyBridgeLoginModalOpened();
|
|
56
|
-
set((s) => ({
|
|
57
|
-
...s,
|
|
58
|
-
isOpen: true,
|
|
59
|
-
entryStep: step
|
|
60
|
-
}));
|
|
61
|
-
},
|
|
62
|
-
openAsync: () => {
|
|
63
|
-
finalize(false);
|
|
64
|
-
pendingId += 1;
|
|
65
|
-
const thisId = pendingId;
|
|
66
|
-
hidePageVideosForLoginModal();
|
|
67
|
-
notifyBridgeLoginModalOpened();
|
|
68
|
-
set((s) => ({
|
|
69
|
-
...s,
|
|
70
|
-
isOpen: true
|
|
71
|
-
}));
|
|
72
|
-
return new Promise((resolve) => {
|
|
73
|
-
pendingResolve = (result) => {
|
|
74
|
-
if (thisId !== pendingId) return;
|
|
75
|
-
resolve(result);
|
|
76
|
-
};
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
resolveLogin: (result = true) => {
|
|
80
|
-
finalize(result);
|
|
81
|
-
const { isOpen } = get();
|
|
82
|
-
if (isOpen) {
|
|
83
|
-
set((s) => ({
|
|
84
|
-
...s,
|
|
85
|
-
isOpen: false,
|
|
86
|
-
entryStep: null
|
|
87
|
-
}));
|
|
88
|
-
restorePageVideosAfterLoginModal();
|
|
89
|
-
notifyBridgeLoginModalClosed();
|
|
90
|
-
if (result) notifyBridgeLoginSuccessClosed();
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
close: () => {
|
|
94
|
-
finalize(false);
|
|
95
|
-
set((s) => ({
|
|
96
|
-
...s,
|
|
97
|
-
isOpen: false,
|
|
98
|
-
entryStep: null
|
|
99
|
-
}));
|
|
100
|
-
restorePageVideosAfterLoginModal();
|
|
101
|
-
notifyBridgeLoginModalClosed();
|
|
102
|
-
},
|
|
103
|
-
toggle: () => {
|
|
104
|
-
const { isOpen } = get();
|
|
105
|
-
if (isOpen) {
|
|
106
|
-
finalize(false);
|
|
107
|
-
set((s) => ({
|
|
108
|
-
...s,
|
|
109
|
-
isOpen: !s.isOpen,
|
|
110
|
-
entryStep: isOpen ? null : s.entryStep
|
|
111
|
-
}));
|
|
112
|
-
restorePageVideosAfterLoginModal();
|
|
113
|
-
notifyBridgeLoginModalClosed();
|
|
114
|
-
return;
|
|
115
|
-
}
|
|
116
|
-
hidePageVideosForLoginModal();
|
|
117
|
-
notifyBridgeLoginModalOpened();
|
|
118
|
-
set((s) => ({
|
|
119
|
-
...s,
|
|
120
|
-
isOpen: !s.isOpen,
|
|
121
|
-
entryStep: isOpen ? null : s.entryStep
|
|
122
|
-
}));
|
|
123
|
-
},
|
|
124
|
-
setOpen: (open) => {
|
|
125
|
-
const { isOpen } = get();
|
|
126
|
-
if (isOpen && !open) finalize(false);
|
|
127
|
-
if (!isOpen && open) {
|
|
128
|
-
hidePageVideosForLoginModal();
|
|
129
|
-
notifyBridgeLoginModalOpened();
|
|
130
|
-
}
|
|
131
|
-
set((s) => ({
|
|
132
|
-
...s,
|
|
133
|
-
isOpen: open,
|
|
134
|
-
entryStep: open ? s.entryStep : null
|
|
135
|
-
}));
|
|
136
|
-
if (isOpen && !open) {
|
|
137
|
-
restorePageVideosAfterLoginModal();
|
|
138
|
-
notifyBridgeLoginModalClosed();
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
setEntryStep: (step) => set((s) => ({
|
|
142
|
-
...s,
|
|
143
|
-
entryStep: step
|
|
144
|
-
})),
|
|
145
|
-
setVerifyStep: (step) => set((s) => ({
|
|
146
|
-
...s,
|
|
147
|
-
verifyStep: step
|
|
148
|
-
}))
|
|
149
|
-
};
|
|
150
|
-
}, {
|
|
151
|
-
name: "login-modal-store",
|
|
152
|
-
persist: false
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
//#endregion
|
|
156
|
-
export { useLoginModalStore };
|
|
2
|
+
import{createStore as e}from"../create-store.mjs";import{notifyBridgeLoginModalClosed as t,notifyBridgeLoginModalOpened as n,notifyBridgeLoginSuccessClosed as r}from"../../utils/login-modal-bridge.mjs";let i=null;function a(){if(typeof document>`u`||i)return;let e=Array.from(document.querySelectorAll(`video`));i=e.map(e=>({el:e,display:e.style.display})),e.forEach(e=>{try{e.pause()}catch(e){console.warn(`暂停 video 元素失败:`,e)}e.style.display=`none`})}function o(){typeof document>`u`||(i&&=(i.forEach(({el:e,display:t})=>{e.style.display=t}),null))}const s=e((e,i)=>{let s=null,c=0;function l(e){if(!s)return;let t=s;s=null,t(e)}return{isOpen:!1,verifyStep:null,entryStep:null,open:()=>{a(),n(),e(e=>({...e,isOpen:!0}))},openWithStep:t=>{a(),n(),e(e=>({...e,isOpen:!0,entryStep:t}))},openAsync:()=>{l(!1),c+=1;let t=c;return a(),n(),e(e=>({...e,isOpen:!0})),new Promise(e=>{s=n=>{t===c&&e(n)}})},resolveLogin:(n=!0)=>{l(n);let{isOpen:a}=i();a&&(e(e=>({...e,isOpen:!1,entryStep:null})),o(),t(),n&&r())},close:()=>{l(!1),e(e=>({...e,isOpen:!1,entryStep:null})),o(),t()},toggle:()=>{let{isOpen:r}=i();if(r){l(!1),e(e=>({...e,isOpen:!e.isOpen,entryStep:r?null:e.entryStep})),o(),t();return}a(),n(),e(e=>({...e,isOpen:!e.isOpen,entryStep:r?null:e.entryStep}))},setOpen:r=>{let{isOpen:s}=i();s&&!r&&l(!1),!s&&r&&(a(),n()),e(e=>({...e,isOpen:r,entryStep:r?e.entryStep:null})),s&&!r&&(o(),t())},setEntryStep:t=>e(e=>({...e,entryStep:t})),setVerifyStep:t=>e(e=>({...e,verifyStep:t}))}},{name:`login-modal-store`,persist:!1});export{s as useLoginModalStore};
|
|
@@ -1,55 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region store/modules/media-preview-store.ts
|
|
5
|
-
/** 媒体预览弹窗 store。 */
|
|
6
|
-
const useMediaPreviewStore = createStore((set) => {
|
|
7
|
-
return {
|
|
8
|
-
isOpen: false,
|
|
9
|
-
mediaList: [],
|
|
10
|
-
startIndex: 0,
|
|
11
|
-
openWithMediaList: (mediaList, startIndex = 0) => {
|
|
12
|
-
const safeIndex = Math.min(Math.max(startIndex, 0), Math.max(mediaList.length - 1, 0));
|
|
13
|
-
set((s) => ({
|
|
14
|
-
...s,
|
|
15
|
-
isOpen: true,
|
|
16
|
-
mediaList,
|
|
17
|
-
startIndex: safeIndex
|
|
18
|
-
}));
|
|
19
|
-
},
|
|
20
|
-
close: () => {
|
|
21
|
-
set((s) => ({
|
|
22
|
-
...s,
|
|
23
|
-
isOpen: false,
|
|
24
|
-
mediaList: [],
|
|
25
|
-
startIndex: 0
|
|
26
|
-
}));
|
|
27
|
-
},
|
|
28
|
-
setOpen: (open) => {
|
|
29
|
-
set((s) => ({
|
|
30
|
-
...s,
|
|
31
|
-
isOpen: open,
|
|
32
|
-
mediaList: open ? s.mediaList : [],
|
|
33
|
-
startIndex: open ? s.startIndex : 0
|
|
34
|
-
}));
|
|
35
|
-
},
|
|
36
|
-
setMediaList: (mediaList) => {
|
|
37
|
-
set((s) => ({
|
|
38
|
-
...s,
|
|
39
|
-
mediaList
|
|
40
|
-
}));
|
|
41
|
-
},
|
|
42
|
-
setStartIndex: (index) => {
|
|
43
|
-
set((s) => ({
|
|
44
|
-
...s,
|
|
45
|
-
startIndex: index
|
|
46
|
-
}));
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
}, {
|
|
50
|
-
name: "media-preview-store",
|
|
51
|
-
persist: false
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
//#endregion
|
|
55
|
-
export { useMediaPreviewStore };
|
|
2
|
+
import{createStore as e}from"../create-store.mjs";const t=e(e=>({isOpen:!1,mediaList:[],startIndex:0,openWithMediaList:(t,n=0)=>{let r=Math.min(Math.max(n,0),Math.max(t.length-1,0));e(e=>({...e,isOpen:!0,mediaList:t,startIndex:r}))},close:()=>{e(e=>({...e,isOpen:!1,mediaList:[],startIndex:0}))},setOpen:t=>{e(e=>({...e,isOpen:t,mediaList:t?e.mediaList:[],startIndex:t?e.startIndex:0}))},setMediaList:t=>{e(e=>({...e,mediaList:t}))},setStartIndex:t=>{e(e=>({...e,startIndex:t}))}}),{name:`media-preview-store`,persist:!1});export{t as useMediaPreviewStore};
|
|
@@ -1,32 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region store/modules/publish-store.ts
|
|
5
|
-
const usePublishStore = createStore((set) => ({
|
|
6
|
-
materialList: [],
|
|
7
|
-
videoUrl: "",
|
|
8
|
-
coverUrl: "",
|
|
9
|
-
content: "",
|
|
10
|
-
atUsers: [],
|
|
11
|
-
setPubState: (payload) => set((state) => ({
|
|
12
|
-
...state,
|
|
13
|
-
materialList: payload.materialList ?? state.materialList,
|
|
14
|
-
videoUrl: payload.videoUrl ?? state.videoUrl,
|
|
15
|
-
coverUrl: payload.coverUrl ?? state.coverUrl,
|
|
16
|
-
content: payload.content ?? state.content,
|
|
17
|
-
atUsers: payload.atUsers ?? state.atUsers
|
|
18
|
-
})),
|
|
19
|
-
init: () => set(() => ({
|
|
20
|
-
materialList: [],
|
|
21
|
-
videoUrl: "",
|
|
22
|
-
coverUrl: "",
|
|
23
|
-
content: "",
|
|
24
|
-
atUsers: []
|
|
25
|
-
}))
|
|
26
|
-
}), {
|
|
27
|
-
persist: true,
|
|
28
|
-
name: "publish-store"
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { usePublishStore };
|
|
2
|
+
import{createStore as e}from"../create-store.mjs";const t=e(e=>({materialList:[],videoUrl:``,coverUrl:``,content:``,atUsers:[],setPubState:t=>e(e=>({...e,materialList:t.materialList??e.materialList,videoUrl:t.videoUrl??e.videoUrl,coverUrl:t.coverUrl??e.coverUrl,content:t.content??e.content,atUsers:t.atUsers??e.atUsers})),init:()=>e(()=>({materialList:[],videoUrl:``,coverUrl:``,content:``,atUsers:[]}))}),{persist:!0,name:`publish-store`});export{t as usePublishStore};
|
|
@@ -1,18 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region store/modules/use-demo-store.ts
|
|
5
|
-
const useDemoStore = createStore((set) => ({
|
|
6
|
-
demo: "demo",
|
|
7
|
-
setDemo: (v) => set((s) => ({
|
|
8
|
-
...s,
|
|
9
|
-
demo: v
|
|
10
|
-
}))
|
|
11
|
-
}), {
|
|
12
|
-
name: "demo-store",
|
|
13
|
-
persist: true,
|
|
14
|
-
partialize: (s) => ({ demo: s.demo })
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { useDemoStore };
|
|
2
|
+
import{createStore as e}from"../create-store.mjs";const t=e(e=>({demo:`demo`,setDemo:t=>e(e=>({...e,demo:t}))}),{name:`demo-store`,persist:!0,partialize:e=>({demo:e.demo})});export{t as useDemoStore};
|
|
@@ -1,114 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import
|
|
3
|
-
import { createStore } from "../create-store.mjs";
|
|
4
|
-
import { useFollowIdsState } from "./follow-ids-store.mjs";
|
|
5
|
-
import { usePublishStore } from "./publish-store.mjs";
|
|
6
|
-
import { gUserGetGuestIdentity } from "../../service/generated/client.mjs";
|
|
7
|
-
|
|
8
|
-
//#region store/modules/user-store.ts
|
|
9
|
-
const PERSIST_KEYS = {
|
|
10
|
-
userStore: "user-store",
|
|
11
|
-
publishStore: "publish-store"
|
|
12
|
-
};
|
|
13
|
-
const DEFAULT_USER_STATE = {
|
|
14
|
-
userInfo: {},
|
|
15
|
-
isLogin: false,
|
|
16
|
-
token: "",
|
|
17
|
-
expireTime: 0,
|
|
18
|
-
userId: ""
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* 清空与用户强相关的其他 store 状态。
|
|
22
|
-
*/
|
|
23
|
-
function clearUserRelatedStores() {
|
|
24
|
-
useFollowIdsState.setState({ followIds: [] });
|
|
25
|
-
usePublishStore.getState().init();
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* 清理 Cookie 与持久化缓存。
|
|
29
|
-
*/
|
|
30
|
-
function clearAuthPersistence() {
|
|
31
|
-
try {
|
|
32
|
-
removeCookie("token");
|
|
33
|
-
removeCookie("userId");
|
|
34
|
-
removeCookie("guestUserId");
|
|
35
|
-
} catch (error) {
|
|
36
|
-
console.warn("clear auth cookie failed", error);
|
|
37
|
-
}
|
|
38
|
-
try {
|
|
39
|
-
localStorage.removeItem(PERSIST_KEYS.userStore);
|
|
40
|
-
localStorage.removeItem(PERSIST_KEYS.publishStore);
|
|
41
|
-
} catch (error) {
|
|
42
|
-
console.warn("clear local storage failed", error);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
const useUserStore = createStore((set) => ({
|
|
46
|
-
...DEFAULT_USER_STATE,
|
|
47
|
-
setUserInfo: (userInfo) => {
|
|
48
|
-
set({ userInfo });
|
|
49
|
-
},
|
|
50
|
-
setUserId: (userId) => {
|
|
51
|
-
if (isClient()) setCookie("userId", userId);
|
|
52
|
-
set({ userId });
|
|
53
|
-
},
|
|
54
|
-
setIsLogin: (isLogin) => {
|
|
55
|
-
set({ isLogin });
|
|
56
|
-
},
|
|
57
|
-
setToken: (token) => {
|
|
58
|
-
if (isClient()) {
|
|
59
|
-
setCookie("token", token);
|
|
60
|
-
setCookie("guestUserId", "");
|
|
61
|
-
}
|
|
62
|
-
set({ token });
|
|
63
|
-
},
|
|
64
|
-
setExpireTime: (expireTime) => {
|
|
65
|
-
set({ expireTime });
|
|
66
|
-
},
|
|
67
|
-
updateUserInfo: (updates) => {
|
|
68
|
-
set((state) => ({ userInfo: {
|
|
69
|
-
...state.userInfo,
|
|
70
|
-
...updates
|
|
71
|
-
} }));
|
|
72
|
-
},
|
|
73
|
-
logout: () => {
|
|
74
|
-
clearUserRelatedStores();
|
|
75
|
-
set({ ...DEFAULT_USER_STATE });
|
|
76
|
-
if (isClient()) clearAuthPersistence();
|
|
77
|
-
},
|
|
78
|
-
clearUserInfo: () => {
|
|
79
|
-
set({ userInfo: DEFAULT_USER_STATE.userInfo });
|
|
80
|
-
}
|
|
81
|
-
}), {
|
|
82
|
-
name: "user-store",
|
|
83
|
-
persist: true,
|
|
84
|
-
partialize: (s) => ({
|
|
85
|
-
userInfo: s.userInfo,
|
|
86
|
-
isLogin: s.isLogin,
|
|
87
|
-
token: s.token,
|
|
88
|
-
expireTime: s.expireTime,
|
|
89
|
-
userId: s.userId
|
|
90
|
-
})
|
|
91
|
-
});
|
|
92
|
-
/**
|
|
93
|
-
* 确保游客身份已生成并缓存到 Cookie
|
|
94
|
-
*/
|
|
95
|
-
async function ensureGuestIdentity(force = false) {
|
|
96
|
-
if (await getCookie("userId") && !force) return;
|
|
97
|
-
const uuid = generateUUID();
|
|
98
|
-
gUserGetGuestIdentity({
|
|
99
|
-
finger_id: uuid,
|
|
100
|
-
sign: generateDynamicSign(uuid)
|
|
101
|
-
}).then((res) => {
|
|
102
|
-
setCookie("guestUserId", res.data.user_id);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
const userSelectors = {
|
|
106
|
-
getUserInfo: () => useUserStore.getState().userInfo,
|
|
107
|
-
getIsLogin: () => useUserStore.getState().isLogin,
|
|
108
|
-
getToken: () => useUserStore.getState().token,
|
|
109
|
-
getExpireTime: () => useUserStore.getState().expireTime,
|
|
110
|
-
getUserId: () => useUserStore.getState().userId
|
|
111
|
-
};
|
|
112
|
-
|
|
113
|
-
//#endregion
|
|
114
|
-
export { ensureGuestIdentity, useUserStore, userSelectors };
|
|
2
|
+
import{generateDynamicSign as e,generateUUID as t,getCookie as n,isClient as r,removeCookie as i,setCookie as a}from"../../utils/common.mjs";import{createStore as o}from"../create-store.mjs";import{useFollowIdsState as s}from"./follow-ids-store.mjs";import{usePublishStore as c}from"./publish-store.mjs";import{gUserGetGuestIdentity as l}from"../../service/generated/client.mjs";const u={userStore:`user-store`,publishStore:`publish-store`},d={userInfo:{},isLogin:!1,token:``,expireTime:0,userId:``};function f(){s.setState({followIds:[]}),c.getState().init()}function p(){try{i(`token`),i(`userId`),i(`guestUserId`)}catch(e){console.warn(`clear auth cookie failed`,e)}try{localStorage.removeItem(u.userStore),localStorage.removeItem(u.publishStore)}catch(e){console.warn(`clear local storage failed`,e)}}const m=o(e=>({...d,setUserInfo:t=>{e({userInfo:t})},setUserId:t=>{r()&&a(`userId`,t),e({userId:t})},setIsLogin:t=>{e({isLogin:t})},setToken:t=>{r()&&(a(`token`,t),a(`guestUserId`,``)),e({token:t})},setExpireTime:t=>{e({expireTime:t})},updateUserInfo:t=>{e(e=>({userInfo:{...e.userInfo,...t}}))},logout:()=>{f(),e({...d}),r()&&p()},clearUserInfo:()=>{e({userInfo:d.userInfo})}}),{name:`user-store`,persist:!0,partialize:e=>({userInfo:e.userInfo,isLogin:e.isLogin,token:e.token,expireTime:e.expireTime,userId:e.userId})});async function h(r=!1){if(await n(`userId`)&&!r)return;let i=t();l({finger_id:i,sign:e(i)}).then(e=>{a(`guestUserId`,e.data.user_id)})}const g={getUserInfo:()=>m.getState().userInfo,getIsLogin:()=>m.getState().isLogin,getToken:()=>m.getState().token,getExpireTime:()=>m.getState().expireTime,getUserId:()=>m.getState().userId};export{h as ensureGuestIdentity,m as useUserStore,g as userSelectors};
|
package/dist/store.mjs
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { useFollowIdsState } from "./store/modules/follow-ids-store.mjs";
|
|
4
|
-
import { usePublishStore } from "./store/modules/publish-store.mjs";
|
|
5
|
-
import { ensureGuestIdentity, useUserStore, userSelectors } from "./store/modules/user-store.mjs";
|
|
6
|
-
import { useLoginModalStore } from "./store/modules/login-modal-store.mjs";
|
|
7
|
-
import { StorageType, useAppConfigStore } from "./store/modules/app-config-store.mjs";
|
|
8
|
-
import { useMediaPreviewStore } from "./store/modules/media-preview-store.mjs";
|
|
9
|
-
import { useDemoStore } from "./store/modules/use-demo-store.mjs";
|
|
10
|
-
|
|
11
|
-
export { StorageType, ensureGuestIdentity, useAppConfigStore, useBlockedModalStore, useDemoStore, useFollowIdsState, useLoginModalStore, useMediaPreviewStore, usePublishStore, useUserStore, userSelectors };
|
|
2
|
+
import{useBlockedModalStore as e}from"./store/modules/blocked-modal-store.mjs";import{useFollowIdsState as t}from"./store/modules/follow-ids-store.mjs";import{usePublishStore as n}from"./store/modules/publish-store.mjs";import{ensureGuestIdentity as r,useUserStore as i,userSelectors as a}from"./store/modules/user-store.mjs";import{useLoginModalStore as o}from"./store/modules/login-modal-store.mjs";import{StorageType as s,useAppConfigStore as c}from"./store/modules/app-config-store.mjs";import{useMediaPreviewStore as l}from"./store/modules/media-preview-store.mjs";import{useDemoStore as u}from"./store/modules/use-demo-store.mjs";export{s as StorageType,r as ensureGuestIdentity,c as useAppConfigStore,e as useBlockedModalStore,u as useDemoStore,t as useFollowIdsState,o as useLoginModalStore,l as useMediaPreviewStore,n as usePublishStore,i as useUserStore,a as userSelectors};
|