@funhub/platform 0.1.124 → 0.1.126
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/components/biz/business/banner/variants/basic-banner/inspector-schema.d.mts +5 -5
- package/dist/components/biz/business/banner/variants/basic-banner/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/material.d.mts +4 -6
- package/dist/components/biz/business/banner/variants/basic-banner/material.mjs +1 -1
- package/dist/components/biz/business/banner/variants/basic-banner/runtime/client.d.mts +1 -2
- package/dist/components/biz/business/banner-carousel/material.d.mts +4 -6
- package/dist/components/biz/business/banner-carousel/material.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/schema.d.mts +5 -5
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
- package/dist/components/biz/business/channel-list/material.d.mts +4 -6
- package/dist/components/biz/business/channel-list/material.mjs +1 -1
- package/dist/components/biz/business/channel-list/schema.d.mts +5 -5
- package/dist/components/biz/business/channel-list/schema.mjs +1 -1
- package/dist/components/biz/business/detail/shared/registry.d.mts +25 -27
- package/dist/components/biz/business/detail/shared/registry.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/material.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-actions/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-actions/schema.d.mts +1 -2
- package/dist/components/biz/business/detail/video-detail-actions/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info/material.d.mts +4 -6
- package/dist/components/biz/business/detail/video-detail-info/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info/schema.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.d.mts +4 -6
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.d.mts +4 -4
- package/dist/components/biz/business/detail/video-detail-info-title-tags-episodes/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/material.d.mts +2 -2
- package/dist/components/biz/business/detail/video-detail-player/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-player/schema.d.mts +1 -2
- package/dist/components/biz/business/detail/video-detail-player/schema.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/material.d.mts +10 -12
- package/dist/components/biz/business/detail/video-detail-recommend/material.mjs +1 -1
- package/dist/components/biz/business/detail/video-detail-recommend/schema.d.mts +11 -11
- package/dist/components/biz/business/detail/video-detail-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/floating-ball/material.d.mts +4 -6
- package/dist/components/biz/business/floating-ball/material.mjs +1 -1
- package/dist/components/biz/business/floating-ball/schema.d.mts +4 -4
- package/dist/components/biz/business/floating-ball/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/material.d.mts +2 -2
- package/dist/components/biz/business/header-search/header-avatar-icon/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.d.mts +1 -2
- package/dist/components/biz/business/header-search/header-avatar-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +4 -6
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +4 -6
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +4 -6
- package/dist/components/biz/business/header-search/header-logo-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/schema.d.mts +4 -4
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/material.d.mts +2 -2
- package/dist/components/biz/business/header-search/header-search/material.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/schema.d.mts +1 -2
- package/dist/components/biz/business/header-search/header-search/schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/client.d.mts +1 -2
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.d.mts +13 -13
- package/dist/components/biz/business/home-recommend/home-recommend-grid/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.d.mts +12 -14
- package/dist/components/biz/business/home-recommend/home-recommend-grid/material.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/client.d.mts +1 -2
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.d.mts +11 -11
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/inspector-schema.mjs +1 -1
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.d.mts +10 -12
- package/dist/components/biz/business/home-recommend/home-recommend-waterfall/material.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/client.d.mts +1 -2
- package/dist/components/biz/business/image-text-recommend/material.d.mts +19 -21
- package/dist/components/biz/business/image-text-recommend/material.mjs +1 -1
- package/dist/components/biz/business/image-text-recommend/schema.d.mts +18 -19
- package/dist/components/biz/business/image-text-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/material.d.mts +3 -3
- package/dist/components/biz/business/large-feature-grid/material.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/client.d.mts +1 -2
- package/dist/components/biz/business/marquee/material.d.mts +15 -17
- package/dist/components/biz/business/marquee/material.mjs +1 -1
- package/dist/components/biz/business/marquee/schema.d.mts +14 -15
- package/dist/components/biz/business/marquee/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +3 -3
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +1 -2
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/material.d.mts +2 -2
- package/dist/components/biz/business/profile/profile-main/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/schema.d.mts +1 -2
- package/dist/components/biz/business/profile/profile-main/schema.mjs +1 -1
- package/dist/components/biz/business/profile/profile-main/tabs/collect-tab/client.d.mts +1 -2
- package/dist/components/biz/business/profile/profile-main/tabs/history-tab/client.d.mts +1 -2
- package/dist/components/biz/business/profile/profile-main/tabs/like-tab/client.d.mts +1 -2
- package/dist/components/biz/business/profile/profile-main/tabs/publish-tab/client.d.mts +1 -2
- package/dist/components/biz/business/search-history/client.d.mts +1 -2
- package/dist/components/biz/business/search-history/material.d.mts +4 -6
- package/dist/components/biz/business/search-history/material.mjs +1 -1
- package/dist/components/biz/business/search-history/schema.d.mts +3 -4
- package/dist/components/biz/business/search-history/schema.mjs +1 -1
- package/dist/components/biz/business/search-input/material.d.mts +2 -2
- package/dist/components/biz/business/search-input/material.mjs +1 -1
- package/dist/components/biz/business/search-input/schema.d.mts +1 -2
- package/dist/components/biz/business/search-input/schema.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/material.d.mts +9 -11
- package/dist/components/biz/business/shortcut-grid/material.mjs +1 -1
- package/dist/components/biz/business/shortcut-grid/schema.d.mts +9 -9
- package/dist/components/biz/business/shortcut-grid/schema.mjs +1 -1
- package/dist/components/biz/business/tab-bar/material.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/material.mjs +1 -1
- package/dist/components/biz/business/tab-bar/schema.d.mts +1 -2
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -1
- package/dist/components/biz/business/text-recommend/client.d.mts +1 -2
- package/dist/components/biz/business/text-recommend/material.d.mts +6 -8
- package/dist/components/biz/business/text-recommend/material.mjs +1 -1
- package/dist/components/biz/business/text-recommend/schema.d.mts +5 -6
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -1
- package/dist/components/biz/example/button/material.d.mts +7 -9
- package/dist/components/biz/example/button/material.mjs +1 -1
- package/dist/components/biz/example/button/schema.d.mts +8 -8
- package/dist/components/biz/example/button/schema.mjs +1 -1
- package/dist/components/biz/renderer/renderer.d.mts +1 -1
- package/dist/components/biz/renderer/renderer.mjs +1 -1
- package/dist/components/pages/login/verify.mjs +3 -3
- package/dist/components/pages/search/search-result/search-video-info.mjs +1 -1
- package/dist/components/pages/settings/_components/reset-password-drawer.mjs +4 -1
- 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/materials.d.mts +10 -10
- package/dist/service/register-by-verify-email-code.d.mts +15 -0
- package/dist/service/register-by-verify-email-code.mjs +2 -0
- package/dist/service.d.mts +2 -1
- package/dist/service.mjs +1 -1
- package/dist/utils/schema/inspector.d.mts +141 -141
- package/dist/utils/schema/material.d.mts +2 -2
- package/dist/utils/schema/schema.d.mts +35 -70
- package/dist/utils/schema/schema.mjs +1 -1
- package/dist/utils/schema/utils.d.mts +0 -6
- package/dist/utils.d.mts +5 -5
- package/package.json +2 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{shortcutGridInspectorPropsSchema as e}from"./schema.mjs";import{ShortcutGridClient as t}from"./client.mjs";import{ShortcutGrid as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`shortcut-grid`,name:`金刚区`,icon:`/static/components-thumb/shortcut_grid_5.png`,category:`金刚组件`,serverComponent:n,clientComponent:t,propsSchema:e});export{i as shortcutGridMaterial};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils/schema/index.mjs";
|
|
4
2
|
import z$1 from "zod";
|
|
3
|
+
import * as create_funhub_sdk0 from "create-funhub/sdk";
|
|
4
|
+
import { InferSchemaProps } from "create-funhub/sdk";
|
|
5
5
|
|
|
6
6
|
//#region components/biz/business/shortcut-grid/schema.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* 金刚区物料可配置字段:
|
|
9
9
|
*/
|
|
10
10
|
declare const shortcutGridInspectorPropsSchema: z$1.ZodObject<{
|
|
11
|
-
title: z$1.ZodString & SchemaHasDefaultValue;
|
|
12
|
-
shortcutCount: z$1.ZodNumber & SchemaHasDefaultValue;
|
|
13
|
-
isShortcutTitle: z$1.ZodBoolean & SchemaHasDefaultValue;
|
|
11
|
+
title: z$1.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
12
|
+
shortcutCount: z$1.ZodNumber & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
13
|
+
isShortcutTitle: z$1.ZodBoolean & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
14
14
|
shortcuts: z$1.ZodArray<z$1.ZodObject<{
|
|
15
|
-
label: z$1.ZodOptional<z$1.ZodString> & SchemaHasDefaultValue;
|
|
16
|
-
icon: z$1.ZodString & SchemaHasDefaultValue;
|
|
17
|
-
href: z$1.ZodString & SchemaHasDefaultValue;
|
|
18
|
-
}, z$1.core.$strip>> & SchemaHasDefaultValue;
|
|
15
|
+
label: z$1.ZodOptional<z$1.ZodString> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
16
|
+
icon: z$1.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
17
|
+
href: z$1.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
18
|
+
}, z$1.core.$strip>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
19
19
|
mode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
20
20
|
renderer: "renderer";
|
|
21
21
|
editor: "editor";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineArrayItemPropSchema as
|
|
2
|
+
import e from"zod";import{defineArrayItemPropSchema as t,defineComponentPropsSchema as n,defineNumberPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a,getSchemaDefaultProps as o}from"create-funhub/sdk";const s=n({title:a({label:`推荐位名称`,required:!0,defaultValue:`推荐列表`}),shortcutCount:r({label:`入口数量`,required:!0,defaultValue:4}).refine(e=>e>=3&&e<=5,`入口数量必须为 3-5`),isShortcutTitle:i({label:`是否显示入口标题`,required:!0,defaultValue:!0}),shortcuts:t(e.object({label:a({label:`入口标题`,required:!1,defaultValue:`最新`}),icon:a({label:`图标`,required:!0,defaultValue:``}),href:a({label:`跳转指向`,required:!0,defaultValue:``})}),{label:`推荐列表`,required:!0,defaultValue:[{label:`热门`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`},{label:`新上架`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`},{label:`排行榜`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`},{label:`筛选`,icon:`/images/2026/01/21/6967aec2d806ed47d5238861/fce0a95c-1e8f-4872-ab69-86212435e1bc.jpegxxx`,href:`/video-list?title=穷小伙刚离婚,找了他3年的女总裁蒙着面纱出现了,一身红嫁衣当众求嫁,前妻嘲笑她是丑八怪,下秒揭开面纱后全场沉默了&tags=动作`}]})}),c=o(s);export{c as shortcutGridInspectorDefaultProps,s as shortcutGridInspectorPropsSchema};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
3
2
|
import { TabBarClient } from "./client.mjs";
|
|
4
3
|
import { TabBarServer } from "./server.mjs";
|
|
5
4
|
import * as zod from "zod";
|
|
5
|
+
import * as create_funhub_sdk0 from "create-funhub/sdk";
|
|
6
6
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
7
7
|
|
|
8
8
|
//#region components/biz/business/tab-bar/material.d.ts
|
|
9
9
|
/**
|
|
10
10
|
* TabBar 物料定义
|
|
11
11
|
*/
|
|
12
|
-
declare const tabBarMaterial: DefineMaterialOption<typeof TabBarServer, typeof TabBarClient, zod.ZodObject<{
|
|
12
|
+
declare const tabBarMaterial: create_funhub_sdk0.DefineMaterialOption<typeof TabBarServer, typeof TabBarClient, zod.ZodObject<{
|
|
13
13
|
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
14
14
|
renderer: "renderer";
|
|
15
15
|
editor: "editor";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{TabBarClient as e}from"./client.mjs";import{tabBarInspectorPropsSchema as t}from"./schema.mjs";import{TabBarServer as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`tab-bar`,name:`底部导航栏`,icon:``,category:`行为组件`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as tabBarMaterial};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils/schema/index.mjs";
|
|
4
2
|
import * as zod from "zod";
|
|
3
|
+
import { InferSchemaProps } from "create-funhub/sdk";
|
|
5
4
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
5
|
|
|
7
6
|
//#region components/biz/business/tab-bar/schema.d.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"
|
|
2
|
+
import{defineComponentPropsSchema as e,getSchemaDefaultProps as t}from"create-funhub/sdk";const n=e({}),r=t(n);export{r as tabBarInspectorDefaultProps,n as tabBarInspectorPropsSchema};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils/schema/index.mjs";
|
|
4
2
|
import { textRecommendInspectorPropsSchema } from "./schema.mjs";
|
|
5
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
+
import { InferSchemaProps } from "create-funhub/sdk";
|
|
6
5
|
|
|
7
6
|
//#region components/biz/business/text-recommend/client.d.ts
|
|
8
7
|
type TextRecommendProps = InferSchemaProps<typeof textRecommendInspectorPropsSchema>;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
-
import "../../../../utils.mjs";
|
|
5
2
|
import { TextRecommendClient } from "./client.mjs";
|
|
6
3
|
import { TextRecommendServer } from "./server.mjs";
|
|
7
4
|
import * as zod from "zod";
|
|
5
|
+
import * as create_funhub_sdk0 from "create-funhub/sdk";
|
|
8
6
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
7
|
|
|
10
8
|
//#region components/biz/business/text-recommend/material.d.ts
|
|
11
|
-
declare const textRecommendMaterial: DefineMaterialOption<typeof TextRecommendServer, typeof TextRecommendClient, zod.ZodObject<{
|
|
12
|
-
title: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
-
displayCount: zod.ZodNumber & SchemaHasDefaultValue;
|
|
9
|
+
declare const textRecommendMaterial: create_funhub_sdk0.DefineMaterialOption<typeof TextRecommendServer, typeof TextRecommendClient, zod.ZodObject<{
|
|
10
|
+
title: zod.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
11
|
+
displayCount: zod.ZodNumber & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
14
12
|
items: zod.ZodArray<zod.ZodObject<{
|
|
15
|
-
label: zod.ZodString & SchemaHasDefaultValue;
|
|
16
|
-
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
13
|
+
label: zod.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
17
15
|
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
18
16
|
renderer: "renderer";
|
|
19
17
|
editor: "editor";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{TextRecommendClient as e}from"./client.mjs";import{textRecommendInspectorPropsSchema as t}from"./schema.mjs";import{TextRecommendServer as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`text-recommend`,name:`文字推荐`,icon:`/static/components-thumb/search_recommend_text.png`,category:`内容组件`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as textRecommendMaterial};
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils/schema/index.mjs";
|
|
4
2
|
import { z } from "zod";
|
|
3
|
+
import * as create_funhub_sdk0 from "create-funhub/sdk";
|
|
5
4
|
|
|
6
5
|
//#region components/biz/business/text-recommend/schema.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* 文字推荐物料属性定义
|
|
9
8
|
*/
|
|
10
9
|
declare const textRecommendInspectorPropsSchema: z.ZodObject<{
|
|
11
|
-
title: z.ZodString & SchemaHasDefaultValue;
|
|
12
|
-
displayCount: z.ZodNumber & SchemaHasDefaultValue;
|
|
10
|
+
title: z.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
11
|
+
displayCount: z.ZodNumber & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
13
12
|
items: z.ZodArray<z.ZodObject<{
|
|
14
|
-
label: z.ZodString & SchemaHasDefaultValue;
|
|
15
|
-
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
13
|
+
label: z.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
14
|
+
}, z.core.$strip>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
16
15
|
mode: z.ZodOptional<z.ZodEnum<{
|
|
17
16
|
renderer: "renderer";
|
|
18
17
|
editor: "editor";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{z as e}from"zod";import{defineArrayItemPropSchema as t,defineComponentPropsSchema as n,defineNumberPropSchema as r,defineTextPropSchema as i}from"create-funhub/sdk";const a=n({title:i({label:`标题名称`,defaultValue:`文字推荐标题`,description:`支持输入,中/英/数/符,6个字符`}),displayCount:r({label:`展示数`,defaultValue:2}),items:t(e.object({label:i({label:`热词`,defaultValue:`推荐搜索1`})}),{label:`推荐位模块`,defaultValue:[{label:`推荐搜索2`},{label:`推荐搜索3`}]})});export{a as textRecommendInspectorPropsSchema};
|
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import { DefineMaterialOption } from "../../../../utils/schema/material.mjs";
|
|
4
|
-
import "../../../../utils/schema/index.mjs";
|
|
5
2
|
import { ButtonClient } from "./client.mjs";
|
|
6
3
|
import { Button } from "./server.mjs";
|
|
7
4
|
import * as zod from "zod";
|
|
5
|
+
import * as create_funhub_sdk0 from "create-funhub/sdk";
|
|
8
6
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
9
7
|
|
|
10
8
|
//#region components/biz/example/button/material.d.ts
|
|
11
|
-
declare const exampleButtonMaterial: DefineMaterialOption<typeof Button, typeof ButtonClient, zod.ZodObject<{
|
|
12
|
-
text: zod.ZodString & SchemaHasDefaultValue;
|
|
13
|
-
variant: zod.ZodType<"default" | "blue" | "red", unknown, zod_v4_core0.$ZodTypeInternals<"default" | "blue" | "red", unknown>> & SchemaHasDefaultValue;
|
|
14
|
-
disabled: zod.ZodOptional<zod.ZodBoolean> & SchemaHasDefaultValue;
|
|
9
|
+
declare const exampleButtonMaterial: create_funhub_sdk0.DefineMaterialOption<typeof Button, typeof ButtonClient, zod.ZodObject<{
|
|
10
|
+
text: zod.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
11
|
+
variant: zod.ZodType<"default" | "blue" | "red", unknown, zod_v4_core0.$ZodTypeInternals<"default" | "blue" | "red", unknown>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
12
|
+
disabled: zod.ZodOptional<zod.ZodBoolean> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
15
13
|
loading: zod.ZodOptional<zod.ZodBoolean>;
|
|
16
14
|
items: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
|
|
17
15
|
name: zod.ZodOptional<zod.ZodString>;
|
|
18
|
-
}, zod_v4_core0.$strip>>> & SchemaHasDefaultValue;
|
|
16
|
+
}, zod_v4_core0.$strip>>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
19
17
|
info: zod.ZodOptional<zod.ZodObject<{
|
|
20
18
|
readonly address: zod.ZodOptional<zod.ZodString>;
|
|
21
|
-
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
19
|
+
}, zod_v4_core0.$strip>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
22
20
|
mode: zod.ZodOptional<zod.ZodEnum<{
|
|
23
21
|
renderer: "renderer";
|
|
24
22
|
editor: "editor";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{
|
|
2
|
+
import{ButtonClient as e}from"./client.mjs";import{buttonInspectorPropsSchema as t}from"./schema.mjs";import{Button as n}from"./server.mjs";import{defineMaterial as r}from"create-funhub/sdk";const i=r({type:`example-button`,name:`按钮`,icon:`/icon/button.png`,category:`行为组件`,serverComponent:n,clientComponent:e,propsSchema:t});export{i as exampleButtonMaterial};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
|
-
import "../../../../utils/schema/index.mjs";
|
|
4
2
|
import z$1 from "zod";
|
|
3
|
+
import * as create_funhub_sdk0 from "create-funhub/sdk";
|
|
4
|
+
import { InferSchemaProps } from "create-funhub/sdk";
|
|
5
5
|
|
|
6
6
|
//#region components/biz/example/button/schema.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* 定义可以被低代码右侧inspector编辑的props
|
|
9
9
|
*/
|
|
10
10
|
declare const buttonInspectorPropsSchema: z$1.ZodObject<{
|
|
11
|
-
text: z$1.ZodString & SchemaHasDefaultValue;
|
|
12
|
-
variant: z$1.ZodType<"default" | "blue" | "red", unknown, z$1.core.$ZodTypeInternals<"default" | "blue" | "red", unknown>> & SchemaHasDefaultValue;
|
|
13
|
-
disabled: z$1.ZodOptional<z$1.ZodBoolean> & SchemaHasDefaultValue;
|
|
11
|
+
text: z$1.ZodString & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
12
|
+
variant: z$1.ZodType<"default" | "blue" | "red", unknown, z$1.core.$ZodTypeInternals<"default" | "blue" | "red", unknown>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
13
|
+
disabled: z$1.ZodOptional<z$1.ZodBoolean> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
14
14
|
loading: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
15
15
|
items: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
16
16
|
name: z$1.ZodOptional<z$1.ZodString>;
|
|
17
|
-
}, z$1.core.$strip>>> & SchemaHasDefaultValue;
|
|
17
|
+
}, z$1.core.$strip>>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
18
18
|
info: z$1.ZodOptional<z$1.ZodObject<{
|
|
19
19
|
readonly address: z$1.ZodOptional<z$1.ZodString>;
|
|
20
|
-
}, z$1.core.$strip>> & SchemaHasDefaultValue;
|
|
20
|
+
}, z$1.core.$strip>> & create_funhub_sdk0.SchemaHasDefaultValue;
|
|
21
21
|
mode: z$1.ZodOptional<z$1.ZodEnum<{
|
|
22
22
|
renderer: "renderer";
|
|
23
23
|
editor: "editor";
|
|
@@ -34,7 +34,7 @@ declare const buttonInspectorDefaultProps: {
|
|
|
34
34
|
address?: string | undefined;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
type ButtonInspectorProps<T extends object = object> =
|
|
37
|
+
type ButtonInspectorProps<T extends object = object> = InferSchemaProps<typeof buttonInspectorPropsSchema> & T;
|
|
38
38
|
/**
|
|
39
39
|
* 基于ButtonInspectorProps再派生出组件真正的props(因为不是所有props都需要被编辑,比如说下面的children就不需要,但是button组件又需要传入children)
|
|
40
40
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineArrayItemPropSchema as
|
|
2
|
+
import{buttonVariantOptions as e}from"./variants.mjs";import t from"zod";import{defineArrayItemPropSchema as n,defineCheckboxPropSchema as r,defineComponentPropsSchema as i,defineObjectPropSchema as a,defineSelectEnumPropSchema as o,defineSwitchPropSchema as s,defineTextPropSchema as c,getSchemaDefaultProps as l}from"create-funhub/sdk";const u=i({text:c({label:`文本`,defaultValue:`example button`}),variant:o(e,{label:`变体`,defaultValue:`red`}),disabled:r({label:`禁用`,defaultValue:!1,required:!1}),loading:s({label:`加载`,required:!1}),items:n(t.object({name:c({label:`名称`,required:!1})}),{required:!1,label:`items`,defaultValue:[{name:`string`}]}),info:a({address:c({label:`地址`,required:!1})},{label:`info`,required:!1,defaultValue:{address:`SHENZHEN`}})}),d=l(u);export{d as buttonInspectorDefaultProps,u as buttonInspectorPropsSchema};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
|
-
import { DefineMaterialOption } from "../../../utils/schema/material.mjs";
|
|
3
2
|
import { ComponentType, ReactNode } from "react";
|
|
4
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
5
4
|
import z$1 from "zod";
|
|
5
|
+
import { DefineMaterialOption } from "create-funhub/sdk";
|
|
6
6
|
|
|
7
7
|
//#region components/biz/renderer/renderer.d.ts
|
|
8
8
|
type NodeInspectorProps = Record<string, unknown>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{cn as e}from"../../../utils/cn.mjs";import{
|
|
2
|
+
import{cn as e}from"../../../utils/cn.mjs";import{materials_exports as t}from"../../../materials.mjs";import{Fragment as n,jsx as r,jsxs as i}from"react/jsx-runtime";import{generateMaterialMap as a}from"create-funhub/sdk";function o(e,t){let n=t.props,r=e.propsSchema.safeParse(n);return r.success?{isValid:!0,props:r.data}:{isValid:!1,props:n,message:r.error?.message}}function s(e){let{document:t,materialMap:a,nodeId:c,ancestors:l,mode:u}=e;if(l.has(c))return null;let d=t.page.nodes[c];if(!d)return null;let f=new Set(l);f.add(c);let p=d.children.map(e=>r(s,{document:t,materialMap:a,nodeId:e,ancestors:f,mode:u},e)),m=a[d.type];if(!m)return p.length===0?null:r(n,{children:p});let h=o(m,d);return h.isValid?r(u===`client`?m.clientComponent:m.serverComponent,{...h.props,children:p}):i(`div`,{children:[`组件配置错误`,h.message]})}function c(n){let{className:i,document:o,materials:c,mode:l=`server`}=n,u=o.page.nodes[o.page.rootId];if(!u)return r(`div`,{className:e(`funhub-renderer`,i)});let d=a(c??Object.values(t));return r(`div`,{className:e(`funhub-renderer`,i),children:r(s,{document:o,materialMap:d,nodeId:u.id,ancestors:new Set,mode:l})})}export{c as Renderer};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../ui/button.mjs";import{
|
|
2
|
+
"use client";import{Button as e}from"../../ui/button.mjs";import{getCookie as t}from"../../../utils/common.mjs";import{pUserSendEmailCode as n,pUserSendResetPasswordEmailCode as r,pUserVerifyForgetEmailCode as i,pUserVerifyResetPasswordEmailCode as a}from"../../../service/generated/client.mjs";import{pUserRegisterByVerifyEmailCode as o}from"../../../service/register-by-verify-email-code.mjs";import{Box as s}from"../../ui/box.mjs";import{Text as c}from"../../ui/text.mjs";import{useLoginModalStore as l}from"../../../store/modules/login-modal-store.mjs";import{useDeleteRequest as u}from"../../../hooks/query/use-query.mjs";import{useSetAuthFields as d,useUserId as f}from"../../../hooks/use-auth.mjs";import{LeftArrowIcon as p}from"../../../assets/icons/left-arrow-icon.mjs";import{useCallback as m,useEffect as h,useMemo as g,useRef as _,useState as v}from"react";import{jsx as y,jsxs as b}from"react/jsx-runtime";import{toast as x}from"sonner";import{useTranslations as S}from"next-intl";function C(e){let[t,n]=e.split(`@`);return!t||!n?e:`${t.slice(0,3)}***${t.length>3?t.slice(-1):``}@${n}`}function w(w){let T=S(`components.pages.login`),{email:E,onClose:D,onPassword:O}=w,{verifyStep:k,resolveLogin:A}=l(),[j,M]=v([,,,,,,].fill(``)),[N,P]=v(0),[F,I]=v(!1),[L,R]=v(60),[z,B]=v(!1),[V,H]=v(``),U=_(null),W=f(),G=d(),K=u(),q=g(()=>C(E),[E]),J=m(async()=>{if(k===`reset-password`)return await a({user_id:W,email_code:j.join(``)});if(k===`forgot-password`)return await i({email:E,email_code:j.join(``)});if(k===`register-verify`){let e=await t(`guestUserId`);return await o({email:E,email_code:j.join(``),user_id:e})}throw Error(T(`verify.invalidCode`))},[k,j,W,E,T]),Y=g(()=>j.every(e=>e!==``)&&!F,[j,F]);h(()=>{if(L<=0)return;let e=setInterval(()=>{R(e=>e-1)},1e3);return()=>clearInterval(e)},[L]),h(()=>{U.current?.focus()},[]);let X=m(e=>{let t=e.target.value.replace(/\D/g,``);if(t.length===0)return;let n=[...j],r=t.split(``),i=N;for(let e of r)i<6&&(n[i]=e,i++);M(n),P(Math.min(i,5)),H(``)},[j,N]),Z=m(e=>{if(e.key===`Backspace`){e.preventDefault();let t=[...j];j[N]?t[N]=``:N>0&&(t[N-1]=``,P(N-1)),M(t),H(``)}else e.key===`ArrowLeft`&&N>0?P(N-1):e.key===`ArrowRight`&&N<5&&P(N+1)},[j,N]),Q=m(e=>{P(e),U.current?.focus()},[]);async function $(){if(!(L>0||z))try{B(!0),k===`reset-password`?await r({user_id:W}):await n({email:E}),R(60),H(``)}finally{B(!1)}}async function ee(){if(Y)try{I(!0);let e=await J();if(k===`register-verify`){let t=e?.data;if(t?.user_id){G({token:t.token??``,expireTime:t.expire_time??0,userId:t.user_id}),x.success(T(`index.loginSuccess`)),K([`user-profile`,`mine`]),A(!0);return}}O?.(E)}catch(e){H(e.message??T(`verify.invalidCode`))}finally{I(!1)}}return b(s,{className:`min-h-screen w-full h-full bg-bg1 text-text1 flex flex-col`,children:[b(s,{className:`flex justify-between items-center h-[60px] px-[16px]`,children:[y(e,{type:`button`,onClick:D,"aria-label":T(`verify.back`),className:`cursor-pointer bg-transparent !p-0 !px-0 !py-0`,children:y(p,{className:`w-[16px] h-[16px] text-text1/80`,"aria-hidden":`true`,focusable:`false`})}),y(c,{className:`text-[14px] text-text2`})]}),b(s,{className:`px-[24px] flex flex-col mt-[15px]`,children:[b(s,{className:`flex flex-col`,children:[y(c,{className:`text-[24px] leading-[32px] font-bold`,children:T(`verify.title`)}),b(s,{className:`mt-[12px] flex items-center`,children:[b(c,{className:`text-[14px] leading-[14px] text-text1/80`,children:[T(`verify.sentTo`),` `,q]}),y(e,{type:`button`,onClick:$,disabled:L>0||z,className:`ml-[8px] rounded-[19px] !px-[8px] !py-[8px] text-[12px] leading-[12px] cursor-pointer bg-line1 text-text1/80 disabled:cursor-not-allowed`,children:L>0?`${T(`verify.resend`)} (${L}s)`:T(`verify.resend`)})]})]}),b(`form`,{className:`mt-[38px]`,onSubmit:e=>{e.preventDefault(),ee()},children:[b(s,{className:`h-14 sm:h-16 md:h-20 relative`,children:[y(`input`,{ref:U,type:`text`,inputMode:`numeric`,pattern:`[0-9]*`,value:``,onChange:X,onKeyDown:Z,className:`absolute opacity-0 pointer-events-none w-full h-full border-none outline-none bg-transparent text-base`,autoComplete:`one-time-code`}),y(s,{className:`w-full flex justify-between items-center`,children:j.map((e,t)=>y(s,{onClick:()=>Q(t),className:`
|
|
3
3
|
w-14 h-14 sm:w-16 sm:h-16 md:w-20 md:h-20 rounded-xl border-2 flex items-center justify-center cursor-pointer transition-all duration-200
|
|
4
|
-
${t===
|
|
5
|
-
`,children:
|
|
4
|
+
${t===N?`border-theme3 bg-theme3`:`border-transparent bg-bg2`}
|
|
5
|
+
`,children:y(c,{className:`select-none font-semibold text-2xl sm:text-3xl leading-none text-text1`,children:e})},t))})]}),y(s,{className:`h-[22px] mt-[16px] mb-[22px] ml-[12px] text-[14px] text-theme5`,children:V}),y(e,{type:`submit`,disabled:!Y,className:`w-full h-[60px] !rounded-[30px] !text-[18px] font-bold leading-[26px] bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0`,children:T(F?`verify.verifying`:`verify.nextStep`)})]})]})]})}export{w as Verify};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{gContentGetRecommendVideoList as e}from"../../../../service/generated/client.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{EmptyState as r}from"../../../ui/empty.mjs";import{usePaginated as
|
|
2
|
+
"use client";import{gContentGetRecommendVideoList as e}from"../../../../service/generated/client.mjs";import{Image as t}from"../../../ui/image.mjs";import{Box as n}from"../../../ui/box.mjs";import{EmptyState as r}from"../../../ui/empty.mjs";import{Text as i}from"../../../ui/text.mjs";import{usePaginated as a,useRefetchQuery as o,useUpdateRequest as s}from"../../../../hooks/query/use-query.mjs";import{formatVideoDuration as c,getPostDetailPagePath as l}from"../../../../utils/tools.mjs";import{apiCollectCustom as u}from"../../../../utils/api-collect.mjs";import{UserActivityList as d}from"../../../common/list/user-activity-list/user-activity-list.mjs";import{VideoListItemSkeleton as f}from"../../../common/skeleton/video-list-item-skeleton.mjs";import p from"../../../../assets/icons/view.mjs";import{mapRecommendContentToUserActivityItem as m}from"../search-utils.mjs";import{memo as h,useCallback as g,useMemo as _}from"react";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{useTranslations as b}from"next-intl";import x from"next/link";const S=h(()=>v(n,{className:`w-full px-[12px] pt-[12px]`,children:Array.from({length:3}).map((e,t)=>v(f,{},`search-video-skeleton-${t}`))}));S.displayName=`SearchVideoListSkeleton`;function C(e){let t=Number(e||0);return Number.isNaN(t)||t<=0?`0`:t>=1e4?`${(t/1e4).toFixed(1)}w`:t>=1e3?`${(t/1e3).toFixed(1)}k`:String(t)}function w(e){let t=Number(e.episode_count||0),n=Number.isFinite(t)&&t>0,r=String(e.update_status??``).trim();return!n||t<=1?c(Number(e.duration||0)):r===`1`?`${t}集全`:`更新至${t}集`}const T=h(({item:e})=>{let r=e.name||``,a=e.img_x||e.img_y||``,o=w(e);return y(x,{className:`mb-[12px] block border-b border-line1 px-[12px] pb-[12px]`,href:l({id:e.video_id,contentType:0}),onClick:()=>{e.video_id},children:[y(n,{className:`relative w-full overflow-hidden rounded-[12px] bg-neutral-800`,style:{aspectRatio:`16/9`},children:[a&&v(t,{src:a,alt:r||`封面`,fill:!0,objectFit:`cover`}),v(n,{className:`absolute inset-x-0 bottom-0 h-[40px] bg-gradient-to-t from-black/80 to-transparent z-0 pointer-events-none`}),y(n,{className:`absolute bottom-0 left-[8px] mb-[6px] z-10 flex items-center gap-[4px]`,children:[v(p,{className:`h-[14px] w-[14px] text-white`}),v(i,{as:`span`,className:`text-[12px] font-medium text-white drop-shadow-md`,children:C(e.play_count)})]}),o&&v(n,{className:`absolute bottom-0 right-[8px] mb-[6px] z-10 flex items-center`,children:v(i,{as:`span`,className:`text-[12px] font-medium text-white drop-shadow-md`,children:o})})]}),y(n,{className:`flex items-center justify-between gap-[12px] pt-[10px] px-2`,children:[y(n,{className:`flex-1 min-w-0`,children:[v(i,{as:`h3`,className:`text-[16px] font-semibold leading-[24px] text-text1 line-clamp-1`,children:r}),e.description&&v(i,{as:`p`,className:`mt-[4px] text-[13px] leading-[20px] text-text2 line-clamp-1`,children:e.description})]}),v(i,{className:`shrink-0 rounded-[20px] border border-[#FD4C5E] px-[24px] py-[8px] text-[14px] font-normal text-[#FD4C5E]`,children:`观看`})]})]})});T.displayName=`VideoItem`;const E=h(({list:e})=>v(n,{className:`w-full px-[12px] pt-[12px]`,children:e.map((e,t)=>v(T,{item:e},String(e.video_id??t)))}));E.displayName=`VideoList`;const D=h(({list:e,onUpdate:t,onActionSuccess:n})=>{let r=g(n=>{let r=e.findIndex(e=>e.content_id===n.content_id);if(r!==-1){let i=[...e];i[r]=n,t(i)}},[e,t]);return v(d,{list:_(()=>e.map(e=>({...m(e),onLikeSuccess(t){r({...e,like_count:String(t.count),dislike_count:t.dislikeCount===void 0?e.dislike_count:String(t.dislikeCount),interaction:{...e.interaction,is_liked:t.isLiked,is_dislike:t.isDisliked??e.interaction?.is_dislike}})},onDislikeSuccess(t){r({...e,like_count:t.likeCount===void 0?e.like_count:String(t.likeCount),dislike_count:String(t.count),interaction:{...e.interaction,is_dislike:t.isDisliked,is_liked:t.isLiked??e.interaction?.is_liked}})}})),[r,e]),showGroupHeaders:!1,onActionSuccess:n})});D.displayName=`InfoList`;const O=h(({searchType:t,inputVal:i})=>{let c=b(`components.pages.search.searchResult`),l=g(async n=>await e({data_type:2,extra_params:JSON.stringify({type:t===`video`?3:2,keywords:i}),page:n||1,page_size:20}),[i,20,t]),u=_(()=>[`searchByKeyForVideoInfo`,i,t===`video`?3:2],[i,t]),f=a({key:u,initialPageParam:1,async queryFn(e){let n=await l(e);return(t===`video`?n?.data?.videos:n?.data?.contents)??{has_more:!1,total:0,list:[]}},getNextPageParam(e,t){if(e.has_more)return t.length+1}}),p=_(()=>{let e=f.data?.pages??[],t=[];for(let n of e){let e=n.list??[];t.push(...e)}return t},[f.data?.pages]),h=_(()=>p,[p,t]),y=s(),x=o(),C=g(e=>{y(u,t=>{if(!t)return t;let n=t.pages.map(t=>({...t,list:(t.list??[]).map(t=>t.content_id===e.content_id?e:t)}));return{...t,pages:n}})},[u,y]),w=g(()=>{x(u)},[u,x]),T=g(e=>({...m(e),onLikeSuccess(t){C({...e,like_count:String(t.count),dislike_count:t.dislikeCount===void 0?e.dislike_count:String(t.dislikeCount),interaction:{...e.interaction,is_liked:t.isLiked,is_dislike:t.isDisliked??e.interaction?.is_dislike}})},onDislikeSuccess(t){C({...e,like_count:t.likeCount===void 0?e.like_count:String(t.likeCount),dislike_count:String(t.count),interaction:{...e.interaction,is_dislike:t.isDisliked,is_liked:t.isLiked??e.interaction?.is_liked}})}}),[C]),D=_(()=>h.map(T),[T,h]),O=f.isPending||f.isFetching,k=t===`video`&&O&&h.length===0;return v(n,{className:`w-full`,children:t===`video`?k?v(S,{}):h.length>0?v(E,{list:h}):v(r,{type:`no-content`,text:c(`searchVideoInfo.noRelevantContent`),className:`mt-[12px]`}):v(d,{list:D,loading:O,hasMore:f.hasNextPage??!1,loadMore:async e=>{if(e!==!1)try{f&&await f.fetchNextPage()}catch(e){console.error(`获取内容列表失败`,e)}},showGroupHeaders:!1,emptyText:c(`searchVideoInfo.noRelevantContent`),onActionSuccess:w})})});O.displayName=`SearchInfoOrVideoList`;export{E as VideoList,O as default};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Button as e}from"../../../ui/button.mjs";import{hashPassword as t}from"../../../../utils/common.mjs";import{useUserStore as n}from"../../../../store/modules/user-store.mjs";import{pUserResetPassword as
|
|
2
|
+
"use client";import{Button as e}from"../../../ui/button.mjs";import{hashPassword as t}from"../../../../utils/common.mjs";import{useUserStore as n}from"../../../../store/modules/user-store.mjs";import{pUserResetPassword as r,pUserSendResetPasswordEmailCode as i,pUserVerifyResetPasswordEmailCode as a}from"../../../../service/generated/client.mjs";import{getPasswordValidationErrorText as o,validatePasswordPair as ee}from"../../../../utils/password-validator.mjs";import{Box as s}from"../../../ui/box.mjs";import{Drawer as c,DrawerContent as te,DrawerDescription as l,DrawerHeader as u,DrawerTitle as ne}from"../../../ui/drawer.mjs";import{Text as d}from"../../../ui/text.mjs";import f from"../../../ui/legacy/button.mjs";import{EyeIcon as p}from"../../../../assets/icons/eye-icon.mjs";import{EyeOffIcon as m}from"../../../../assets/icons/eye-off-icon.mjs";import{HeaderNav as h}from"../../../common/header-nav/client.mjs";import g from"../../../ui/legacy/input.mjs";import{useEffect as _,useMemo as v,useRef as y,useState as b}from"react";import{jsx as x,jsxs as S}from"react/jsx-runtime";import{toast as C}from"sonner";import{useTranslations as w}from"next-intl";function T(T){let E=w(`components.pages.settings.components`),{open:re,onOpenChange:D}=T,O=n(e=>e.userInfo),[k,A]=b([,,,,,,].fill(``)),[j,M]=b(0),N=y(null),ie=k.some(e=>e===``),[P,F]=b(``),I=y(null),[ae,L]=b(60),[R,z]=b(!1);async function B(){if(R)return;let e=C.loading(E(`resetPasswordDrawer.sending`));try{let t=await i({user_id:O?.user_id});t.code===0?(C.success(E(`resetPasswordDrawer.codeSentSuccess`),{id:e}),z(!0),L(60),F(``)):C.error(t.message||E(`resetPasswordDrawer.sendFailed`),{id:e})}catch(t){console.error(t),C.error(E(`resetPasswordDrawer.sendFailed`),{id:e})}}function V(){W(e=>e===1?e:e+1)}async function H(){let e=C.loading(E(`resetPasswordDrawer.verifying`));try{F(``);let t=await a({user_id:O?.user_id,email_code:k.join(``)});t.code===0?(C.success(E(`resetPasswordDrawer.verifySuccess`),{id:e}),V()):(F(t.message||E(`resetPasswordDrawer.verifyFailed`)),C.error(t.message||E(`resetPasswordDrawer.verifyFailed`),{id:e}))}catch(t){console.error(t),F(E(`resetPasswordDrawer.verifyFailed`)),C.error(E(`resetPasswordDrawer.verifyFailed`),{id:e})}}_(()=>{if(R)return I.current=setInterval(()=>{L(e=>e<=1?(I.current&&clearInterval(I.current),z(!1),60):e-1)},1e3),()=>{I.current&&clearInterval(I.current)}},[R]);let[U,W]=b(0);_(()=>{U===0&&N.current?.focus()},[U]);let[G,K]=b({password:``,confirmPassword:``}),[q,J]=b(!1),[Y,oe]=b(!1),[X,se]=b(!1),Z=v(()=>ee(G.password,G.confirmPassword),[G.password,G.confirmPassword]),Q=v(()=>o(Z),[Z]),$=v(()=>q||G.password.length===0||G.confirmPassword.length===0||Z.type!==`none`,[q,G.password.length,G.confirmPassword.length,Z.type]);async function ce(){if($)return;let e=C.loading(E(`resetPasswordDrawer.submitting`));try{J(!0);let n=await r({user_id:O?.user_id,password:t(G.password)});n.code===0?(C.success(E(`resetPasswordDrawer.passwordResetSuccess`),{id:e}),K({password:``,confirmPassword:``}),A([,,,,,,].fill(``)),M(0),D(!1)):C.error(n.message||E(`resetPasswordDrawer.resetFailed`),{id:e})}catch(t){console.error(t),C.error(E(`resetPasswordDrawer.resetFailed`),{id:e})}finally{J(!1)}}function le(e){let t=e.target.value.replace(/\D/g,``);if(t.length===0)return;let n=[...k],r=t.split(``),i=j;for(let e of r){if(i>=6)break;n[i]=e,i+=1}A(n),M(Math.min(i,5)),P&&F(``)}function ue(e){if(e.key===`Backspace`){e.preventDefault();let t=[...k];t[j]?t[j]=``:j>0&&(t[j-1]=``,M(j-1)),A(t),P&&F(``);return}e.key===`ArrowLeft`&&j>0&&M(j-1),e.key===`ArrowRight`&&j<5&&M(j+1)}function de(e){M(e),N.current?.focus()}let fe=S(s,{className:`p-6`,children:[S(s,{className:`space-y-[12px]`,children:[x(d,{className:`text-[24px] leading-[32px] font-bold text-text1`,children:`请输入验证码`}),S(s,{className:`flex items-center justify-between gap-[8px]`,children:[S(d,{className:`min-w-0 flex-1 truncate text-[12px] leading-[16px] text-text2`,children:[E(`resetPasswordDrawer.boundEmailNotice`),x(d,{className:`dark:text-white text-white`,children:O?.email}),E(`resetPasswordDrawer.verifyHint`)]}),x(e,{variant:`link`,disabled:R,onClick:B,className:`h-auto shrink-0 rounded-[10px] bg-line1 px-[10px] py-[4px] text-[10px] leading-[12px] text-text1 no-underline hover:no-underline disabled:opacity-60`,children:R?`${E(`resetPasswordDrawer.sendCode`)} (${ae}s)`:E(`resetPasswordDrawer.sendCode`)})]})]}),S(s,{className:`mt-[28px]`,children:[S(s,{className:`relative`,children:[x(`input`,{ref:N,type:`text`,inputMode:`numeric`,pattern:`[0-9]*`,value:``,onChange:le,onKeyDown:ue,className:`absolute inset-0 h-full w-full opacity-0 pointer-events-none`,autoComplete:`one-time-code`}),x(s,{className:`flex justify-between gap-[10px]`,children:k.map((e,t)=>x(s,{onClick:()=>de(t),className:`
|
|
3
|
+
h-[48px] flex-1 rounded-[6px] border-2 flex items-center justify-center cursor-pointer transition-all duration-200
|
|
4
|
+
${P?`border-theme5 bg-line1`:t===j?`border-theme3 bg-theme3/10`:`border-transparent bg-line1`}
|
|
5
|
+
`,children:x(d,{className:`text-[24px] leading-none font-semibold text-text1 select-none`,children:e})},`${t}-${e||`empty`}`))})]}),x(s,{className:`min-h-[22px] pt-[8px]`,children:x(d,{className:`text-[12px] leading-[18px] text-theme5`,children:P})}),x(f,{onClick:H,disabled:ie,className:`mt-[180px] w-full h-15 !rounded-[30px] !text-[18px] font-bold leading-6.5 bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0`,children:`提交`})]})]}),pe=S(s,{className:`p-6`,children:[x(s,{children:x(d,{className:`text-text2`,children:E(`resetPasswordDrawer.setNewPasswordHint`)})}),S(s,{className:`mt-6 space-y-6`,children:[S(s,{className:`flex relative items-center px-2 rounded-[50px] h-16.5 bg-line1 border ${Q?`border-theme5`:`border-line1`}`,children:[x(g,{value:G.password,onChange:e=>K(t=>({...t,password:e})),placeholder:E(`resetPasswordDrawer.passwordPlaceholder`),type:Y?`text`:`password`,autoComplete:`new-password`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`pr-10`}),x(`button`,{type:`button`,onClick:()=>oe(!Y),className:`absolute right-4 top-1/2 -translate-y-1/2 text-text2 hover:text-text1 transition-colors`,children:x(Y?m:p,{className:`w-5 h-5`})})]}),S(s,{className:`flex relative items-center px-2 rounded-[50px] h-16.5 bg-line1 border ${Z.type===`not-match`?`border-theme5`:`border-line1`}`,children:[x(g,{value:G.confirmPassword,onChange:e=>K(t=>({...t,confirmPassword:e})),placeholder:E(`resetPasswordDrawer.confirmPasswordPlaceholder`),type:X?`text`:`password`,autoComplete:`new-password`,autoCorrect:`off`,autoCapitalize:`none`,spellCheck:!1,"data-lpignore":`true`,"data-1p-ignore":`true`,"data-form-type":`other`,className:`pr-10`}),x(`button`,{type:`button`,onClick:()=>se(!X),className:`absolute right-4 top-1/2 -translate-y-1/2 text-text2 hover:text-text1 transition-colors`,children:x(X?m:p,{className:`w-5 h-5`})})]}),Q?x(s,{children:x(d,{className:`min-h-[22px] text-[14px] text-theme5 px-[12px]`,children:Q})}):null,x(f,{onClick:ce,disabled:$,className:`w-full h-15 !rounded-[30px] !text-[18px] font-bold leading-6.5 bg-theme6 disabled:bg-theme6/40 disabled:text-text3 active:opacity-90 !px-0 !py-0`,children:E(q?`resetPasswordDrawer.submitting`:`resetPasswordDrawer.resetPassword`)})]})]});return S(c,{open:re,onOpenChange:D,direction:`right`,handleOnly:!0,children:[S(u,{className:`hidden`,children:[x(ne,{children:E(`resetPasswordDrawer.title`)}),x(l,{children:E(`resetPasswordDrawer.title`)})]}),S(te,{className:`!w-full`,children:[x(h,{onBack:()=>D(!1),title:E(`resetPasswordDrawer.title`)}),U===0&&fe,U===1&&pe]})]})}export{T as ResetPasswordDrawer};
|
|
@@ -6,7 +6,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
6
6
|
//#region components/ui/badge.d.ts
|
|
7
7
|
/** badgeVariants 工具定义。 */
|
|
8
8
|
declare const badgeVariants: (props?: ({
|
|
9
|
-
variant?: "
|
|
9
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
11
11
|
/** Badge 组件。 */
|
|
12
12
|
declare function Badge({
|
|
@@ -7,7 +7,7 @@ import * as class_variance_authority_types0 from "class-variance-authority/types
|
|
|
7
7
|
//#region components/ui/button.d.ts
|
|
8
8
|
/** buttonVariants 工具定义。 */
|
|
9
9
|
declare const buttonVariants: (props?: ({
|
|
10
|
-
variant?: "
|
|
10
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
|
|
11
11
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
12
12
|
} & class_variance_authority_types0.ClassProp) | undefined) => string;
|
|
13
13
|
/** Button 组件属性。 */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
|
-
import
|
|
4
|
+
import Image from "next/image";
|
|
5
5
|
|
|
6
6
|
//#region components/ui/image.d.ts
|
|
7
7
|
/** BaseImageProps 属性定义。 */
|
|
8
|
-
type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof
|
|
8
|
+
type BaseImageProps = Omit<React.ComponentPropsWithoutRef<typeof Image>, 'className' | 'src' | 'alt' | 'width' | 'height' | 'loading' | 'priority' | 'fill' | 'style'>;
|
|
9
9
|
type CommonImageProps = BaseImageProps & {
|
|
10
10
|
/** 图片地址,支持普通 URL、默认资源路径和加密地址。 */src: string; /** 图片替代文本。 */
|
|
11
11
|
alt?: string; /** 图片类名。 */
|
|
@@ -27,6 +27,6 @@ type ImagePropsWithSize = CommonImageProps & {
|
|
|
27
27
|
/** ImageProps 属性定义。 */
|
|
28
28
|
type ImageProps = ImagePropsWithFill | ImagePropsWithSize;
|
|
29
29
|
/** 图片组件:支持 bnc 解密、默认资源域名拼接与错误占位。 */
|
|
30
|
-
declare function Image(props: ImageProps): react_jsx_runtime0.JSX.Element;
|
|
30
|
+
declare function Image$1(props: ImageProps): react_jsx_runtime0.JSX.Element;
|
|
31
31
|
//#endregion
|
|
32
|
-
export { BaseImageProps, CommonImageProps, Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
|
|
32
|
+
export { BaseImageProps, CommonImageProps, Image$1 as Image, ImageProps, ImagePropsWithFill, ImagePropsWithSize };
|
package/dist/materials.d.mts
CHANGED
|
@@ -2,16 +2,6 @@
|
|
|
2
2
|
import { floatingBallMaterial } from "./components/biz/business/floating-ball/material.mjs";
|
|
3
3
|
import { homeRecommendGridMaterial } from "./components/biz/business/home-recommend/home-recommend-grid/material.mjs";
|
|
4
4
|
import { homeRecommendWaterfallMaterial } from "./components/biz/business/home-recommend/home-recommend-waterfall/material.mjs";
|
|
5
|
-
import { videoDetailPlayerMaterial } from "./components/biz/business/detail/video-detail-player/material.mjs";
|
|
6
|
-
import "./components/biz/business/detail/video-detail-player/index.mjs";
|
|
7
|
-
import { videoDetailInfoMaterial } from "./components/biz/business/detail/video-detail-info/material.mjs";
|
|
8
|
-
import "./components/biz/business/detail/video-detail-info/index.mjs";
|
|
9
|
-
import { videoDetailInfoTitleTagsEpisodesMaterial } from "./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";
|
|
10
|
-
import "./components/biz/business/detail/video-detail-info-title-tags-episodes/index.mjs";
|
|
11
|
-
import { videoDetailActionsMaterial } from "./components/biz/business/detail/video-detail-actions/material.mjs";
|
|
12
|
-
import "./components/biz/business/detail/video-detail-actions/index.mjs";
|
|
13
|
-
import { videoDetailRecommendMaterial } from "./components/biz/business/detail/video-detail-recommend/material.mjs";
|
|
14
|
-
import "./components/biz/business/detail/video-detail-recommend/index.mjs";
|
|
15
5
|
import { imageTextRecommendMaterial } from "./components/biz/business/image-text-recommend/material.mjs";
|
|
16
6
|
import { marqueeMaterial } from "./components/biz/business/marquee/material.mjs";
|
|
17
7
|
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./components/biz/business/profile/profile-header/material.mjs";
|
|
@@ -23,6 +13,16 @@ import { textRecommendMaterial } from "./components/biz/business/text-recommend/
|
|
|
23
13
|
import { exampleButtonMaterial } from "./components/biz/example/button/material.mjs";
|
|
24
14
|
import { BannerCarouselMaterial } from "./components/biz/business/banner-carousel/material.mjs";
|
|
25
15
|
import { channelListMaterial } from "./components/biz/business/channel-list/material.mjs";
|
|
16
|
+
import { videoDetailActionsMaterial } from "./components/biz/business/detail/video-detail-actions/material.mjs";
|
|
17
|
+
import "./components/biz/business/detail/video-detail-actions/index.mjs";
|
|
18
|
+
import { videoDetailInfoMaterial } from "./components/biz/business/detail/video-detail-info/material.mjs";
|
|
19
|
+
import "./components/biz/business/detail/video-detail-info/index.mjs";
|
|
20
|
+
import { videoDetailInfoTitleTagsEpisodesMaterial } from "./components/biz/business/detail/video-detail-info-title-tags-episodes/material.mjs";
|
|
21
|
+
import "./components/biz/business/detail/video-detail-info-title-tags-episodes/index.mjs";
|
|
22
|
+
import { videoDetailPlayerMaterial } from "./components/biz/business/detail/video-detail-player/material.mjs";
|
|
23
|
+
import "./components/biz/business/detail/video-detail-player/index.mjs";
|
|
24
|
+
import { videoDetailRecommendMaterial } from "./components/biz/business/detail/video-detail-recommend/material.mjs";
|
|
25
|
+
import "./components/biz/business/detail/video-detail-recommend/index.mjs";
|
|
26
26
|
import { headerAvatarIconMaterial } from "./components/biz/business/header-search/header-avatar-icon/material.mjs";
|
|
27
27
|
import { headerAvatarLogoSearchMaterial } from "./components/biz/business/header-search/header-avatar-logo-search/material.mjs";
|
|
28
28
|
import { headerAvatarLogoSearchIconMaterial } from "./components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { PostApiUserVerifyEmailCodeReqBody, PostApiUserVerifyEmailCodeRes } from "../types.mjs";
|
|
3
|
+
import { RequestConfig, ResponseData } from "../utils/http.mjs";
|
|
4
|
+
|
|
5
|
+
//#region service/register-by-verify-email-code.d.ts
|
|
6
|
+
type ExtraRequestConfig = Omit<RequestConfig, 'url' | 'method' | 'params' | 'data'>;
|
|
7
|
+
type RegisterByVerifyEmailCodeReqBody = PostApiUserVerifyEmailCodeReqBody & {
|
|
8
|
+
user_id?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* 注册验证码校验并进入下一步。
|
|
12
|
+
*/
|
|
13
|
+
declare function pUserRegisterByVerifyEmailCode(data: RegisterByVerifyEmailCodeReqBody, config?: ExtraRequestConfig): Promise<ResponseData<PostApiUserVerifyEmailCodeRes>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { pUserRegisterByVerifyEmailCode };
|
package/dist/service.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { gCommunityGetCollectionInfo, gCommunityGetComments, gCommunityGetContentInfo, gCommunityGetContentList, gCommunityGetHotContentList, gCommunityGetSubscribedCollections, gCommunityGetUserCollections, gContentGetAdvertiseByCode, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannels, gContentGetAppComponent, gContentGetGuessYouLikeVideos, gContentGetHotVideoList, gContentGetRecommendSearchList, gContentGetRecommendVideoList, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentListVisibleFloatingBall, gContentProcessM3u8, gInteractionCheckMutualFollow, gInteractionGetBrowseList, gInteractionGetContentDislikeList, gInteractionGetContentLikeList, gInteractionGetDislikeList, gInteractionGetFolder, gInteractionGetFolderStats, gInteractionGetFollowStats, gInteractionGetFollowerList, gInteractionGetFollowingContentList, gInteractionGetFollowingList, gInteractionGetFollowingUserUpdates, gInteractionGetLikeList, gInteractionListCollects, gInteractionListFolders, gUserGetGuestIdentity, gUserGetUserEditInfo, gUserGetUserInfo, gUserGetUserPrivacySettings, gUserViewUserInfo, pCommunityAddContentToCollection, pCommunityCreateCollection, pCommunityCreateComment, pCommunityDeleteCollection, pCommunityDeleteComment, pCommunityDeleteContent, pCommunityDislikeComment, pCommunityGetUploadPresignedURL, pCommunityLikeComment, pCommunityMoveCollectionContent, pCommunityPublishContent, pCommunityRemoveContentFromCollection, pCommunitySearchCurAccountFollowingUsersInfo, pCommunityShareContent, pCommunitySubscribeCollection, pCommunityUpdateCollection, pCommunityUpdateContent, pCommunityUploadMedia, pContentBatchGetVideoDetail, pContentGetNewstVideoList, pContentGetPopularVideoList, pInteractionAddCollect, pInteractionBatchClearBrowse, pInteractionBatchDeleteCollects, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetFollowStats, pInteractionBatchGetLikeStatus, pInteractionBatchQueryContentInteractions, pInteractionBrowse, pInteractionCancelDislike, pInteractionCancelLike, pInteractionCheckCollect, pInteractionCheckFollow, pInteractionClearBrowseHistory, pInteractionCreateFolder, pInteractionDeleteBrowseRecord, pInteractionDeleteFolder, pInteractionDislike, pInteractionDislikeComment, pInteractionFollow, pInteractionLike, pInteractionLikeComment, pInteractionMoveCollects, pInteractionRemoveCollect, pInteractionTrackEventsBatch, pInteractionUnfollow, pInteractionUnifiedBatchLikeDislike, pInteractionUpdateFolder, pInteractionUpdateFollowingContentUpdateTime, pUserEditUserInfo, pUserLogin, pUserRegister, pUserResetForgetPassword, pUserResetPassword, pUserSendEmailCode, pUserSendForgetEmailCode, pUserSendResetPasswordEmailCode, pUserUploadUserBgImage, pUserUserFeedback, pUserUserPrivacySettings, pUserVerifyEmailCode, pUserVerifyForgetEmailCode, pUserVerifyResetPasswordEmailCode } from "./service/generated/client.mjs";
|
|
3
3
|
import { createQueryKey, gCommunityGetCollectionInfoKey, gCommunityGetCommentsKey, gCommunityGetContentInfoKey, gCommunityGetContentListKey, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannelsKey, gContentGetAppComponentKey, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoListKey, gContentGetRecommendSearchListKey, gContentGetRecommendVideoListKey, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBallKey, gContentProcessM3u8Key, gInteractionCheckMutualFollowKey, gInteractionGetBrowseListKey, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeListKey, gInteractionGetDislikeListKey, gInteractionGetFolderKey, gInteractionGetFolderStatsKey, gInteractionGetFollowStatsKey, gInteractionGetFollowerListKey, gInteractionGetFollowingContentListKey, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeListKey, gInteractionListCollectsKey, gInteractionListFoldersKey, gUserGetGuestIdentityKey, gUserGetUserEditInfoKey, gUserGetUserInfoKey, gUserGetUserPrivacySettingsKey, gUserViewUserInfoKey, pCommunityAddContentToCollectionKey, pCommunityCreateCollectionKey, pCommunityCreateCommentKey, pCommunityDeleteCollectionKey, pCommunityDeleteCommentKey, pCommunityDeleteContentKey, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURLKey, pCommunityLikeCommentKey, pCommunityMoveCollectionContentKey, pCommunityPublishContentKey, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContentKey, pCommunitySubscribeCollectionKey, pCommunityUpdateCollectionKey, pCommunityUpdateContentKey, pCommunityUploadMediaKey, pContentBatchGetVideoDetailKey, pContentGetNewstVideoListKey, pContentGetPopularVideoListKey, pInteractionAddCollectKey, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowseKey, pInteractionCancelDislikeKey, pInteractionCancelLikeKey, pInteractionCheckCollectKey, pInteractionCheckFollowKey, pInteractionClearBrowseHistoryKey, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolderKey, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollowKey, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollectsKey, pInteractionRemoveCollectKey, pInteractionTrackEventsBatchKey, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfoKey, pUserLoginKey, pUserRegisterKey, pUserResetForgetPasswordKey, pUserResetPasswordKey, pUserSendEmailCodeKey, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImageKey, pUserUserFeedbackKey, pUserUserPrivacySettingsKey, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCodeKey } from "./service/generated/tanstack.mjs";
|
|
4
|
-
|
|
4
|
+
import { pUserRegisterByVerifyEmailCode } from "./service/register-by-verify-email-code.mjs";
|
|
5
|
+
export { createQueryKey, gCommunityGetCollectionInfo, gCommunityGetCollectionInfoKey, gCommunityGetComments, gCommunityGetCommentsKey, gCommunityGetContentInfo, gCommunityGetContentInfoKey, gCommunityGetContentList, gCommunityGetContentListKey, gCommunityGetHotContentList, gCommunityGetHotContentListKey, gCommunityGetSubscribedCollections, gCommunityGetSubscribedCollectionsKey, gCommunityGetUserCollections, gCommunityGetUserCollectionsKey, gContentGetAdvertiseByCode, gContentGetAdvertiseByCodeKey, gContentGetAppChannelBlock, gContentGetAppChannelBlockData, gContentGetAppChannelBlockDataKey, gContentGetAppChannelBlockKey, gContentGetAppChannels, gContentGetAppChannelsKey, gContentGetAppComponent, gContentGetAppComponentKey, gContentGetGuessYouLikeVideos, gContentGetGuessYouLikeVideosKey, gContentGetHotVideoList, gContentGetHotVideoListKey, gContentGetRecommendSearchList, gContentGetRecommendSearchListKey, gContentGetRecommendVideoList, gContentGetRecommendVideoListKey, gContentGetVideoDetail, gContentGetVideoDetailByApi, gContentGetVideoDetailByApiKey, gContentGetVideoDetailKey, gContentListVisibleFloatingBall, gContentListVisibleFloatingBallKey, gContentProcessM3u8, gContentProcessM3u8Key, gInteractionCheckMutualFollow, gInteractionCheckMutualFollowKey, gInteractionGetBrowseList, gInteractionGetBrowseListKey, gInteractionGetContentDislikeList, gInteractionGetContentDislikeListKey, gInteractionGetContentLikeList, gInteractionGetContentLikeListKey, gInteractionGetDislikeList, gInteractionGetDislikeListKey, gInteractionGetFolder, gInteractionGetFolderKey, gInteractionGetFolderStats, gInteractionGetFolderStatsKey, gInteractionGetFollowStats, gInteractionGetFollowStatsKey, gInteractionGetFollowerList, gInteractionGetFollowerListKey, gInteractionGetFollowingContentList, gInteractionGetFollowingContentListKey, gInteractionGetFollowingList, gInteractionGetFollowingListKey, gInteractionGetFollowingUserUpdates, gInteractionGetFollowingUserUpdatesKey, gInteractionGetLikeList, gInteractionGetLikeListKey, gInteractionListCollects, gInteractionListCollectsKey, gInteractionListFolders, gInteractionListFoldersKey, gUserGetGuestIdentity, gUserGetGuestIdentityKey, gUserGetUserEditInfo, gUserGetUserEditInfoKey, gUserGetUserInfo, gUserGetUserInfoKey, gUserGetUserPrivacySettings, gUserGetUserPrivacySettingsKey, gUserViewUserInfo, gUserViewUserInfoKey, pCommunityAddContentToCollection, pCommunityAddContentToCollectionKey, pCommunityCreateCollection, pCommunityCreateCollectionKey, pCommunityCreateComment, pCommunityCreateCommentKey, pCommunityDeleteCollection, pCommunityDeleteCollectionKey, pCommunityDeleteComment, pCommunityDeleteCommentKey, pCommunityDeleteContent, pCommunityDeleteContentKey, pCommunityDislikeComment, pCommunityDislikeCommentKey, pCommunityGetUploadPresignedURL, pCommunityGetUploadPresignedURLKey, pCommunityLikeComment, pCommunityLikeCommentKey, pCommunityMoveCollectionContent, pCommunityMoveCollectionContentKey, pCommunityPublishContent, pCommunityPublishContentKey, pCommunityRemoveContentFromCollection, pCommunityRemoveContentFromCollectionKey, pCommunitySearchCurAccountFollowingUsersInfo, pCommunitySearchCurAccountFollowingUsersInfoKey, pCommunityShareContent, pCommunityShareContentKey, pCommunitySubscribeCollection, pCommunitySubscribeCollectionKey, pCommunityUpdateCollection, pCommunityUpdateCollectionKey, pCommunityUpdateContent, pCommunityUpdateContentKey, pCommunityUploadMedia, pCommunityUploadMediaKey, pContentBatchGetVideoDetail, pContentBatchGetVideoDetailKey, pContentGetNewstVideoList, pContentGetNewstVideoListKey, pContentGetPopularVideoList, pContentGetPopularVideoListKey, pInteractionAddCollect, pInteractionAddCollectKey, pInteractionBatchClearBrowse, pInteractionBatchClearBrowseKey, pInteractionBatchDeleteCollects, pInteractionBatchDeleteCollectsKey, pInteractionBatchGetCommentLikeStatus, pInteractionBatchGetCommentLikeStatusKey, pInteractionBatchGetFollowStats, pInteractionBatchGetFollowStatsKey, pInteractionBatchGetLikeStatus, pInteractionBatchGetLikeStatusKey, pInteractionBatchQueryContentInteractions, pInteractionBatchQueryContentInteractionsKey, pInteractionBrowse, pInteractionBrowseKey, pInteractionCancelDislike, pInteractionCancelDislikeKey, pInteractionCancelLike, pInteractionCancelLikeKey, pInteractionCheckCollect, pInteractionCheckCollectKey, pInteractionCheckFollow, pInteractionCheckFollowKey, pInteractionClearBrowseHistory, pInteractionClearBrowseHistoryKey, pInteractionCreateFolder, pInteractionCreateFolderKey, pInteractionDeleteBrowseRecord, pInteractionDeleteBrowseRecordKey, pInteractionDeleteFolder, pInteractionDeleteFolderKey, pInteractionDislike, pInteractionDislikeComment, pInteractionDislikeCommentKey, pInteractionDislikeKey, pInteractionFollow, pInteractionFollowKey, pInteractionLike, pInteractionLikeComment, pInteractionLikeCommentKey, pInteractionLikeKey, pInteractionMoveCollects, pInteractionMoveCollectsKey, pInteractionRemoveCollect, pInteractionRemoveCollectKey, pInteractionTrackEventsBatch, pInteractionTrackEventsBatchKey, pInteractionUnfollow, pInteractionUnfollowKey, pInteractionUnifiedBatchLikeDislike, pInteractionUnifiedBatchLikeDislikeKey, pInteractionUpdateFolder, pInteractionUpdateFolderKey, pInteractionUpdateFollowingContentUpdateTime, pInteractionUpdateFollowingContentUpdateTimeKey, pUserEditUserInfo, pUserEditUserInfoKey, pUserLogin, pUserLoginKey, pUserRegister, pUserRegisterByVerifyEmailCode, pUserRegisterKey, pUserResetForgetPassword, pUserResetForgetPasswordKey, pUserResetPassword, pUserResetPasswordKey, pUserSendEmailCode, pUserSendEmailCodeKey, pUserSendForgetEmailCode, pUserSendForgetEmailCodeKey, pUserSendResetPasswordEmailCode, pUserSendResetPasswordEmailCodeKey, pUserUploadUserBgImage, pUserUploadUserBgImageKey, pUserUserFeedback, pUserUserFeedbackKey, pUserUserPrivacySettings, pUserUserPrivacySettingsKey, pUserVerifyEmailCode, pUserVerifyEmailCodeKey, pUserVerifyForgetEmailCode, pUserVerifyForgetEmailCodeKey, pUserVerifyResetPasswordEmailCode, pUserVerifyResetPasswordEmailCodeKey };
|