@funhub/platform 0.1.53 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/bin/index.mjs +323 -0
- package/dist/assets/images/user/default_avatar.mjs +2 -0
- package/dist/components/biz/business/banner/variants/basic-banner/material.d.mts +1 -1
- package/dist/components/biz/business/banner-carousel/material.d.mts +1 -1
- package/dist/components/biz/business/channel-list/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/registry.d.mts +7 -7
- package/dist/components/biz/business/detail/materials/video-detail-actions/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-player/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.d.mts +1 -1
- package/dist/components/biz/business/floating-ball/material.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/material.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-search/material.d.mts +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/material.d.mts +1 -1
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/material.d.mts +1 -1
- package/dist/components/biz/business/large-feature-grid/card-item.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/material.d.mts +2 -2
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/marquee/material.d.mts +2 -2
- package/dist/components/biz/business/marquee/schema.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +2 -2
- package/dist/components/biz/business/profile/profile-header/user-profile-avatar.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/user-profile-cover-background.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/material.d.mts +1 -1
- package/dist/components/biz/business/search-history/client.mjs +1 -1
- package/dist/components/biz/business/search-history/material.d.mts +1 -1
- package/dist/components/biz/business/search-history/schema.d.mts +1 -1
- package/dist/components/biz/business/search-history/server.mjs +1 -1
- package/dist/components/biz/business/search-input/client.d.mts +2 -0
- package/dist/components/biz/business/search-input/client.mjs +1 -1
- package/dist/components/biz/business/search-input/material.d.mts +1 -4
- package/dist/components/biz/business/search-input/schema.d.mts +1 -3
- package/dist/components/biz/business/search-input/schema.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/material.d.mts +1 -1
- package/dist/components/biz/business/tab-bar/material.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/schema.d.mts +2 -2
- package/dist/components/biz/business/text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/text-recommend/material.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/schema.d.mts +1 -1
- package/dist/components/biz/business/video-horizontal-list/client.d.mts +2 -1
- package/dist/components/biz/business/video-horizontal-list/client.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/material.d.mts +7 -7
- package/dist/components/biz/business/video-horizontal-list/material.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/schema.d.mts +7 -7
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +1 -1
- package/dist/components/biz/example/button/material.d.mts +1 -1
- package/dist/components/biz/example/button/material.mjs +1 -1
- package/dist/components/common/list/post-list/post-list.mjs +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list.d.mts +1 -1
- package/dist/components/common/list/user-activity-list/user-activity-list.mjs +1 -1
- package/dist/components/common/list/video-list/video-list.mjs +1 -1
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -1
- package/dist/components/pages/login/password.mjs +1 -1
- package/dist/components/pages/login/register.mjs +1 -1
- package/dist/components/pages/login/reset-password.mjs +1 -1
- package/dist/components/pages/login/verify.mjs +1 -1
- package/dist/components/pages/search-result/page-client.mjs +1 -1
- package/dist/components/pages/search-result/search-all.mjs +1 -1
- package/dist/components/pages/search-result/search-tab.mjs +1 -1
- package/dist/components/pages/search-result/search-user.mjs +1 -1
- package/dist/components/pages/search-result/search-video.mjs +1 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +1 -1
- package/dist/components/pages/settings/_components/settings.mjs +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/i18n/locales/en.mjs +2 -2
- package/dist/i18n/locales/zh-CN.mjs +2 -2
- package/dist/service/batch-get-video-detail.d.mts +21 -0
- package/dist/service/batch-get-video-detail.mjs +2 -0
- package/dist/service/get-popular-video-list-post.d.mts +8 -0
- package/dist/service/get-popular-video-list-post.mjs +2 -0
- package/dist/service.d.mts +3 -1
- package/dist/service.mjs +1 -1
- package/dist/utils/password-validator.d.mts +28 -0
- package/dist/utils/password-validator.mjs +2 -0
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/material.d.mts +7 -9
- package/dist/utils/schema/utils.d.mts +13 -3
- package/dist/utils/schema/utils.mjs +1 -1
- package/dist/utils.d.mts +3 -2
- package/dist/utils.mjs +1 -1
- package/package.json +7 -2
- package/templates/base/_meta.json +4 -0
- package/templates/base/template/README.md.template +32 -0
- package/templates/base/template/__dot__gitignore +6 -0
- package/templates/base/template/app/[locale]/layout.tsx.template +36 -0
- package/templates/base/template/app/[locale]/page.tsx.template +24 -0
- package/templates/base/template/app/globals.css +26 -0
- package/templates/base/template/app/layout.tsx.template +38 -0
- package/templates/base/template/eslint.config.mjs.template +68 -0
- package/templates/base/template/i18n/request.ts.template +3 -0
- package/templates/base/template/next-env.d.ts.template +4 -0
- package/templates/base/template/next.config.ts.template +21 -0
- package/templates/base/template/package.json.template +37 -0
- package/templates/base/template/postcss.config.js.template +18 -0
- package/templates/base/template/proxy.ts.template +18 -0
- package/templates/base/template/tailwind.config.cjs.template +13 -0
- package/templates/base/template/tsconfig.json.template +43 -0
package/dist/service.d.mts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
|
|
2
|
+
import { BatchGetVideoDetailBody, BatchGetVideoDetailData, batchGetVideoDetail } from "./service/batch-get-video-detail.mjs";
|
|
2
3
|
import { gContentBatchGetVideoDetail } from "./service/content-batch-get-video-detail.mjs";
|
|
3
4
|
import { gCommunityBatchGetContentInfo, gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetRandomContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gCommunityQueryContents, gCommunitySearchContent, gContentAdminListAppChannelBlocks, gContentGetAdminSubChannels, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannelBlockIcon, gContentGetAppChannels, gContentGetAppComponent, gContentGetFloatingBall, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetNewstVideoList, gContentGetPopularVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetVideoById, gContentGetVideoDetail, gContentGetVideoEpisodes, gContentGetVideosByIds, gContentListAppChannelBlockBanners, gContentListAppChannelBlockDiyContents, gContentListAppChannelBlockIcon, gContentListFloatingBall, gContentListVisibleAppChannelBlockIcon, gContentListVisibleFloatingBall, gContentProcessM3u8, gContentSearchVideos, gContentSearchVideosByES, gGetAppChannelBlockData, gInteractionBatchClearBrowse, gInteractionBatchGetFollowStats, gInteractionCheckCollect, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetFollowingUserUpdatesContent, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserViewUserInfo, pCommunityAddContentToCollection, pCommunityContentInteractionNotify, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityQueryContents, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentAddAppChannelBlockDiyContent, pContentCreateAppChannelBlockIcon, pContentDeleteAppChannelBlockBanner, pContentDeleteAppChannelBlockDiyContent, pContentDeleteAppChannelBlockIcon, pContentSearchVideosByES, pContentUpdateAppChannelBlockBanner, pContentUpdateAppChannelBlockBannerStatus, pContentUpdateAppChannelBlockIcon, pContentUpdateAppChannelBlockIconStatus, pContentVideoInteractionNotify, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, pInteractionBatchQueryContentInteractions, pInteractionBrowse, pInteractionCancelDislike, pInteractionCancelLike, pInteractionCheckFollow, pInteractionClearBrowseHistory, pInteractionCreateFolder, pInteractionDeleteBrowseRecord, pInteractionDeleteFolder, pInteractionDislike, pInteractionFollow, pInteractionLike, pInteractionMoveCollects, pInteractionRemoveCollect, pInteractionUnfollow, pInteractionUnifiedBatchLikeDislike, pInteractionUpdateFolder, pUserEditUserInfo, pUserLogin, pUserRegister, pUserResetForgetPassword, pUserResetPassword, pUserSendEmailCode, pUserSendForgetEmailCode, pUserSendResetPasswordEmailCode, pUserUploadUserBgImage, pUserUserFeedback, pUserUserPrivacySettings, pUserVerifyEmailCode, pUserVerifyForgetEmailCode, pUserVerifyResetPasswordEmailCode } from "./service/generated/client.mjs";
|
|
4
5
|
import { createQueryKey, gCommunityBatchGetContentInfoKey, gCommunityGetCollectionInfoKey, gCommunityGetCommentsKey, gCommunityGetContentInfoKey, gCommunityGetContentListKey, gCommunityGetHotContentListKey, gCommunityGetRandomContentListKey, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollectionsKey, gCommunityQueryContentsKey, gCommunitySearchContentKey, gContentAdminListAppChannelBlocksKey, gContentGetAdminSubChannelsKey, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockIconKey, gContentGetAppChannelBlockKey, gContentGetAppChannelsKey, gContentGetAppComponentKey, gContentGetFloatingBallKey, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoListKey, gContentGetNewstVideoListKey, gContentGetPopularVideoListKey, gContentGetRecommendSearchListKey, gContentGetRecommendVideoListKey, gContentGetVideoByIdKey, gContentGetVideoDetailKey, gContentGetVideoEpisodesKey, gContentGetVideosByIdsKey, gContentListAppChannelBlockBannersKey, gContentListAppChannelBlockDiyContentsKey, gContentListAppChannelBlockIconKey, gContentListFloatingBallKey, gContentListVisibleAppChannelBlockIconKey, gContentListVisibleFloatingBallKey, gContentProcessM3u8Key, gContentSearchVideosByESKey, gContentSearchVideosKey, gGetAppChannelBlockDataKey, gInteractionBatchClearBrowseKey, gInteractionBatchGetFollowStatsKey, gInteractionCheckCollectKey, gInteractionCheckMutualFollowKey, gInteractionGetBrowseListKey, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeListKey, gInteractionGetDislikeListKey, gInteractionGetFolderKey, gInteractionGetFolderStatsKey, gInteractionGetFollowStatsKey, gInteractionGetFollowerListKey, gInteractionGetFollowingContentListKey, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdatesContentKey, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeListKey, gInteractionListCollectsKey, gInteractionListFoldersKey, gUserGetGuestIdentityKey, gUserGetUserEditInfoKey, gUserGetUserInfoKey, gUserGetUserPrivacySettingsKey, gUserViewUserInfoKey, pCommunityAddContentToCollectionKey, pCommunityContentInteractionNotifyKey, pCommunityCreateCollectionKey, pCommunityCreateCommentKey, pCommunityDeleteCollectionKey, pCommunityDeleteCommentKey, pCommunityDeleteContentKey, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURLKey, pCommunityLikeCommentKey, pCommunityMoveCollectionContentKey, pCommunityPublishContentKey, pCommunityQueryContentsKey, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContentKey, pCommunitySubscribeCollectionKey, pCommunityUpdateCollectionKey, pCommunityUpdateContentKey, pCommunityUploadMediaKey, pContentAddAppChannelBlockDiyContentKey, pContentCreateAppChannelBlockIconKey, pContentDeleteAppChannelBlockBannerKey, pContentDeleteAppChannelBlockDiyContentKey, pContentDeleteAppChannelBlockIconKey, pContentSearchVideosByESKey, pContentUpdateAppChannelBlockBannerKey, pContentUpdateAppChannelBlockBannerStatusKey, pContentUpdateAppChannelBlockIconKey, pContentUpdateAppChannelBlockIconStatusKey, pContentVideoInteractionNotifyKey, pInteractionAddCollectKey, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollectsKey, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowseKey, pInteractionCancelDislikeKey, pInteractionCancelLikeKey, pInteractionCheckFollowKey, pInteractionClearBrowseHistoryKey, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolderKey, pInteractionDislikeKey, pInteractionFollowKey, pInteractionLikeKey, pInteractionMoveCollectsKey, pInteractionRemoveCollectKey, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolderKey, pUserEditUserInfoKey, pUserLoginKey, pUserRegisterKey, pUserResetForgetPasswordKey, pUserResetPasswordKey, pUserSendEmailCodeKey, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImageKey, pUserUserFeedbackKey, pUserUserPrivacySettingsKey, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCodeKey } from "./service/generated/tanstack.mjs";
|
|
5
|
-
|
|
6
|
+
import { getPopularVideoListPost } from "./service/get-popular-video-list-post.mjs";
|
|
7
|
+
export { BatchGetVideoDetailBody, BatchGetVideoDetailData, batchGetVideoDetail, createQueryKey, gCommunityBatchGetContentInfo, gCommunityBatchGetContentInfoKey, gCommunityGetCollectionInfo, gCommunityGetCollectionInfoKey, gCommunityGetComments, gCommunityGetCommentsKey, gCommunityGetContentInfo, gCommunityGetContentInfoKey, gCommunityGetContentList, gCommunityGetContentListKey, gCommunityGetHotContentList, gCommunityGetHotContentListKey, gCommunityGetRandomContentList, gCommunityGetRandomContentListKey, gCommunityGetSubscribedCollections, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollections, gCommunityGetUserCollectionsKey, gCommunityQueryContents, gCommunityQueryContentsKey, gCommunitySearchContent, gCommunitySearchContentKey, gContentAdminListAppChannelBlocks, gContentAdminListAppChannelBlocksKey, gContentBatchGetVideoDetail, gContentGetAdminSubChannels, gContentGetAdminSubChannelsKey, gContentGetAdvertiseByCode, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockIcon, gContentGetAppChannelBlockIconKey, gContentGetAppChannelBlockKey, gContentGetAppChannels, gContentGetAppChannelsKey, gContentGetAppComponent, gContentGetAppComponentKey, gContentGetFloatingBall, gContentGetFloatingBallKey, gContentGetGuessYouLikeVideos, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoList, gContentGetHotVideoListKey, gContentGetNewstVideoList, gContentGetNewstVideoListKey, gContentGetPopularVideoList, gContentGetPopularVideoListKey, gContentGetRecommendSearchList, gContentGetRecommendSearchListKey, gContentGetRecommendVideoList, gContentGetRecommendVideoListKey, gContentGetVideoById, gContentGetVideoByIdKey, gContentGetVideoDetail, gContentGetVideoDetailKey, gContentGetVideoEpisodes, gContentGetVideoEpisodesKey, gContentGetVideosByIds, gContentGetVideosByIdsKey, gContentListAppChannelBlockBanners, gContentListAppChannelBlockBannersKey, gContentListAppChannelBlockDiyContents, gContentListAppChannelBlockDiyContentsKey, gContentListAppChannelBlockIcon, gContentListAppChannelBlockIconKey, gContentListFloatingBall, gContentListFloatingBallKey, gContentListVisibleAppChannelBlockIcon, gContentListVisibleAppChannelBlockIconKey, gContentListVisibleFloatingBall, gContentListVisibleFloatingBallKey, gContentProcessM3u8, gContentProcessM3u8Key, gContentSearchVideos, gContentSearchVideosByES, gContentSearchVideosByESKey, gContentSearchVideosKey, gGetAppChannelBlockData, gGetAppChannelBlockDataKey, gInteractionBatchClearBrowse, gInteractionBatchClearBrowseKey, gInteractionBatchGetFollowStats, gInteractionBatchGetFollowStatsKey, gInteractionCheckCollect, gInteractionCheckCollectKey, gInteractionCheckMutualFollow, gInteractionCheckMutualFollowKey, gInteractionGetBrowseList, gInteractionGetBrowseListKey, gInteractionGetContentDislikeList, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeList, gInteractionGetContentLikeListKey, gInteractionGetDislikeList, gInteractionGetDislikeListKey, gInteractionGetFolder, gInteractionGetFolderKey, gInteractionGetFolderStats, gInteractionGetFolderStatsKey, gInteractionGetFollowStats, gInteractionGetFollowStatsKey, gInteractionGetFollowerList, gInteractionGetFollowerListKey, gInteractionGetFollowingContentList, gInteractionGetFollowingContentListKey, gInteractionGetFollowingList, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdates, gInteractionGetFollowingUserUpdatesContent, gInteractionGetFollowingUserUpdatesContentKey, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeList, gInteractionGetLikeListKey, gInteractionListCollects, gInteractionListCollectsKey, gInteractionListFolders, gInteractionListFoldersKey, gUserGetGuestIdentity, gUserGetGuestIdentityKey, gUserGetUserEditInfo, gUserGetUserEditInfoKey, gUserGetUserInfo, gUserGetUserInfoKey, gUserGetUserPrivacySettings, gUserGetUserPrivacySettingsKey, gUserViewUserInfo, gUserViewUserInfoKey, getPopularVideoListPost, pCommunityAddContentToCollection, pCommunityAddContentToCollectionKey, pCommunityContentInteractionNotify, pCommunityContentInteractionNotifyKey, pCommunityCreateCollection, pCommunityCreateCollectionKey, pCommunityCreateComment, pCommunityCreateCommentKey, pCommunityDeleteCollection, pCommunityDeleteCollectionKey, pCommunityDeleteComment, pCommunityDeleteCommentKey, pCommunityDeleteContent, pCommunityDeleteContentKey, pCommunityDislikeComment, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURL, pCommunityGetUploadPresignedURLKey, pCommunityLikeComment, pCommunityLikeCommentKey, pCommunityMoveCollectionContent, pCommunityMoveCollectionContentKey, pCommunityPublishContent, pCommunityPublishContentKey, pCommunityQueryContents, pCommunityQueryContentsKey, pCommunityRemoveContentFromCollection, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfo, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContent, pCommunityShareContentKey, pCommunitySubscribeCollection, pCommunitySubscribeCollectionKey, pCommunityUpdateCollection, pCommunityUpdateCollectionKey, pCommunityUpdateContent, pCommunityUpdateContentKey, pCommunityUploadMedia, pCommunityUploadMediaKey, pContentAddAppChannelBlockDiyContent, pContentAddAppChannelBlockDiyContentKey, pContentCreateAppChannelBlockIcon, pContentCreateAppChannelBlockIconKey, pContentDeleteAppChannelBlockBanner, pContentDeleteAppChannelBlockBannerKey, pContentDeleteAppChannelBlockDiyContent, pContentDeleteAppChannelBlockDiyContentKey, pContentDeleteAppChannelBlockIcon, pContentDeleteAppChannelBlockIconKey, pContentSearchVideosByES, pContentSearchVideosByESKey, pContentUpdateAppChannelBlockBanner, pContentUpdateAppChannelBlockBannerKey, pContentUpdateAppChannelBlockBannerStatus, pContentUpdateAppChannelBlockBannerStatusKey, pContentUpdateAppChannelBlockIcon, pContentUpdateAppChannelBlockIconKey, pContentUpdateAppChannelBlockIconStatus, pContentUpdateAppChannelBlockIconStatusKey, pContentVideoInteractionNotify, pContentVideoInteractionNotifyKey, pInteractionAddCollect, pInteractionAddCollectKey, pInteractionBatchClearBrowse, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollects, pInteractionBatchDeleteCollectsKey, pInteractionBatchQueryContentInteractions, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowse, pInteractionBrowseKey, pInteractionCancelDislike, pInteractionCancelDislikeKey, pInteractionCancelLike, pInteractionCancelLikeKey, pInteractionCheckFollow, pInteractionCheckFollowKey, pInteractionClearBrowseHistory, pInteractionClearBrowseHistoryKey, pInteractionCreateFolder, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecord, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolder, pInteractionDeleteFolderKey, pInteractionDislike, pInteractionDislikeKey, pInteractionFollow, pInteractionFollowKey, pInteractionLike, pInteractionLikeKey, pInteractionMoveCollects, pInteractionMoveCollectsKey, pInteractionRemoveCollect, pInteractionRemoveCollectKey, pInteractionUnfollow, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislike, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolder, pInteractionUpdateFolderKey, pUserEditUserInfo, pUserEditUserInfoKey, pUserLogin, pUserLoginKey, pUserRegister, pUserRegisterKey, pUserResetForgetPassword, pUserResetForgetPasswordKey, pUserResetPassword, pUserResetPasswordKey, pUserSendEmailCode, pUserSendEmailCodeKey, pUserSendForgetEmailCode, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCode, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImage, pUserUploadUserBgImageKey, pUserUserFeedback, pUserUserFeedbackKey, pUserUserPrivacySettings, pUserUserPrivacySettingsKey, pUserVerifyEmailCode, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCode, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCode, pUserVerifyResetPasswordEmailCodeKey };
|
package/dist/service.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{gCommunityBatchGetContentInfo as e,gCommunityGetCollectionInfo as t,gCommunityGetComments as n,gCommunityGetContentInfo as r,gCommunityGetContentList as i,gCommunityGetHotContentList as a,gCommunityGetRandomContentList as o,gCommunityGetSubscribedCollections as s,gCommunityGetUserCollections as c,gCommunityQueryContents as l,gCommunitySearchContent as u,gContentAdminListAppChannelBlocks as d,gContentGetAdminSubChannels as f,gContentGetAdvertiseByCode as p,gContentGetAppChannelBlock as m,gContentGetAppChannelBlockData as h,gContentGetAppChannelBlockIcon as g,gContentGetAppChannels as _,gContentGetAppComponent as v,gContentGetFloatingBall as y,gContentGetGuessYouLikeVideos as b,gContentGetHotVideoList as x,gContentGetNewstVideoList as S,gContentGetPopularVideoList as C,gContentGetRecommendSearchList as w,gContentGetRecommendVideoList as T,gContentGetVideoById as E,gContentGetVideoDetail as D,gContentGetVideoEpisodes as O,gContentGetVideosByIds as k,gContentListAppChannelBlockBanners as A,gContentListAppChannelBlockDiyContents as j,gContentListAppChannelBlockIcon as M,gContentListFloatingBall as N,gContentListVisibleAppChannelBlockIcon as P,gContentListVisibleFloatingBall as F,gContentProcessM3u8 as I,gContentSearchVideos as L,gContentSearchVideosByES as R,gGetAppChannelBlockData as z,gInteractionBatchClearBrowse as B,gInteractionBatchGetFollowStats as V,gInteractionCheckCollect as H,gInteractionCheckMutualFollow as U,gInteractionGetBrowseList as W,gInteractionGetContentDislikeList as G,gInteractionGetContentLikeList as K,gInteractionGetDislikeList as q,gInteractionGetFolder as J,gInteractionGetFolderStats as Y,gInteractionGetFollowStats as X,gInteractionGetFollowerList as Z,gInteractionGetFollowingContentList as Q,gInteractionGetFollowingList as $,gInteractionGetFollowingUserUpdates as ee,gInteractionGetFollowingUserUpdatesContent as te,gInteractionGetLikeList as ne,gInteractionListCollects as re,gInteractionListFolders as ie,gUserGetGuestIdentity as ae,gUserGetUserEditInfo as oe,gUserGetUserInfo as se,gUserGetUserPrivacySettings as ce,gUserViewUserInfo as le,pCommunityAddContentToCollection as ue,pCommunityContentInteractionNotify as de,pCommunityCreateCollection as fe,pCommunityCreateComment as pe,pCommunityDeleteCollection as me,pCommunityDeleteComment as he,pCommunityDeleteContent as ge,pCommunityDislikeComment as _e,pCommunityGetUploadPresignedURL as ve,pCommunityLikeComment as ye,pCommunityMoveCollectionContent as be,pCommunityPublishContent as xe,pCommunityQueryContents as Se,pCommunityRemoveContentFromCollection as Ce,pCommunitySearchCurAccountFollowingUsersInfo as we,pCommunityShareContent as Te,pCommunitySubscribeCollection as Ee,pCommunityUpdateCollection as De,pCommunityUpdateContent as Oe,pCommunityUploadMedia as ke,pContentAddAppChannelBlockDiyContent as Ae,pContentCreateAppChannelBlockIcon as je,pContentDeleteAppChannelBlockBanner as Me,pContentDeleteAppChannelBlockDiyContent as Ne,pContentDeleteAppChannelBlockIcon as Pe,pContentSearchVideosByES as Fe,pContentUpdateAppChannelBlockBanner as Ie,pContentUpdateAppChannelBlockBannerStatus as Le,pContentUpdateAppChannelBlockIcon as Re,pContentUpdateAppChannelBlockIconStatus as ze,pContentVideoInteractionNotify as Be,pInteractionAddCollect as Ve,pInteractionBatchClearBrowse as He,pInteractionBatchDeleteCollects as Ue,pInteractionBatchQueryContentInteractions as We,pInteractionBrowse as Ge,pInteractionCancelDislike as Ke,pInteractionCancelLike as qe,pInteractionCheckFollow as Je,pInteractionClearBrowseHistory as Ye,pInteractionCreateFolder as Xe,pInteractionDeleteBrowseRecord as Ze,pInteractionDeleteFolder as Qe,pInteractionDislike as $e,pInteractionFollow as et,pInteractionLike as tt,pInteractionMoveCollects as nt,pInteractionRemoveCollect as rt,pInteractionUnfollow as it,pInteractionUnifiedBatchLikeDislike as at,pInteractionUpdateFolder as ot,pUserEditUserInfo as st,pUserLogin as ct,pUserRegister as lt,pUserResetForgetPassword as ut,pUserResetPassword as dt,pUserSendEmailCode as ft,pUserSendForgetEmailCode as pt,pUserSendResetPasswordEmailCode as mt,pUserUploadUserBgImage as ht,pUserUserFeedback as gt,pUserUserPrivacySettings as _t,pUserVerifyEmailCode as vt,pUserVerifyForgetEmailCode as yt,pUserVerifyResetPasswordEmailCode as bt}from"./service/generated/client.mjs";import{gContentBatchGetVideoDetail as xt}from"./service/content-batch-get-video-detail.mjs";import{createQueryKey as St,gCommunityBatchGetContentInfoKey as Ct,gCommunityGetCollectionInfoKey as wt,gCommunityGetCommentsKey as Tt,gCommunityGetContentInfoKey as Et,gCommunityGetContentListKey as Dt,gCommunityGetHotContentListKey as Ot,gCommunityGetRandomContentListKey as kt,gCommunityGetSubscribedCollectionsKey as At,gCommunityGetUserCollectionsKey as jt,gCommunityQueryContentsKey as Mt,gCommunitySearchContentKey as Nt,gContentAdminListAppChannelBlocksKey as Pt,gContentGetAdminSubChannelsKey as Ft,gContentGetAdvertiseByCodeKey as It,gContentGetAppChannelBlockDataKey as Lt,gContentGetAppChannelBlockIconKey as Rt,gContentGetAppChannelBlockKey as zt,gContentGetAppChannelsKey as Bt,gContentGetAppComponentKey as Vt,gContentGetFloatingBallKey as Ht,gContentGetGuessYouLikeVideosKey as Ut,gContentGetHotVideoListKey as Wt,gContentGetNewstVideoListKey as Gt,gContentGetPopularVideoListKey as Kt,gContentGetRecommendSearchListKey as qt,gContentGetRecommendVideoListKey as Jt,gContentGetVideoByIdKey as Yt,gContentGetVideoDetailKey as Xt,gContentGetVideoEpisodesKey as Zt,gContentGetVideosByIdsKey as Qt,gContentListAppChannelBlockBannersKey as $t,gContentListAppChannelBlockDiyContentsKey as en,gContentListAppChannelBlockIconKey as tn,gContentListFloatingBallKey as nn,gContentListVisibleAppChannelBlockIconKey as rn,gContentListVisibleFloatingBallKey as an,gContentProcessM3u8Key as on,gContentSearchVideosByESKey as sn,gContentSearchVideosKey as cn,gGetAppChannelBlockDataKey as ln,gInteractionBatchClearBrowseKey as un,gInteractionBatchGetFollowStatsKey as dn,gInteractionCheckCollectKey as fn,gInteractionCheckMutualFollowKey as pn,gInteractionGetBrowseListKey as mn,gInteractionGetContentDislikeListKey as hn,gInteractionGetContentLikeListKey as gn,gInteractionGetDislikeListKey as _n,gInteractionGetFolderKey as vn,gInteractionGetFolderStatsKey as yn,gInteractionGetFollowStatsKey as bn,gInteractionGetFollowerListKey as xn,gInteractionGetFollowingContentListKey as Sn,gInteractionGetFollowingListKey as Cn,gInteractionGetFollowingUserUpdatesContentKey as wn,gInteractionGetFollowingUserUpdatesKey as Tn,gInteractionGetLikeListKey as En,gInteractionListCollectsKey as Dn,gInteractionListFoldersKey as On,gUserGetGuestIdentityKey as kn,gUserGetUserEditInfoKey as An,gUserGetUserInfoKey as jn,gUserGetUserPrivacySettingsKey as Mn,gUserViewUserInfoKey as Nn,pCommunityAddContentToCollectionKey as Pn,pCommunityContentInteractionNotifyKey as Fn,pCommunityCreateCollectionKey as In,pCommunityCreateCommentKey as Ln,pCommunityDeleteCollectionKey as Rn,pCommunityDeleteCommentKey as zn,pCommunityDeleteContentKey as Bn,pCommunityDislikeCommentKey as Vn,pCommunityGetUploadPresignedURLKey as Hn,pCommunityLikeCommentKey as Un,pCommunityMoveCollectionContentKey as Wn,pCommunityPublishContentKey as Gn,pCommunityQueryContentsKey as Kn,pCommunityRemoveContentFromCollectionKey as qn,pCommunitySearchCurAccountFollowingUsersInfoKey as Jn,pCommunityShareContentKey as Yn,pCommunitySubscribeCollectionKey as Xn,pCommunityUpdateCollectionKey as Zn,pCommunityUpdateContentKey as Qn,pCommunityUploadMediaKey as $n,pContentAddAppChannelBlockDiyContentKey as er,pContentCreateAppChannelBlockIconKey as tr,pContentDeleteAppChannelBlockBannerKey as nr,pContentDeleteAppChannelBlockDiyContentKey as rr,pContentDeleteAppChannelBlockIconKey as ir,pContentSearchVideosByESKey as ar,pContentUpdateAppChannelBlockBannerKey as or,pContentUpdateAppChannelBlockBannerStatusKey as sr,pContentUpdateAppChannelBlockIconKey as cr,pContentUpdateAppChannelBlockIconStatusKey as lr,pContentVideoInteractionNotifyKey as ur,pInteractionAddCollectKey as dr,pInteractionBatchClearBrowseKey as fr,pInteractionBatchDeleteCollectsKey as pr,pInteractionBatchQueryContentInteractionsKey as mr,pInteractionBrowseKey as hr,pInteractionCancelDislikeKey as gr,pInteractionCancelLikeKey as _r,pInteractionCheckFollowKey as vr,pInteractionClearBrowseHistoryKey as yr,pInteractionCreateFolderKey as br,pInteractionDeleteBrowseRecordKey as xr,pInteractionDeleteFolderKey as Sr,pInteractionDislikeKey as Cr,pInteractionFollowKey as wr,pInteractionLikeKey as Tr,pInteractionMoveCollectsKey as Er,pInteractionRemoveCollectKey as Dr,pInteractionUnfollowKey as Or,pInteractionUnifiedBatchLikeDislikeKey as kr,pInteractionUpdateFolderKey as Ar,pUserEditUserInfoKey as jr,pUserLoginKey as Mr,pUserRegisterKey as Nr,pUserResetForgetPasswordKey as Pr,pUserResetPasswordKey as Fr,pUserSendEmailCodeKey as Ir,pUserSendForgetEmailCodeKey as Lr,pUserSendResetPasswordEmailCodeKey as Rr,pUserUploadUserBgImageKey as zr,pUserUserFeedbackKey as Br,pUserUserPrivacySettingsKey as Vr,pUserVerifyEmailCodeKey as Hr,pUserVerifyForgetEmailCodeKey as Ur,pUserVerifyResetPasswordEmailCodeKey as Wr}from"./service/generated/tanstack.mjs";export{St as createQueryKey,e as gCommunityBatchGetContentInfo,Ct as gCommunityBatchGetContentInfoKey,t as gCommunityGetCollectionInfo,wt as gCommunityGetCollectionInfoKey,n as gCommunityGetComments,Tt as gCommunityGetCommentsKey,r as gCommunityGetContentInfo,Et as gCommunityGetContentInfoKey,i as gCommunityGetContentList,Dt as gCommunityGetContentListKey,a as gCommunityGetHotContentList,Ot as gCommunityGetHotContentListKey,o as gCommunityGetRandomContentList,kt as gCommunityGetRandomContentListKey,s as gCommunityGetSubscribedCollections,At as gCommunityGetSubscribedCollectionsKey,c as gCommunityGetUserCollections,jt as gCommunityGetUserCollectionsKey,l as gCommunityQueryContents,Mt as gCommunityQueryContentsKey,u as gCommunitySearchContent,Nt as gCommunitySearchContentKey,d as gContentAdminListAppChannelBlocks,Pt as gContentAdminListAppChannelBlocksKey,xt as gContentBatchGetVideoDetail,f as gContentGetAdminSubChannels,Ft as gContentGetAdminSubChannelsKey,p as gContentGetAdvertiseByCode,It as gContentGetAdvertiseByCodeKey,m as gContentGetAppChannelBlock,h as gContentGetAppChannelBlockData,Lt as gContentGetAppChannelBlockDataKey,g as gContentGetAppChannelBlockIcon,Rt as gContentGetAppChannelBlockIconKey,zt as gContentGetAppChannelBlockKey,_ as gContentGetAppChannels,Bt as gContentGetAppChannelsKey,v as gContentGetAppComponent,Vt as gContentGetAppComponentKey,y as gContentGetFloatingBall,Ht as gContentGetFloatingBallKey,b as gContentGetGuessYouLikeVideos,Ut as gContentGetGuessYouLikeVideosKey,x as gContentGetHotVideoList,Wt as gContentGetHotVideoListKey,S as gContentGetNewstVideoList,Gt as gContentGetNewstVideoListKey,C as gContentGetPopularVideoList,Kt as gContentGetPopularVideoListKey,w as gContentGetRecommendSearchList,qt as gContentGetRecommendSearchListKey,T as gContentGetRecommendVideoList,Jt as gContentGetRecommendVideoListKey,E as gContentGetVideoById,Yt as gContentGetVideoByIdKey,D as gContentGetVideoDetail,Xt as gContentGetVideoDetailKey,O as gContentGetVideoEpisodes,Zt as gContentGetVideoEpisodesKey,k as gContentGetVideosByIds,Qt as gContentGetVideosByIdsKey,A as gContentListAppChannelBlockBanners,$t as gContentListAppChannelBlockBannersKey,j as gContentListAppChannelBlockDiyContents,en as gContentListAppChannelBlockDiyContentsKey,M as gContentListAppChannelBlockIcon,tn as gContentListAppChannelBlockIconKey,N as gContentListFloatingBall,nn as gContentListFloatingBallKey,P as gContentListVisibleAppChannelBlockIcon,rn as gContentListVisibleAppChannelBlockIconKey,F as gContentListVisibleFloatingBall,an as gContentListVisibleFloatingBallKey,I as gContentProcessM3u8,on as gContentProcessM3u8Key,L as gContentSearchVideos,R as gContentSearchVideosByES,sn as gContentSearchVideosByESKey,cn as gContentSearchVideosKey,z as gGetAppChannelBlockData,ln as gGetAppChannelBlockDataKey,B as gInteractionBatchClearBrowse,un as gInteractionBatchClearBrowseKey,V as gInteractionBatchGetFollowStats,dn as gInteractionBatchGetFollowStatsKey,H as gInteractionCheckCollect,fn as gInteractionCheckCollectKey,U as gInteractionCheckMutualFollow,pn as gInteractionCheckMutualFollowKey,W as gInteractionGetBrowseList,mn as gInteractionGetBrowseListKey,G as gInteractionGetContentDislikeList,hn as gInteractionGetContentDislikeListKey,K as gInteractionGetContentLikeList,gn as gInteractionGetContentLikeListKey,q as gInteractionGetDislikeList,_n as gInteractionGetDislikeListKey,J as gInteractionGetFolder,vn as gInteractionGetFolderKey,Y as gInteractionGetFolderStats,yn as gInteractionGetFolderStatsKey,X as gInteractionGetFollowStats,bn as gInteractionGetFollowStatsKey,Z as gInteractionGetFollowerList,xn as gInteractionGetFollowerListKey,Q as gInteractionGetFollowingContentList,Sn as gInteractionGetFollowingContentListKey,$ as gInteractionGetFollowingList,Cn as gInteractionGetFollowingListKey,ee as gInteractionGetFollowingUserUpdates,te as gInteractionGetFollowingUserUpdatesContent,wn as gInteractionGetFollowingUserUpdatesContentKey,Tn as gInteractionGetFollowingUserUpdatesKey,ne as gInteractionGetLikeList,En as gInteractionGetLikeListKey,re as gInteractionListCollects,Dn as gInteractionListCollectsKey,ie as gInteractionListFolders,On as gInteractionListFoldersKey,ae as gUserGetGuestIdentity,kn as gUserGetGuestIdentityKey,oe as gUserGetUserEditInfo,An as gUserGetUserEditInfoKey,se as gUserGetUserInfo,jn as gUserGetUserInfoKey,ce as gUserGetUserPrivacySettings,Mn as gUserGetUserPrivacySettingsKey,le as gUserViewUserInfo,Nn as gUserViewUserInfoKey,ue as pCommunityAddContentToCollection,Pn as pCommunityAddContentToCollectionKey,de as pCommunityContentInteractionNotify,Fn as pCommunityContentInteractionNotifyKey,fe as pCommunityCreateCollection,In as pCommunityCreateCollectionKey,pe as pCommunityCreateComment,Ln as pCommunityCreateCommentKey,me as pCommunityDeleteCollection,Rn as pCommunityDeleteCollectionKey,he as pCommunityDeleteComment,zn as pCommunityDeleteCommentKey,ge as pCommunityDeleteContent,Bn as pCommunityDeleteContentKey,_e as pCommunityDislikeComment,Vn as pCommunityDislikeCommentKey,ve as pCommunityGetUploadPresignedURL,Hn as pCommunityGetUploadPresignedURLKey,ye as pCommunityLikeComment,Un as pCommunityLikeCommentKey,be as pCommunityMoveCollectionContent,Wn as pCommunityMoveCollectionContentKey,xe as pCommunityPublishContent,Gn as pCommunityPublishContentKey,Se as pCommunityQueryContents,Kn as pCommunityQueryContentsKey,Ce as pCommunityRemoveContentFromCollection,qn as pCommunityRemoveContentFromCollectionKey,we as pCommunitySearchCurAccountFollowingUsersInfo,Jn as pCommunitySearchCurAccountFollowingUsersInfoKey,Te as pCommunityShareContent,Yn as pCommunityShareContentKey,Ee as pCommunitySubscribeCollection,Xn as pCommunitySubscribeCollectionKey,De as pCommunityUpdateCollection,Zn as pCommunityUpdateCollectionKey,Oe as pCommunityUpdateContent,Qn as pCommunityUpdateContentKey,ke as pCommunityUploadMedia,$n as pCommunityUploadMediaKey,Ae as pContentAddAppChannelBlockDiyContent,er as pContentAddAppChannelBlockDiyContentKey,je as pContentCreateAppChannelBlockIcon,tr as pContentCreateAppChannelBlockIconKey,Me as pContentDeleteAppChannelBlockBanner,nr as pContentDeleteAppChannelBlockBannerKey,Ne as pContentDeleteAppChannelBlockDiyContent,rr as pContentDeleteAppChannelBlockDiyContentKey,Pe as pContentDeleteAppChannelBlockIcon,ir as pContentDeleteAppChannelBlockIconKey,Fe as pContentSearchVideosByES,ar as pContentSearchVideosByESKey,Ie as pContentUpdateAppChannelBlockBanner,or as pContentUpdateAppChannelBlockBannerKey,Le as pContentUpdateAppChannelBlockBannerStatus,sr as pContentUpdateAppChannelBlockBannerStatusKey,Re as pContentUpdateAppChannelBlockIcon,cr as pContentUpdateAppChannelBlockIconKey,ze as pContentUpdateAppChannelBlockIconStatus,lr as pContentUpdateAppChannelBlockIconStatusKey,Be as pContentVideoInteractionNotify,ur as pContentVideoInteractionNotifyKey,Ve as pInteractionAddCollect,dr as pInteractionAddCollectKey,He as pInteractionBatchClearBrowse,fr as pInteractionBatchClearBrowseKey,Ue as pInteractionBatchDeleteCollects,pr as pInteractionBatchDeleteCollectsKey,We as pInteractionBatchQueryContentInteractions,mr as pInteractionBatchQueryContentInteractionsKey,Ge as pInteractionBrowse,hr as pInteractionBrowseKey,Ke as pInteractionCancelDislike,gr as pInteractionCancelDislikeKey,qe as pInteractionCancelLike,_r as pInteractionCancelLikeKey,Je as pInteractionCheckFollow,vr as pInteractionCheckFollowKey,Ye as pInteractionClearBrowseHistory,yr as pInteractionClearBrowseHistoryKey,Xe as pInteractionCreateFolder,br as pInteractionCreateFolderKey,Ze as pInteractionDeleteBrowseRecord,xr as pInteractionDeleteBrowseRecordKey,Qe as pInteractionDeleteFolder,Sr as pInteractionDeleteFolderKey,$e as pInteractionDislike,Cr as pInteractionDislikeKey,et as pInteractionFollow,wr as pInteractionFollowKey,tt as pInteractionLike,Tr as pInteractionLikeKey,nt as pInteractionMoveCollects,Er as pInteractionMoveCollectsKey,rt as pInteractionRemoveCollect,Dr as pInteractionRemoveCollectKey,it as pInteractionUnfollow,Or as pInteractionUnfollowKey,at as pInteractionUnifiedBatchLikeDislike,kr as pInteractionUnifiedBatchLikeDislikeKey,ot as pInteractionUpdateFolder,Ar as pInteractionUpdateFolderKey,st as pUserEditUserInfo,jr as pUserEditUserInfoKey,ct as pUserLogin,Mr as pUserLoginKey,lt as pUserRegister,Nr as pUserRegisterKey,ut as pUserResetForgetPassword,Pr as pUserResetForgetPasswordKey,dt as pUserResetPassword,Fr as pUserResetPasswordKey,ft as pUserSendEmailCode,Ir as pUserSendEmailCodeKey,pt as pUserSendForgetEmailCode,Lr as pUserSendForgetEmailCodeKey,mt as pUserSendResetPasswordEmailCode,Rr as pUserSendResetPasswordEmailCodeKey,ht as pUserUploadUserBgImage,zr as pUserUploadUserBgImageKey,gt as pUserUserFeedback,Br as pUserUserFeedbackKey,_t as pUserUserPrivacySettings,Vr as pUserUserPrivacySettingsKey,vt as pUserVerifyEmailCode,Hr as pUserVerifyEmailCodeKey,yt as pUserVerifyForgetEmailCode,Ur as pUserVerifyForgetEmailCodeKey,bt as pUserVerifyResetPasswordEmailCode,Wr as pUserVerifyResetPasswordEmailCodeKey};
|
|
2
|
+
import{batchGetVideoDetail as e}from"./service/batch-get-video-detail.mjs";import{gCommunityBatchGetContentInfo as t,gCommunityGetCollectionInfo as n,gCommunityGetComments as r,gCommunityGetContentInfo as i,gCommunityGetContentList as a,gCommunityGetHotContentList as o,gCommunityGetRandomContentList as s,gCommunityGetSubscribedCollections as c,gCommunityGetUserCollections as l,gCommunityQueryContents as u,gCommunitySearchContent as d,gContentAdminListAppChannelBlocks as f,gContentGetAdminSubChannels as p,gContentGetAdvertiseByCode as m,gContentGetAppChannelBlock as h,gContentGetAppChannelBlockData as g,gContentGetAppChannelBlockIcon as _,gContentGetAppChannels as v,gContentGetAppComponent as y,gContentGetFloatingBall as b,gContentGetGuessYouLikeVideos as x,gContentGetHotVideoList as S,gContentGetNewstVideoList as C,gContentGetPopularVideoList as w,gContentGetRecommendSearchList as T,gContentGetRecommendVideoList as E,gContentGetVideoById as D,gContentGetVideoDetail as O,gContentGetVideoEpisodes as k,gContentGetVideosByIds as A,gContentListAppChannelBlockBanners as j,gContentListAppChannelBlockDiyContents as M,gContentListAppChannelBlockIcon as N,gContentListFloatingBall as P,gContentListVisibleAppChannelBlockIcon as F,gContentListVisibleFloatingBall as I,gContentProcessM3u8 as L,gContentSearchVideos as R,gContentSearchVideosByES as z,gGetAppChannelBlockData as B,gInteractionBatchClearBrowse as V,gInteractionBatchGetFollowStats as H,gInteractionCheckCollect as U,gInteractionCheckMutualFollow as W,gInteractionGetBrowseList as G,gInteractionGetContentDislikeList as K,gInteractionGetContentLikeList as q,gInteractionGetDislikeList as J,gInteractionGetFolder as Y,gInteractionGetFolderStats as X,gInteractionGetFollowStats as Z,gInteractionGetFollowerList as Q,gInteractionGetFollowingContentList as $,gInteractionGetFollowingList as ee,gInteractionGetFollowingUserUpdates as te,gInteractionGetFollowingUserUpdatesContent as ne,gInteractionGetLikeList as re,gInteractionListCollects as ie,gInteractionListFolders as ae,gUserGetGuestIdentity as oe,gUserGetUserEditInfo as se,gUserGetUserInfo as ce,gUserGetUserPrivacySettings as le,gUserViewUserInfo as ue,pCommunityAddContentToCollection as de,pCommunityContentInteractionNotify as fe,pCommunityCreateCollection as pe,pCommunityCreateComment as me,pCommunityDeleteCollection as he,pCommunityDeleteComment as ge,pCommunityDeleteContent as _e,pCommunityDislikeComment as ve,pCommunityGetUploadPresignedURL as ye,pCommunityLikeComment as be,pCommunityMoveCollectionContent as xe,pCommunityPublishContent as Se,pCommunityQueryContents as Ce,pCommunityRemoveContentFromCollection as we,pCommunitySearchCurAccountFollowingUsersInfo as Te,pCommunityShareContent as Ee,pCommunitySubscribeCollection as De,pCommunityUpdateCollection as Oe,pCommunityUpdateContent as ke,pCommunityUploadMedia as Ae,pContentAddAppChannelBlockDiyContent as je,pContentCreateAppChannelBlockIcon as Me,pContentDeleteAppChannelBlockBanner as Ne,pContentDeleteAppChannelBlockDiyContent as Pe,pContentDeleteAppChannelBlockIcon as Fe,pContentSearchVideosByES as Ie,pContentUpdateAppChannelBlockBanner as Le,pContentUpdateAppChannelBlockBannerStatus as Re,pContentUpdateAppChannelBlockIcon as ze,pContentUpdateAppChannelBlockIconStatus as Be,pContentVideoInteractionNotify as Ve,pInteractionAddCollect as He,pInteractionBatchClearBrowse as Ue,pInteractionBatchDeleteCollects as We,pInteractionBatchQueryContentInteractions as Ge,pInteractionBrowse as Ke,pInteractionCancelDislike as qe,pInteractionCancelLike as Je,pInteractionCheckFollow as Ye,pInteractionClearBrowseHistory as Xe,pInteractionCreateFolder as Ze,pInteractionDeleteBrowseRecord as Qe,pInteractionDeleteFolder as $e,pInteractionDislike as et,pInteractionFollow as tt,pInteractionLike as nt,pInteractionMoveCollects as rt,pInteractionRemoveCollect as it,pInteractionUnfollow as at,pInteractionUnifiedBatchLikeDislike as ot,pInteractionUpdateFolder as st,pUserEditUserInfo as ct,pUserLogin as lt,pUserRegister as ut,pUserResetForgetPassword as dt,pUserResetPassword as ft,pUserSendEmailCode as pt,pUserSendForgetEmailCode as mt,pUserSendResetPasswordEmailCode as ht,pUserUploadUserBgImage as gt,pUserUserFeedback as _t,pUserUserPrivacySettings as vt,pUserVerifyEmailCode as yt,pUserVerifyForgetEmailCode as bt,pUserVerifyResetPasswordEmailCode as xt}from"./service/generated/client.mjs";import{gContentBatchGetVideoDetail as St}from"./service/content-batch-get-video-detail.mjs";import{createQueryKey as Ct,gCommunityBatchGetContentInfoKey as wt,gCommunityGetCollectionInfoKey as Tt,gCommunityGetCommentsKey as Et,gCommunityGetContentInfoKey as Dt,gCommunityGetContentListKey as Ot,gCommunityGetHotContentListKey as kt,gCommunityGetRandomContentListKey as At,gCommunityGetSubscribedCollectionsKey as jt,gCommunityGetUserCollectionsKey as Mt,gCommunityQueryContentsKey as Nt,gCommunitySearchContentKey as Pt,gContentAdminListAppChannelBlocksKey as Ft,gContentGetAdminSubChannelsKey as It,gContentGetAdvertiseByCodeKey as Lt,gContentGetAppChannelBlockDataKey as Rt,gContentGetAppChannelBlockIconKey as zt,gContentGetAppChannelBlockKey as Bt,gContentGetAppChannelsKey as Vt,gContentGetAppComponentKey as Ht,gContentGetFloatingBallKey as Ut,gContentGetGuessYouLikeVideosKey as Wt,gContentGetHotVideoListKey as Gt,gContentGetNewstVideoListKey as Kt,gContentGetPopularVideoListKey as qt,gContentGetRecommendSearchListKey as Jt,gContentGetRecommendVideoListKey as Yt,gContentGetVideoByIdKey as Xt,gContentGetVideoDetailKey as Zt,gContentGetVideoEpisodesKey as Qt,gContentGetVideosByIdsKey as $t,gContentListAppChannelBlockBannersKey as en,gContentListAppChannelBlockDiyContentsKey as tn,gContentListAppChannelBlockIconKey as nn,gContentListFloatingBallKey as rn,gContentListVisibleAppChannelBlockIconKey as an,gContentListVisibleFloatingBallKey as on,gContentProcessM3u8Key as sn,gContentSearchVideosByESKey as cn,gContentSearchVideosKey as ln,gGetAppChannelBlockDataKey as un,gInteractionBatchClearBrowseKey as dn,gInteractionBatchGetFollowStatsKey as fn,gInteractionCheckCollectKey as pn,gInteractionCheckMutualFollowKey as mn,gInteractionGetBrowseListKey as hn,gInteractionGetContentDislikeListKey as gn,gInteractionGetContentLikeListKey as _n,gInteractionGetDislikeListKey as vn,gInteractionGetFolderKey as yn,gInteractionGetFolderStatsKey as bn,gInteractionGetFollowStatsKey as xn,gInteractionGetFollowerListKey as Sn,gInteractionGetFollowingContentListKey as Cn,gInteractionGetFollowingListKey as wn,gInteractionGetFollowingUserUpdatesContentKey as Tn,gInteractionGetFollowingUserUpdatesKey as En,gInteractionGetLikeListKey as Dn,gInteractionListCollectsKey as On,gInteractionListFoldersKey as kn,gUserGetGuestIdentityKey as An,gUserGetUserEditInfoKey as jn,gUserGetUserInfoKey as Mn,gUserGetUserPrivacySettingsKey as Nn,gUserViewUserInfoKey as Pn,pCommunityAddContentToCollectionKey as Fn,pCommunityContentInteractionNotifyKey as In,pCommunityCreateCollectionKey as Ln,pCommunityCreateCommentKey as Rn,pCommunityDeleteCollectionKey as zn,pCommunityDeleteCommentKey as Bn,pCommunityDeleteContentKey as Vn,pCommunityDislikeCommentKey as Hn,pCommunityGetUploadPresignedURLKey as Un,pCommunityLikeCommentKey as Wn,pCommunityMoveCollectionContentKey as Gn,pCommunityPublishContentKey as Kn,pCommunityQueryContentsKey as qn,pCommunityRemoveContentFromCollectionKey as Jn,pCommunitySearchCurAccountFollowingUsersInfoKey as Yn,pCommunityShareContentKey as Xn,pCommunitySubscribeCollectionKey as Zn,pCommunityUpdateCollectionKey as Qn,pCommunityUpdateContentKey as $n,pCommunityUploadMediaKey as er,pContentAddAppChannelBlockDiyContentKey as tr,pContentCreateAppChannelBlockIconKey as nr,pContentDeleteAppChannelBlockBannerKey as rr,pContentDeleteAppChannelBlockDiyContentKey as ir,pContentDeleteAppChannelBlockIconKey as ar,pContentSearchVideosByESKey as or,pContentUpdateAppChannelBlockBannerKey as sr,pContentUpdateAppChannelBlockBannerStatusKey as cr,pContentUpdateAppChannelBlockIconKey as lr,pContentUpdateAppChannelBlockIconStatusKey as ur,pContentVideoInteractionNotifyKey as dr,pInteractionAddCollectKey as fr,pInteractionBatchClearBrowseKey as pr,pInteractionBatchDeleteCollectsKey as mr,pInteractionBatchQueryContentInteractionsKey as hr,pInteractionBrowseKey as gr,pInteractionCancelDislikeKey as _r,pInteractionCancelLikeKey as vr,pInteractionCheckFollowKey as yr,pInteractionClearBrowseHistoryKey as br,pInteractionCreateFolderKey as xr,pInteractionDeleteBrowseRecordKey as Sr,pInteractionDeleteFolderKey as Cr,pInteractionDislikeKey as wr,pInteractionFollowKey as Tr,pInteractionLikeKey as Er,pInteractionMoveCollectsKey as Dr,pInteractionRemoveCollectKey as Or,pInteractionUnfollowKey as kr,pInteractionUnifiedBatchLikeDislikeKey as Ar,pInteractionUpdateFolderKey as jr,pUserEditUserInfoKey as Mr,pUserLoginKey as Nr,pUserRegisterKey as Pr,pUserResetForgetPasswordKey as Fr,pUserResetPasswordKey as Ir,pUserSendEmailCodeKey as Lr,pUserSendForgetEmailCodeKey as Rr,pUserSendResetPasswordEmailCodeKey as zr,pUserUploadUserBgImageKey as Br,pUserUserFeedbackKey as Vr,pUserUserPrivacySettingsKey as Hr,pUserVerifyEmailCodeKey as Ur,pUserVerifyForgetEmailCodeKey as Wr,pUserVerifyResetPasswordEmailCodeKey as Gr}from"./service/generated/tanstack.mjs";import{getPopularVideoListPost as Kr}from"./service/get-popular-video-list-post.mjs";export{e as batchGetVideoDetail,Ct as createQueryKey,t as gCommunityBatchGetContentInfo,wt as gCommunityBatchGetContentInfoKey,n as gCommunityGetCollectionInfo,Tt as gCommunityGetCollectionInfoKey,r as gCommunityGetComments,Et as gCommunityGetCommentsKey,i as gCommunityGetContentInfo,Dt as gCommunityGetContentInfoKey,a as gCommunityGetContentList,Ot as gCommunityGetContentListKey,o as gCommunityGetHotContentList,kt as gCommunityGetHotContentListKey,s as gCommunityGetRandomContentList,At as gCommunityGetRandomContentListKey,c as gCommunityGetSubscribedCollections,jt as gCommunityGetSubscribedCollectionsKey,l as gCommunityGetUserCollections,Mt as gCommunityGetUserCollectionsKey,u as gCommunityQueryContents,Nt as gCommunityQueryContentsKey,d as gCommunitySearchContent,Pt as gCommunitySearchContentKey,f as gContentAdminListAppChannelBlocks,Ft as gContentAdminListAppChannelBlocksKey,St as gContentBatchGetVideoDetail,p as gContentGetAdminSubChannels,It as gContentGetAdminSubChannelsKey,m as gContentGetAdvertiseByCode,Lt as gContentGetAdvertiseByCodeKey,h as gContentGetAppChannelBlock,g as gContentGetAppChannelBlockData,Rt as gContentGetAppChannelBlockDataKey,_ as gContentGetAppChannelBlockIcon,zt as gContentGetAppChannelBlockIconKey,Bt as gContentGetAppChannelBlockKey,v as gContentGetAppChannels,Vt as gContentGetAppChannelsKey,y as gContentGetAppComponent,Ht as gContentGetAppComponentKey,b as gContentGetFloatingBall,Ut as gContentGetFloatingBallKey,x as gContentGetGuessYouLikeVideos,Wt as gContentGetGuessYouLikeVideosKey,S as gContentGetHotVideoList,Gt as gContentGetHotVideoListKey,C as gContentGetNewstVideoList,Kt as gContentGetNewstVideoListKey,w as gContentGetPopularVideoList,qt as gContentGetPopularVideoListKey,T as gContentGetRecommendSearchList,Jt as gContentGetRecommendSearchListKey,E as gContentGetRecommendVideoList,Yt as gContentGetRecommendVideoListKey,D as gContentGetVideoById,Xt as gContentGetVideoByIdKey,O as gContentGetVideoDetail,Zt as gContentGetVideoDetailKey,k as gContentGetVideoEpisodes,Qt as gContentGetVideoEpisodesKey,A as gContentGetVideosByIds,$t as gContentGetVideosByIdsKey,j as gContentListAppChannelBlockBanners,en as gContentListAppChannelBlockBannersKey,M as gContentListAppChannelBlockDiyContents,tn as gContentListAppChannelBlockDiyContentsKey,N as gContentListAppChannelBlockIcon,nn as gContentListAppChannelBlockIconKey,P as gContentListFloatingBall,rn as gContentListFloatingBallKey,F as gContentListVisibleAppChannelBlockIcon,an as gContentListVisibleAppChannelBlockIconKey,I as gContentListVisibleFloatingBall,on as gContentListVisibleFloatingBallKey,L as gContentProcessM3u8,sn as gContentProcessM3u8Key,R as gContentSearchVideos,z as gContentSearchVideosByES,cn as gContentSearchVideosByESKey,ln as gContentSearchVideosKey,B as gGetAppChannelBlockData,un as gGetAppChannelBlockDataKey,V as gInteractionBatchClearBrowse,dn as gInteractionBatchClearBrowseKey,H as gInteractionBatchGetFollowStats,fn as gInteractionBatchGetFollowStatsKey,U as gInteractionCheckCollect,pn as gInteractionCheckCollectKey,W as gInteractionCheckMutualFollow,mn as gInteractionCheckMutualFollowKey,G as gInteractionGetBrowseList,hn as gInteractionGetBrowseListKey,K as gInteractionGetContentDislikeList,gn as gInteractionGetContentDislikeListKey,q as gInteractionGetContentLikeList,_n as gInteractionGetContentLikeListKey,J as gInteractionGetDislikeList,vn as gInteractionGetDislikeListKey,Y as gInteractionGetFolder,yn as gInteractionGetFolderKey,X as gInteractionGetFolderStats,bn as gInteractionGetFolderStatsKey,Z as gInteractionGetFollowStats,xn as gInteractionGetFollowStatsKey,Q as gInteractionGetFollowerList,Sn as gInteractionGetFollowerListKey,$ as gInteractionGetFollowingContentList,Cn as gInteractionGetFollowingContentListKey,ee as gInteractionGetFollowingList,wn as gInteractionGetFollowingListKey,te as gInteractionGetFollowingUserUpdates,ne as gInteractionGetFollowingUserUpdatesContent,Tn as gInteractionGetFollowingUserUpdatesContentKey,En as gInteractionGetFollowingUserUpdatesKey,re as gInteractionGetLikeList,Dn as gInteractionGetLikeListKey,ie as gInteractionListCollects,On as gInteractionListCollectsKey,ae as gInteractionListFolders,kn as gInteractionListFoldersKey,oe as gUserGetGuestIdentity,An as gUserGetGuestIdentityKey,se as gUserGetUserEditInfo,jn as gUserGetUserEditInfoKey,ce as gUserGetUserInfo,Mn as gUserGetUserInfoKey,le as gUserGetUserPrivacySettings,Nn as gUserGetUserPrivacySettingsKey,ue as gUserViewUserInfo,Pn as gUserViewUserInfoKey,Kr as getPopularVideoListPost,de as pCommunityAddContentToCollection,Fn as pCommunityAddContentToCollectionKey,fe as pCommunityContentInteractionNotify,In as pCommunityContentInteractionNotifyKey,pe as pCommunityCreateCollection,Ln as pCommunityCreateCollectionKey,me as pCommunityCreateComment,Rn as pCommunityCreateCommentKey,he as pCommunityDeleteCollection,zn as pCommunityDeleteCollectionKey,ge as pCommunityDeleteComment,Bn as pCommunityDeleteCommentKey,_e as pCommunityDeleteContent,Vn as pCommunityDeleteContentKey,ve as pCommunityDislikeComment,Hn as pCommunityDislikeCommentKey,ye as pCommunityGetUploadPresignedURL,Un as pCommunityGetUploadPresignedURLKey,be as pCommunityLikeComment,Wn as pCommunityLikeCommentKey,xe as pCommunityMoveCollectionContent,Gn as pCommunityMoveCollectionContentKey,Se as pCommunityPublishContent,Kn as pCommunityPublishContentKey,Ce as pCommunityQueryContents,qn as pCommunityQueryContentsKey,we as pCommunityRemoveContentFromCollection,Jn as pCommunityRemoveContentFromCollectionKey,Te as pCommunitySearchCurAccountFollowingUsersInfo,Yn as pCommunitySearchCurAccountFollowingUsersInfoKey,Ee as pCommunityShareContent,Xn as pCommunityShareContentKey,De as pCommunitySubscribeCollection,Zn as pCommunitySubscribeCollectionKey,Oe as pCommunityUpdateCollection,Qn as pCommunityUpdateCollectionKey,ke as pCommunityUpdateContent,$n as pCommunityUpdateContentKey,Ae as pCommunityUploadMedia,er as pCommunityUploadMediaKey,je as pContentAddAppChannelBlockDiyContent,tr as pContentAddAppChannelBlockDiyContentKey,Me as pContentCreateAppChannelBlockIcon,nr as pContentCreateAppChannelBlockIconKey,Ne as pContentDeleteAppChannelBlockBanner,rr as pContentDeleteAppChannelBlockBannerKey,Pe as pContentDeleteAppChannelBlockDiyContent,ir as pContentDeleteAppChannelBlockDiyContentKey,Fe as pContentDeleteAppChannelBlockIcon,ar as pContentDeleteAppChannelBlockIconKey,Ie as pContentSearchVideosByES,or as pContentSearchVideosByESKey,Le as pContentUpdateAppChannelBlockBanner,sr as pContentUpdateAppChannelBlockBannerKey,Re as pContentUpdateAppChannelBlockBannerStatus,cr as pContentUpdateAppChannelBlockBannerStatusKey,ze as pContentUpdateAppChannelBlockIcon,lr as pContentUpdateAppChannelBlockIconKey,Be as pContentUpdateAppChannelBlockIconStatus,ur as pContentUpdateAppChannelBlockIconStatusKey,Ve as pContentVideoInteractionNotify,dr as pContentVideoInteractionNotifyKey,He as pInteractionAddCollect,fr as pInteractionAddCollectKey,Ue as pInteractionBatchClearBrowse,pr as pInteractionBatchClearBrowseKey,We as pInteractionBatchDeleteCollects,mr as pInteractionBatchDeleteCollectsKey,Ge as pInteractionBatchQueryContentInteractions,hr as pInteractionBatchQueryContentInteractionsKey,Ke as pInteractionBrowse,gr as pInteractionBrowseKey,qe as pInteractionCancelDislike,_r as pInteractionCancelDislikeKey,Je as pInteractionCancelLike,vr as pInteractionCancelLikeKey,Ye as pInteractionCheckFollow,yr as pInteractionCheckFollowKey,Xe as pInteractionClearBrowseHistory,br as pInteractionClearBrowseHistoryKey,Ze as pInteractionCreateFolder,xr as pInteractionCreateFolderKey,Qe as pInteractionDeleteBrowseRecord,Sr as pInteractionDeleteBrowseRecordKey,$e as pInteractionDeleteFolder,Cr as pInteractionDeleteFolderKey,et as pInteractionDislike,wr as pInteractionDislikeKey,tt as pInteractionFollow,Tr as pInteractionFollowKey,nt as pInteractionLike,Er as pInteractionLikeKey,rt as pInteractionMoveCollects,Dr as pInteractionMoveCollectsKey,it as pInteractionRemoveCollect,Or as pInteractionRemoveCollectKey,at as pInteractionUnfollow,kr as pInteractionUnfollowKey,ot as pInteractionUnifiedBatchLikeDislike,Ar as pInteractionUnifiedBatchLikeDislikeKey,st as pInteractionUpdateFolder,jr as pInteractionUpdateFolderKey,ct as pUserEditUserInfo,Mr as pUserEditUserInfoKey,lt as pUserLogin,Nr as pUserLoginKey,ut as pUserRegister,Pr as pUserRegisterKey,dt as pUserResetForgetPassword,Fr as pUserResetForgetPasswordKey,ft as pUserResetPassword,Ir as pUserResetPasswordKey,pt as pUserSendEmailCode,Lr as pUserSendEmailCodeKey,mt as pUserSendForgetEmailCode,Rr as pUserSendForgetEmailCodeKey,ht as pUserSendResetPasswordEmailCode,zr as pUserSendResetPasswordEmailCodeKey,gt as pUserUploadUserBgImage,Br as pUserUploadUserBgImageKey,_t as pUserUserFeedback,Vr as pUserUserFeedbackKey,vt as pUserUserPrivacySettings,Hr as pUserUserPrivacySettingsKey,yt as pUserVerifyEmailCode,Ur as pUserVerifyEmailCodeKey,bt as pUserVerifyForgetEmailCode,Wr as pUserVerifyForgetEmailCodeKey,xt as pUserVerifyResetPasswordEmailCode,Gr as pUserVerifyResetPasswordEmailCodeKey};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
//#region utils/password-validator.d.ts
|
|
3
|
+
declare const PASSWORD_MIN_LENGTH = 8;
|
|
4
|
+
declare const PASSWORD_MAX_LENGTH = 32;
|
|
5
|
+
declare const PASSWORD_ALLOWED_SPECIAL_CHARS = "!@#$%^&*+-=()[]{}_,.:;<>\"'`";
|
|
6
|
+
type PasswordValidationType = 'none' | 'too-short' | 'too-long' | 'need-two-types' | 'invalid-char' | 'not-match';
|
|
7
|
+
interface PasswordValidationResult {
|
|
8
|
+
type: PasswordValidationType;
|
|
9
|
+
invalidChar: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* 获取密码校验错误文案。
|
|
13
|
+
*/
|
|
14
|
+
declare function getPasswordValidationErrorText(result: PasswordValidationResult): string;
|
|
15
|
+
/**
|
|
16
|
+
* 计算密码包含的字符类型数量(字母/数字/符号)。
|
|
17
|
+
*/
|
|
18
|
+
declare function getPasswordCharacterTypeCount(value: string): number;
|
|
19
|
+
/**
|
|
20
|
+
* 查找首个非法字符。
|
|
21
|
+
*/
|
|
22
|
+
declare function getFirstInvalidPasswordChar(value: string): string;
|
|
23
|
+
/**
|
|
24
|
+
* 密码双字段校验。
|
|
25
|
+
*/
|
|
26
|
+
declare function validatePasswordPair(password: string, confirmPassword: string): PasswordValidationResult;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { PASSWORD_ALLOWED_SPECIAL_CHARS, PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, PasswordValidationResult, PasswordValidationType, getFirstInvalidPasswordChar, getPasswordCharacterTypeCount, getPasswordValidationErrorText, validatePasswordPair };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
const e=8,t=32,n=`!@#$%^&*+-=()[]{}_,.:;<>"'\``;function r(e){switch(e.type){case`too-short`:return`密码至少 8 位`;case`too-long`:return`密码不能超过 32 位`;case`need-two-types`:return`密码需包含字母、数字或符号中的至少两种`;case`invalid-char`:return`密码包含不支持的字符 "${e.invalidChar}"`;case`not-match`:return`两次输入的密码不一致`;default:return``}}function i(e){let t=!1,r=!1,i=!1;for(let a of e){if(/[A-Z]/i.test(a)){t=!0;continue}if(/\d/.test(a)){r=!0;continue}n.includes(a)&&(i=!0)}return Number(t)+Number(r)+Number(i)}function a(e){for(let t of e)if(!/[A-Z]/i.test(t)&&!/\d/.test(t)&&!n.includes(t))return t;return``}function o(e,t){if(e.length===0||t.length===0)return{type:`none`,invalidChar:``};if(e.length<8)return{type:`too-short`,invalidChar:``};if(e.length>32)return{type:`too-long`,invalidChar:``};if(i(e)<2)return{type:`need-two-types`,invalidChar:``};let n=a(e);return n?{type:`invalid-char`,invalidChar:n}:e===t?{type:`none`,invalidChar:``}:{type:`not-match`,invalidChar:``}}export{n as PASSWORD_ALLOWED_SPECIAL_CHARS,t as PASSWORD_MAX_LENGTH,e as PASSWORD_MIN_LENGTH,a as getFirstInvalidPasswordChar,i as getPasswordCharacterTypeCount,r as getPasswordValidationErrorText,o as validatePasswordPair};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
|
|
2
2
|
import { INSPECTOR_META_KEY, InferSchemaProps, MaterialComponentMode, MaterialComponentProps, SchemaHasDefaultValue, defineArrayItemPropSchema, defineCheckboxPropSchema, defineColorPropSchema, defineComponentPropsSchema, defineDatetimePropSchema, defineNumberPropSchema, defineObjectPropSchema, defineSelectEnumPropSchema, defineSelectPropSchema, defineSwitchPropSchema, defineTextPropSchema, defineTextareaPropSchema, defineTimeRangePropSchema, getSchemaDefaultProps, withInspectorMeta } from "./schema.mjs";
|
|
3
3
|
import { defineMaterial, overwriteMaterial } from "./material.mjs";
|
|
4
|
-
import { MaterialMap, generateMaterialMap } from "./utils.mjs";
|
|
4
|
+
import { MaterialMap, generateMaterialMap, generateMaterialMapGroupByCategory } from "./utils.mjs";
|
|
@@ -8,9 +8,6 @@ import z$1 from "zod";
|
|
|
8
8
|
* 物料分类
|
|
9
9
|
*/
|
|
10
10
|
declare const MATERIAL_CATEGORY: {
|
|
11
|
-
readonly TOP: "TOP";
|
|
12
|
-
readonly CENTER: "CENTER";
|
|
13
|
-
readonly BOTTOM: "BOTTOM";
|
|
14
11
|
readonly 内容组件: "内容组件";
|
|
15
12
|
readonly 金刚组件: "金刚组件";
|
|
16
13
|
readonly 大图宫格: "大图宫格";
|
|
@@ -19,6 +16,7 @@ declare const MATERIAL_CATEGORY: {
|
|
|
19
16
|
readonly 视频模块: "视频模块";
|
|
20
17
|
readonly 详情页: "详情页";
|
|
21
18
|
};
|
|
19
|
+
type MaterialCategory = typeof MATERIAL_CATEGORY[keyof typeof MATERIAL_CATEGORY];
|
|
22
20
|
type MaterialPropsSchema = z$1.ZodObject<z$1.ZodRawShape>;
|
|
23
21
|
type MaterialSchemaProps<TSchema extends MaterialPropsSchema> = InferSchemaProps<TSchema>;
|
|
24
22
|
type InternalMaterialSchemaKey = 'mode';
|
|
@@ -26,22 +24,22 @@ type SchemaExtraKeys<TSchemaProps, TComponentProps> = Exclude<keyof TSchemaProps
|
|
|
26
24
|
type SchemaIncompatibleKeys<TSchemaProps, TComponentProps> = { [Key in keyof TSchemaProps]-?: Key extends InternalMaterialSchemaKey ? never : Key extends keyof TComponentProps ? TSchemaProps[Key] extends TComponentProps[Key] ? never : Key : Key }[keyof TSchemaProps];
|
|
27
25
|
type EnsurePropsSchemaSubset<TComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema> = [SchemaExtraKeys<MaterialSchemaProps<TPropsSchema>, ComponentProps<TComponent>>] extends [never] ? [SchemaIncompatibleKeys<MaterialSchemaProps<TPropsSchema>, ComponentProps<TComponent>>] extends [never] ? TPropsSchema : never : never;
|
|
28
26
|
type EnsureComponentCompatibleWithSchema<TComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema> = EnsurePropsSchemaSubset<TComponent, TPropsSchema> extends never ? never : TComponent;
|
|
29
|
-
interface DefineMaterialOption<TServerComponent extends ComponentType<any>, TClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, TType extends string = string> {
|
|
27
|
+
interface DefineMaterialOption<TServerComponent extends ComponentType<any>, TClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, TType extends string = string, TCategory extends MaterialCategory = MaterialCategory> {
|
|
30
28
|
type: TType;
|
|
31
29
|
name: string;
|
|
32
30
|
icon: ReactNode;
|
|
33
31
|
serverComponent: TServerComponent;
|
|
34
32
|
clientComponent: TClientComponent;
|
|
35
33
|
propsSchema: EnsurePropsSchemaSubset<TServerComponent | TClientComponent, TPropsSchema>;
|
|
36
|
-
category:
|
|
34
|
+
category: TCategory;
|
|
37
35
|
}
|
|
38
36
|
/**
|
|
39
37
|
* 定义物料,约束propsSchema是server/client component props的子集。
|
|
40
38
|
* @param option 物料配置
|
|
41
39
|
* @returns 物料配置
|
|
42
40
|
*/
|
|
43
|
-
declare function defineMaterial<TServerComponent extends ComponentType<any>, TClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, const TType extends string>(option: DefineMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TType>): DefineMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TType>;
|
|
44
|
-
interface OverwriteMaterialOption<TServerComponent extends ComponentType<any>, TClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema> {
|
|
41
|
+
declare function defineMaterial<TServerComponent extends ComponentType<any>, TClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, const TType extends string, const TCategory extends MaterialCategory>(option: DefineMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TType, TCategory>): DefineMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TType, TCategory>;
|
|
42
|
+
interface OverwriteMaterialOption<TServerComponent extends ComponentType<any>, TClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, TCategory extends MaterialCategory = MaterialCategory> {
|
|
45
43
|
serverComponent?: EnsureComponentCompatibleWithSchema<TServerComponent, TPropsSchema>;
|
|
46
44
|
clientComponent?: EnsureComponentCompatibleWithSchema<TClientComponent, TPropsSchema>;
|
|
47
45
|
}
|
|
@@ -51,6 +49,6 @@ interface OverwriteMaterialOption<TServerComponent extends ComponentType<any>, T
|
|
|
51
49
|
* @param option 重写配置
|
|
52
50
|
* @returns 重写后的物料配置
|
|
53
51
|
*/
|
|
54
|
-
declare function overwriteMaterial<TRawServerComponent extends ComponentType<any>, TRawClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, TType extends string, TServerComponent extends ComponentType<any> = TRawServerComponent, TClientComponent extends ComponentType<any> = TRawClientComponent>(rawMaterial: DefineMaterialOption<TRawServerComponent, TRawClientComponent, TPropsSchema, TType>, option?: OverwriteMaterialOption<TServerComponent, TClientComponent, TPropsSchema>): DefineMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TType>;
|
|
52
|
+
declare function overwriteMaterial<TRawServerComponent extends ComponentType<any>, TRawClientComponent extends ComponentType<any>, TPropsSchema extends MaterialPropsSchema, TType extends string, TCategory extends MaterialCategory, TServerComponent extends ComponentType<any> = TRawServerComponent, TClientComponent extends ComponentType<any> = TRawClientComponent>(rawMaterial: DefineMaterialOption<TRawServerComponent, TRawClientComponent, TPropsSchema, TType, TCategory>, option?: OverwriteMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TCategory>): DefineMaterialOption<TServerComponent, TClientComponent, TPropsSchema, TType, TCategory>;
|
|
55
53
|
//#endregion
|
|
56
|
-
export { DefineMaterialOption, defineMaterial, overwriteMaterial };
|
|
54
|
+
export { DefineMaterialOption, MaterialCategory, defineMaterial, overwriteMaterial };
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
import { DefineMaterialOption } from "./material.mjs";
|
|
2
|
+
import { DefineMaterialOption, MaterialCategory } from "./material.mjs";
|
|
3
3
|
|
|
4
4
|
//#region utils/schema/utils.d.ts
|
|
5
|
-
type MaterialLike = DefineMaterialOption<any, any, any, string>;
|
|
5
|
+
type MaterialLike = DefineMaterialOption<any, any, any, string, MaterialCategory>;
|
|
6
6
|
type MaterialMap<TMaterials extends readonly MaterialLike[]> = { [Type in TMaterials[number]['type']]: Extract<TMaterials[number], {
|
|
7
7
|
type: Type;
|
|
8
8
|
}> };
|
|
9
|
+
type MaterialMapGroupByCategory<TMaterials extends readonly MaterialLike[]> = { [Category in TMaterials[number]['category']]: Extract<TMaterials[number], {
|
|
10
|
+
category: Category;
|
|
11
|
+
}>[] };
|
|
9
12
|
/**
|
|
10
13
|
* 将物料数组转换为 type -> material 的映射。
|
|
11
14
|
* 如果出现重复 type,会输出警告并以后者覆盖前者。
|
|
@@ -13,5 +16,12 @@ type MaterialMap<TMaterials extends readonly MaterialLike[]> = { [Type in TMater
|
|
|
13
16
|
* @returns 以 material.type 为 key 的映射
|
|
14
17
|
*/
|
|
15
18
|
declare function generateMaterialMap<const TMaterials extends readonly MaterialLike[]>(materials: TMaterials): MaterialMap<TMaterials>;
|
|
19
|
+
/**
|
|
20
|
+
* 将物料数组转换为 category -> material[] 的映射。
|
|
21
|
+
* 同一分类下的物料顺序与入参数组保持一致。
|
|
22
|
+
* @param materials 通过 defineMaterial 定义的物料数组
|
|
23
|
+
* @returns 以 material.category 为 key 的映射
|
|
24
|
+
*/
|
|
25
|
+
declare function generateMaterialMapGroupByCategory<const TMaterials extends readonly MaterialLike[]>(materials: TMaterials): MaterialMapGroupByCategory<TMaterials>;
|
|
16
26
|
//#endregion
|
|
17
|
-
export { MaterialMap, generateMaterialMap };
|
|
27
|
+
export { MaterialMap, generateMaterialMap, generateMaterialMapGroupByCategory };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
function e(e){let t=new Set;return e.reduce((e,n)=>(t.has(n.type)&&console.warn(`[generateMaterialMap] duplicated material type: ${n.type}, the later one will overwrite the previous one.`),t.add(n.type),e[n.type]=n,e),{})}export{e as generateMaterialMap};
|
|
2
|
+
function e(e){let t=new Set;return e.reduce((e,n)=>(t.has(n.type)&&console.warn(`[generateMaterialMap] duplicated material type: ${n.type}, the later one will overwrite the previous one.`),t.add(n.type),e[n.type]=n,e),{})}function t(e){return e.reduce((e,t)=>{let n=t.category;return e[n]||(e[n]=[]),e[n].push(t),e},{})}export{e as generateMaterialMap,t as generateMaterialMapGroupByCategory};
|
package/dist/utils.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { INSPECTOR_META_KEY, InferSchemaProps, MaterialComponentMode, MaterialComponentProps, SchemaHasDefaultValue, defineArrayItemPropSchema, defineCheckboxPropSchema, defineColorPropSchema, defineComponentPropsSchema, defineDatetimePropSchema, defineNumberPropSchema, defineObjectPropSchema, defineSelectEnumPropSchema, defineSelectPropSchema, defineSwitchPropSchema, defineTextPropSchema, defineTextareaPropSchema, defineTimeRangePropSchema, getSchemaDefaultProps, withInspectorMeta } from "./utils/schema/schema.mjs";
|
|
3
3
|
import { defineMaterial, overwriteMaterial } from "./utils/schema/material.mjs";
|
|
4
|
-
import { MaterialMap, generateMaterialMap } from "./utils/schema/utils.mjs";
|
|
4
|
+
import { MaterialMap, generateMaterialMap, generateMaterialMapGroupByCategory } from "./utils/schema/utils.mjs";
|
|
5
5
|
import "./utils/schema/index.mjs";
|
|
6
6
|
import { clearMyChannelsFromStorage, loadHiddenChannelIdsFromStorage, loadMyChannelsFromStorage, saveHiddenChannelIdsToStorage } from "./utils/channel-storage.mjs";
|
|
7
7
|
import { cn } from "./utils/cn.mjs";
|
|
@@ -15,7 +15,8 @@ import { HttpClient, HttpError, RequestConfig, RequestMethod, ResponseData, http
|
|
|
15
15
|
import { ImageCompressionQualityRule, compressImage, defaultImageCompressionMaxSizeMB, defaultImageCompressionQuality, getImageCompressionQuality, imageCompressionQualityRules } from "./utils/image-compression.mjs";
|
|
16
16
|
import { components, loadComponent, rewriteComponent } from "./utils/loaders.mjs";
|
|
17
17
|
import { createInputAndSelectFile, getCoverImage, getImageResolutionFromFile } from "./utils/media.mjs";
|
|
18
|
+
import { PASSWORD_ALLOWED_SPECIAL_CHARS, PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, PasswordValidationResult, PasswordValidationType, getFirstInvalidPasswordChar, getPasswordCharacterTypeCount, getPasswordValidationErrorText, validatePasswordPair } from "./utils/password-validator.mjs";
|
|
18
19
|
import { PresignedUploadInfo, UploadToS3Options, UploadToS3Result, uploadToS3WithPresignedUrl } from "./utils/s3-uploader.mjs";
|
|
19
20
|
import { base64ToUint8Array, uint8ArrayToBase64, uint8ArrayToNumberArray } from "./utils/uint8.mjs";
|
|
20
21
|
import { UploadFileResult, encryptBncBuffer, uploadFile } from "./utils/upload-file.mjs";
|
|
21
|
-
export { eventBus as EventBus, HttpClient, HttpError, INSPECTOR_META_KEY, ImageCompressionQualityRule, InferSchemaProps, MaterialComponentMode, MaterialComponentProps, MaterialMap, PresignedUploadInfo, RequestConfig, RequestMethod, ResponseData, SchemaHasDefaultValue, UploadFileResult, UploadToS3Options, UploadToS3Result, base64ToUint8Array, checkFollowStatus, clearMyChannelsFromStorage, cn, components, compressImage, createInputAndSelectFile, debounceFun, decryptImageToArrayBuffer, decryptImageToUint8Array, decryptImageUrl, defaultImageCompressionMaxSizeMB, defaultImageCompressionQuality, defineArrayItemPropSchema, defineCheckboxPropSchema, defineColorPropSchema, defineComponentPropsSchema, defineDatetimePropSchema, defineMaterial, defineNumberPropSchema, defineObjectPropSchema, defineSelectEnumPropSchema, defineSelectPropSchema, defineSwitchPropSchema, defineTextPropSchema, defineTextareaPropSchema, defineTimeRangePropSchema, disablePageScroll, enablePageScroll, encryptBncBuffer, followUser, formatVideoDuration, generateDynamicSign, generateMaterialMap, generateUUID, getAppId, getAtUserElement, getCookie, getCoverImage, getCurrentSecondTime, getCurrentUserId, getImageCompressionQuality, getImageResolutionFromFile, getResUrl, getSchemaDefaultProps, getUserId, guessImageContentTypeFromUrl, hashPassword, httpClient, imageCompressionQualityRules, isClient, isEncryptedImageUrl, isMobileDevice, loadComponent, loadHiddenChannelIdsFromStorage, loadMyChannelsFromStorage, normalizeClassName, numToString, overwriteMaterial, parseResolution, parseTextAtUserIds, pxToVw, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, rewriteComponent, saveHiddenChannelIdsToStorage, secondToTime, setCookie, stringToNumber, stripHtmlTags, uint8ArrayToBase64, uint8ArrayToNumberArray, unfollowUser, updateUrlParams, uploadFile, uploadToS3WithPresignedUrl, withInspectorMeta };
|
|
22
|
+
export { eventBus as EventBus, HttpClient, HttpError, INSPECTOR_META_KEY, ImageCompressionQualityRule, InferSchemaProps, MaterialComponentMode, MaterialComponentProps, MaterialMap, PASSWORD_ALLOWED_SPECIAL_CHARS, PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, PasswordValidationResult, PasswordValidationType, PresignedUploadInfo, RequestConfig, RequestMethod, ResponseData, SchemaHasDefaultValue, UploadFileResult, UploadToS3Options, UploadToS3Result, base64ToUint8Array, checkFollowStatus, clearMyChannelsFromStorage, cn, components, compressImage, createInputAndSelectFile, debounceFun, decryptImageToArrayBuffer, decryptImageToUint8Array, decryptImageUrl, defaultImageCompressionMaxSizeMB, defaultImageCompressionQuality, defineArrayItemPropSchema, defineCheckboxPropSchema, defineColorPropSchema, defineComponentPropsSchema, defineDatetimePropSchema, defineMaterial, defineNumberPropSchema, defineObjectPropSchema, defineSelectEnumPropSchema, defineSelectPropSchema, defineSwitchPropSchema, defineTextPropSchema, defineTextareaPropSchema, defineTimeRangePropSchema, disablePageScroll, enablePageScroll, encryptBncBuffer, followUser, formatVideoDuration, generateDynamicSign, generateMaterialMap, generateMaterialMapGroupByCategory, generateUUID, getAppId, getAtUserElement, getCookie, getCoverImage, getCurrentSecondTime, getCurrentUserId, getFirstInvalidPasswordChar, getImageCompressionQuality, getImageResolutionFromFile, getPasswordCharacterTypeCount, getPasswordValidationErrorText, getResUrl, getSchemaDefaultProps, getUserId, guessImageContentTypeFromUrl, hashPassword, httpClient, imageCompressionQualityRules, isClient, isEncryptedImageUrl, isMobileDevice, loadComponent, loadHiddenChannelIdsFromStorage, loadMyChannelsFromStorage, normalizeClassName, numToString, overwriteMaterial, parseResolution, parseTextAtUserIds, pxToVw, randomString, removeCookie, replaceAtUserElement, replaceAtUserElementHtmlStr, rewriteComponent, saveHiddenChannelIdsToStorage, secondToTime, setCookie, stringToNumber, stripHtmlTags, uint8ArrayToBase64, uint8ArrayToNumberArray, unfollowUser, updateUrlParams, uploadFile, uploadToS3WithPresignedUrl, validatePasswordPair, withInspectorMeta };
|
package/dist/utils.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{cn as e}from"./utils/cn.mjs";import{clearMyChannelsFromStorage as t,loadHiddenChannelIdsFromStorage as n,loadMyChannelsFromStorage as r,saveHiddenChannelIdsToStorage as i}from"./utils/channel-storage.mjs";import{debounceFun as a,formatVideoDuration as o,generateDynamicSign as s,generateUUID as c,getAtUserElement as l,getCookie as u,getCurrentSecondTime as d,getUserId as f,hashPassword as p,isClient as m,isMobileDevice as h,numToString as g,parseResolution as _,parseTextAtUserIds as v,randomString as y,removeCookie as b,replaceAtUserElement as x,replaceAtUserElementHtmlStr as S,secondToTime as C,setCookie as w,stringToNumber as T,stripHtmlTags as E,updateUrlParams as D}from"./utils/common.mjs";import O from"./utils/get-res-url.mjs";import{decryptImageToArrayBuffer as k,decryptImageToUint8Array as A,decryptImageUrl as j,guessImageContentTypeFromUrl as M,isEncryptedImageUrl as N}from"./utils/decrypt-image-client.mjs";import P from"./utils/event-bus.mjs";import F,{HttpClient as I,HttpError as L}from"./utils/http.mjs";import{checkFollowStatus as R,followUser as z,getAppId as B,getCurrentUserId as V,unfollowUser as H}from"./utils/follow-service.mjs";import{disablePageScroll as U,enablePageScroll as W,normalizeClassName as G,pxToVw as K}from"./utils/helper.mjs";import{compressImage as q,defaultImageCompressionMaxSizeMB as J,defaultImageCompressionQuality as Y,getImageCompressionQuality as X,imageCompressionQualityRules as Z}from"./utils/image-compression.mjs";import{components as Q,loadComponent as $,rewriteComponent as ee}from"./utils/loaders.mjs";import{createInputAndSelectFile as te,getCoverImage as ne,getImageResolutionFromFile as re}from"./utils/media.mjs";import{
|
|
2
|
+
import{cn as e}from"./utils/cn.mjs";import{clearMyChannelsFromStorage as t,loadHiddenChannelIdsFromStorage as n,loadMyChannelsFromStorage as r,saveHiddenChannelIdsToStorage as i}from"./utils/channel-storage.mjs";import{debounceFun as a,formatVideoDuration as o,generateDynamicSign as s,generateUUID as c,getAtUserElement as l,getCookie as u,getCurrentSecondTime as d,getUserId as f,hashPassword as p,isClient as m,isMobileDevice as h,numToString as g,parseResolution as _,parseTextAtUserIds as v,randomString as y,removeCookie as b,replaceAtUserElement as x,replaceAtUserElementHtmlStr as S,secondToTime as C,setCookie as w,stringToNumber as T,stripHtmlTags as E,updateUrlParams as D}from"./utils/common.mjs";import O from"./utils/get-res-url.mjs";import{decryptImageToArrayBuffer as k,decryptImageToUint8Array as A,decryptImageUrl as j,guessImageContentTypeFromUrl as M,isEncryptedImageUrl as N}from"./utils/decrypt-image-client.mjs";import P from"./utils/event-bus.mjs";import F,{HttpClient as I,HttpError as L}from"./utils/http.mjs";import{checkFollowStatus as R,followUser as z,getAppId as B,getCurrentUserId as V,unfollowUser as H}from"./utils/follow-service.mjs";import{disablePageScroll as U,enablePageScroll as W,normalizeClassName as G,pxToVw as K}from"./utils/helper.mjs";import{compressImage as q,defaultImageCompressionMaxSizeMB as J,defaultImageCompressionQuality as Y,getImageCompressionQuality as X,imageCompressionQualityRules as Z}from"./utils/image-compression.mjs";import{components as Q,loadComponent as $,rewriteComponent as ee}from"./utils/loaders.mjs";import{createInputAndSelectFile as te,getCoverImage as ne,getImageResolutionFromFile as re}from"./utils/media.mjs";import{PASSWORD_ALLOWED_SPECIAL_CHARS as ie,PASSWORD_MAX_LENGTH as ae,PASSWORD_MIN_LENGTH as oe,getFirstInvalidPasswordChar as se,getPasswordCharacterTypeCount as ce,getPasswordValidationErrorText as le,validatePasswordPair as ue}from"./utils/password-validator.mjs";import{uploadToS3WithPresignedUrl as de}from"./utils/s3-uploader.mjs";import{defineMaterial as fe,overwriteMaterial as pe}from"./utils/schema/material.mjs";import{INSPECTOR_META_KEY as me,defineArrayItemPropSchema as he,defineCheckboxPropSchema as ge,defineColorPropSchema as _e,defineComponentPropsSchema as ve,defineDatetimePropSchema as ye,defineNumberPropSchema as be,defineObjectPropSchema as xe,defineSelectEnumPropSchema as Se,defineSelectPropSchema as Ce,defineSwitchPropSchema as we,defineTextPropSchema as Te,defineTextareaPropSchema as Ee,defineTimeRangePropSchema as De,getSchemaDefaultProps as Oe,withInspectorMeta as ke}from"./utils/schema/schema.mjs";import{generateMaterialMap as Ae,generateMaterialMapGroupByCategory as je}from"./utils/schema/utils.mjs";import{base64ToUint8Array as Me,uint8ArrayToBase64 as Ne,uint8ArrayToNumberArray as Pe}from"./utils/uint8.mjs";import{encryptBncBuffer as Fe,uploadFile as Ie}from"./utils/upload-file.mjs";export{P as EventBus,I as HttpClient,L as HttpError,me as INSPECTOR_META_KEY,ie as PASSWORD_ALLOWED_SPECIAL_CHARS,ae as PASSWORD_MAX_LENGTH,oe as PASSWORD_MIN_LENGTH,Me as base64ToUint8Array,R as checkFollowStatus,t as clearMyChannelsFromStorage,e as cn,Q as components,q as compressImage,te as createInputAndSelectFile,a as debounceFun,k as decryptImageToArrayBuffer,A as decryptImageToUint8Array,j as decryptImageUrl,J as defaultImageCompressionMaxSizeMB,Y as defaultImageCompressionQuality,he as defineArrayItemPropSchema,ge as defineCheckboxPropSchema,_e as defineColorPropSchema,ve as defineComponentPropsSchema,ye as defineDatetimePropSchema,fe as defineMaterial,be as defineNumberPropSchema,xe as defineObjectPropSchema,Se as defineSelectEnumPropSchema,Ce as defineSelectPropSchema,we as defineSwitchPropSchema,Te as defineTextPropSchema,Ee as defineTextareaPropSchema,De as defineTimeRangePropSchema,U as disablePageScroll,W as enablePageScroll,Fe as encryptBncBuffer,z as followUser,o as formatVideoDuration,s as generateDynamicSign,Ae as generateMaterialMap,je as generateMaterialMapGroupByCategory,c as generateUUID,B as getAppId,l as getAtUserElement,u as getCookie,ne as getCoverImage,d as getCurrentSecondTime,V as getCurrentUserId,se as getFirstInvalidPasswordChar,X as getImageCompressionQuality,re as getImageResolutionFromFile,ce as getPasswordCharacterTypeCount,le as getPasswordValidationErrorText,O as getResUrl,Oe as getSchemaDefaultProps,f as getUserId,M as guessImageContentTypeFromUrl,p as hashPassword,F as httpClient,Z as imageCompressionQualityRules,m as isClient,N as isEncryptedImageUrl,h as isMobileDevice,$ as loadComponent,n as loadHiddenChannelIdsFromStorage,r as loadMyChannelsFromStorage,G as normalizeClassName,g as numToString,pe as overwriteMaterial,_ as parseResolution,v as parseTextAtUserIds,K as pxToVw,y as randomString,b as removeCookie,x as replaceAtUserElement,S as replaceAtUserElementHtmlStr,ee as rewriteComponent,i as saveHiddenChannelIdsToStorage,C as secondToTime,w as setCookie,T as stringToNumber,E as stripHtmlTags,Ne as uint8ArrayToBase64,Pe as uint8ArrayToNumberArray,H as unfollowUser,D as updateUrlParams,Ie as uploadFile,de as uploadToS3WithPresignedUrl,ue as validatePasswordPair,ke as withInspectorMeta};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funhub/platform",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.56",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
7
7
|
"**/*.css"
|
|
@@ -62,9 +62,12 @@
|
|
|
62
62
|
},
|
|
63
63
|
"./theme.css": "./theme.css"
|
|
64
64
|
},
|
|
65
|
+
"bin": "./bin/index.mjs",
|
|
65
66
|
"files": [
|
|
67
|
+
"bin",
|
|
66
68
|
"config",
|
|
67
69
|
"dist",
|
|
70
|
+
"templates",
|
|
68
71
|
"theme.css"
|
|
69
72
|
],
|
|
70
73
|
"scripts": {
|
|
@@ -89,7 +92,8 @@
|
|
|
89
92
|
"i18n:build": "node scripts/i18n-flat-sync.mjs build",
|
|
90
93
|
"i18n:watch": "node scripts/i18n-flat-sync.mjs watch",
|
|
91
94
|
"i18n:check": "node scripts/i18n-flat-sync.mjs check",
|
|
92
|
-
"pretest": "pnpm i18n:build"
|
|
95
|
+
"pretest": "pnpm i18n:build",
|
|
96
|
+
"init:local": "node ./bin/index.mjs"
|
|
93
97
|
},
|
|
94
98
|
"peerDependencies": {
|
|
95
99
|
"@tanstack/query-core": ">=5",
|
|
@@ -107,6 +111,7 @@
|
|
|
107
111
|
"@ncdai/react-wheel-picker": "^1.1.0",
|
|
108
112
|
"@next/bundle-analyzer": "^16.1.6",
|
|
109
113
|
"browser-image-compression": "^2.0.2",
|
|
114
|
+
"cac": "^6.7.14",
|
|
110
115
|
"class-variance-authority": "^0.7.1",
|
|
111
116
|
"clsx": "^2.1.1",
|
|
112
117
|
"crypto": "^1.0.1",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
基于 `@funhub/platform` 初始化的 Next.js Starter。
|
|
4
|
+
|
|
5
|
+
## 开始使用
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm install
|
|
9
|
+
pnpm dev
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## 可用命令
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
pnpm dev
|
|
16
|
+
pnpm build
|
|
17
|
+
pnpm start
|
|
18
|
+
pnpm lint
|
|
19
|
+
pnpm typecheck
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 目录说明
|
|
23
|
+
|
|
24
|
+
- `app/`: Next App Router 路由
|
|
25
|
+
- `i18n/`: next-intl 请求配置
|
|
26
|
+
- `proxy.ts`: 国际化路由中间件
|
|
27
|
+
|
|
28
|
+
## 依赖说明
|
|
29
|
+
|
|
30
|
+
- `@funhub/platform`: SDK 主包
|
|
31
|
+
- `@funhub/platform/config/tailwind`: Tailwind 预设与内容扫描配置
|
|
32
|
+
- `@funhub/platform/theme.css`: 平台主题变量
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { FunhubProvider, LocaleSync } from '@funhub/platform/components/common';
|
|
3
|
+
import { defaultLocale, getMessages, isValidLocale, locales } from '@funhub/platform/i18n';
|
|
4
|
+
import { setRequestLocale } from 'next-intl/server';
|
|
5
|
+
|
|
6
|
+
interface LocaleLayoutProps {
|
|
7
|
+
children: ReactNode
|
|
8
|
+
params: Promise<{ locale: string }>
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 预生成支持的语言参数。
|
|
13
|
+
*/
|
|
14
|
+
export function generateStaticParams() {
|
|
15
|
+
return locales.map(item => ({ locale: item.code }));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 语言布局负责注入平台 Provider 与国际化上下文。
|
|
20
|
+
*/
|
|
21
|
+
export default async function LocaleLayout({ children, params }: LocaleLayoutProps) {
|
|
22
|
+
const { locale } = await params;
|
|
23
|
+
const validLocale = isValidLocale(locale) ? locale : defaultLocale;
|
|
24
|
+
|
|
25
|
+
setRequestLocale(validLocale);
|
|
26
|
+
const messages = getMessages(validLocale);
|
|
27
|
+
|
|
28
|
+
return (
|
|
29
|
+
<>
|
|
30
|
+
<LocaleSync locale={validLocale} />
|
|
31
|
+
<FunhubProvider intl={{ locale: validLocale, messages }}>
|
|
32
|
+
{children}
|
|
33
|
+
</FunhubProvider>
|
|
34
|
+
</>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Button } from '@funhub/platform/components/biz';
|
|
2
|
+
import { DebugLocaleSwitcher } from '@funhub/platform/components/common';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Starter 首页,展示平台组件已接入成功。
|
|
6
|
+
*/
|
|
7
|
+
export default function HomePage() {
|
|
8
|
+
return (
|
|
9
|
+
<main className='min-h-screen bg-bg1 px-6 py-10 text-text1'>
|
|
10
|
+
<section className='mx-auto flex max-w-xl flex-col gap-4 rounded-3xl bg-bg2 p-6 shadow-sm'>
|
|
11
|
+
<span className='text-sm text-text3'>@funhub/platform starter</span>
|
|
12
|
+
<h1 className='text-2xl font-semibold'>{'{{PROJECT_NAME}}'}</h1>
|
|
13
|
+
<p className='text-sm leading-6 text-text2'>
|
|
14
|
+
这个项目已经接入平台主题、Tailwind 预设、next-intl 和 FunhubProvider,
|
|
15
|
+
你可以直接开始组合页面组件、业务组件或物料渲染能力。
|
|
16
|
+
</p>
|
|
17
|
+
<div className='flex flex-wrap gap-3 pt-2'>
|
|
18
|
+
<Button text='平台按钮已就绪' variant='red' disabled={false} />
|
|
19
|
+
<DebugLocaleSwitcher />
|
|
20
|
+
</div>
|
|
21
|
+
</section>
|
|
22
|
+
</main>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
html {
|
|
6
|
+
font-size: 16px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
font-family: var(--font-sans), Arial, Helvetica, sans-serif;
|
|
11
|
+
-webkit-text-size-adjust: 100%;
|
|
12
|
+
-moz-text-size-adjust: 100%;
|
|
13
|
+
-ms-text-size-adjust: 100%;
|
|
14
|
+
text-size-adjust: 100%;
|
|
15
|
+
background: var(--color-bg1);
|
|
16
|
+
color: var(--color-text1);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
* {
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
a {
|
|
24
|
+
color: inherit;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Metadata, Viewport } from 'next';
|
|
2
|
+
import { ThemeSync } from '@funhub/platform/components/common';
|
|
3
|
+
import { defaultLocale } from '@funhub/platform/i18n';
|
|
4
|
+
import '@funhub/platform/theme.css';
|
|
5
|
+
import './globals.css';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Starter 应用默认 viewport 配置。
|
|
9
|
+
*/
|
|
10
|
+
export const viewport: Viewport = {
|
|
11
|
+
width: 'device-width',
|
|
12
|
+
initialScale: 1,
|
|
13
|
+
viewportFit: 'cover',
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Starter 应用的站点元信息。
|
|
18
|
+
*/
|
|
19
|
+
export const metadata: Metadata = {
|
|
20
|
+
title: '{{PROJECT_NAME}}',
|
|
21
|
+
description: 'A starter app powered by @funhub/platform',
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 根布局负责挂载主题和全局样式。
|
|
26
|
+
*/
|
|
27
|
+
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
|
|
28
|
+
const theme = 'dark';
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<html lang={defaultLocale} className={theme} data-prefers-color-scheme={theme}>
|
|
32
|
+
<body suppressHydrationWarning>
|
|
33
|
+
<ThemeSync defaultTheme={theme} />
|
|
34
|
+
{children}
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|
|
37
|
+
);
|
|
38
|
+
}
|