@funhub/platform 0.1.21 → 0.1.23
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/biz.d.mts +17 -10
- package/dist/biz.mjs +1 -1
- package/dist/common.d.mts +3 -1
- package/dist/common.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/basics/search/variants/simple-search/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -1
- package/dist/components/biz/business/comment/reply-detail.mjs +1 -1
- package/dist/components/biz/business/detail/detail-follow-action.mjs +1 -1
- package/dist/components/biz/business/detail/detail-info-title.mjs +1 -1
- package/dist/components/biz/business/detail/detail-introduction.mjs +1 -1
- package/dist/components/biz/business/detail/detail-operate.mjs +1 -1
- package/dist/components/biz/business/detail/materials/registry.d.mts +39 -45
- package/dist/components/biz/business/detail/materials/registry.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-actions/client.d.mts +2 -9
- package/dist/components/biz/business/detail/materials/video-detail-actions/index.d.mts +3 -3
- package/dist/components/biz/business/detail/materials/video-detail-actions/material.d.mts +9 -3
- package/dist/components/biz/business/detail/materials/video-detail-actions/schema.d.mts +7 -1
- package/dist/components/biz/business/detail/materials/video-detail-actions/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/client.d.mts +2 -13
- package/dist/components/biz/business/detail/materials/video-detail-info/index.d.mts +3 -3
- package/dist/components/biz/business/detail/materials/video-detail-info/material.d.mts +13 -3
- package/dist/components/biz/business/detail/materials/video-detail-info/schema.d.mts +9 -1
- package/dist/components/biz/business/detail/materials/video-detail-info/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/client.d.mts +2 -7
- package/dist/components/biz/business/detail/materials/video-detail-info-title/index.d.mts +3 -3
- package/dist/components/biz/business/detail/materials/video-detail-info-title/material.d.mts +9 -3
- package/dist/components/biz/business/detail/materials/video-detail-info-title/schema.d.mts +6 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/client.d.mts +2 -11
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/index.d.mts +3 -3
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/material.d.mts +13 -3
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/schema.d.mts +8 -1
- package/dist/components/biz/business/detail/materials/video-detail-info-title-tags-episodes/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-player/client.d.mts +2 -11
- package/dist/components/biz/business/detail/materials/video-detail-player/index.d.mts +3 -3
- package/dist/components/biz/business/detail/materials/video-detail-player/material.d.mts +9 -3
- package/dist/components/biz/business/detail/materials/video-detail-player/schema.d.mts +8 -1
- package/dist/components/biz/business/detail/materials/video-detail-player/server.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.d.mts +2 -6
- package/dist/components/biz/business/detail/materials/video-detail-recommend/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/index.d.mts +3 -3
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.d.mts +36 -3
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.d.mts +5 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/server.d.mts +1 -1
- package/dist/components/biz/business/detail/post-recommend-list.mjs +1 -1
- package/dist/components/biz/business/floating-ball/client.d.mts +12 -0
- package/dist/components/biz/business/floating-ball/client.mjs +2 -0
- package/dist/components/biz/business/floating-ball/material.d.mts +10 -0
- package/dist/components/biz/business/floating-ball/material.mjs +2 -0
- package/dist/components/biz/business/floating-ball/schema.d.mts +14 -0
- package/dist/components/biz/business/floating-ball/schema.mjs +2 -0
- package/dist/components/biz/business/floating-ball/server.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/client.d.mts +12 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/index.d.mts +5 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/material.d.mts +10 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.d.mts +14 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/server.d.mts +3 -0
- package/dist/components/biz/business/header-search/header-avatar-icon/server.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +12 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/index.d.mts +5 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +10 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +14 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.d.mts +3 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search/server.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.d.mts +12 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/index.d.mts +5 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +10 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +14 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +2 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.d.mts +3 -0
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/server.mjs +2 -0
- package/dist/components/biz/business/header-search/header-logo-search/client.d.mts +12 -0
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +2 -0
- package/dist/components/biz/business/header-search/header-logo-search/index.d.mts +5 -0
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +10 -0
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +2 -0
- package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +14 -0
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +2 -0
- package/dist/components/biz/business/header-search/header-logo-search/server.d.mts +3 -0
- package/dist/components/biz/business/header-search/header-logo-search/server.mjs +2 -0
- package/dist/components/biz/business/header-search/header-search/client.d.mts +12 -0
- package/dist/components/biz/business/header-search/header-search/client.mjs +2 -0
- package/dist/components/biz/business/header-search/header-search/index.d.mts +5 -0
- package/dist/components/biz/business/header-search/header-search/material.d.mts +10 -0
- package/dist/components/biz/business/header-search/header-search/material.mjs +2 -0
- package/dist/components/biz/business/header-search/header-search/schema.d.mts +14 -0
- package/dist/components/biz/business/header-search/header-search/schema.mjs +2 -0
- package/dist/components/biz/business/header-search/header-search/server.d.mts +3 -0
- package/dist/components/biz/business/header-search/header-search/server.mjs +2 -0
- package/dist/components/biz/business/header-search/index.d.mts +11 -0
- package/dist/components/biz/business/home-recommend/index.d.mts +9 -0
- package/dist/components/biz/business/home-recommend/shared/home-recommend-base.mjs +2 -0
- package/dist/components/biz/business/home-recommend/types.d.mts +25 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/defaults/default-props.d.mts +10 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/defaults/default-props.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.d.mts +4 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/index.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/client.d.mts +13 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/runtime/client.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/component.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/data.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/event.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.d.mts +8 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/index.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/props.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-grid/schema/style.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/defaults/default-props.d.mts +10 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.d.mts +4 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/index.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/client.d.mts +13 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/runtime/client.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/component.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/data.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/event.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.d.mts +8 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/index.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/props.schema.mjs +2 -0
- package/dist/components/biz/business/home-recommend/variants/home-recommend-waterfall/schema/style.schema.mjs +2 -0
- package/dist/components/biz/business/index.d.mts +21 -14
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/client.d.mts +12 -0
- package/dist/components/biz/business/large-feature-grid/client.mjs +2 -0
- package/dist/components/biz/business/large-feature-grid/material.d.mts +10 -0
- package/dist/components/biz/business/large-feature-grid/material.mjs +2 -0
- package/dist/components/biz/business/large-feature-grid/schema.d.mts +14 -0
- package/dist/components/biz/business/large-feature-grid/schema.mjs +2 -0
- package/dist/components/biz/business/large-feature-grid/server.mjs +2 -0
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +9 -0
- package/dist/components/biz/business/profile/profile-header/material.mjs +2 -0
- package/dist/components/biz/business/profile/profile-main/material.d.mts +9 -0
- package/dist/components/biz/business/profile/profile-main/material.mjs +2 -0
- package/dist/components/biz/business/shortcut-grid/client.d.mts +12 -0
- package/dist/components/biz/business/shortcut-grid/client.mjs +2 -0
- package/dist/components/biz/business/shortcut-grid/material.d.mts +10 -0
- package/dist/components/biz/business/shortcut-grid/material.mjs +2 -0
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +14 -0
- package/dist/components/biz/business/shortcut-grid/schema.mjs +2 -0
- package/dist/components/biz/business/shortcut-grid/server.mjs +2 -0
- package/dist/components/biz/renderer/renderer.d.mts +2 -1
- package/dist/components/biz/utils/helpers/get-channel-list.d.mts +20 -0
- package/dist/components/biz/utils/helpers/get-channel-list.mjs +2 -0
- package/dist/components/biz/utils/index.d.mts +5 -4
- package/dist/components/biz/utils/schema/component.d.mts +1 -1
- package/dist/components/biz/utils/transformers/data.d.mts +3 -0
- package/dist/components/biz/utils/transformers/data.mjs +1 -1
- package/dist/components/common/blocked-dialog/blocked-dialog.d.mts +10 -0
- package/dist/components/common/blocked-dialog/blocked-dialog.mjs +2 -0
- package/dist/components/common/blocked-dialog/index.d.mts +2 -0
- package/dist/components/common/follow-button/index.mjs +1 -1
- package/dist/components/common/funhub-provider/funhub-provider.mjs +1 -1
- package/dist/components/common/icons/video.mjs +2 -0
- package/dist/components/common/list/video-list/video-list-item.d.mts +1 -1
- package/dist/components/common/list/video-list/video-list-item.mjs +1 -1
- package/dist/components/common/photo-grid/index.mjs +1 -1
- package/dist/components/common/top-nav-bar/client.mjs +1 -1
- package/dist/components/common/top-nav-bar/index.mjs +1 -1
- package/dist/components/pages/(follow)/_components/follow-button/index.mjs +1 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
- package/dist/components/pages/feedback/_components/feedback-form.mjs +1 -1
- package/dist/components/pages/home/index.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/collect-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/collect-tab/server.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/history-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/tabs/like-tab/client.mjs +1 -1
- package/dist/components/pages/profile/_components/user-profile-container/client.mjs +1 -1
- package/dist/components/pages/profile/_components/user-profile-header/client.mjs +1 -1
- package/dist/components/pages/profile/utils.mjs +1 -1
- package/dist/components/pages/search/search-result/search-all.mjs +1 -1
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/search/top-header.mjs +1 -1
- package/dist/components/pages/user-follow/_components/follow-top-header.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/pages/video-list/index.d.mts +16 -0
- package/dist/components/pages/video-list/index.mjs +2 -0
- package/dist/components/pages/video-list/types.mjs +2 -0
- package/dist/components/pages/video-list/video-list-client.mjs +2 -0
- package/dist/components/pages/video-list/video-list-item.mjs +2 -0
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +1 -1
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/hooks/use-content-operate.mjs +1 -1
- package/dist/i18n/locales/en.mjs +3 -1
- package/dist/i18n/locales/zh-CN.mjs +3 -1
- package/dist/materials.d.mts +24 -1
- package/dist/materials.mjs +1 -1
- package/dist/pages.d.mts +2 -1
- package/dist/pages.mjs +1 -1
- package/dist/service/generated/client.d.mts +28 -12
- package/dist/service/generated/client.mjs +1 -1
- package/dist/service/generated/tanstack.d.mts +34 -14
- package/dist/service/generated/tanstack.mjs +1 -1
- package/dist/service.d.mts +3 -3
- package/dist/service.mjs +1 -1
- package/dist/store/create-store.mjs +1 -1
- package/dist/store/modules/blocked-modal-store.d.mts +26 -0
- package/dist/store/modules/blocked-modal-store.mjs +2 -0
- package/dist/store/modules/user-store.d.mts +1 -1
- package/dist/store/modules/user-store.mjs +1 -1
- package/dist/store.d.mts +2 -1
- package/dist/store.mjs +1 -1
- package/dist/types.d.mts +1348 -129
- package/dist/utils/http.mjs +1 -1
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/material.d.mts +5 -0
- package/dist/utils/schema/utils.d.mts +1 -1
- package/dist/utils.d.mts +2 -2
- package/package.json +1 -1
|
@@ -36,28 +36,35 @@ import { defaultProps as defaultProps$9 } from "./fullscreen-feed/variants/fulls
|
|
|
36
36
|
import { FullscreenVideoFeedClient } from "./fullscreen-feed/variants/fullscreen-video-feed/runtime/client.mjs";
|
|
37
37
|
import { schema as schema$9 } from "./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";
|
|
38
38
|
import "./fullscreen-feed/index.mjs";
|
|
39
|
-
import { defaultProps as defaultProps$10 } from "./
|
|
39
|
+
import { defaultProps as defaultProps$10 } from "./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";
|
|
40
|
+
import { HomeRecommendGridClient } from "./home-recommend/variants/home-recommend-grid/runtime/client.mjs";
|
|
41
|
+
import { schema as schema$10 } from "./home-recommend/variants/home-recommend-grid/schema/index.mjs";
|
|
42
|
+
import { defaultProps as defaultProps$11 } from "./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";
|
|
43
|
+
import { HomeRecommendWaterfallClient } from "./home-recommend/variants/home-recommend-waterfall/runtime/client.mjs";
|
|
44
|
+
import { schema as schema$11 } from "./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";
|
|
45
|
+
import "./home-recommend/index.mjs";
|
|
46
|
+
import { defaultProps as defaultProps$12 } from "./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";
|
|
40
47
|
import { BasicNavBarClient } from "./nav-bar/variants/basic-nav-bar/runtime/client.mjs";
|
|
41
|
-
import { schema as schema$
|
|
48
|
+
import { schema as schema$12 } from "./nav-bar/variants/basic-nav-bar/schema/index.mjs";
|
|
42
49
|
import "./nav-bar/index.mjs";
|
|
43
|
-
import { defaultProps as defaultProps$
|
|
50
|
+
import { defaultProps as defaultProps$13 } from "./post-card/variants/basic-post-card/defaults/default-props.mjs";
|
|
44
51
|
import { BasicPostCardClient } from "./post-card/variants/basic-post-card/runtime/client.mjs";
|
|
45
|
-
import { schema as schema$
|
|
52
|
+
import { schema as schema$13 } from "./post-card/variants/basic-post-card/schema/index.mjs";
|
|
46
53
|
import "./post-card/index.mjs";
|
|
47
|
-
import { defaultProps as defaultProps$
|
|
54
|
+
import { defaultProps as defaultProps$14 } from "./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";
|
|
48
55
|
import { BasicRecommendedUsersClient } from "./recommended-users/variants/basic-recommended-users/runtime/client.mjs";
|
|
49
|
-
import { schema as schema$
|
|
56
|
+
import { schema as schema$14 } from "./recommended-users/variants/basic-recommended-users/schema/index.mjs";
|
|
50
57
|
import "./recommended-users/index.mjs";
|
|
51
|
-
import { defaultProps as defaultProps$
|
|
58
|
+
import { defaultProps as defaultProps$15 } from "./search-bar/variants/basic-search-bar/defaults/default-props.mjs";
|
|
52
59
|
import { BasicSearchBarClient } from "./search-bar/variants/basic-search-bar/runtime/client.mjs";
|
|
53
|
-
import { schema as schema$
|
|
54
|
-
import { defaultProps as defaultProps$
|
|
60
|
+
import { schema as schema$15 } from "./search-bar/variants/basic-search-bar/schema/index.mjs";
|
|
61
|
+
import { defaultProps as defaultProps$16 } from "./search-bar/variants/detail-search-bar/defaults/default-props.mjs";
|
|
55
62
|
import { DetailSearchBarClient } from "./search-bar/variants/detail-search-bar/runtime/client.mjs";
|
|
56
|
-
import { schema as schema$
|
|
57
|
-
import { defaultProps as defaultProps$
|
|
63
|
+
import { schema as schema$16 } from "./search-bar/variants/detail-search-bar/schema/index.mjs";
|
|
64
|
+
import { defaultProps as defaultProps$17 } from "./search-bar/variants/filter-search-bar/defaults/default-props.mjs";
|
|
58
65
|
import { FilterSearchBarClient } from "./search-bar/variants/filter-search-bar/runtime/client.mjs";
|
|
59
|
-
import { schema as schema$
|
|
60
|
-
import { defaultProps as defaultProps$
|
|
66
|
+
import { schema as schema$17 } from "./search-bar/variants/filter-search-bar/schema/index.mjs";
|
|
67
|
+
import { defaultProps as defaultProps$18 } from "./search-bar/variants/tag-search-bar/defaults/default-props.mjs";
|
|
61
68
|
import { TagSearchBarClient } from "./search-bar/variants/tag-search-bar/runtime/client.mjs";
|
|
62
|
-
import { schema as schema$
|
|
69
|
+
import { schema as schema$18 } from "./search-bar/variants/tag-search-bar/schema/index.mjs";
|
|
63
70
|
import "./search-bar/index.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{defaultProps as t}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as n}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as r,basicBannerInspectorPropsSchema as i}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as a}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as o}from"./banner/variants/basic-banner/material.mjs";import s from"./banner/variants/basic-banner/index.mjs";import{defaultProps as c}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as l}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import u from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as d}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as f}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import p from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as m}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as h}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import g from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as v}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import y from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as b}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as x}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import S from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as C}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as w}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import T from"./feature-grid/variants/basic-feature-grid/index.mjs";import{defaultProps as E}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as D}from"../basics/fullscreen-feed/schema/index.mjs";import O from"../basics/fullscreen-feed/index.mjs";import{defaultProps as k}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as A}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import j from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as M}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as N}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import P from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as F}from"./
|
|
2
|
+
import{__exportAll as e}from"../../../_virtual/_rolldown/runtime.mjs";import{defaultProps as t}from"./banner/variants/basic-banner/defaults/default-props.mjs";import{schema as n}from"./banner/variants/basic-banner/schema/index.mjs";import{basicBannerInspectorDefaultProps as r,basicBannerInspectorPropsSchema as i}from"./banner/variants/basic-banner/inspector-schema.mjs";import{BasicBanner as a}from"./banner/variants/basic-banner/server.mjs";import{basicBannerMaterial as o}from"./banner/variants/basic-banner/material.mjs";import s from"./banner/variants/basic-banner/index.mjs";import{defaultProps as c}from"./card-grid/variants/card-grid-2x3/defaults/default-props.mjs";import{schema as l}from"./card-grid/variants/card-grid-2x3/schema/index.mjs";import u from"./card-grid/variants/card-grid-2x3/index.mjs";import{defaultProps as d}from"./card-grid/variants/card-grid-2x3-infinite/defaults/default-props.mjs";import{schema as f}from"./card-grid/variants/card-grid-2x3-infinite/schema/index.mjs";import p from"./card-grid/variants/card-grid-2x3-infinite/index.mjs";import{defaultProps as m}from"./card-grid/variants/card-grid-2x4/defaults/default-props.mjs";import{schema as h}from"./card-grid/variants/card-grid-2x4/schema/index.mjs";import g from"./card-grid/variants/card-grid-2x4/index.mjs";import{defaultProps as _}from"./card-grid/variants/card-grid-3x3/defaults/default-props.mjs";import{schema as v}from"./card-grid/variants/card-grid-3x3/schema/index.mjs";import y from"./card-grid/variants/card-grid-3x3/index.mjs";import{defaultProps as b}from"./card-grid/variants/card-grid-3x3-infinite/defaults/default-props.mjs";import{schema as x}from"./card-grid/variants/card-grid-3x3-infinite/schema/index.mjs";import S from"./card-grid/variants/card-grid-3x3-infinite/index.mjs";import{defaultProps as C}from"./feature-grid/variants/basic-feature-grid/defaults/default-props.mjs";import{schema as w}from"./feature-grid/variants/basic-feature-grid/schema/index.mjs";import T from"./feature-grid/variants/basic-feature-grid/index.mjs";import{defaultProps as E}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as D}from"../basics/fullscreen-feed/schema/index.mjs";import O from"../basics/fullscreen-feed/index.mjs";import{defaultProps as k}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as A}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import j from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as M}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as N}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import P from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as F}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as I}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as L}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import R from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as z}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import B from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as V}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as H}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import U from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{defaultProps as W}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as G}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import K from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as q}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as J}from"./post-card/variants/basic-post-card/schema/index.mjs";import Y from"./post-card/variants/basic-post-card/index.mjs";import{defaultProps as X}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as Z}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import Q from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as $}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as ee}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import te from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as ne}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as re}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import ie from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as ae}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as oe}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import se from"./search-bar/variants/tag-search-bar/index.mjs";var ce=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>O,BasicFullscreenFeedDefaultData:()=>E,BasicFullscreenFeedSchema:()=>D,BasicNavBar:()=>K,BasicNavBarDefaultData:()=>W,BasicNavBarSchema:()=>G,BasicPostCard:()=>Y,BasicPostCardDefaultData:()=>q,BasicPostCardSchema:()=>J,BasicRecommendedUsers:()=>Q,BasicRecommendedUsersDefaultData:()=>X,BasicRecommendedUsersSchema:()=>Z,BasicSearchBar:()=>te,BasicSearchBarDefaultData:()=>$,BasicSearchBarSchema:()=>ee,CardGrid2x3:()=>u,CardGrid2x3DefaultData:()=>c,CardGrid2x3Infinite:()=>p,CardGrid2x3InfiniteDefaultData:()=>d,CardGrid2x3InfiniteSchema:()=>f,CardGrid2x3Schema:()=>l,CardGrid2x4:()=>g,CardGrid2x4DefaultData:()=>m,CardGrid2x4Schema:()=>h,CardGrid3x3:()=>y,CardGrid3x3DefaultData:()=>_,CardGrid3x3Infinite:()=>S,CardGrid3x3InfiniteDefaultData:()=>b,CardGrid3x3InfiniteSchema:()=>x,CardGrid3x3Schema:()=>v,DetailSearchBar:()=>R,DetailSearchBarDefaultData:()=>I,DetailSearchBarSchema:()=>L,FilterSearchBar:()=>ie,FilterSearchBarDefaultData:()=>ne,FilterSearchBarSchema:()=>re,FullscreenFeedClient:()=>j,FullscreenPostFeedDefaultData:()=>k,FullscreenPostFeedSchema:()=>A,FullscreenVideoClient:()=>P,FullscreenVideoFeedDefaultData:()=>M,FullscreenVideoFeedSchema:()=>N,HomeRecommendGrid:()=>B,HomeRecommendGridDefaultData:()=>F,HomeRecommendGridSchema:()=>z,HomeRecommendWaterfall:()=>U,HomeRecommendWaterfallDefaultData:()=>V,HomeRecommendWaterfallSchema:()=>H,TagSearchBar:()=>se,TagSearchBarDefaultData:()=>ae,TagSearchBarSchema:()=>oe,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o});export{ce as business_exports};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import { LargeFeatureGridInspectorProps } from "./schema.mjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region components/biz/business/large-feature-grid/client.d.ts
|
|
6
|
+
type LargeFeatureGridClientProps = LargeFeatureGridInspectorProps;
|
|
7
|
+
/**
|
|
8
|
+
* 大图推荐客户端组件,仅做占位展示,无交互逻辑。
|
|
9
|
+
*/
|
|
10
|
+
declare function LargeFeatureGridClient(_props: LargeFeatureGridClientProps): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { LargeFeatureGridClient };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{jsx as r,jsxs as i}from"react/jsx-runtime";const a=Array.from({length:4},(e,t)=>({id:t+1,title:`大图推荐 ${t+1}`}));function o(o){return i(t,{as:`section`,className:e(`flex flex-col gap-3 p-4`),"aria-label":`大图推荐`,children:[r(n,{as:`h3`,className:`text-sm font-semibold text-foreground`,children:`大图推荐`}),r(t,{className:`grid grid-cols-2 gap-3`,children:a.map(a=>i(t,{className:e(`flex flex-col overflow-hidden rounded-lg`,`bg-muted/40`),children:[r(t,{className:e(`h-44 w-full`,`bg-gradient-to-br from-muted to-background`),"aria-hidden":!0}),r(n,{as:`span`,className:`px-3 py-2 text-xs text-muted-foreground`,children:a.title})]},a.id))})]})}export{o as LargeFeatureGridClient};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
3
|
+
import { LargeFeatureGridClient } from "./client.mjs";
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
|
+
|
|
7
|
+
//#region components/biz/business/large-feature-grid/material.d.ts
|
|
8
|
+
declare const largeFeatureGridMaterial: DefineMaterialOption<typeof LargeFeatureGridClient, zod.ZodObject<{}, zod_v4_core0.$strip>, "large-feature-grid">;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { largeFeatureGridMaterial };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{LargeFeatureGridClient as t}from"./client.mjs";import{largeFeatureGridInspectorPropsSchema as n}from"./schema.mjs";import{LargeFeatureGrid as r}from"./server.mjs";const i=e({type:`large-feature-grid`,name:`大图推荐`,icon:`/static/components-thumb/grid_large_feature.png`,category:`大图宫格`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as largeFeatureGridMaterial};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
|
+
|
|
7
|
+
//#region components/biz/business/large-feature-grid/schema.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* 大图推荐物料暂不对外开放配置,仅用于占位展示。
|
|
10
|
+
*/
|
|
11
|
+
declare const largeFeatureGridInspectorPropsSchema: zod.ZodObject<{}, zod_v4_core0.$strip>;
|
|
12
|
+
type LargeFeatureGridInspectorProps = InferSchemaProps<typeof largeFeatureGridInspectorPropsSchema>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { LargeFeatureGridInspectorProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import r from"../../../../../../ui/link.mjs";import{useSticky as i}from"../../../../../../../hooks/use-sticky.mjs";import{
|
|
2
|
+
"use client";import{mergeStyles as e}from"../../../../../utils/styles/helpers.mjs";import{pxToVw as t}from"../../../../../../../utils/helper.mjs";import{Box as n}from"../../../../../../ui/box.mjs";import r from"../../../../../../ui/link.mjs";import{useSticky as i}from"../../../../../../../hooks/use-sticky.mjs";import a,{loadHiddenChannelIdsFromStorage as o}from"./channel-filter-dialog.mjs";import{urlPrefix as s}from"../../../../../../../constants/url-prefix.mjs";import c from"../../../../../../../assets/icons/search.mjs";import{defaultProps as l}from"../defaults/default-props.mjs";import u from"../../../../../../../assets/icons/filter_dark.mjs";import{clsx as d}from"clsx";import{useEffect as f,useMemo as p,useState as m}from"react";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";const v={},y={list:[],currentChannelId:null,isFullfeed:!1};function b(e,t){return t===0?`/`:`${s.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function x({props:s=v,styles:x,events:S,data:C=y}){let{searchUrl:w,searchIconSize:T,filterIconSize:E,channelItemHeight:D,channelItemFontSize:O,channelItemActiveFontSize:k,channelItemGap:A}={...l,...s},[j,M]=m(!1),{isSticky:N,ref:P}=i(),[F,I]=m(C.list),L=p(()=>C.currentChannelId??null,[C.currentChannelId]);f(()=>{let e=o();I(C.list.filter(t=>!e.includes(t.id)))},[C.list]);let R=e=>{I(e)},z=(e,t)=>{S?.onChannelChange?.(e,t)},B=()=>{M(!0),S?.onFilterClick?.()},V=()=>{S?.onSearchClick?.()},H=x?e(x,{}):void 0,U=N?E+T+24:E+16;return _(h,{children:[N&&g(n,{className:`w-full`,style:{height:t(44)}}),g(n,{as:`nav`,ref:P,className:d(`w-full transition-all duration-200`,!C.isFullfeed&&N&&`fixed top-0 left-0 right-0 z-50`,C.isFullfeed&&`fixed top-[54px] left-0 z-10 w-full`,!C.isFullfeed&&`bg-bg1`),style:H,children:_(n,{className:`relative flex items-center h-[44px]`,children:[g(n,{className:`flex-1 overflow-x-auto overflow-y-hidden [&::-webkit-scrollbar]:hidden`,style:{scrollbarWidth:`none`,msOverflowStyle:`none`,WebkitOverflowScrolling:`touch`},children:g(n,{className:`flex items-center h-full`,style:{paddingLeft:t(16),paddingRight:t(U+16),gap:t(A)},children:F.map((e,n)=>{let i=L===e.id||L===null&&n===0;return g(r,{href:b(e,n),className:d(`whitespace-nowrap cursor-pointer transition-all duration-200`,`flex items-center justify-center`),style:{height:t(D),fontSize:t(i?k:O),fontWeight:i?`bold`:`normal`,color:i?`var(--color-theme5)`:`var(--color-text2)`},onClick:()=>z(e,n),children:e.cn_name},e.id||`channel-${n}`)})})}),_(n,{className:`flex items-center gap-[12px] px-[8px]`,children:[g(n,{className:`flex items-center justify-center cursor-pointer`,style:{width:t(E+8),height:t(E+8)},onClick:B,children:g(u,{width:t(E),height:t(E),style:{color:`var(--color-text1)`}})}),N&&g(r,{href:w,onClick:V,children:g(n,{className:`flex items-center justify-center cursor-pointer`,style:{width:t(T+8),height:t(T+8)},children:g(c,{width:t(T),height:t(T),style:{color:`var(--color-text1)`}})})})]})]})}),g(a,{open:j,onOpenChange:M,channels:C.list,currentChannelId:L,onChannelClick:z,onChannelsChange:R})]})}export{x as default};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
3
|
+
import * as zod from "zod";
|
|
4
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
|
|
6
|
+
//#region components/biz/business/profile/profile-header/material.d.ts
|
|
7
|
+
declare const profileHeaderMaterial: DefineMaterialOption<() => string, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-header">;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { profileHeaderMaterial };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{defineComponentPropsSchema as t}from"../../../../../utils/schema/schema.mjs";const n=e({type:`profile-header`,category:`内容组件`,name:`用户信息模块`,icon:``,serverComponent:()=>`profile header component server todo`,clientComponent:()=>`profile header component client todo`,propsSchema:t({})});export{n as profileHeaderMaterial};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
3
|
+
import * as zod from "zod";
|
|
4
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
|
|
6
|
+
//#region components/biz/business/profile/profile-main/material.d.ts
|
|
7
|
+
declare const profileMainMaterial: DefineMaterialOption<() => string, zod.ZodObject<{}, zod_v4_core0.$strip>, "profile-main">;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { profileMainMaterial };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{defineComponentPropsSchema as t}from"../../../../../utils/schema/schema.mjs";const n=e({type:`profile-main`,category:`内容组件`,name:`用户行为模块`,icon:``,serverComponent:()=>`profile main component server todo`,clientComponent:()=>`profile main component client todo`,propsSchema:t({})});export{n as profileMainMaterial};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
import { ShortcutGridInspectorProps } from "./schema.mjs";
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
|
|
5
|
+
//#region components/biz/business/shortcut-grid/client.d.ts
|
|
6
|
+
type ShortcutGridClientProps = ShortcutGridInspectorProps;
|
|
7
|
+
/**
|
|
8
|
+
* 金刚区客户端组件,仅做占位展示,无交互逻辑。
|
|
9
|
+
*/
|
|
10
|
+
declare function ShortcutGridClient(_props: ShortcutGridClientProps): react_jsx_runtime0.JSX.Element;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { ShortcutGridClient };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import{jsx as r,jsxs as i}from"react/jsx-runtime";function a(a){return r(t,{as:`section`,className:e(`grid grid-cols-5 gap-3 p-4`,`rounded-lg bg-muted/50`),"aria-label":`金刚区`,children:Array.from({length:5},(a,o)=>i(t,{as:`div`,className:e(`flex flex-col items-center justify-center gap-1`,`rounded-md bg-background py-3`),children:[r(t,{as:`div`,className:`h-10 w-10 rounded-full bg-muted`,"aria-hidden":!0}),i(n,{as:`span`,className:`text-xs text-muted-foreground`,children:[`入口`,o+1]})]},o))})}export{a as ShortcutGridClient};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
3
|
+
import { ShortcutGridClient } from "./client.mjs";
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
|
+
|
|
7
|
+
//#region components/biz/business/shortcut-grid/material.d.ts
|
|
8
|
+
declare const shortcutGridMaterial: DefineMaterialOption<typeof ShortcutGridClient, zod.ZodObject<{}, zod_v4_core0.$strip>, "shortcut-grid">;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { shortcutGridMaterial };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{defineMaterial as e}from"../../../../utils/schema/material.mjs";import{ShortcutGridClient as t}from"./client.mjs";import{shortcutGridInspectorPropsSchema as n}from"./schema.mjs";import{ShortcutGrid as r}from"./server.mjs";const i=e({type:`shortcut-grid`,name:`金刚区`,icon:`/static/components-thumb/shortcut_grid_5.png`,category:`金刚组件`,serverComponent:r,clientComponent:t,propsSchema:n});export{i as shortcutGridMaterial};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import * as zod from "zod";
|
|
5
|
+
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
|
+
|
|
7
|
+
//#region components/biz/business/shortcut-grid/schema.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* 金刚区物料暂不对外开放配置,仅做占位展示。
|
|
10
|
+
*/
|
|
11
|
+
declare const shortcutGridInspectorPropsSchema: zod.ZodObject<{}, zod_v4_core0.$strip>;
|
|
12
|
+
type ShortcutGridInspectorProps = InferSchemaProps<typeof shortcutGridInspectorPropsSchema>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ShortcutGridInspectorProps };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { DefineMaterialOption } from "../../../utils/schema/material.mjs";
|
|
2
3
|
import { ComponentType, ReactNode } from "react";
|
|
3
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
5
|
import z from "zod";
|
|
@@ -8,7 +9,7 @@ type NodeInspectorProps = Record<string, unknown>;
|
|
|
8
9
|
type NodeId = string;
|
|
9
10
|
type MaterialType = string;
|
|
10
11
|
type MaterialPropsSchema = z.ZodObject<z.ZodRawShape>;
|
|
11
|
-
type MaterialCategory =
|
|
12
|
+
type MaterialCategory = DefineMaterialOption<ComponentType<any>, MaterialPropsSchema>['category'];
|
|
12
13
|
type RendererMode = 'server' | 'client';
|
|
13
14
|
interface RendererMaterial<TSchema extends MaterialPropsSchema = MaterialPropsSchema> {
|
|
14
15
|
type: MaterialType;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
import { ChannelDataItem } from "../types/channel.mjs";
|
|
3
|
+
|
|
4
|
+
//#region components/biz/utils/helpers/get-channel-list.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* 频道接口 data 字段的兼容结构。
|
|
7
|
+
* 新接口使用 channels,旧接口仍可能返回 list。
|
|
8
|
+
*/
|
|
9
|
+
interface ChannelDataPayload {
|
|
10
|
+
channels?: unknown;
|
|
11
|
+
list?: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 从频道接口响应中提取频道列表(兼容 channels / list)。
|
|
15
|
+
* @param data - 接口 data 字段
|
|
16
|
+
* @returns 频道列表
|
|
17
|
+
*/
|
|
18
|
+
declare function getChannelList(data?: ChannelDataPayload | null): ChannelDataItem[];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { getChannelList };
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
import { CARD_SPEC_MAP, CardSpec, getCardSpecConfig } from "./constants/card-spec.mjs";
|
|
3
|
+
import { ChannelDataItem } from "./types/channel.mjs";
|
|
4
|
+
import { CommonStyleSchema, StylePropDefinition, StyleSchema } from "./schema/style.mjs";
|
|
5
|
+
import { BaseComponentProps } from "./types/component.mjs";
|
|
6
|
+
import { getChannelList } from "./helpers/get-channel-list.mjs";
|
|
3
7
|
import { buildContentUrl } from "./helpers/url.mjs";
|
|
4
8
|
import { FieldSchema, FieldType } from "./schema/field.mjs";
|
|
5
9
|
import { DataBinding, DataBindingField, DataBindingSourceType, DataBindingUIMode, DataSchema, DataSlot, DataSourceType } from "./schema/data.mjs";
|
|
6
10
|
import { PropDefinition, PropSchema } from "./schema/prop.mjs";
|
|
7
11
|
import { EventDefinition, EventSchema } from "./schema/event.mjs";
|
|
8
|
-
import { CommonStyleSchema, StylePropDefinition, StyleSchema } from "./schema/style.mjs";
|
|
9
12
|
import { ComponentMaterial, ComponentSchema, MaterialRegistry } from "./schema/component.mjs";
|
|
10
13
|
import { commonStylesToInline, customStylesToInline, mergeStyles } from "./styles/helpers.mjs";
|
|
11
14
|
import { commonStyleSchema } from "./styles/schema.mjs";
|
|
12
15
|
import { CardCornerMode, RawContentData, transformContentListToCardItems, transformContentToCardItem } from "./transformers/card-grid.mjs";
|
|
13
16
|
import { ComponentType, ContentBlockItem, ExtractedDataItem, extractDataByComponentType } from "./transformers/data.mjs";
|
|
14
|
-
import "./transformers/index.mjs";
|
|
15
|
-
import { ChannelDataItem } from "./types/channel.mjs";
|
|
16
|
-
import { BaseComponentProps } from "./types/component.mjs";
|
|
17
|
+
import "./transformers/index.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
+
import { StyleSchema } from "./style.mjs";
|
|
2
3
|
import { DataSchema } from "./data.mjs";
|
|
3
4
|
import { PropSchema } from "./prop.mjs";
|
|
4
5
|
import { EventSchema } from "./event.mjs";
|
|
5
|
-
import { StyleSchema } from "./style.mjs";
|
|
6
6
|
|
|
7
7
|
//#region components/biz/utils/schema/component.d.ts
|
|
8
8
|
/**
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{business_exports as e}from"../../business/index.mjs";let t=function(e){return e[e.Banner=1]=`Banner`,e[e.CardGrid=2]=`CardGrid`,e[e.FeatureGrid=3]=`FeatureGrid`,e[e.RecommendedUsers=4]=`RecommendedUsers`,e}({});const n={[t.Banner]:{schemaName:`BasicBannerSchema`,componentName:`BasicBanner`},[t.FeatureGrid]:{schemaName:`BasicFeatureGridSchema`,componentName:`BasicFeatureGrid`},[t.RecommendedUsers]:{schemaName:`BasicRecommendedUsersSchema`,componentName:`BasicRecommendedUsers`}},r={1:{schemaName:`
|
|
2
|
+
import{business_exports as e}from"../../business/index.mjs";let t=function(e){return e[e.Banner=1]=`Banner`,e[e.CardGrid=2]=`CardGrid`,e[e.FeatureGrid=3]=`FeatureGrid`,e[e.RecommendedUsers=4]=`RecommendedUsers`,e}({});const n={[t.Banner]:{schemaName:`BasicBannerSchema`,componentName:`BasicBanner`},[t.FeatureGrid]:{schemaName:`BasicFeatureGridSchema`,componentName:`BasicFeatureGrid`},[t.RecommendedUsers]:{schemaName:`BasicRecommendedUsersSchema`,componentName:`BasicRecommendedUsers`}},r={1:{schemaName:`HomeRecommendGridSchema`,componentName:`HomeRecommendGrid`},2:{schemaName:`HomeRecommendWaterfallSchema`,componentName:`HomeRecommendWaterfall`},3:{schemaName:`HomeRecommendGridSchema`,componentName:`HomeRecommendGrid`},4:{schemaName:`HomeRecommendGridSchema`,componentName:`HomeRecommendGrid`},5:{schemaName:`HomeRecommendWaterfallSchema`,componentName:`HomeRecommendWaterfall`},6:{schemaName:`FullscreenVideoFeedSchema`,componentName:`FullscreenVideoClient`}},i={schemaName:`HomeRecommendGridSchema`,componentName:`HomeRecommendGrid`},a={6:{schemaName:`FullscreenPostFeedSchema`,componentName:`FullscreenFeedClient`}},o={schemaName:`BasicPostCardSchema`,componentName:`BasicPostCard`};function s(){let t={};for(let n of Object.keys(e)){if(!n.endsWith(`Schema`))continue;let r=e[n];r&&typeof r==`object`&&`dataSchema`in r&&(t[n]=r)}return t}function c(){let t={};for(let n of Object.keys(e)){if(n.endsWith(`Schema`)||n.endsWith(`DefaultData`))continue;let r=e[n];typeof r==`function`&&(t[n]=r)}return t}const l=s(),u=c();function d(e,s){return e.type===t.CardGrid?s?r[e.show_style]??i:a[e.show_style]??o:n[e.type]}function f(e,t){let n=d(e,t),r=l[n.schemaName];if(!r)return console.warn(`[extractDataByComponentType] 未找到 Schema: ${n.schemaName}`),null;let i=u[n.componentName];if(!i)return console.warn(`[extractDataByComponentType] 未找到组件: ${n.componentName}`),null;let a=r.dataSchema?.dataBinding?.field;if(!a)return console.warn(`[extractDataByComponentType] Schema ${n.schemaName} 缺少 dataBinding.field`),null;let o=e.data?.[a],s=Array.isArray(o)?o:[],c={component:i,data:{title:e.cn_name,list:s,icons:e.data?.icons??[],block_id:String(e.id??``),channel_id:String(e.channel_id??``),show_style:e.show_style}};return e.data?.cursor&&(c.data.cursor=String(e.data?.cursor??``)),e.show_style===6&&(c.data.bottom=56,c.data.top=42),c}function p(e,t){return!Array.isArray(e)||e.length===0?[]:e.map(e=>f(e,t)).filter(e=>e!==null)}export{t as ComponentType,p as extractDataByComponentType};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{AlertDialog as e,AlertDialogAction as t,AlertDialogContent as n,AlertDialogDescription as r,AlertDialogFooter as i,AlertDialogHeader as a,AlertDialogTitle as o}from"../../ui/alert-dialog.mjs";import{secondToTime as s}from"../../../utils/common.mjs";import{useBlockedModalStore as c}from"../../../store/modules/blocked-modal-store.mjs";import{useLoginModalStore as l}from"../../../store/modules/login-modal-store.mjs";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useTranslations as f}from"next-intl";import{useRouter as p}from"next/navigation";function m(){let m=p(),h=f(`components.common.blockedDialog`),{isOpen:g,blockedRemark:_,blockedEndTime:v,close:y,setOpen:b}=c(),x=v>0?s(v):h(`unblockTimePermanent`),S=_||h(`remarkDefault`);return u(e,{open:g,onOpenChange:e=>{b(e)},children:d(n,{size:`sm`,children:[d(a,{children:[u(o,{className:`text-[16px]`,children:h(`title`)}),u(r,{className:`text-center text-[14px] leading-6 whitespace-pre-line`,children:h(`description`,{remark:S,unblockTime:x})})]}),d(i,{children:[u(t,{onClick:()=>{l.getState().isOpen&&l.getState().setOpen(!1),y(),m.push(`/feedback`)},children:h(`contactSupport`)}),u(t,{onClick:y,children:h(`gotIt`)})]})]})})}export{m as BlockedDialog};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{useFollowIdsState as e}from"../../../store/modules/follow-ids-store.mjs";import{useUserStore as t}from"../../../store/modules/user-store.mjs";import{pInteractionFollow as n,pInteractionUnfollow as r}from"../../../service/generated/client.mjs";import{useOpenLoginAsync as i}from"../../../hooks/use-auth.mjs";import a from"../../../assets/icons/common/follow_sel.mjs";import o from"../../../assets/icons/common/follow_user.mjs";import{UnfollowConfirmDialog as s}from"./unfollow-confirm-dialog.mjs";import{useCallback as c,useEffect as l,useMemo as u,useState as d}from"react";import{Fragment as f,jsx as p,jsxs as m}from"react/jsx-runtime";import{toast as h}from"sonner";import{useTranslations as g}from"next-intl";function _({userId:_,hasFollow:v=!1,onChange:y}){let b=g(`components.common.followButton`),[x,S]=d(v),[C,w]=d(!1),{isLogin:T,userInfo:E,userId:D}=t(),{followIds:O}=e(),k=D||E?.userId||``,A=i(),j=u(()=>E?.userId===_,[E,_]),M=u(()=>v||O.includes(_),[_,O,v]);l(()=>{S(M)},[M]);let N=c(async()=>{if(!_)return;if(!k){h.error(b(`loginRequired`));return}try{if(x){let e=await r({follower_id:k,followee_id:_});if(e.code!==0){h.error(e.message||b(`unfollowFailed`));return}}else{let e=await n({follower_id:k,followee_id:_});if(e.code!==0){h.error(e.message||b(`followFailed`));return}}window.sensors?.track(`detail_follow_click`,{object_id:``,action:x?`取消关注`:`关注`,author_id:_})}catch(e){console.error(`关注或取消关注失败:`,e),h.error(b(x?`unfollowFailed`:`followFailed`));return}let{followIds:t,setFollowIds:i}=e.getState(),a=new Set(t);x?a.delete(_):a.add(_),i(Array.from(a)),S(!x),y?.(!x)},[k,x,y,b,_]);function P(){w(!1),N()}function F(){w(!1)}let I=c(()=>{if(!T){A().then(e=>{e||h.error(b(`loginFailed`))});return}if(x){w(!0);return}N()},[N,x,T,A,b]);return j?null:m(f,{children:[p(`div`,{className:` h-[28px] rounded-[14px] px-[8px] border-[1px] border-solid cursor-pointer flex items-center justify-center ${x?`border-text3`:`border-theme5`}`,onClick:I,children:x?m(f,{children:[p(a,{className:`w-[12px] h-[12px] text-text3 shrink-0`}),p(`span`,{className:`text-text3 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:b(`following`)})]}):m(f,{children:[p(o,{className:`block w-[12px] h-[12px] text-theme5 shrink-0`}),p(`span`,{className:`block text-theme5 text-[12px] leading-[18px] ml-[4px] shrink-0`,children:b(`follow`)})]})}),p(s,{open:C,onOpenChange:w,onCancel:F,onConfirm:P})]})}export{_ as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{useUserStore as e}from"../../../store/modules/user-store.mjs";import{gUserGetUserInfo as t}from"../../../service/generated/client.mjs";import{Toaster as n}from"../../ui/sonner.mjs";import{useRequest as r}from"../../../hooks/query/use-query.mjs";import{MediaPreview as i}from"../media-preview/index.mjs";import{CollectionPopupHost as a}from"../collection-popup/index.mjs";import{
|
|
2
|
+
"use client";import{useUserStore as e}from"../../../store/modules/user-store.mjs";import{gUserGetUserInfo as t}from"../../../service/generated/client.mjs";import{Toaster as n}from"../../ui/sonner.mjs";import{useRequest as r}from"../../../hooks/query/use-query.mjs";import{MediaPreview as i}from"../media-preview/index.mjs";import{CollectionPopupHost as a}from"../collection-popup/index.mjs";import{BlockedDialog as o}from"../blocked-dialog/blocked-dialog.mjs";import{LoginDialog as s}from"../login-dialog/login-dialog.mjs";import{useEffect as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{QueryClient as p,QueryClientProvider as m}from"@tanstack/react-query";import{useRouter as h}from"next/navigation";import{NuqsAdapter as g}from"nuqs/adapters/next/app";function _(){let{userId:n,setUserInfo:i}=e(),a={code:0,message:``,data:{}},{data:o}=r([`user-init`,n],()=>n?t({user_id:n}):Promise.resolve(a),{enabled:!!n});return c(()=>{if(!n)return;let e=o?.data;e&&i(e)},[i,n,o]),null}function v(t){let{queryClient:r,children:v}=t,[y]=u(()=>new p),b=r??y,x=h(),S=e(e=>e.isLogin&&!!e.token&&!!e.userId),C=l(S);return c(()=>{C.current&&!S&&(b.clear(),x.refresh()),C.current=S},[S,b,x]),d(m,{client:b,children:f(g,{children:[d(_,{}),v,d(o,{}),d(s,{}),d(a,{}),d(n,{position:`top-center`}),d(i,{})]})})}export{v as FunhubProvider};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";function t(t){let{className:n,...r}=t;return e(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,className:n,...r,children:e(`path`,{d:`M7.59003 6.5457L5.04303 7.9287C4.92303 7.9947 4.79103 8.0307 4.66803 8.0307C4.29903 8.0307 4.03203 7.7487 4.03203 7.3587V4.6437C4.03203 4.2537 4.29903 3.97169 4.66803 3.97169C4.79403 3.97169 4.92303 4.0077 5.04303 4.0707L7.60203 5.4537C7.83303 5.5797 7.96803 5.7777 7.96803 5.9937C7.96803 6.2127 7.83003 6.4167 7.59003 6.5457ZM9.83703 10.6377L2.16303 9.8907C0.984029 9.8907 0.0300293 8.9367 0.0300293 7.7577V4.1607C0.0300293 2.9817 0.984029 2.0277 2.16303 2.0277L9.84003 1.3617C11.019 1.3617 11.973 2.31569 11.973 3.4947V8.5047C11.9722 9.07068 11.7468 9.61321 11.3463 10.0131C10.9459 10.4131 10.403 10.6377 9.83703 10.6377ZM10.905 3.4947C10.905 3.35484 10.8775 3.21635 10.824 3.08714C10.7704 2.95793 10.692 2.84052 10.5931 2.74163C10.4942 2.64273 10.3768 2.56429 10.2476 2.51076C10.1184 2.45724 9.97989 2.4297 9.84003 2.4297L2.16303 3.0957C2.02317 3.0957 1.88468 3.12324 1.75547 3.17676C1.62626 3.23028 1.50885 3.30873 1.40996 3.40763C1.31107 3.50652 1.23262 3.62393 1.1791 3.75314C1.12558 3.88235 1.09803 4.02084 1.09803 4.1607V7.7577C1.09803 8.04015 1.21023 8.31104 1.40996 8.51076C1.60969 8.71049 1.88057 8.8227 2.16303 8.8227L9.83703 9.5697C9.97689 9.5697 10.1154 9.54215 10.2446 9.48863C10.3738 9.43511 10.4912 9.35666 10.5901 9.25776C10.689 9.15887 10.7674 9.04146 10.821 8.91225C10.8745 8.78304 10.902 8.64455 10.902 8.5047V3.4947H10.905Z`,fill:`currentColor`})})}export{t as VideoIcon};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{Checkbox as r}from"../../../ui/checkbox.mjs";import{Text as i}from"../../../ui/text.mjs";import{
|
|
2
|
+
"use client";import{cn as e}from"../../../../utils/cn.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{Checkbox as r}from"../../../ui/checkbox.mjs";import{Text as i}from"../../../ui/text.mjs";import{VideoIcon as a}from"../../icons/video.mjs";import{jsx as o,jsxs as s}from"react/jsx-runtime";import{useTranslations as c}from"next-intl";import{isNil as l}from"lodash-es";function u(e){let t=Number.isFinite(e)?Math.max(0,e):0;return t<1e3?String(Math.floor(t)):t<1e6?`${(Math.floor(t/100)/10).toFixed(1)}K`:`${(Math.floor(t/1e5)/10).toFixed(1)}M`}function d(e){let t=Number.isFinite(e)?Math.max(0,Math.floor(e)):0;if(t<=0)return``;let n=Math.floor(t/3600),r=Math.floor(t%3600/60),i=t%60,a=e=>String(e).padStart(2,`0`);return n>0?`${a(n)}:${a(r)}:${a(i)}`:`${a(r)}:${a(i)}`}function f(f){let p=c(`components.ui.list.videoList`),{title:m,coverImage:h,duration:g,progress:_=0,seriesNum:v=1,authorName:y,viewCount:b,is_more_link:x,showVideoProgress:S,isEditMode:C=!1,isSelected:w=!1,onToggle:T}=f,E=p(x?`videoListItem.series`:`videoListItem.movie`),D=d(g);return s(n,{className:`flex items-start gap-2 py-1.5`,children:[C&&o(n,{className:`shrink-0 self-center `,children:o(r,{checked:w,onCheckedChange:T})}),s(n,{className:`flex-1 h-22 min-w-0 flex items-center gap-[9px]`,children:[s(n,{className:`relative w-35.5 h-20 shrink-0 rounded-lg overflow-hidden `,children:[l(x)?null:o(n,{className:`absolute z-[2] bottom-1 left-1 rounded-xs bg-black/60 px-1 text-[10px] text-white`,children:o(i,{children:E})}),D?o(n,{className:`absolute z-[2] bottom-1 right-1 rounded-xs bg-black/60 px-1 text-[10px] text-white`,children:o(i,{children:D})}):null,o(t,{src:h||`/empty/default-cover.png`,alt:m||p(`videoListItem.coverAlt`),fill:!0,className:`object-cover`})]}),s(n,{className:`flex-1 min-w-0 flex flex-col justify-between py-1.5`,children:[o(i,{className:`text-base text-text1 line-clamp-2 leading-5`,children:m}),s(n,{className:e(`flex-1`,{invisible:!S}),children:[x&&v>=1?`第${v}集 · `:``,p(`videoListItem.watchUntil`),_,`%`]}),o(n,{className:`flex text-text1/33 h-[1em] items-center justify-between text-sm `,children:s(n,{className:`flex items-center gap-1`,children:[o(a,{className:`size-3.5`,"aria-hidden":`true`}),o(i,{children:u(b)})]})})]})]})]})}export{f as VideoListItem};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{useFollowIdsState as e}from"../../../store/modules/follow-ids-store.mjs";import{useUserStore as t}from"../../../store/modules/user-store.mjs";import{gContentGetVideoDetail as n}from"../../../service/generated/client.mjs";import{useLoginModalStore as r}from"../../../store/modules/login-modal-store.mjs";import{batchQueryContentInteractions as i}from"../../../hooks/use-content-operate.mjs";import a from"../../biz/business/search-bar/variants/detail-search-bar/index.mjs";import o from"../../pages/fullscreen-feed/page.mjs";import{useCallback as s,useEffect as c,useMemo as l,useState as u}from"react";import{Fragment as d,jsx as f,jsxs as p}from"react/jsx-runtime";import{useTranslations as m}from"next-intl";function h(e,t){return(e||[]).map((e,n)=>({id:e.id||`${t||`episode`}-${n+1}`,name:e.name||String(n+1),preview_m3u8_url:e.preview_m3u8url||e.preview_m3u8_url||``,m3u8_url:e.m3u8url||e.m3u8_url||``}))}function g(e){let t=e.id||``,n=h(e.links,t),r=e.static,i=e.score===void 0||e.score===null?void 0:Number(e.score),a=e.duration===void 0||e.duration===null?void 0:Number(e.duration),o={id:t,mid:e.mid||t,name:e.name||``,img_x:e.img_x||``,img_y:e.img_y||``,img_type:e.img_type||``,cat_id:e.cat_id||``,cat_name:e.cat_name||``,status:e.status||``,status_text:e.status_text||``,show_at:e.show_at||``,tags:[],update_status:e.update_status||``,description:e.description||``,language:e.language||``,director:e.director||``,issue_date:e.issue_date||``,actor:e.actor||``,up_user:e.up_user||``,money:e.money||``,source_username:e.source_username||``,task_id:e.task_id||``,file_status:e.file_status||``,score:Number.isFinite(i)?i:void 0,duration:Number.isFinite(a)?a:void 0,episode_cnt:n.length||0,links:[],static:{browse_cnt:Number(r?.browse_cnt||0),collect_cnt:Number(r?.collect_cnt||0),comment_cnt:Number(r?.comment_cnt||0),like_cnt:Number(r?.like_cnt||0),share_cnt:Number(r?.share_cnt||0),dislike_cnt:Number(r?.dislike_cnt||0)},type:e.type??e.content_type,author:e.up_user||e.source_username?{user_id:e.up_user||``,nick_name:e.source_username||``,avatar:``}:void 0};return n.length===0?[{...o,links:[]}]:n.map((e,n)=>{let r=e.id||`${t||`episode`}-${n+1}`,i=e.name||`第${n+1}集`;return{...o,id:r,mid:r,name:i,links:[e]}})}function _(e,t){let n=new Map((t||[]).filter(e=>e.content_id).map(e=>[e.content_id,e]));return e.map(e=>{let t=n.get(e.id);return t?{...e,is_liked:t.is_liked||!1,is_dislike:t.is_disliked??t.is_dislike??!1,is_collected:t.is_collected||!1,is_followed:t.is_followed||!1,author:e.author}:e})}function v({params:h,initialContents:v}){let y=m(`components.common.photoGrid`),{locale:b,seriesId:x,episodeNum:S=`1`}=h,{userInfo:C,isLogin:w}=t(),{followIds:T,setFollowIds:E}=e(),D=l(()=>v??[],[v]),[O,k]=u(D),[A,j]=u(!1),M=b?`/${b}`:``,N=f(`div`,{className:`fixed top-0 left-0 right-0 z-40`,children:f(a,{})});c(()=>{k(D)},[D]),c(()=>{if(!x||D.length>0)return;let e=!0;k([]);async function t(){j(!0);try{let t=(await n({id:x}))?.data?.video;if(!t||!e)return;k(g(t))}catch(e){console.error(`获取剧集详情失败:`,e)}finally{e&&j(!1)}}return t(),()=>{e=!1}},[x,D.length]);let P=l(()=>O.map(e=>e.id).filter(Boolean).join(`,`),[O]),F=l(()=>P?P.split(`,`):[],[P]);c(()=>{if(!w||F.length===0)return;let e=!0;async function t(){let t=await i(F,0);!e||!t?.interaction_list?.length||k(e=>_(e,t.interaction_list||[]))}return t(),()=>{e=!1}},[P,F,w]);let I=l(()=>{let e=S??`1`,t=Number.parseInt(e,10);if(Number.isNaN(t))return 0;let n=Math.max(0,t-1);return O.length>0?Math.min(n,O.length-1):n},[S,O.length]),L=s(({episodeId:e,episodeNum:t})=>{let n=`${M}/feed-series/${e}/episode/${t}`;typeof window<`u`&&window.history.replaceState(null,``,n)},[M]),R=s(()=>{r.getState().open()},[]);return x?A&&O.length===0?p(d,{children:[N,p(`div`,{className:`flex h-screen w-full items-center justify-center bg-black text-white/80`,children:[y(`episodeLoading`),`...`]})]}):!A&&O.length===0?p(d,{children:[N,f(`div`,{className:`flex h-screen w-full items-center justify-center bg-black text-white/80`,children:y(`noEpisodes`)})]}):p(d,{children:[N,f(o,{seriesId:x,initialContents:O,initialActiveIndex:I,videoConfig:{loop:!1,autoNext:!0},currentUserId:C.userId||void 0,followIds:T,onFollowIdsChange:E,onRequireLogin:R,onEpisodeNavigate:L})]}):p(d,{children:[N,p(`div`,{className:`flex h-screen w-full items-center justify-center bg-black text-white/80`,children:[y(`missingEpisode`),` `,`ID`]})]})}export{v as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{gContentGetAppChannelBlock as
|
|
2
|
+
"use client";import{getChannelList as e}from"../../biz/utils/helpers/get-channel-list.mjs";import{gContentGetAppChannelBlock as t,gContentGetAppChannels as n}from"../../../service/generated/client.mjs";import{Box as r}from"../../ui/box.mjs";import{useRequest as i}from"../../../hooks/query/use-query.mjs";import{queryKey as a}from"../../../constants/query-key.mjs";import{matchChannelByPath as o}from"../../pages/home/channel-matcher.mjs";import{TopNavBarFullscreen as s}from"./fullscreen.mjs";import{TopNavBarNormal as c}from"./normal.mjs";import{useMemo as l}from"react";import{jsx as u}from"react/jsx-runtime";import{usePathname as d}from"next/navigation";function f(e){return e===`/`?[]:e.startsWith(`/category/`)?e.replace(`/category/`,``).split(`/`).map(e=>decodeURIComponent(e)):[]}function p({categoryPath:p,currentChannelId:m}){let h=d()||`/`,{data:g}=i([a.CHANNEL],()=>n()),_=l(()=>e(g?.data),[g?.data]),v=l(()=>typeof window>`u`?p||[]:f(h),[p,h]),y=l(()=>_.length===0?null:o(v,_),[v,_])?.id??m??``,{data:b}=i(a.GET_CONTENT_LIST(y),()=>t({channel_id:y}),{enabled:!!y}),x=l(()=>b?.data?.blocks||[],[b?.data?.blocks]),S=l(()=>x.length>0&&x[0].show_style===6,[x]);return u(r,{className:`w-full`,"data-top-nav-root":`true`,children:u(S?s:c,{channelDataList:_,currentChannelId:y})})}export{p as TopNavBar};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{getChannelList as e}from"../../biz/utils/helpers/get-channel-list.mjs";import{gContentGetAppChannels as t}from"../../../service/generated/client.mjs";import{HydrationBoundary as n}from"../../../hooks/query/hydration-boundary.mjs";import{queryKey as r}from"../../../constants/query-key.mjs";import{revalidate as i}from"../../../constants/revalidate.mjs";import{matchChannelByPath as a}from"../../pages/home/channel-matcher.mjs";import{TopNavBar as o}from"./client.mjs";import{jsx as s}from"react/jsx-runtime";async function c({categoryPath:c=[]}={}){let l=await t({},{revalidate:i.TIME}),u=e(l?.data),d=Array.isArray(c)?c:[],f=a(d,u)?.id||null;return s(n,{prefetch:[{queryKey:[r.CHANNEL],queryFn:()=>Promise.resolve(l)}],children:s(o,{categoryPath:d,currentChannelId:f})})}export{c as TopNavBarServer};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{useFollowIdsState as e}from"../../../../../store/modules/follow-ids-store.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{pInteractionFollow as n,pInteractionUnfollow as r}from"../../../../../service/generated/client.mjs";import{useEffect as i,useState as a}from"react";import{Fragment as o,jsx as s}from"react/jsx-runtime";import{useTranslations as c}from"next-intl";function l(l){let u=c(`components.pages.follow.components.followButton`),{userId:d,hasFollow:f,followText:p=``,onChange:m}=l,h=p||u(`follow`),[g,_]=a(f),{isLogin:v,userInfo:y,userId:b}=t(),{followIds:x}=e(),S=b||y?.userId||``,C=y?.userId===d,w=f||x.includes(d);i(()=>{_(w)},[w]);async function T(){try{g?await r({follower_id:S,followee_id:d}):await n({follower_id:S,followee_id:d}),window.sensors?.track(`detail_follow_click`,{object_id:``,action:g?`取消关注`:`关注`,author_id:d}),sessionStorage.setItem(`user_page_refresh`,`1`)}catch(e){console.error(`关注或取消关注失败:`,e)}_(!g),m?.(!g)}function E(){T(),v&&(g||T())}return C?null:s(`button`,{className:` h-7 rounded-full px-4 py-1.5 border border-solid cursor-pointer flex items-center justify-center ${g?`border-text3`:`border-theme5`}`,onClick:()=>E(),children:g?s(o,{children:s(`span`,{className:`text-text3 text-xs leading-4.5 ml-1 shrink-0`,children:u(`following`)})}):s(o,{children:s(`span`,{className:`block text-theme5 text-xs leading-4.5 ml-1 shrink-0`,children:h})})})}export{l as FollowButton};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{getChannelList as e}from"../../biz/utils/helpers/get-channel-list.mjs";import{useFollowIdsState as t}from"../../../store/modules/follow-ids-store.mjs";import{useUserStore as n}from"../../../store/modules/user-store.mjs";import{gContentGetAppChannels as r,gContentGetVideoDetail as i}from"../../../service/generated/client.mjs";import{useRequest as a}from"../../../hooks/query/use-query.mjs";import{useLoginModalStore as o}from"../../../store/modules/login-modal-store.mjs";import{useKeepAliveState as s}from"../../common/keep-scroll-position/index.mjs";import{batchQueryContentInteractions as c}from"../../../hooks/use-content-operate.mjs";import l from"../../biz/basics/fullscreen-feed/runtime/client.mjs";import{queryKey as u}from"../../../constants/query-key.mjs";import ee from"../../biz/business/search-bar/variants/detail-search-bar/index.mjs";import{SeriesEpisodes as d}from"../../common/series-episodes/index.mjs";import{useCallback as f,useEffect as te,useLayoutEffect as ne,useMemo as p,useRef as re,useState as m}from"react";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{useTranslations as v}from"next-intl";function y(e,t){return(e||[]).map((e,n)=>({id:e.id||`${t||`episode`}-${n+1}`,name:e.name||String(n+1),preview_m3u8_url:e.preview_m3u8_url||e.preview_m3u8url||``,m3u8_url:e.m3u8_url||e.m3u8url||``}))}function b(e,t,n){let r=e.id||``,i=t||r,a=y(e.links,i),o=e.static,s=e.score===void 0||e.score===null?void 0:Number(e.score),c=e.duration===void 0||e.duration===null?void 0:Number(e.duration),l={id:i,mid:i,name:e.name||``,img_x:e.img_x||``,img_y:e.img_y||``,img_type:e.img_type||``,cat_id:e.cat_id||``,cat_name:e.cat_name||``,status:e.status||``,status_text:e.status_text||``,show_at:e.show_at||``,tags:[],update_status:e.update_status||``,description:e.description||``,language:e.language||``,director:e.director||``,issue_date:e.issue_date||``,actor:e.actor||``,up_user:e.up_user||``,money:e.money||``,source_username:e.source_username||``,task_id:e.task_id||``,file_status:e.file_status||``,score:Number.isFinite(s)?s:void 0,duration:Number.isFinite(c)?c:void 0,episode_cnt:a.length||0,links:[],static:{browse_cnt:Number(o?.browse_cnt||0),collect_cnt:Number(o?.collect_cnt||0),comment_cnt:Number(e.comment_count??o?.comment_cnt??0),like_cnt:Number(o?.like_cnt||0),share_cnt:Number(o?.share_cnt||0),dislike_cnt:Number(o?.dislike_cnt||0)},type:e.type??e.content_type,author:{avatar:``,user_id:``,nick_name:``,user_name:``,is_verified:!1}};if(a.length===0)return{seriesTitle:l.name,seriesList:[],contents:[{...l,links:[]}]};let u=a.map((e,t)=>{let r=e.id||`${i||`episode`}-${t+1}`,o=n(t+1),s=[e,...a.filter(t=>t.id!==e.id)];return{...l,id:r,mid:i,episode_name:o,links:s}});return{seriesTitle:l.name,seriesList:a,contents:u}}function x({params:y,initialContents:x}){let S=v(`components.pages.feedSeries`),C=v(`components.common.seriesEpisodes`),{locale:w,seriesId:T,episodeNum:E=`1`}=y,{userInfo:D,isLogin:O}=n(),{followIds:ie,setFollowIds:ae}=t(),k=p(()=>x??[],[x]),[A,j]=m({}),{data:oe}=a([u.CHANNEL],()=>r()),se=e(oe?.data),M=p(()=>`feed-series:${w||`default`}:${T}`,[w,T]),ce=p(()=>{let e=Number.parseInt(E??`1`,10);return Number.isNaN(e)?0:Math.max(0,e-1)},[E]),[N,le]=s(`${M}-active-index`,ce),[P,ue]=s(`${M}-user-interacted`,!1),[de,fe]=s(`${M}-series-title-toggle`,!1),[F,I]=m(!1),L=re(null),[R,z]=m(0),B=g(`div`,{ref:L,className:`fixed top-0 left-0 right-0 z-40`,children:g(ee,{data:{list:se}})});ne(()=>{let e=L.current;if(!e)return;let t=()=>{z(Math.max(0,Math.round(e.getBoundingClientRect().height)))};t();let n=new ResizeObserver(()=>t());return n.observe(e),()=>{n.disconnect()}},[]);let{data:V,isFetching:H}=a(p(()=>[`feed-series-detail`,T],[T]),async()=>T?await i({id:T}):null,{enabled:!!T&&k.length===0}),U=p(()=>V?.data?.video,[V]),W=p(()=>U?b(U,T,e=>C(`episodeLabel`,{episode:e})):null,[U,T,C]),G=p(()=>k.length>0?k:W?.contents??[],[W?.contents,k]),K=p(()=>Object.keys(A).length===0?G:G.map(e=>{let t=A[e.id];return t?{...e,...t,static:t.static?{...e.static,...t.static}:e.static,author:t.author?{...e.author,...t.author}:e.author}:e}),[G,A]),q=W?.seriesTitle??(k[0]?.name||``),J=W?.seriesList??[],{data:Y}=a(p(()=>[`feed-series-interactions`,T,O],[O,T]),async()=>await c([T],1),{enabled:!!O&&!!T}),X=p(()=>Y?.interaction_list,[Y]);te(()=>{if(!X||X.length===0)return;let e=X.find(e=>e.content_id===T)||X[0];e&&j(t=>{let n=!1,r={...t};for(let t of G){let i=r[t.id],a={...i,is_liked:e.is_liked||!1,is_dislike:e.is_disliked??e.is_dislike??!1,is_collected:e.is_collected||!1,is_followed:e.is_followed||!1};(!i||i.is_liked!==a.is_liked||i.is_dislike!==a.is_dislike||i.is_collected!==a.is_collected||i.is_followed!==a.is_followed)&&(n=!0,r[t.id]=a)}return n?r:t})},[X,G,T]);let Z=f(({})=>{},[]),pe=f(()=>{o.getState().open()},[]),me=f((e,t)=>{let n=t.is_liked!==void 0||t.is_dislike!==void 0||t.is_collected!==void 0||t.is_followed!==void 0||t.static?.like_cnt!==void 0||t.static?.dislike_cnt!==void 0||t.static?.collect_cnt!==void 0||t.static?.comment_cnt!==void 0;j(r=>{if(!n)return{...r,[e]:{...r[e],...t,static:t.static?{...r[e]?.static,...t.static}:r[e]?.static,author:t.author?{...r[e]?.author,...t.author}:r[e]?.author}};let i=!1,a={...r};for(let e of G){let n=e.id,r=a[n],o=t.static?{...r?.static||{},...t.static}:r?.static,s=t.author?{...r?.author||{},...t.author}:r?.author,c={...r,...t,static:o,author:s},l=!1;if(t.is_liked!==void 0&&r?.is_liked!==t.is_liked&&(l=!0),t.is_dislike!==void 0&&r?.is_dislike!==t.is_dislike&&(l=!0),t.is_collected!==void 0&&r?.is_collected!==t.is_collected&&(l=!0),t.is_followed!==void 0&&r?.is_followed!==t.is_followed&&(l=!0),t.static){let e=r?.static||{};t.static.like_cnt!==void 0&&e.like_cnt!==t.static.like_cnt&&(l=!0),t.static.dislike_cnt!==void 0&&e.dislike_cnt!==t.static.dislike_cnt&&(l=!0),t.static.collect_cnt!==void 0&&e.collect_cnt!==t.static.collect_cnt&&(l=!0),t.static.comment_cnt!==void 0&&e.comment_cnt!==t.static.comment_cnt&&(l=!0)}if(t.author&&r?.author){let e=r.author,n=t.author;for(let t of Object.keys(n))if(e?.[t]!==n[t]){l=!0;break}}l&&(i=!0,a[n]=c)}return i?a:r})},[G]),Q=f((e,t)=>{le(e),Z({episodeId:T,episodeNum:e+1,mode:t===`jump`?`replace`:`push`})},[Z,T]),he=f(()=>({showSeriesButton:!0,seriesTitle:q,seriesText:`${N+1}/${J.length||K.length}`,onSeriesClick:()=>I(!0)}),[N,K.length,J.length,q]),$=p(()=>K[N]?.links?.[0]?.id||``,[N,K]);return T?H&&G.length===0?_(h,{children:[B,_(`div`,{className:`flex h-screen w-full items-center justify-center bg-black text-white/80`,children:[S(`feedSeriesClient.episodeLoading`),`...`]})]}):!H&&G.length===0?_(h,{children:[B,g(`div`,{className:`flex h-screen w-full items-center justify-center bg-black text-white/80`,children:S(`feedSeriesClient.noEpisodes`)})]}):_(h,{children:[B,g(l,{items:K,activeIndex:N,top:R,videoConfig:{loop:!1,autoNext:!0},userInteracted:P,onUserInteracted:()=>ue(!0),onActiveIndexChange:Q,onDataUpdate:me,getNavigationInfo:he,currentUserId:D.userId||void 0,followIds:ie,onFollowIdsChange:ae,commentContentId:T,onRequireLogin:pe,activeEpisodeId:$}),F&&g(d,{mode:`selector`,variant:`sheet`,open:F,title:S(`feedSeriesClient.episodeSelectorTitle`),updateStatus:U?.update_status,seriesList:J,activeEpisodeId:$,showEpisodeTitle:de,onToggleTitle:fe,onClose:()=>I(!1),onSelectEpisode:(e,t)=>{I(!1),Q(Math.max(0,t-1),`jump`)}})]}):_(h,{children:[B,_(`div`,{className:`flex h-screen w-full items-center justify-center bg-black text-white/80`,children:[S(`feedSeriesClient.missingEpisode`),` `,`ID`]})]})}export{x as default};
|