@funhub/platform 0.1.130 → 0.1.131
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.mjs +1 -18
- package/dist/assets/icons/clear.mjs +1 -17
- package/dist/assets/icons/close-icon.mjs +1 -18
- package/dist/assets/icons/close.mjs +1 -14
- package/dist/assets/icons/common/collect_nor.mjs +1 -21
- package/dist/assets/icons/common/collect_sel.mjs +1 -21
- package/dist/assets/icons/common/follow_sel.mjs +1 -17
- package/dist/assets/icons/common/follow_user.mjs +1 -17
- package/dist/assets/icons/common/full_screen.mjs +1 -17
- package/dist/assets/icons/common/god_comment.mjs +1 -17
- package/dist/assets/icons/common/heart-like.mjs +1 -31
- package/dist/assets/icons/common/heart-unlike.mjs +1 -18
- package/dist/assets/icons/common/qq.mjs +1 -32
- package/dist/assets/icons/common/right_arrow.mjs +1 -14
- package/dist/assets/icons/common/share.mjs +1 -17
- package/dist/assets/icons/common/solid-arrow.mjs +1 -17
- package/dist/assets/icons/common/video_play.mjs +1 -18
- package/dist/assets/icons/common/wechat-friends.mjs +1 -40
- package/dist/assets/icons/common/wechat.mjs +1 -39
- package/dist/assets/icons/detail/check-ok.mjs +1 -17
- package/dist/assets/icons/detail/collect_nor.mjs +1 -21
- package/dist/assets/icons/detail/collect_sel.mjs +1 -21
- package/dist/assets/icons/detail/comment.mjs +1 -19
- package/dist/assets/icons/detail/commet_at.mjs +1 -53
- package/dist/assets/icons/detail/give_like.mjs +1 -20
- package/dist/assets/icons/detail/give_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/min-collection.mjs +1 -38
- package/dist/assets/icons/detail/publish_pic.mjs +1 -27
- package/dist/assets/icons/detail/publish_video.mjs +1 -30
- package/dist/assets/icons/detail/share.mjs +1 -17
- package/dist/assets/icons/detail/un_like.mjs +1 -20
- package/dist/assets/icons/detail/un_like_sel.mjs +1 -27
- package/dist/assets/icons/detail/video_flag.mjs +1 -17
- package/dist/assets/icons/detail/video_play.mjs +1 -18
- package/dist/assets/icons/dislike.mjs +1 -20
- package/dist/assets/icons/dislike_sel.mjs +1 -27
- package/dist/assets/icons/empty/img-empty-adduser.mjs +1 -463
- package/dist/assets/icons/empty/img-empty-nodata.mjs +1 -194
- package/dist/assets/icons/eye-icon.mjs +1 -21
- package/dist/assets/icons/eye-off-icon.mjs +1 -21
- package/dist/assets/icons/filter_dark.mjs +1 -17
- package/dist/assets/icons/follow_nor.mjs +1 -44
- package/dist/assets/icons/follow_sel.mjs +1 -31
- package/dist/assets/icons/left-arrow-icon.mjs +1 -18
- package/dist/assets/icons/left_arrow.mjs +1 -14
- package/dist/assets/icons/like.mjs +1 -20
- package/dist/assets/icons/like_sel.mjs +1 -27
- package/dist/assets/icons/publish/publish_add.mjs +1 -17
- package/dist/assets/icons/publish/publish_at.mjs +1 -53
- package/dist/assets/icons/publish/publish_collection.mjs +1 -28
- package/dist/assets/icons/publish/publish_pic.mjs +1 -27
- package/dist/assets/icons/publish/publish_video.mjs +1 -30
- package/dist/assets/icons/refresh.mjs +1 -18
- package/dist/assets/icons/right_arrow.mjs +1 -14
- package/dist/assets/icons/search/avatar.mjs +1 -36
- package/dist/assets/icons/search/filter.mjs +1 -17
- package/dist/assets/icons/search/video.mjs +1 -27
- package/dist/assets/icons/search.mjs +1 -23
- package/dist/assets/icons/share/share-link.mjs +1 -39
- package/dist/assets/icons/tabs/follow.mjs +1 -20
- package/dist/assets/icons/tabs/follow_active.mjs +1 -17
- package/dist/assets/icons/tabs/home.mjs +1 -17
- package/dist/assets/icons/tabs/home_active.mjs +1 -17
- package/dist/assets/icons/tabs/mine.mjs +1 -26
- package/dist/assets/icons/tabs/mine_active.mjs +1 -17
- package/dist/assets/icons/view.mjs +1 -17
- package/dist/assets/images/add.mjs +1 -5
- package/dist/assets/images/default_avatar.mjs +1 -5
- package/dist/assets/images/default_collection_cover.mjs +1 -5
- package/dist/assets/images/empty/img_empty_adduser.mjs +1 -463
- package/dist/assets/images/empty/img_empty_message.mjs +1 -408
- package/dist/assets/images/empty/img_empty_network.mjs +1 -168
- package/dist/assets/images/empty/img_empty_nodata.mjs +1 -194
- package/dist/assets/images/empty/img_empty_picture.mjs +1 -59
- package/dist/assets/images/empty/img_empty_search.mjs +1 -250
- package/dist/assets/images/frame.mjs +1 -5
- package/dist/assets/images/less.mjs +1 -5
- package/dist/assets/images/logo.mjs +1 -5
- package/dist/assets/images/marquee.mjs +1 -5
- package/dist/assets/images/subscript.mjs +1 -5
- package/dist/assets/images/user/default_avatar.mjs +1 -5
- package/dist/biz.mjs +1 -144
- package/dist/common.mjs +1 -44
- package/dist/components/biz/basics/card-item/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/card-item/runtime/client.mjs +1 -83
- package/dist/components/biz/basics/card-item/runtime/corners.mjs +1 -33
- package/dist/components/biz/basics/card-item/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-item/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/event.schema.mjs +1 -8
- package/dist/components/biz/basics/card-item/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-item/schema/props.schema.mjs +1 -18
- package/dist/components/biz/basics/card-item/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/card-layout/defaults/default-props.mjs +1 -13
- package/dist/components/biz/basics/card-layout/runtime/client.mjs +1 -38
- package/dist/components/biz/basics/card-layout/schema/component.mjs +1 -14
- package/dist/components/biz/basics/card-layout/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/card-layout/schema/event.schema.mjs +1 -5
- package/dist/components/biz/basics/card-layout/schema/index.mjs +1 -17
- package/dist/components/biz/basics/card-layout/schema/props.schema.mjs +1 -28
- package/dist/components/biz/basics/card-layout/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/fullscreen-feed/basic-fullscreen.mjs +1 -268
- package/dist/components/biz/basics/fullscreen-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/index.mjs +1 -12
- package/dist/components/biz/basics/fullscreen-feed/runtime/adapters.mjs +1 -97
- package/dist/components/biz/basics/fullscreen-feed/runtime/bottom-info.mjs +1 -125
- package/dist/components/biz/basics/fullscreen-feed/runtime/client.mjs +1 -390
- package/dist/components/biz/basics/fullscreen-feed/runtime/comment-modal.mjs +1 -107
- package/dist/components/biz/basics/fullscreen-feed/runtime/interaction-sync.mjs +1 -134
- package/dist/components/biz/basics/fullscreen-feed/runtime/post-slide.mjs +1 -232
- package/dist/components/biz/basics/fullscreen-feed/runtime/styles.module.mjs +152 -25
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-mixed-feed-controller.mjs +1 -193
- package/dist/components/biz/basics/fullscreen-feed/runtime/use-series-feed-controller.mjs +1 -212
- package/dist/components/biz/basics/fullscreen-feed/runtime/user-action.mjs +1 -273
- package/dist/components/biz/basics/fullscreen-feed/runtime/video-slide.mjs +1 -373
- package/dist/components/biz/basics/fullscreen-feed/schema/component.mjs +1 -14
- package/dist/components/biz/basics/fullscreen-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/basics/fullscreen-feed/schema/event.schema.mjs +1 -13
- package/dist/components/biz/basics/fullscreen-feed/schema/index.mjs +1 -17
- package/dist/components/biz/basics/fullscreen-feed/schema/props.schema.mjs +1 -20
- package/dist/components/biz/basics/fullscreen-feed/schema/style.schema.mjs +1 -5
- package/dist/components/biz/basics/logo/variants/basic-logo/defaults/default-props.mjs +1 -19
- package/dist/components/biz/basics/logo/variants/basic-logo/index.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -169
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/component.mjs +1 -14
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/data.schema.mjs +1 -9
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/event.schema.mjs +1 -23
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/index.mjs +1 -17
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/props.schema.mjs +1 -78
- package/dist/components/biz/basics/logo/variants/basic-logo/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/shared/components/search-box.mjs +1 -55
- package/dist/components/biz/basics/search/shared/config/default-data.mjs +1 -15
- package/dist/components/biz/basics/search/shared/config/schema.mjs +1 -50
- package/dist/components/biz/basics/search/variants/basic-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/basic-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/basic-search/runtime/client.mjs +1 -31
- package/dist/components/biz/basics/search/variants/basic-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/basic-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/basic-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/basic-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/basic-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/defaults/default-props.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/index.mjs +1 -12
- package/dist/components/biz/basics/search/variants/filter-search/runtime/client.mjs +1 -63
- package/dist/components/biz/basics/search/variants/filter-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/filter-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/filter-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/filter-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/filter-search/schema/props.schema.mjs +1 -22
- package/dist/components/biz/basics/search/variants/filter-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/defaults/default-props.mjs +1 -10
- package/dist/components/biz/basics/search/variants/simple-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -37
- package/dist/components/biz/basics/search/variants/simple-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/simple-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/simple-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/simple-search/schema/props.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/simple-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/defaults/default-props.mjs +1 -18
- package/dist/components/biz/basics/search/variants/tag-search/index.mjs +1 -9
- package/dist/components/biz/basics/search/variants/tag-search/runtime/client.mjs +1 -67
- package/dist/components/biz/basics/search/variants/tag-search/schema/component.mjs +1 -14
- package/dist/components/biz/basics/search/variants/tag-search/schema/data.schema.mjs +1 -8
- package/dist/components/biz/basics/search/variants/tag-search/schema/event.schema.mjs +1 -7
- package/dist/components/biz/basics/search/variants/tag-search/schema/index.mjs +1 -17
- package/dist/components/biz/basics/search/variants/tag-search/schema/props.schema.mjs +1 -37
- package/dist/components/biz/basics/search/variants/tag-search/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/banner/variants/basic-banner/index.mjs +1 -12
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -64
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -21
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.mjs +1 -126
- package/dist/components/biz/business/banner/variants/basic-banner/schema/component.mjs +1 -14
- package/dist/components/biz/business/banner/variants/basic-banner/schema/data.schema.mjs +1 -53
- package/dist/components/biz/business/banner/variants/basic-banner/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/banner/variants/basic-banner/schema/index.mjs +1 -17
- package/dist/components/biz/business/banner/variants/basic-banner/schema/props.schema.mjs +1 -40
- package/dist/components/biz/business/banner/variants/basic-banner/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/banner/variants/basic-banner/server.mjs +1 -25
- package/dist/components/biz/business/banner-carousel/client.mjs +1 -122
- package/dist/components/biz/business/banner-carousel/default-props.mjs +1 -15
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -21
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -85
- package/dist/components/biz/business/banner-carousel/server.mjs +1 -22
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-2x4/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/runtime/client.mjs +1 -41
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/index.mjs +1 -9
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/runtime/client.mjs +1 -106
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/component.mjs +1 -14
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/index.mjs +1 -17
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/props.schema.mjs +1 -12
- package/dist/components/biz/business/card-grid/variants/card-grid-3x3-infinite/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/channel-list/channel-filter-dialog.mjs +1 -190
- package/dist/components/biz/business/channel-list/client.mjs +1 -136
- package/dist/components/biz/business/channel-list/default-props.mjs +1 -12
- package/dist/components/biz/business/channel-list/material.mjs +1 -21
- package/dist/components/biz/business/channel-list/schema.mjs +1 -39
- package/dist/components/biz/business/comment/comment-input.mjs +5 -772
- package/dist/components/biz/business/comment/comment-item.mjs +1 -190
- package/dist/components/biz/business/comment/comment-list.mjs +1 -722
- package/dist/components/biz/business/comment/comment-media.mjs +1 -57
- package/dist/components/biz/business/comment/comment-rich-text.mjs +1 -69
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -978
- package/dist/components/biz/business/comment/time-display.mjs +1 -20
- package/dist/components/biz/business/comment/use-keyboard-handler.mjs +1 -142
- package/dist/components/biz/business/contact/contact-item.mjs +1 -45
- package/dist/components/biz/business/contact/contact-list.mjs +1 -212
- package/dist/components/biz/business/contact/contact-search.mjs +1 -128
- package/dist/components/biz/business/detail/shared/detail-follow-action.mjs +1 -105
- package/dist/components/biz/business/detail/shared/detail-info-tags.mjs +1 -24
- package/dist/components/biz/business/detail/shared/detail-info-title.mjs +1 -82
- package/dist/components/biz/business/detail/shared/detail-introduction.mjs +1 -109
- package/dist/components/biz/business/detail/shared/detail-operate.mjs +1 -340
- package/dist/components/biz/business/detail/shared/detail-structured-data.mjs +1 -63
- package/dist/components/biz/business/detail/shared/editor-preview.mjs +1 -67
- package/dist/components/biz/business/detail/shared/material-route-context.mjs +1 -44
- package/dist/components/biz/business/detail/shared/metadata-utils.mjs +1 -21
- package/dist/components/biz/business/detail/shared/post-recommend-list.mjs +1 -184
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -52
- package/dist/components/biz/business/detail/shared/runtime-context-provider.mjs +1 -191
- package/dist/components/biz/business/detail/shared/seo-config.mjs +1 -28
- package/dist/components/biz/business/detail/shared/use-video-detail-webview-bridge.mjs +1 -89
- package/dist/components/biz/business/detail/shared/video-detail-server-data.mjs +1 -46
- package/dist/components/biz/business/detail/shared/video-hero.mjs +1 -395
- package/dist/components/biz/business/detail/video-detail-actions/client.mjs +1 -106
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-actions/server.mjs +1 -47
- package/dist/components/biz/business/detail/video-detail-info/client.mjs +1 -41
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info/server.mjs +1 -98
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/client.mjs +1 -51
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -20
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/server.mjs +1 -45
- package/dist/components/biz/business/detail/video-detail-player/client.mjs +1 -144
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -11
- package/dist/components/biz/business/detail/video-detail-player/server.mjs +1 -17
- package/dist/components/biz/business/detail/video-detail-recommend/client.mjs +1 -552
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -58
- package/dist/components/biz/business/detail/video-detail-recommend/server.mjs +1 -18
- package/dist/components/biz/business/detail/video-detail-recommend/utils.mjs +1 -68
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/defaults/default-props.mjs +1 -12
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/index.mjs +1 -9
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/runtime/client.mjs +1 -66
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/component.mjs +1 -14
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/data.schema.mjs +1 -43
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/index.mjs +1 -17
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/props.schema.mjs +1 -32
- package/dist/components/biz/business/feature-grid/variants/basic-feature-grid/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/floating-ball/client.mjs +1 -31
- package/dist/components/biz/business/floating-ball/material.mjs +1 -18
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -22
- package/dist/components/biz/business/floating-ball/server.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/runtime/client.mjs +1 -71
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/index.mjs +1 -9
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs +1 -64
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/component.mjs +1 -14
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/data.schema.mjs +1 -11
- package/dist/components/biz/business/fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs +1 -17
- package/dist/components/biz/business/fullscreen-feed/variants/shared/runtime-compat.mjs +1 -522
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -29
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -36
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -45
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -22
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -33
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -24
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -20
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -18
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -11
- package/dist/components/biz/business/header-search/header-search/server.mjs +1 -17
- package/dist/components/biz/business/header-search/shared/avatar.mjs +1 -44
- package/dist/components/biz/business/header-search/shared/logo.mjs +1 -28
- package/dist/components/biz/business/header-search/shared/search.mjs +1 -28
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.mjs +1 -48
- package/dist/components/biz/business/home-recommend/home-recommend-grid/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -193
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-grid/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-grid/server.mjs +1 -49
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.mjs +1 -44
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/index.mjs +1 -14
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -169
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -18
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/schema.mjs +1 -24
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/server.mjs +1 -44
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +1 -498
- package/dist/components/biz/business/home-recommend/shared/home-recommend-default-config.mjs +1 -25
- package/dist/components/biz/business/home-recommend/shared/home-recommend-preview.mjs +1 -130
- package/dist/components/biz/business/home-recommend/shared/home-recommend-runtime-props.mjs +1 -34
- package/dist/components/biz/business/home-recommend/shared/home-recommend-server-data.mjs +1 -288
- package/dist/components/biz/business/home-recommend/shared/home-recommend-video-detail.mjs +1 -38
- package/dist/components/biz/business/image-text-recommend/client.mjs +1 -423
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -21
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -117
- package/dist/components/biz/business/image-text-recommend/server.mjs +1 -53
- package/dist/components/biz/business/image-text-recommend/shared/query.mjs +1 -32
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -91
- package/dist/components/biz/business/large-feature-grid/client.mjs +1 -88
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -21
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -81
- package/dist/components/biz/business/large-feature-grid/server.mjs +1 -16
- package/dist/components/biz/business/marquee/client.mjs +1 -230
- package/dist/components/biz/business/marquee/marquee.module.mjs +25 -13
- package/dist/components/biz/business/marquee/material.mjs +1 -21
- package/dist/components/biz/business/marquee/schema.mjs +1 -97
- package/dist/components/biz/business/marquee/server.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/defaults/default-props.mjs +1 -21
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/index.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/channel-filter-dialog.mjs +1 -180
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -148
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/event.schema.mjs +1 -27
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/props.schema.mjs +1 -92
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/post-card/variants/basic-post-card/defaults/default-props.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/index.mjs +1 -9
- package/dist/components/biz/business/post-card/variants/basic-post-card/runtime/client.mjs +1 -119
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/component.mjs +1 -14
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/data.schema.mjs +1 -8
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/index.mjs +1 -17
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/props.schema.mjs +1 -5
- package/dist/components/biz/business/post-card/variants/basic-post-card/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -243
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -59
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -235
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -135
- package/dist/components/biz/business/profile/profile-main/client.mjs +1 -234
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -18
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -11
- package/dist/components/biz/business/profile/profile-main/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/shell.mjs +1 -187
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.mjs +1 -519
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.mjs +1 -250
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.mjs +1 -250
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.mjs +1 -149
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/server.mjs +1 -13
- package/dist/components/biz/business/profile/profile-main/utils.mjs +1 -248
- package/dist/components/biz/business/profile/profile-main/variants.mjs +1 -40
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/index.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/client.mjs +1 -168
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/runtime/recommended-users-skeleton.mjs +1 -119
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/component.mjs +1 -14
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/event.schema.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/index.mjs +1 -17
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/props.schema.mjs +1 -54
- package/dist/components/biz/business/recommended-users/variants/basic-recommended-users/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/basic-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/defaults/default-props.mjs +1 -22
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/runtime/client.mjs +1 -53
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/event.schema.mjs +1 -5
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/props.schema.mjs +1 -117
- package/dist/components/biz/business/search-bar/variants/detail-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/index.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/runtime/client.mjs +1 -52
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/event.schema.mjs +1 -25
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/props.schema.mjs +1 -128
- package/dist/components/biz/business/search-bar/variants/filter-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/defaults/default-props.mjs +1 -15
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/index.mjs +1 -12
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/runtime/client.mjs +1 -58
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/component.mjs +1 -14
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/data.schema.mjs +1 -9
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/event.schema.mjs +1 -38
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/index.mjs +1 -17
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/props.schema.mjs +1 -144
- package/dist/components/biz/business/search-bar/variants/tag-search-bar/schema/style.schema.mjs +1 -7
- package/dist/components/biz/business/search-history/client.mjs +1 -121
- package/dist/components/biz/business/search-history/material.mjs +1 -18
- package/dist/components/biz/business/search-history/schema.mjs +1 -20
- package/dist/components/biz/business/search-history/server.mjs +1 -17
- package/dist/components/biz/business/search-input/client.mjs +1 -108
- package/dist/components/biz/business/search-input/material.mjs +1 -18
- package/dist/components/biz/business/search-input/schema.mjs +1 -11
- package/dist/components/biz/business/search-input/server.mjs +1 -17
- package/dist/components/biz/business/shortcut-grid/client.mjs +1 -64
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -18
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -70
- package/dist/components/biz/business/shortcut-grid/server.mjs +1 -17
- package/dist/components/biz/business/tab-bar/client.mjs +1 -102
- package/dist/components/biz/business/tab-bar/material.mjs +1 -21
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -11
- package/dist/components/biz/business/tab-bar/server.mjs +1 -17
- package/dist/components/biz/business/text-recommend/client.mjs +1 -69
- package/dist/components/biz/business/text-recommend/material.mjs +1 -18
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -28
- package/dist/components/biz/business/text-recommend/server.mjs +1 -18
- package/dist/components/biz/example/button/client.mjs +1 -43
- package/dist/components/biz/example/button/material.mjs +1 -18
- package/dist/components/biz/example/button/schema.mjs +1 -47
- package/dist/components/biz/example/button/server.mjs +1 -32
- package/dist/components/biz/example/button/variants.mjs +1 -22
- package/dist/components/biz/renderer/renderer.mjs +1 -73
- package/dist/components/biz/utils/constants/card-spec.mjs +1 -48
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +1 -14
- package/dist/components/biz/utils/helpers/url.mjs +1 -16
- package/dist/components/biz/utils/schema/data.mjs +1 -22
- package/dist/components/biz/utils/styles/helpers.mjs +1 -84
- package/dist/components/biz/utils/styles/schema.mjs +1 -306
- package/dist/components/biz/utils/transformers/card-grid.mjs +1 -71
- package/dist/components/biz/utils/transformers/data.mjs +1 -171
- package/dist/components/common/at-element/index.mjs +1 -47
- package/dist/components/common/background-preview-modal/background-preview-modal.mjs +1 -73
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +1 -54
- package/dist/components/common/cards/mini-three-card.mjs +1 -55
- package/dist/components/common/cards/style.module.mjs +24 -12
- package/dist/components/common/collection-popup/collection-create-modal.mjs +1 -130
- package/dist/components/common/collection-popup/index.mjs +1 -292
- package/dist/components/common/debug-locale-switcher/index.mjs +1 -59
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -66
- package/dist/components/common/empty/index.mjs +1 -51
- package/dist/components/common/follow-button/index.mjs +1 -133
- package/dist/components/common/follow-button/unfollow-confirm-dialog.mjs +1 -23
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -85
- package/dist/components/common/header-nav/client.mjs +1 -51
- package/dist/components/common/icons/add.mjs +1 -21
- package/dist/components/common/icons/comment.mjs +1 -30
- package/dist/components/common/icons/delete.mjs +1 -32
- package/dist/components/common/icons/left-arrow.mjs +1 -15
- package/dist/components/common/icons/more.mjs +1 -30
- package/dist/components/common/icons/right-arrow.mjs +1 -19
- package/dist/components/common/icons/setting.mjs +1 -45
- package/dist/components/common/icons/share.mjs +1 -20
- package/dist/components/common/icons/video.mjs +1 -22
- package/dist/components/common/image-crop/image-crop.mjs +1 -182
- package/dist/components/common/image-crop/show-image-crop.mjs +1 -102
- package/dist/components/common/image-crop-modal/image-crop-modal.mjs +2 -128
- package/dist/components/common/info-card/card-header.mjs +1 -70
- package/dist/components/common/info-card/card-text.mjs +1 -49
- package/dist/components/common/interaction-animations.module.mjs +84 -14
- package/dist/components/common/intl-provider/intl-provider.mjs +1 -21
- package/dist/components/common/keep-scroll-position/index.mjs +1 -39
- package/dist/components/common/list/collection-list/collection-list-item.mjs +1 -93
- package/dist/components/common/list/collection-list/collection-list.mjs +1 -21
- package/dist/components/common/list/post-list/post-list-item.mjs +1 -54
- package/dist/components/common/list/post-list/post-list.mjs +1 -143
- package/dist/components/common/list/user-activity-list/user-activity-list-actions.mjs +1 -269
- package/dist/components/common/list/user-activity-list/user-activity-list-item.mjs +1 -468
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -139
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -104
- package/dist/components/common/list/video-list/video-list.mjs +1 -152
- package/dist/components/common/locale-sync/locale-sync.mjs +1 -62
- package/dist/components/common/login-dialog/login-dialog.mjs +1 -29
- package/dist/components/common/media-preview/index.mjs +1 -162
- package/dist/components/common/media-preview/video-play.mjs +1 -237
- package/dist/components/common/page-loading/index.mjs +1 -20
- package/dist/components/common/page-skeleton/page-skeleton.mjs +1 -7
- package/dist/components/common/photo-grid/common-photo-grid.d.mts +1 -0
- package/dist/components/common/photo-grid/common-photo-grid.mjs +1 -320
- package/dist/components/common/photo-grid/index.mjs +1 -226
- package/dist/components/common/photo-preview/common-photo-preview.mjs +1 -96
- package/dist/components/common/photo-preview/decrypt-loading.mjs +2 -66
- package/dist/components/common/photo-preview/index.d.mts +2 -0
- package/dist/components/common/photo-preview/index.mjs +1 -63
- package/dist/components/common/photo-preview/style.mjs +19 -7
- package/dist/components/common/picker/gender-picker/gender-picker.mjs +1 -66
- package/dist/components/common/picker/picker-drawer/picker-drawer.mjs +1 -78
- package/dist/components/common/popup-video/index.mjs +1 -76
- package/dist/components/common/popup-video/popup-video.module.mjs +16 -7
- package/dist/components/common/series-episodes/index.mjs +1 -555
- package/dist/components/common/share-popup/share-content.mjs +1 -155
- package/dist/components/common/share-popup/share-drawer.mjs +1 -100
- package/dist/components/common/share-popup/share-popup.mjs +1 -326
- package/dist/components/common/skeleton/post-list-item-skeleton.mjs +1 -99
- package/dist/components/common/skeleton/search-video-card-skeleton.mjs +2 -0
- package/dist/components/common/skeleton/user-activity-list-item-skeleton.mjs +1 -146
- package/dist/components/common/skeleton/video-list-item-skeleton.mjs +1 -110
- package/dist/components/common/tab-bar/index.mjs +1 -120
- package/dist/components/common/theme-sync/index.mjs +1 -22
- package/dist/components/common/top-nav-bar/client.mjs +1 -63
- package/dist/components/common/top-nav-bar/fullscreen.mjs +1 -27
- package/dist/components/common/top-nav-bar/index.mjs +1 -29
- package/dist/components/common/top-nav-bar/normal.mjs +1 -20
- package/dist/components/common/video-player/create-video.mjs +2 -27
- package/dist/components/common/video-player/index.mjs +5 -710
- package/dist/components/common/video-player/playing-videos.mjs +1 -73
- package/dist/components/common/video-player/process-m3u8-cache.mjs +1 -282
- package/dist/components/common/video-player/style.module.mjs +257 -7
- package/dist/components/common/wait-loading.mjs +1 -119
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -80
- package/dist/components/pages/(follow)/_components/header-nav/index.mjs +1 -13
- package/dist/components/pages/(follow)/_components/interaction-tabs/index.mjs +1 -43
- package/dist/components/pages/(follow)/_components/user-list/index.mjs +1 -139
- package/dist/components/pages/(follow)/_components/user-list/user-list-item.mjs +1 -46
- package/dist/components/pages/(follow)/fans/index.mjs +1 -10
- package/dist/components/pages/(follow)/fans/page.mjs +1 -95
- package/dist/components/pages/(follow)/followed/index.mjs +1 -10
- package/dist/components/pages/(follow)/followed/page.mjs +1 -95
- package/dist/components/pages/collection-add/index.mjs +1 -10
- package/dist/components/pages/collection-add/page.mjs +1 -161
- package/dist/components/pages/collection-create/form.mjs +1 -163
- package/dist/components/pages/collection-create/index.mjs +1 -10
- package/dist/components/pages/collection-create/page.mjs +1 -28
- package/dist/components/pages/collection-detail/_components/collection-detail-card.mjs +1 -183
- package/dist/components/pages/collection-detail/detail.mjs +1 -538
- package/dist/components/pages/collection-detail/index.mjs +1 -10
- package/dist/components/pages/collection-detail/page.mjs +1 -18
- package/dist/components/pages/edit/index.mjs +1 -10
- package/dist/components/pages/edit/page.mjs +1 -655
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -382
- package/dist/components/pages/feed-series/page.mjs +1 -97
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -256
- package/dist/components/pages/feedback/index.mjs +1 -10
- package/dist/components/pages/feedback/page.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/index.mjs +1 -10
- package/dist/components/pages/fullscreen-feed/page.mjs +1 -104
- package/dist/components/pages/home/channel-matcher.mjs +1 -30
- package/dist/components/pages/home/client.mjs +1 -155
- package/dist/components/pages/home/index.mjs +1 -56
- package/dist/components/pages/login/agreement-dialog.mjs +1 -104
- package/dist/components/pages/login/auth-guard.mjs +1 -37
- package/dist/components/pages/login/forgot.mjs +1 -130
- package/dist/components/pages/login/index.mjs +1 -107
- package/dist/components/pages/login/login-client.mjs +1 -214
- package/dist/components/pages/login/password.mjs +1 -186
- package/dist/components/pages/login/register.mjs +1 -189
- package/dist/components/pages/login/reset-password.mjs +1 -193
- package/dist/components/pages/login/verify.mjs +3 -212
- package/dist/components/pages/post-detail/page.mjs +1 -28
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -516
- package/dist/components/pages/profile/index.mjs +1 -10
- package/dist/components/pages/profile/page.mjs +1 -28
- package/dist/components/pages/publish/components/collection-card.mjs +1 -49
- package/dist/components/pages/publish/components/collection-popup.mjs +1 -81
- package/dist/components/pages/publish/components/collection.mjs +1 -97
- package/dist/components/pages/publish/components/cover-item.mjs +1 -46
- package/dist/components/pages/publish/components/editor.mjs +1 -208
- package/dist/components/pages/publish/components/header.mjs +1 -31
- package/dist/components/pages/publish/components/material-grid.mjs +1 -52
- package/dist/components/pages/publish/components/material-item.mjs +1 -68
- package/dist/components/pages/publish/components/toolbar.mjs +1 -39
- package/dist/components/pages/publish/components/upload-progress.mjs +1 -53
- package/dist/components/pages/publish/components/video-item.mjs +1 -36
- package/dist/components/pages/publish/constants.mjs +1 -8
- package/dist/components/pages/publish/hooks/use-file-upload.mjs +1 -162
- package/dist/components/pages/publish/page-client.mjs +1 -345
- package/dist/components/pages/publish/page.mjs +1 -11
- package/dist/components/pages/publish/utils/file-upload.mjs +1 -155
- package/dist/components/pages/publish/utils/publish-utils.mjs +1 -11
- package/dist/components/pages/search/hot-recommend.mjs +1 -185
- package/dist/components/pages/search/hot-search.mjs +1 -70
- package/dist/components/pages/search/index.mjs +1 -17
- package/dist/components/pages/search/page-client.mjs +1 -159
- package/dist/components/pages/search/search-result/index.mjs +1 -22
- package/dist/components/pages/search/search-result/search-all.mjs +1 -223
- package/dist/components/pages/search/search-result/search-user.mjs +1 -203
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -324
- package/dist/components/pages/search/search-utils.mjs +1 -48
- package/dist/components/pages/search/style.module.mjs +113 -13
- package/dist/components/pages/search/top-header.mjs +1 -91
- package/dist/components/pages/search-result/page-client.mjs +1 -117
- package/dist/components/pages/search-result/search-all.mjs +1 -82
- package/dist/components/pages/search-result/search-result-skeleton.mjs +1 -22
- package/dist/components/pages/search-result/search-tab.mjs +1 -89
- package/dist/components/pages/search-result/search-user.mjs +1 -253
- package/dist/components/pages/search-result/search-video.mjs +1 -226
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +4 -256
- package/dist/components/pages/settings/_components/settings.mjs +1 -183
- package/dist/components/pages/settings/index.mjs +1 -10
- package/dist/components/pages/settings/page.mjs +1 -13
- package/dist/components/pages/user-follow/_components/follow-no-login.mjs +1 -34
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -25
- package/dist/components/pages/user-follow/_components/post-tab.mjs +1 -96
- package/dist/components/pages/user-follow/index.mjs +1 -10
- package/dist/components/pages/user-follow/page.mjs +1 -106
- package/dist/components/pages/user-follow/skeleton.mjs +1 -62
- package/dist/components/pages/video-detail/page.mjs +1 -47
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -357
- package/dist/components/pages/video-list/index.mjs +1 -59
- package/dist/components/pages/video-list/types.mjs +1 -16
- package/dist/components/pages/video-list/video-list-client.mjs +1 -106
- package/dist/components/pages/video-list/video-list-item.mjs +1 -92
- package/dist/components/pages/video-list/video-list-skeleton.mjs +1 -62
- package/dist/components/ui/accordion.mjs +1 -62
- package/dist/components/ui/alert-dialog.mjs +1 -114
- package/dist/components/ui/alert.mjs +1 -50
- package/dist/components/ui/aspect-ratio.mjs +1 -17
- package/dist/components/ui/avatar.mjs +1 -106
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/badge.mjs +1 -38
- package/dist/components/ui/box.mjs +1 -17
- package/dist/components/ui/breadcrumb.mjs +1 -84
- package/dist/components/ui/button-group.d.mts +1 -1
- package/dist/components/ui/button-group.mjs +1 -49
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/button.mjs +1 -50
- package/dist/components/ui/card.mjs +1 -65
- package/dist/components/ui/carousel.mjs +1 -142
- package/dist/components/ui/checkbox.mjs +1 -25
- package/dist/components/ui/collapsible.mjs +1 -31
- package/dist/components/ui/combobox.mjs +1 -185
- package/dist/components/ui/context-menu.mjs +1 -150
- package/dist/components/ui/dialog.mjs +1 -109
- package/dist/components/ui/drawer.mjs +1 -91
- package/dist/components/ui/dropdown-menu.mjs +1 -154
- package/dist/components/ui/empty-icons.mjs +7 -96
- package/dist/components/ui/empty.mjs +1 -95
- package/dist/components/ui/field.d.mts +1 -1
- package/dist/components/ui/field.mjs +1 -131
- package/dist/components/ui/hover-card.mjs +1 -43
- package/dist/components/ui/image.mjs +1 -257
- package/dist/components/ui/infinite-scroll.mjs +1 -168
- package/dist/components/ui/input-group.mjs +1 -90
- package/dist/components/ui/input.mjs +1 -19
- package/dist/components/ui/item.mjs +1 -137
- package/dist/components/ui/kbd.mjs +1 -24
- package/dist/components/ui/label.mjs +1 -18
- package/dist/components/ui/legacy/badge.mjs +1 -80
- package/dist/components/ui/legacy/button.mjs +1 -55
- package/dist/components/ui/legacy/input.mjs +1 -22
- package/dist/components/ui/legacy/popover.mjs +1 -69
- package/dist/components/ui/link.mjs +1 -32
- package/dist/components/ui/list.mjs +5 -221
- package/dist/components/ui/loading.mjs +1 -44
- package/dist/components/ui/mask.mjs +1 -17
- package/dist/components/ui/menubar.mjs +1 -154
- package/dist/components/ui/native-select.mjs +1 -43
- package/dist/components/ui/pagination.mjs +1 -90
- package/dist/components/ui/popover.mjs +1 -73
- package/dist/components/ui/popup.mjs +1 -44
- package/dist/components/ui/progress.mjs +1 -53
- package/dist/components/ui/radio-group.mjs +1 -34
- package/dist/components/ui/rate.mjs +1 -69
- package/dist/components/ui/scroll-area.mjs +1 -43
- package/dist/components/ui/select.mjs +1 -113
- package/dist/components/ui/separator.mjs +1 -20
- package/dist/components/ui/sheet.mjs +1 -109
- package/dist/components/ui/skeleton.mjs +1 -16
- package/dist/components/ui/slider.mjs +1 -46
- package/dist/components/ui/sonner.mjs +1 -34
- package/dist/components/ui/spinner.mjs +1 -18
- package/dist/components/ui/switch.mjs +1 -65
- package/dist/components/ui/table.mjs +1 -78
- package/dist/components/ui/tabs.mjs +1 -54
- package/dist/components/ui/text.mjs +1 -20
- package/dist/components/ui/textarea.mjs +1 -16
- package/dist/components/ui/time.mjs +1 -91
- package/dist/components/ui/toggle-group.mjs +1 -59
- package/dist/components/ui/toggle.mjs +1 -41
- package/dist/components/ui/tooltip.mjs +1 -49
- package/dist/components/ui/wheel-picker.mjs +1 -28
- package/dist/constants/event-key.mjs +1 -18
- package/dist/constants/query-key.mjs +1 -32
- package/dist/constants/revalidate.mjs +1 -9
- package/dist/constants/site.mjs +1 -11
- package/dist/constants/url-prefix.mjs +1 -11
- package/dist/hooks/image-text-recommend.mjs +1 -71
- package/dist/hooks/query/hydration-boundary.mjs +1 -34
- package/dist/hooks/query/use-query.mjs +1 -114
- package/dist/hooks/use-auth.mjs +1 -198
- package/dist/hooks/use-browse-report.mjs +1 -466
- package/dist/hooks/use-card-decoration.mjs +1 -92
- package/dist/hooks/use-content-operate.mjs +1 -525
- package/dist/hooks/use-follow.mjs +1 -69
- package/dist/hooks/use-fullscreen-gestures.mjs +1 -144
- package/dist/hooks/use-interaction-animation.mjs +1 -26
- package/dist/hooks/use-keyboard-open.mjs +1 -56
- package/dist/hooks/use-like-dislike.mjs +1 -40
- package/dist/hooks/use-search-history.mjs +1 -53
- package/dist/hooks/use-sticky.mjs +1 -50
- package/dist/hooks.mjs +1 -14
- package/dist/i18n/locales/en.mjs +3 -820
- package/dist/i18n/locales/zh-CN.mjs +3 -820
- package/dist/i18n/messages.mjs +1 -20
- package/dist/i18n/translator.mjs +1 -38
- package/dist/i18n.mjs +1 -165
- package/dist/materials.mjs +1 -61
- package/dist/node_modules/.pnpm/style-inject@0.3.0/node_modules/style-inject/dist/style-inject.es.mjs +1 -17
- package/dist/pages.mjs +1 -23
- package/dist/seo/build-metadata.mjs +1 -163
- package/dist/seo/config/index.mjs +1 -22
- package/dist/seo/config/page.mjs +6 -301
- package/dist/seo/config/site.mjs +1 -25
- package/dist/seo/constants.mjs +1 -31
- package/dist/seo/helpers.mjs +1 -120
- package/dist/seo/resource-hints.mjs +1 -60
- package/dist/seo/robots.mjs +1 -36
- package/dist/seo/sitemap.mjs +1 -44
- package/dist/seo/structured-data/article.mjs +1 -51
- package/dist/seo/structured-data/common.mjs +1 -60
- package/dist/seo/structured-data/video.mjs +1 -41
- package/dist/seo/viewport.mjs +1 -31
- package/dist/seo.mjs +1 -15
- package/dist/service/generated/client.mjs +1 -1138
- package/dist/service/generated/tanstack.mjs +1 -1049
- package/dist/service/register-by-verify-email-code.d.mts +15 -0
- package/dist/service/register-by-verify-email-code.mjs +2 -0
- package/dist/service.d.mts +2 -1
- package/dist/service.mjs +1 -4
- package/dist/store/create-store.mjs +1 -25
- package/dist/store/modules/app-config-store.mjs +1 -28
- package/dist/store/modules/blocked-modal-store.mjs +1 -30
- package/dist/store/modules/follow-ids-store.mjs +1 -12
- package/dist/store/modules/login-modal-store.mjs +1 -155
- package/dist/store/modules/media-preview-store.mjs +1 -54
- package/dist/store/modules/publish-store.mjs +1 -31
- package/dist/store/modules/use-demo-store.mjs +1 -17
- package/dist/store/modules/user-store.mjs +1 -113
- package/dist/store.mjs +1 -10
- package/dist/types/safe-at-user.mjs +1 -15
- package/dist/types/safe-comment.mjs +1 -30
- package/dist/types/safe-grid.mjs +1 -36
- package/dist/types/safe-replay.mjs +1 -43
- package/dist/types/share.mjs +1 -16
- package/dist/ui.mjs +1 -57
- package/dist/utils/api-collect.mjs +1 -14
- package/dist/utils/channel-storage.mjs +1 -57
- package/dist/utils/cn.mjs +1 -15
- package/dist/utils/common.mjs +1 -296
- package/dist/utils/db.mjs +1 -80
- package/dist/utils/decrypt-image-client.mjs +1 -325
- package/dist/utils/decrypt.worker.mjs +2 -20
- package/dist/utils/event-bus.mjs +1 -33
- package/dist/utils/follow-service.mjs +1 -87
- package/dist/utils/get-res-url.mjs +1 -94
- package/dist/utils/helper.mjs +1 -33
- package/dist/utils/http.mjs +1 -194
- package/dist/utils/image-compression.mjs +1 -59
- package/dist/utils/image-crop.mjs +1 -110
- package/dist/utils/loaders.mjs +1 -51
- package/dist/utils/login-modal-bridge.mjs +1 -65
- package/dist/utils/media.mjs +1 -128
- package/dist/utils/password-validator.mjs +1 -86
- package/dist/utils/s3-uploader.mjs +1 -40
- package/dist/utils/schema/material.mjs +1 -24
- package/dist/utils/schema/schema.mjs +1 -147
- package/dist/utils/schema/utils.mjs +1 -27
- package/dist/utils/share-manager.mjs +1 -183
- package/dist/utils/tools.mjs +1 -105
- package/dist/utils/uint8.mjs +1 -46
- package/dist/utils/upload-file.mjs +1 -429
- package/dist/utils.mjs +1 -21
- package/package.json +1 -1
|
@@ -1,215 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Button } from "../../ui/button.mjs";
|
|
5
|
-
import { ensureGuestIdentity } from "../../../store/modules/user-store.mjs";
|
|
6
|
-
import { Box } from "../../ui/box.mjs";
|
|
7
|
-
import { Checkbox } from "../../ui/checkbox.mjs";
|
|
8
|
-
import { Input } from "../../ui/input.mjs";
|
|
9
|
-
import { Text } from "../../ui/text.mjs";
|
|
10
|
-
import { CloseIcon } from "../../../assets/icons/close-icon.mjs";
|
|
11
|
-
import { EyeIcon } from "../../../assets/icons/eye-icon.mjs";
|
|
12
|
-
import { EyeOffIcon } from "../../../assets/icons/eye-off-icon.mjs";
|
|
13
|
-
import { AgreementDialog } from "./agreement-dialog.mjs";
|
|
14
|
-
import { useCallback, useMemo, useState } from "react";
|
|
15
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { useTranslations } from "next-intl";
|
|
17
|
-
|
|
18
|
-
//#region components/pages/login/login-client.tsx
|
|
19
|
-
function LoginClient(props) {
|
|
20
|
-
const t = useTranslations("components.pages.login");
|
|
21
|
-
const { onClose, onForgotPassword, onRegister, onSubmit, errorText } = props;
|
|
22
|
-
const [email, setEmail] = useState("");
|
|
23
|
-
const [password, setPassword] = useState("");
|
|
24
|
-
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
|
|
25
|
-
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
26
|
-
const [agreedToTerms, setAgreedToTerms] = useState(false);
|
|
27
|
-
const [agreementDialog, setAgreementDialog] = useState(null);
|
|
28
|
-
const canSubmit = useMemo(() => {
|
|
29
|
-
return email.trim().length > 0 && password.length > 0 && agreedToTerms && !isSubmitting;
|
|
30
|
-
}, [
|
|
31
|
-
email,
|
|
32
|
-
password,
|
|
33
|
-
agreedToTerms,
|
|
34
|
-
isSubmitting
|
|
35
|
-
]);
|
|
36
|
-
const onRegisterHandler = useCallback(() => {
|
|
37
|
-
ensureGuestIdentity(true);
|
|
38
|
-
onRegister?.();
|
|
39
|
-
}, [onRegister]);
|
|
40
|
-
async function handleSubmit() {
|
|
41
|
-
if (!canSubmit) return;
|
|
42
|
-
try {
|
|
43
|
-
setIsSubmitting(true);
|
|
44
|
-
await onSubmit?.({
|
|
45
|
-
email: email.trim(),
|
|
46
|
-
password
|
|
47
|
-
});
|
|
48
|
-
} finally {
|
|
49
|
-
setIsSubmitting(false);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
53
|
-
className: "min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col",
|
|
54
|
-
children: [
|
|
55
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
56
|
-
className: "flex justify-between items-center h-[60px] px-[16px]",
|
|
57
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
58
|
-
type: "button",
|
|
59
|
-
onClick: onClose,
|
|
60
|
-
"aria-label": t("loginClient.close"),
|
|
61
|
-
className: "cursor-pointer bg-transparent !p-0 !px-0 !py-0",
|
|
62
|
-
children: /* @__PURE__ */ jsx(CloseIcon, {
|
|
63
|
-
className: "w-[16px] h-[16px] text-text1/80",
|
|
64
|
-
"aria-hidden": "true",
|
|
65
|
-
focusable: "false"
|
|
66
|
-
})
|
|
67
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
68
|
-
type: "button",
|
|
69
|
-
onClick: onForgotPassword,
|
|
70
|
-
className: "text-[14px] text-text2 hover:text-text1 bg-transparent !p-0 !px-0 !py-0",
|
|
71
|
-
children: t("loginClient.forgotPassword")
|
|
72
|
-
})]
|
|
73
|
-
}),
|
|
74
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
75
|
-
className: "px-[24px] flex flex-1 flex-col mt-[15px]",
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
78
|
-
className: "flex flex-col",
|
|
79
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
80
|
-
className: "text-[24px] leading-[32px] font-bold",
|
|
81
|
-
children: t("loginClient.title")
|
|
82
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
83
|
-
className: "text-[14px] leading-[22px] mt-[12px] text-text1/80",
|
|
84
|
-
children: [
|
|
85
|
-
t("loginClient.noAccount"),
|
|
86
|
-
"?",
|
|
87
|
-
/* @__PURE__ */ jsx(Button, {
|
|
88
|
-
type: "button",
|
|
89
|
-
onClick: onRegisterHandler,
|
|
90
|
-
className: "cursor-pointer text-theme5 hover:opacity-90 bg-transparent !p-0 !px-0 !py-0",
|
|
91
|
-
children: t("loginClient.registerLink")
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
})]
|
|
95
|
-
}),
|
|
96
|
-
/* @__PURE__ */ jsxs("form", {
|
|
97
|
-
className: "mt-[38px] space-y-[16px]",
|
|
98
|
-
autoComplete: "off",
|
|
99
|
-
onSubmit: (e) => {
|
|
100
|
-
e.preventDefault();
|
|
101
|
-
handleSubmit();
|
|
102
|
-
},
|
|
103
|
-
children: [/* @__PURE__ */ jsx(Box, {
|
|
104
|
-
className: "flex items-center px-[28px] rounded-[50px] h-[66px] bg-line1 border border-line1",
|
|
105
|
-
children: /* @__PURE__ */ jsx(Input, {
|
|
106
|
-
placeholder: t("loginClient.emailPlaceholder"),
|
|
107
|
-
type: "email",
|
|
108
|
-
name: "funhub-login-email",
|
|
109
|
-
value: email,
|
|
110
|
-
onChange: (e) => setEmail(e.target.value),
|
|
111
|
-
autoComplete: "off",
|
|
112
|
-
autoCorrect: "off",
|
|
113
|
-
autoCapitalize: "none",
|
|
114
|
-
spellCheck: false,
|
|
115
|
-
"data-lpignore": "true",
|
|
116
|
-
"data-1p-ignore": "true",
|
|
117
|
-
"data-form-type": "other",
|
|
118
|
-
className: "!bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]"
|
|
119
|
-
})
|
|
120
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
121
|
-
className: "flex items-center justify-between px-[28px] rounded-[50px] h-[66px] bg-line1 border border-line1",
|
|
122
|
-
children: [/* @__PURE__ */ jsx(Input, {
|
|
123
|
-
placeholder: t("loginClient.passwordPlaceholder"),
|
|
124
|
-
type: isPasswordVisible ? "text" : "password",
|
|
125
|
-
name: "funhub-login-password",
|
|
126
|
-
value: password,
|
|
127
|
-
onChange: (e) => setPassword(e.target.value),
|
|
128
|
-
autoComplete: "new-password",
|
|
129
|
-
autoCorrect: "off",
|
|
130
|
-
autoCapitalize: "none",
|
|
131
|
-
spellCheck: false,
|
|
132
|
-
"data-lpignore": "true",
|
|
133
|
-
"data-1p-ignore": "true",
|
|
134
|
-
"data-form-type": "other",
|
|
135
|
-
className: "flex-1 !bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]"
|
|
136
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
137
|
-
type: "button",
|
|
138
|
-
className: "ml-[10px] cursor-pointer select-none bg-transparent !p-0 !px-0 !py-0",
|
|
139
|
-
"aria-label": isPasswordVisible ? t("loginClient.hidePassword") : t("loginClient.showPassword"),
|
|
140
|
-
onClick: () => setIsPasswordVisible((v) => !v),
|
|
141
|
-
children: isPasswordVisible ? /* @__PURE__ */ jsx(EyeIcon, {
|
|
142
|
-
className: "w-[20px] h-[20px] text-text3",
|
|
143
|
-
"aria-hidden": "true",
|
|
144
|
-
focusable: "false"
|
|
145
|
-
}) : /* @__PURE__ */ jsx(EyeOffIcon, {
|
|
146
|
-
className: "w-[20px] h-[20px] text-text3",
|
|
147
|
-
"aria-hidden": "true",
|
|
148
|
-
focusable: "false"
|
|
149
|
-
})
|
|
150
|
-
})]
|
|
151
|
-
})]
|
|
152
|
-
}),
|
|
153
|
-
/* @__PURE__ */ jsx(Box, {
|
|
154
|
-
className: "h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5",
|
|
155
|
-
children: errorText
|
|
156
|
-
}),
|
|
157
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
158
|
-
className: "mt-auto flex flex-col items-center w-full pb-[55px]",
|
|
159
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
160
|
-
className: "flex items-center justify-center gap-2 flex-wrap mb-[16px] w-full",
|
|
161
|
-
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
162
|
-
checked: agreedToTerms,
|
|
163
|
-
onCheckedChange: (checked) => setAgreedToTerms(checked === true),
|
|
164
|
-
"aria-label": t("loginClient.agreeToTerms"),
|
|
165
|
-
className: "shrink-0"
|
|
166
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
167
|
-
as: "span",
|
|
168
|
-
className: "text-[14px] text-text2",
|
|
169
|
-
children: [
|
|
170
|
-
t("loginClient.agreeToTermsPrefix"),
|
|
171
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
172
|
-
type: "button",
|
|
173
|
-
variant: "link",
|
|
174
|
-
className: "inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent",
|
|
175
|
-
onClick: () => setAgreementDialog("terms"),
|
|
176
|
-
children: [
|
|
177
|
-
"《",
|
|
178
|
-
t("loginClient.userAgreement"),
|
|
179
|
-
"》"
|
|
180
|
-
]
|
|
181
|
-
}),
|
|
182
|
-
t("loginClient.and"),
|
|
183
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
184
|
-
type: "button",
|
|
185
|
-
variant: "link",
|
|
186
|
-
className: "inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent",
|
|
187
|
-
onClick: () => setAgreementDialog("privacy"),
|
|
188
|
-
children: [
|
|
189
|
-
"《",
|
|
190
|
-
t("loginClient.privacyPolicy"),
|
|
191
|
-
"》"
|
|
192
|
-
]
|
|
193
|
-
})
|
|
194
|
-
]
|
|
195
|
-
})]
|
|
196
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
197
|
-
type: "button",
|
|
198
|
-
onClick: handleSubmit,
|
|
199
|
-
disabled: !canSubmit,
|
|
200
|
-
className: "w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0",
|
|
201
|
-
children: isSubmitting ? t("loginClient.loggingIn") : t("loginClient.login")
|
|
202
|
-
})]
|
|
203
|
-
})
|
|
204
|
-
]
|
|
205
|
-
}),
|
|
206
|
-
/* @__PURE__ */ jsx(AgreementDialog, {
|
|
207
|
-
type: agreementDialog,
|
|
208
|
-
onClose: () => setAgreementDialog(null)
|
|
209
|
-
})
|
|
210
|
-
]
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
//#endregion
|
|
215
|
-
export { LoginClient };
|
|
2
|
+
"use client";import{Button as e}from"../../ui/button.mjs";import{ensureGuestIdentity as t}from"../../../store/modules/user-store.mjs";import{Box as n}from"../../ui/box.mjs";import{Checkbox as r}from"../../ui/checkbox.mjs";import{Input as i}from"../../ui/input.mjs";import{Text as a}from"../../ui/text.mjs";import{CloseIcon as o}from"../../../assets/icons/close-icon.mjs";import{EyeIcon as s}from"../../../assets/icons/eye-icon.mjs";import{EyeOffIcon as c}from"../../../assets/icons/eye-off-icon.mjs";import{AgreementDialog as l}from"./agreement-dialog.mjs";import{useCallback as u,useMemo as d,useState as f}from"react";import{jsx as p,jsxs as m}from"react/jsx-runtime";import{useTranslations as h}from"next-intl";function g(g){let _=h(`components.pages.login`),{onClose:v,onForgotPassword:y,onRegister:b,onSubmit:x,errorText:S}=g,[C,w]=f(``),[T,E]=f(``),[D,O]=f(!1),[k,A]=f(!1),[j,M]=f(!1),[N,P]=f(null),F=d(()=>C.trim().length>0&&T.length>0&&j&&!k,[C,T,j,k]),I=u(()=>{t(!0),b?.()},[b]);async function L(){if(F)try{A(!0),await x?.({email:C.trim(),password:T})}finally{A(!1)}}return m(n,{className:`min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col`,children:[m(n,{className:`flex justify-between items-center h-[60px] px-[16px]`,children:[p(e,{type:`button`,onClick:v,"aria-label":_(`loginClient.close`),className:`cursor-pointer bg-transparent !p-0 !px-0 !py-0`,children:p(o,{className:`w-[16px] h-[16px] text-text1/80`,"aria-hidden":`true`,focusable:`false`})}),p(e,{type:`button`,onClick:y,className:`text-[14px] text-text2 hover:text-text1 bg-transparent !p-0 !px-0 !py-0`,children:_(`loginClient.forgotPassword`)})]}),m(n,{className:`px-[24px] flex flex-1 flex-col mt-[15px]`,children:[m(n,{className:`flex flex-col`,children:[p(a,{className:`text-[24px] leading-[32px] font-bold`,children:_(`loginClient.title`)}),m(a,{className:`text-[14px] leading-[22px] mt-[12px] text-text1/80`,children:[_(`loginClient.noAccount`),`?`,p(e,{type:`button`,onClick:I,className:`cursor-pointer text-theme5 hover:opacity-90 bg-transparent !p-0 !px-0 !py-0`,children:_(`loginClient.registerLink`)})]})]}),m(`form`,{className:`mt-[38px] space-y-[16px]`,autoComplete:`off`,onSubmit:e=>{e.preventDefault(),L()},children:[p(n,{className:`flex items-center px-[28px] rounded-[50px] h-[66px] bg-line1 border border-line1`,children:p(i,{placeholder:_(`loginClient.emailPlaceholder`),type:`email`,name:`funhub-login-email`,value:C,onChange:e=>w(e.target.value),autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`!bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]`})}),m(n,{className:`flex items-center justify-between px-[28px] rounded-[50px] h-[66px] bg-line1 border border-line1`,children:[p(i,{placeholder:_(`loginClient.passwordPlaceholder`),type:D?`text`:`password`,name:`funhub-login-password`,value:T,onChange:e=>E(e.target.value),autoComplete:`new-password`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`flex-1 !bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]`}),p(e,{type:`button`,className:`ml-[10px] cursor-pointer select-none bg-transparent !p-0 !px-0 !py-0`,"aria-label":_(D?`loginClient.hidePassword`:`loginClient.showPassword`),onClick:()=>O(e=>!e),children:p(D?s:c,{className:`w-[20px] h-[20px] text-text3`,"aria-hidden":`true`,focusable:`false`})})]})]}),p(n,{className:`h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5`,children:S}),m(n,{className:`mt-auto flex flex-col items-center w-full pb-[55px]`,children:[m(n,{className:`flex items-center justify-center gap-2 flex-wrap mb-[16px] w-full`,children:[p(r,{checked:j,onCheckedChange:e=>M(e===!0),"aria-label":_(`loginClient.agreeToTerms`),className:`shrink-0`}),m(a,{as:`span`,className:`text-[14px] text-text2`,children:[_(`loginClient.agreeToTermsPrefix`),m(e,{type:`button`,variant:`link`,className:`inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent`,onClick:()=>P(`terms`),children:[`《`,_(`loginClient.userAgreement`),`》`]}),_(`loginClient.and`),m(e,{type:`button`,variant:`link`,className:`inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent`,onClick:()=>P(`privacy`),children:[`《`,_(`loginClient.privacyPolicy`),`》`]})]})]}),p(e,{type:`button`,onClick:L,disabled:!F,className:`w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0`,children:_(k?`loginClient.loggingIn`:`loginClient.login`)})]})]}),p(l,{type:N,onClose:()=>P(null)})]})}export{g as LoginClient};
|
|
@@ -1,187 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Button } from "../../ui/button.mjs";
|
|
5
|
-
import { getCookie, hashPassword } from "../../../utils/common.mjs";
|
|
6
|
-
import { pUserRegister, pUserResetForgetPassword, pUserResetPassword } from "../../../service/generated/client.mjs";
|
|
7
|
-
import { getPasswordValidationErrorText, validatePasswordPair } from "../../../utils/password-validator.mjs";
|
|
8
|
-
import { Box } from "../../ui/box.mjs";
|
|
9
|
-
import { Input } from "../../ui/input.mjs";
|
|
10
|
-
import { Text } from "../../ui/text.mjs";
|
|
11
|
-
import { useLoginModalStore } from "../../../store/modules/login-modal-store.mjs";
|
|
12
|
-
import { useSetAuthFields, useUserId } from "../../../hooks/use-auth.mjs";
|
|
13
|
-
import { LeftArrowIcon } from "../../../assets/icons/left-arrow-icon.mjs";
|
|
14
|
-
import { EyeIcon } from "../../../assets/icons/eye-icon.mjs";
|
|
15
|
-
import { EyeOffIcon } from "../../../assets/icons/eye-off-icon.mjs";
|
|
16
|
-
import { useCallback, useMemo, useState } from "react";
|
|
17
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
18
|
-
import { toast } from "sonner";
|
|
19
|
-
import { useTranslations } from "next-intl";
|
|
20
|
-
|
|
21
|
-
//#region components/pages/login/password.tsx
|
|
22
|
-
function Password(props) {
|
|
23
|
-
const t = useTranslations("components.pages.login");
|
|
24
|
-
const { email, onClose } = props;
|
|
25
|
-
const setAuthFields = useSetAuthFields();
|
|
26
|
-
const userId = useUserId();
|
|
27
|
-
const { resolveLogin } = useLoginModalStore();
|
|
28
|
-
const [password, setPassword] = useState("");
|
|
29
|
-
const [confirmPassword, setConfirmPassword] = useState("");
|
|
30
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
31
|
-
const [showConfirmPassword, setShowConfirmPassword] = useState(false);
|
|
32
|
-
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
33
|
-
const [errorText, setErrorText] = useState("");
|
|
34
|
-
const { verifyStep } = useLoginModalStore();
|
|
35
|
-
const resetPassword = useCallback(async () => {
|
|
36
|
-
const encryptedPassword = hashPassword(password);
|
|
37
|
-
if (verifyStep === "reset-password") return await pUserResetPassword({
|
|
38
|
-
user_id: userId,
|
|
39
|
-
password: encryptedPassword
|
|
40
|
-
});
|
|
41
|
-
if (verifyStep === "forgot-password") return await pUserResetForgetPassword({
|
|
42
|
-
email,
|
|
43
|
-
password: encryptedPassword
|
|
44
|
-
});
|
|
45
|
-
return await pUserRegister({
|
|
46
|
-
email,
|
|
47
|
-
user_id: await getCookie("guestUserId"),
|
|
48
|
-
password: encryptedPassword
|
|
49
|
-
});
|
|
50
|
-
}, [
|
|
51
|
-
verifyStep,
|
|
52
|
-
userId,
|
|
53
|
-
email,
|
|
54
|
-
password
|
|
55
|
-
]);
|
|
56
|
-
const validationResult = useMemo(() => validatePasswordPair(password, confirmPassword), [password, confirmPassword]);
|
|
57
|
-
const validationError = useMemo(() => getPasswordValidationErrorText(validationResult), [validationResult]);
|
|
58
|
-
const showPasswordError = validationError !== "";
|
|
59
|
-
const showConfirmPasswordError = validationResult.type === "not-match";
|
|
60
|
-
const canSubmit = useMemo(() => {
|
|
61
|
-
return password.length > 0 && confirmPassword.length > 0 && validationError === "" && !isSubmitting;
|
|
62
|
-
}, [
|
|
63
|
-
password,
|
|
64
|
-
confirmPassword,
|
|
65
|
-
validationError,
|
|
66
|
-
isSubmitting
|
|
67
|
-
]);
|
|
68
|
-
async function handleSubmit() {
|
|
69
|
-
if (!canSubmit) return;
|
|
70
|
-
try {
|
|
71
|
-
setIsSubmitting(true);
|
|
72
|
-
setErrorText("");
|
|
73
|
-
const { data } = await resetPassword();
|
|
74
|
-
if (data?.user_id) {
|
|
75
|
-
setAuthFields({
|
|
76
|
-
token: data.token,
|
|
77
|
-
expireTime: data.expire_time,
|
|
78
|
-
userId: data.user_id
|
|
79
|
-
});
|
|
80
|
-
toast.success(t("password.passwordSetSuccess"));
|
|
81
|
-
}
|
|
82
|
-
resolveLogin(true);
|
|
83
|
-
} catch (error) {
|
|
84
|
-
setErrorText(error.message ?? t("password.submitFailed"));
|
|
85
|
-
} finally {
|
|
86
|
-
setIsSubmitting(false);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
const actionLabel = verifyStep === "reset-password" ? t("password.confirmModify") : verifyStep === "forgot-password" ? t("password.confirmReset") : t("password.register");
|
|
90
|
-
const titleText = verifyStep === "reset-password" ? t("password.setNewPassword") : verifyStep === "forgot-password" ? t("password.setNewPassword") : t("password.setLoginPassword");
|
|
91
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
92
|
-
className: "min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col",
|
|
93
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
94
|
-
className: "flex justify-between items-center h-[60px] px-[16px]",
|
|
95
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
96
|
-
type: "button",
|
|
97
|
-
onClick: onClose,
|
|
98
|
-
"aria-label": t("password.back"),
|
|
99
|
-
className: "cursor-pointer bg-transparent !p-0 !px-0 !py-0",
|
|
100
|
-
children: /* @__PURE__ */ jsx(LeftArrowIcon, {
|
|
101
|
-
className: "w-[16px] h-[16px] text-text1/80",
|
|
102
|
-
"aria-hidden": "true",
|
|
103
|
-
focusable: "false"
|
|
104
|
-
})
|
|
105
|
-
}), /* @__PURE__ */ jsx(Text, { className: "text-[14px] text-text2" })]
|
|
106
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
107
|
-
className: "px-[24px] flex flex-col mt-[15px]",
|
|
108
|
-
children: [/* @__PURE__ */ jsx(Box, {
|
|
109
|
-
className: "flex flex-col",
|
|
110
|
-
children: /* @__PURE__ */ jsx(Text, {
|
|
111
|
-
className: "text-[24px] leading-[32px] font-bold",
|
|
112
|
-
children: titleText
|
|
113
|
-
})
|
|
114
|
-
}), /* @__PURE__ */ jsxs("form", {
|
|
115
|
-
className: "mt-[58px]",
|
|
116
|
-
autoComplete: "off",
|
|
117
|
-
onSubmit: (e) => {
|
|
118
|
-
e.preventDefault();
|
|
119
|
-
handleSubmit();
|
|
120
|
-
},
|
|
121
|
-
children: [
|
|
122
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
123
|
-
className: "space-y-[16px]",
|
|
124
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
125
|
-
className: `flex items-center justify-between px-[28px] rounded-[50px] h-[66px] bg-line1 border ${showPasswordError ? "border-theme5" : "border-line1"}`,
|
|
126
|
-
children: [/* @__PURE__ */ jsx(Input, {
|
|
127
|
-
placeholder: t("password.passwordPlaceholder"),
|
|
128
|
-
type: showPassword ? "text" : "password",
|
|
129
|
-
name: "funhub-password",
|
|
130
|
-
value: password,
|
|
131
|
-
onChange: (e) => setPassword(e.target.value),
|
|
132
|
-
autoComplete: "new-password",
|
|
133
|
-
autoCorrect: "off",
|
|
134
|
-
autoCapitalize: "none",
|
|
135
|
-
spellCheck: false,
|
|
136
|
-
"data-lpignore": "true",
|
|
137
|
-
"data-1p-ignore": "true",
|
|
138
|
-
"data-form-type": "other",
|
|
139
|
-
className: "flex-1 !bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]"
|
|
140
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
141
|
-
type: "button",
|
|
142
|
-
onClick: () => setShowPassword(!showPassword),
|
|
143
|
-
className: "ml-[10px] cursor-pointer bg-transparent !p-0 !px-0 !py-0",
|
|
144
|
-
children: showPassword ? /* @__PURE__ */ jsx(EyeIcon, { className: "w-[20px] h-[20px] text-text3" }) : /* @__PURE__ */ jsx(EyeOffIcon, { className: "w-[20px] h-[20px] text-text3" })
|
|
145
|
-
})]
|
|
146
|
-
}), /* @__PURE__ */ jsxs(Box, {
|
|
147
|
-
className: `flex items-center justify-between px-[28px] rounded-[50px] h-[66px] bg-line1 border ${showConfirmPasswordError ? "border-theme5" : "border-line1"}`,
|
|
148
|
-
children: [/* @__PURE__ */ jsx(Input, {
|
|
149
|
-
placeholder: t("password.confirmPasswordPlaceholder"),
|
|
150
|
-
type: showConfirmPassword ? "text" : "password",
|
|
151
|
-
name: "funhub-confirm-password",
|
|
152
|
-
value: confirmPassword,
|
|
153
|
-
onChange: (e) => setConfirmPassword(e.target.value),
|
|
154
|
-
autoComplete: "new-password",
|
|
155
|
-
autoCorrect: "off",
|
|
156
|
-
autoCapitalize: "none",
|
|
157
|
-
spellCheck: false,
|
|
158
|
-
"data-lpignore": "true",
|
|
159
|
-
"data-1p-ignore": "true",
|
|
160
|
-
"data-form-type": "other",
|
|
161
|
-
className: "flex-1 !bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]"
|
|
162
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
163
|
-
type: "button",
|
|
164
|
-
onClick: () => setShowConfirmPassword(!showConfirmPassword),
|
|
165
|
-
className: "ml-[10px] cursor-pointer bg-transparent !p-0 !px-0 !py-0",
|
|
166
|
-
children: showConfirmPassword ? /* @__PURE__ */ jsx(EyeIcon, { className: "w-[20px] h-[20px] text-text3" }) : /* @__PURE__ */ jsx(EyeOffIcon, { className: "w-[20px] h-[20px] text-text3" })
|
|
167
|
-
})]
|
|
168
|
-
})]
|
|
169
|
-
}),
|
|
170
|
-
/* @__PURE__ */ jsx(Box, {
|
|
171
|
-
className: "h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5",
|
|
172
|
-
children: validationError || errorText
|
|
173
|
-
}),
|
|
174
|
-
/* @__PURE__ */ jsx(Button, {
|
|
175
|
-
type: "submit",
|
|
176
|
-
disabled: !canSubmit,
|
|
177
|
-
className: "w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0",
|
|
178
|
-
children: isSubmitting ? t("password.submitting") : actionLabel
|
|
179
|
-
})
|
|
180
|
-
]
|
|
181
|
-
})]
|
|
182
|
-
})]
|
|
183
|
-
});
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
//#endregion
|
|
187
|
-
export { Password };
|
|
2
|
+
"use client";import{Button as e}from"../../ui/button.mjs";import{getCookie as t,hashPassword as n}from"../../../utils/common.mjs";import{pUserRegister as r,pUserResetForgetPassword as i,pUserResetPassword as a}from"../../../service/generated/client.mjs";import{getPasswordValidationErrorText as o,validatePasswordPair as s}from"../../../utils/password-validator.mjs";import{Box as c}from"../../ui/box.mjs";import{Input as l}from"../../ui/input.mjs";import{Text as u}from"../../ui/text.mjs";import{useLoginModalStore as d}from"../../../store/modules/login-modal-store.mjs";import{useSetAuthFields as f,useUserId as p}from"../../../hooks/use-auth.mjs";import{LeftArrowIcon as m}from"../../../assets/icons/left-arrow-icon.mjs";import{EyeIcon as h}from"../../../assets/icons/eye-icon.mjs";import{EyeOffIcon as g}from"../../../assets/icons/eye-off-icon.mjs";import{useCallback as _,useMemo as v,useState as y}from"react";import{jsx as b,jsxs as x}from"react/jsx-runtime";import{toast as S}from"sonner";import{useTranslations as C}from"next-intl";function w(w){let T=C(`components.pages.login`),{email:E,onClose:D}=w,O=f(),k=p(),{resolveLogin:A}=d(),[j,M]=y(``),[N,P]=y(``),[F,I]=y(!1),[L,R]=y(!1),[z,B]=y(!1),[V,H]=y(``),{verifyStep:U}=d(),W=_(async()=>{let e=n(j);return U===`reset-password`?await a({user_id:k,password:e}):U===`forgot-password`?await i({email:E,password:e}):await r({email:E,user_id:await t(`guestUserId`),password:e})},[U,k,E,j]),G=v(()=>s(j,N),[j,N]),K=v(()=>o(G),[G]),q=K!==``,J=G.type===`not-match`,Y=v(()=>j.length>0&&N.length>0&&K===``&&!z,[j,N,K,z]);async function X(){if(Y)try{B(!0),H(``);let{data:e}=await W();e?.user_id&&(O({token:e.token,expireTime:e.expire_time,userId:e.user_id}),S.success(T(`password.passwordSetSuccess`))),A(!0)}catch(e){H(e.message??T(`password.submitFailed`))}finally{B(!1)}}let Z=T(U===`reset-password`?`password.confirmModify`:U===`forgot-password`?`password.confirmReset`:`password.register`),Q=T(U===`reset-password`||U===`forgot-password`?`password.setNewPassword`:`password.setLoginPassword`);return x(c,{className:`min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col`,children:[x(c,{className:`flex justify-between items-center h-[60px] px-[16px]`,children:[b(e,{type:`button`,onClick:D,"aria-label":T(`password.back`),className:`cursor-pointer bg-transparent !p-0 !px-0 !py-0`,children:b(m,{className:`w-[16px] h-[16px] text-text1/80`,"aria-hidden":`true`,focusable:`false`})}),b(u,{className:`text-[14px] text-text2`})]}),x(c,{className:`px-[24px] flex flex-col mt-[15px]`,children:[b(c,{className:`flex flex-col`,children:b(u,{className:`text-[24px] leading-[32px] font-bold`,children:Q})}),x(`form`,{className:`mt-[58px]`,autoComplete:`off`,onSubmit:e=>{e.preventDefault(),X()},children:[x(c,{className:`space-y-[16px]`,children:[x(c,{className:`flex items-center justify-between px-[28px] rounded-[50px] h-[66px] bg-line1 border ${q?`border-theme5`:`border-line1`}`,children:[b(l,{placeholder:T(`password.passwordPlaceholder`),type:F?`text`:`password`,name:`funhub-password`,value:j,onChange:e=>M(e.target.value),autoComplete:`new-password`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`flex-1 !bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]`}),b(e,{type:`button`,onClick:()=>I(!F),className:`ml-[10px] cursor-pointer bg-transparent !p-0 !px-0 !py-0`,children:b(F?h:g,{className:`w-[20px] h-[20px] text-text3`})})]}),x(c,{className:`flex items-center justify-between px-[28px] rounded-[50px] h-[66px] bg-line1 border ${J?`border-theme5`:`border-line1`}`,children:[b(l,{placeholder:T(`password.confirmPasswordPlaceholder`),type:L?`text`:`password`,name:`funhub-confirm-password`,value:N,onChange:e=>P(e.target.value),autoComplete:`new-password`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`flex-1 !bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]`}),b(e,{type:`button`,onClick:()=>R(!L),className:`ml-[10px] cursor-pointer bg-transparent !p-0 !px-0 !py-0`,children:b(L?h:g,{className:`w-[20px] h-[20px] text-text3`})})]})]}),b(c,{className:`h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5`,children:K||V}),b(e,{type:`submit`,disabled:!Y,className:`w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0`,children:z?T(`password.submitting`):Z})]})]})]})}export{w as Password};
|
|
@@ -1,190 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Button } from "../../ui/button.mjs";
|
|
5
|
-
import { pUserSendEmailCode } from "../../../service/generated/client.mjs";
|
|
6
|
-
import { Box } from "../../ui/box.mjs";
|
|
7
|
-
import { Checkbox } from "../../ui/checkbox.mjs";
|
|
8
|
-
import { Input } from "../../ui/input.mjs";
|
|
9
|
-
import { Text } from "../../ui/text.mjs";
|
|
10
|
-
import { useLoginModalStore } from "../../../store/modules/login-modal-store.mjs";
|
|
11
|
-
import { LeftArrowIcon } from "../../../assets/icons/left-arrow-icon.mjs";
|
|
12
|
-
import { AgreementDialog } from "./agreement-dialog.mjs";
|
|
13
|
-
import { useMemo, useState } from "react";
|
|
14
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { useTranslations } from "next-intl";
|
|
16
|
-
|
|
17
|
-
//#region components/pages/login/register.tsx
|
|
18
|
-
/**
|
|
19
|
-
* 注册页面内容。
|
|
20
|
-
*/
|
|
21
|
-
function Register(props) {
|
|
22
|
-
const t = useTranslations("components.pages.login");
|
|
23
|
-
const { onClose, onLogin, onVerify } = props;
|
|
24
|
-
const { setVerifyStep } = useLoginModalStore();
|
|
25
|
-
const [email, setEmail] = useState("");
|
|
26
|
-
const [isSubmitting, setIsSubmitting] = useState(false);
|
|
27
|
-
const [errorText, setErrorText] = useState("");
|
|
28
|
-
const [agreedToTerms, setAgreedToTerms] = useState(false);
|
|
29
|
-
const [agreementDialog, setAgreementDialog] = useState(null);
|
|
30
|
-
const canSubmit = useMemo(() => {
|
|
31
|
-
return email.trim().length > 0 && agreedToTerms && !isSubmitting;
|
|
32
|
-
}, [
|
|
33
|
-
email,
|
|
34
|
-
agreedToTerms,
|
|
35
|
-
isSubmitting
|
|
36
|
-
]);
|
|
37
|
-
/**
|
|
38
|
-
* 校验邮箱格式是否有效。
|
|
39
|
-
*/
|
|
40
|
-
function isValidEmail(value) {
|
|
41
|
-
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* 处理邮箱输入变化。
|
|
45
|
-
*/
|
|
46
|
-
function handleEmailChange(value) {
|
|
47
|
-
setEmail(value);
|
|
48
|
-
if (errorText) setErrorText("");
|
|
49
|
-
}
|
|
50
|
-
async function handleSubmit() {
|
|
51
|
-
if (!canSubmit) return;
|
|
52
|
-
try {
|
|
53
|
-
setIsSubmitting(true);
|
|
54
|
-
setErrorText("");
|
|
55
|
-
const trimmedEmail = email.trim();
|
|
56
|
-
if (!isValidEmail(trimmedEmail)) {
|
|
57
|
-
setErrorText(t("register.invalidEmail"));
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
await pUserSendEmailCode({ email: trimmedEmail });
|
|
61
|
-
setVerifyStep("register-verify");
|
|
62
|
-
onVerify?.(trimmedEmail);
|
|
63
|
-
} catch (error) {
|
|
64
|
-
setErrorText(error.message ?? t("register.sendFailed"));
|
|
65
|
-
} finally {
|
|
66
|
-
setIsSubmitting(false);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return /* @__PURE__ */ jsxs(Box, {
|
|
70
|
-
className: "min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col",
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
73
|
-
className: "flex justify-between items-center h-[60px] px-[16px]",
|
|
74
|
-
children: [/* @__PURE__ */ jsx(Button, {
|
|
75
|
-
type: "button",
|
|
76
|
-
onClick: onClose,
|
|
77
|
-
"aria-label": t("register.back"),
|
|
78
|
-
className: "cursor-pointer bg-transparent !p-0 !px-0 !py-0",
|
|
79
|
-
children: /* @__PURE__ */ jsx(LeftArrowIcon, {
|
|
80
|
-
className: "w-[16px] h-[16px] text-text1/80",
|
|
81
|
-
"aria-hidden": "true",
|
|
82
|
-
focusable: "false"
|
|
83
|
-
})
|
|
84
|
-
}), /* @__PURE__ */ jsx(Text, { className: "text-[14px] text-text2" })]
|
|
85
|
-
}),
|
|
86
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
87
|
-
className: "px-[24px] flex flex-1 flex-col mt-[15px]",
|
|
88
|
-
children: [
|
|
89
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
90
|
-
className: "flex flex-col",
|
|
91
|
-
children: [/* @__PURE__ */ jsx(Text, {
|
|
92
|
-
className: "text-[24px] leading-[32px] font-bold",
|
|
93
|
-
children: t("register.title")
|
|
94
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
95
|
-
className: "text-[14px] leading-[22px] mt-[12px] text-text1/80",
|
|
96
|
-
children: [
|
|
97
|
-
t("register.hasAccount"),
|
|
98
|
-
"?",
|
|
99
|
-
/* @__PURE__ */ jsx(Button, {
|
|
100
|
-
type: "button",
|
|
101
|
-
onClick: onLogin,
|
|
102
|
-
className: "cursor-pointer text-theme5 hover:opacity-90 bg-transparent !p-0 !px-0 !py-0",
|
|
103
|
-
children: t("register.loginLink")
|
|
104
|
-
})
|
|
105
|
-
]
|
|
106
|
-
})]
|
|
107
|
-
}),
|
|
108
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
109
|
-
className: "mt-[38px]",
|
|
110
|
-
children: [/* @__PURE__ */ jsx(Box, {
|
|
111
|
-
className: "flex items-center px-[28px] rounded-[50px] h-[66px] bg-line1 border border-line1",
|
|
112
|
-
children: /* @__PURE__ */ jsx(Input, {
|
|
113
|
-
placeholder: t("register.emailPlaceholder"),
|
|
114
|
-
type: "email",
|
|
115
|
-
name: "funhub-register-email",
|
|
116
|
-
value: email,
|
|
117
|
-
onChange: (e) => handleEmailChange(e.target.value),
|
|
118
|
-
autoComplete: "off",
|
|
119
|
-
autoCorrect: "off",
|
|
120
|
-
autoCapitalize: "none",
|
|
121
|
-
spellCheck: false,
|
|
122
|
-
"data-lpignore": "true",
|
|
123
|
-
"data-1p-ignore": "true",
|
|
124
|
-
"data-form-type": "other",
|
|
125
|
-
className: "!bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]"
|
|
126
|
-
})
|
|
127
|
-
}), /* @__PURE__ */ jsx(Box, {
|
|
128
|
-
className: "h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5",
|
|
129
|
-
children: errorText
|
|
130
|
-
})]
|
|
131
|
-
}),
|
|
132
|
-
/* @__PURE__ */ jsxs(Box, {
|
|
133
|
-
className: "mt-auto flex flex-col items-center w-full pb-[55px]",
|
|
134
|
-
children: [/* @__PURE__ */ jsxs(Box, {
|
|
135
|
-
className: "flex items-center justify-center gap-2 flex-wrap mb-[16px] w-full",
|
|
136
|
-
children: [/* @__PURE__ */ jsx(Checkbox, {
|
|
137
|
-
checked: agreedToTerms,
|
|
138
|
-
onCheckedChange: (checked) => setAgreedToTerms(checked === true),
|
|
139
|
-
"aria-label": t("loginClient.agreeToTerms"),
|
|
140
|
-
className: "shrink-0"
|
|
141
|
-
}), /* @__PURE__ */ jsxs(Text, {
|
|
142
|
-
as: "span",
|
|
143
|
-
className: "text-[14px] text-text2",
|
|
144
|
-
children: [
|
|
145
|
-
t("loginClient.agreeToTermsPrefix"),
|
|
146
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
147
|
-
type: "button",
|
|
148
|
-
variant: "link",
|
|
149
|
-
className: "inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent",
|
|
150
|
-
onClick: () => setAgreementDialog("terms"),
|
|
151
|
-
children: [
|
|
152
|
-
"《",
|
|
153
|
-
t("loginClient.userAgreement"),
|
|
154
|
-
"》"
|
|
155
|
-
]
|
|
156
|
-
}),
|
|
157
|
-
t("loginClient.and"),
|
|
158
|
-
/* @__PURE__ */ jsxs(Button, {
|
|
159
|
-
type: "button",
|
|
160
|
-
variant: "link",
|
|
161
|
-
className: "inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent",
|
|
162
|
-
onClick: () => setAgreementDialog("privacy"),
|
|
163
|
-
children: [
|
|
164
|
-
"《",
|
|
165
|
-
t("loginClient.privacyPolicy"),
|
|
166
|
-
"》"
|
|
167
|
-
]
|
|
168
|
-
})
|
|
169
|
-
]
|
|
170
|
-
})]
|
|
171
|
-
}), /* @__PURE__ */ jsx(Button, {
|
|
172
|
-
type: "button",
|
|
173
|
-
onClick: handleSubmit,
|
|
174
|
-
disabled: !canSubmit,
|
|
175
|
-
className: "w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0",
|
|
176
|
-
children: isSubmitting ? t("register.sending") : t("register.getCode")
|
|
177
|
-
})]
|
|
178
|
-
})
|
|
179
|
-
]
|
|
180
|
-
}),
|
|
181
|
-
/* @__PURE__ */ jsx(AgreementDialog, {
|
|
182
|
-
type: agreementDialog,
|
|
183
|
-
onClose: () => setAgreementDialog(null)
|
|
184
|
-
})
|
|
185
|
-
]
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
//#endregion
|
|
190
|
-
export { Register };
|
|
2
|
+
"use client";import{Button as e}from"../../ui/button.mjs";import{pUserSendEmailCode as t}from"../../../service/generated/client.mjs";import{Box as n}from"../../ui/box.mjs";import{Checkbox as r}from"../../ui/checkbox.mjs";import{Input as i}from"../../ui/input.mjs";import{Text as a}from"../../ui/text.mjs";import{useLoginModalStore as o}from"../../../store/modules/login-modal-store.mjs";import{LeftArrowIcon as s}from"../../../assets/icons/left-arrow-icon.mjs";import{AgreementDialog as c}from"./agreement-dialog.mjs";import{useMemo as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{useTranslations as p}from"next-intl";function m(m){let h=p(`components.pages.login`),{onClose:g,onLogin:_,onVerify:v}=m,{setVerifyStep:y}=o(),[b,x]=u(``),[S,C]=u(!1),[w,T]=u(``),[E,D]=u(!1),[O,k]=u(null),A=l(()=>b.trim().length>0&&E&&!S,[b,E,S]);function j(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function M(e){x(e),w&&T(``)}async function N(){if(A)try{C(!0),T(``);let e=b.trim();if(!j(e)){T(h(`register.invalidEmail`));return}await t({email:e}),y(`register-verify`),v?.(e)}catch(e){T(e.message??h(`register.sendFailed`))}finally{C(!1)}}return f(n,{className:`min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col`,children:[f(n,{className:`flex justify-between items-center h-[60px] px-[16px]`,children:[d(e,{type:`button`,onClick:g,"aria-label":h(`register.back`),className:`cursor-pointer bg-transparent !p-0 !px-0 !py-0`,children:d(s,{className:`w-[16px] h-[16px] text-text1/80`,"aria-hidden":`true`,focusable:`false`})}),d(a,{className:`text-[14px] text-text2`})]}),f(n,{className:`px-[24px] flex flex-1 flex-col mt-[15px]`,children:[f(n,{className:`flex flex-col`,children:[d(a,{className:`text-[24px] leading-[32px] font-bold`,children:h(`register.title`)}),f(a,{className:`text-[14px] leading-[22px] mt-[12px] text-text1/80`,children:[h(`register.hasAccount`),`?`,d(e,{type:`button`,onClick:_,className:`cursor-pointer text-theme5 hover:opacity-90 bg-transparent !p-0 !px-0 !py-0`,children:h(`register.loginLink`)})]})]}),f(n,{className:`mt-[38px]`,children:[d(n,{className:`flex items-center px-[28px] rounded-[50px] h-[66px] bg-line1 border border-line1`,children:d(i,{placeholder:h(`register.emailPlaceholder`),type:`email`,name:`funhub-register-email`,value:b,onChange:e=>M(e.target.value),autoComplete:`off`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`!bg-transparent !px-0 !py-0 !rounded-none !text-text1 placeholder:!text-text3 leading-[26px] text-[18px]`})}),d(n,{className:`h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5`,children:w})]}),f(n,{className:`mt-auto flex flex-col items-center w-full pb-[55px]`,children:[f(n,{className:`flex items-center justify-center gap-2 flex-wrap mb-[16px] w-full`,children:[d(r,{checked:E,onCheckedChange:e=>D(e===!0),"aria-label":h(`loginClient.agreeToTerms`),className:`shrink-0`}),f(a,{as:`span`,className:`text-[14px] text-text2`,children:[h(`loginClient.agreeToTermsPrefix`),f(e,{type:`button`,variant:`link`,className:`inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent`,onClick:()=>k(`terms`),children:[`《`,h(`loginClient.userAgreement`),`》`]}),h(`loginClient.and`),f(e,{type:`button`,variant:`link`,className:`inline text-theme6 !p-0 !h-auto font-normal underline-offset-2 hover:underline bg-transparent`,onClick:()=>k(`privacy`),children:[`《`,h(`loginClient.privacyPolicy`),`》`]})]})]}),d(e,{type:`button`,onClick:N,disabled:!A,className:`w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0`,children:h(S?`register.sending`:`register.getCode`)})]})]}),d(c,{type:O,onClose:()=>k(null)})]})}export{m as Register};
|