@funhub/platform 0.1.34 → 0.1.36
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/assets/icons/search/avatar.mjs +2 -0
- package/dist/assets/icons/search/video.mjs +2 -0
- package/dist/assets/images/frame.mjs +2 -0
- package/dist/biz.d.mts +14 -14
- package/dist/biz.mjs +1 -1
- package/dist/components/biz/basics/logo/variants/basic-logo/runtime/client.mjs +1 -1
- package/dist/components/biz/business/banner-carousel/material.d.mts +1 -1
- package/dist/components/biz/business/banner-carousel/schema.d.mts +1 -1
- package/dist/components/biz/business/banner-carousel/schema.mjs +1 -1
- package/dist/components/biz/business/channel-list/client.mjs +1 -1
- package/dist/components/biz/business/detail/materials/registry.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/material.d.mts +1 -1
- package/dist/components/biz/business/detail/materials/video-detail-recommend/schema.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/client.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-avatar-icon/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.d.mts +2 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search/material.d.mts +6 -1
- 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 +8 -3
- 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/client.d.mts +2 -2
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts +6 -1
- 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 +5 -2
- 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/client.d.mts +4 -2
- package/dist/components/biz/business/header-search/header-logo-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/header-logo-search/material.d.mts +6 -1
- 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 +8 -3
- package/dist/components/biz/business/header-search/header-logo-search/schema.mjs +1 -1
- package/dist/components/biz/business/header-search/header-search/client.d.mts +1 -1
- package/dist/components/biz/business/header-search/header-search/client.mjs +1 -1
- package/dist/components/biz/business/header-search/shared/avatar.mjs +2 -0
- package/dist/components/biz/business/header-search/shared/logo.mjs +2 -0
- package/dist/components/biz/business/header-search/shared/search.mjs +2 -0
- package/dist/components/biz/business/index.d.mts +13 -13
- package/dist/components/biz/business/index.mjs +1 -1
- package/dist/components/biz/business/large-feature-grid/default.mjs +1 -1
- package/dist/components/biz/business/marquee/client.d.mts +7 -9
- package/dist/components/biz/business/marquee/client.mjs +1 -1
- package/dist/components/biz/business/marquee/index.d.mts +2 -2
- package/dist/components/biz/business/marquee/material.d.mts +15 -6
- package/dist/components/biz/business/marquee/schema.d.mts +23 -28
- package/dist/components/biz/business/marquee/schema.mjs +1 -1
- package/dist/components/biz/business/marquee/server.d.mts +1 -1
- package/dist/components/biz/business/nav-bar/variants/basic-nav-bar/runtime/client.mjs +1 -1
- package/dist/components/biz/business/profile/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/client.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/index.d.mts +1 -1
- package/dist/components/biz/business/profile/profile-header/material.d.mts +4 -6
- package/dist/components/biz/business/profile/profile-header/material.mjs +1 -1
- package/dist/components/biz/business/profile/profile-header/schema.d.mts +4 -8
- package/dist/components/biz/business/profile/profile-header/schema.mjs +1 -1
- package/dist/components/biz/business/search-history/client.d.mts +10 -12
- package/dist/components/biz/business/search-history/client.mjs +1 -1
- package/dist/components/biz/business/search-history/index.d.mts +2 -2
- package/dist/components/biz/business/search-history/material.d.mts +1 -1
- package/dist/components/biz/business/search-history/schema.d.mts +7 -15
- package/dist/components/biz/business/search-history/schema.mjs +1 -1
- package/dist/components/biz/business/search-history/server.d.mts +6 -2
- package/dist/components/biz/business/search-input/client.d.mts +11 -9
- package/dist/components/biz/business/search-input/client.mjs +1 -1
- package/dist/components/biz/business/search-input/index.d.mts +2 -2
- package/dist/components/biz/business/search-input/schema.d.mts +6 -10
- package/dist/components/biz/business/search-input/schema.mjs +1 -1
- package/dist/components/biz/business/search-input/server.d.mts +1 -1
- package/dist/components/biz/business/tab-bar/client.d.mts +6 -5
- package/dist/components/biz/business/tab-bar/client.mjs +1 -1
- package/dist/components/biz/business/tab-bar/index.d.mts +2 -2
- package/dist/components/biz/business/tab-bar/schema.d.mts +10 -18
- package/dist/components/biz/business/tab-bar/schema.mjs +1 -1
- package/dist/components/biz/business/tab-bar/server.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/client.d.mts +10 -14
- package/dist/components/biz/business/text-recommend/client.mjs +1 -1
- package/dist/components/biz/business/text-recommend/index.d.mts +2 -2
- package/dist/components/biz/business/text-recommend/material.d.mts +4 -1
- package/dist/components/biz/business/text-recommend/schema.d.mts +9 -12
- package/dist/components/biz/business/text-recommend/schema.mjs +1 -1
- package/dist/components/biz/business/text-recommend/server.d.mts +1 -1
- package/dist/components/biz/business/text-recommend/server.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/client.d.mts +5 -2
- package/dist/components/biz/business/video-horizontal-list/client.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/index.d.mts +2 -2
- package/dist/components/biz/business/video-horizontal-list/material.d.mts +19 -8
- package/dist/components/biz/business/video-horizontal-list/schema.d.mts +20 -24
- package/dist/components/biz/business/video-horizontal-list/schema.mjs +1 -1
- package/dist/components/biz/business/video-horizontal-list/server.d.mts +1 -1
- package/dist/components/common/delete-confirm-dialog/delete-confirm-dialog.mjs +1 -1
- package/dist/components/common/popup-video/index.mjs +1 -1
- package/dist/components/pages/feed-series/feed-series-client.mjs +1 -1
- package/dist/components/pages/home/client.mjs +1 -1
- package/dist/components/pages/post-detail/post-detail-client.mjs +1 -1
- package/dist/components/pages/publish/page-client.mjs +1 -1
- package/dist/components/pages/search/hot-recommend.mjs +1 -1
- package/dist/components/pages/search/page-client.mjs +1 -1
- package/dist/components/pages/search/search-result/search-all.mjs +1 -1
- package/dist/components/pages/user-follow/page.mjs +1 -1
- package/dist/components/pages/video-detail/page.mjs +1 -1
- package/dist/components/pages/video-detail/video-detail-client.mjs +1 -1
- package/dist/components/ui/badge.d.mts +1 -1
- package/dist/components/ui/button.d.mts +2 -2
- package/dist/components/ui/image.d.mts +4 -4
- package/dist/constants/event-key.mjs +1 -1
- package/dist/hooks/use-search-history.mjs +1 -1
- package/dist/i18n/locales/en.mjs +1 -1
- package/dist/i18n/locales/zh-CN.mjs +1 -1
- package/dist/materials.d.mts +2 -2
- package/dist/materials.mjs +1 -1
- package/dist/utils/schema/index.d.mts +1 -1
- package/dist/utils/schema/inspector.d.mts +31 -1
- package/dist/utils/schema/schema.d.mts +31 -2
- package/dist/utils/schema/schema.mjs +1 -1
- package/dist/utils.d.mts +2 -2
- package/dist/utils.mjs +1 -1
- package/package.json +5 -3
- package/theme.css +106 -0
package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/client.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Box as e}from"../../../../ui/box.mjs";import t from"../../../../../assets/icons/search.mjs";import{UserAvatar as n}from"../shared/avatar.mjs";import{Logo as r}from"../shared/logo.mjs";import{headerAvatarLogoSearchIconInspectorDefaultProps as i}from"./schema.mjs";import{jsx as a,jsxs as o}from"react/jsx-runtime";import s from"next/link";function c(c){let{logoSrc:l,logoHref:u}={...i,...c};return o(e,{as:`header`,className:`px-[12px] py-[8px] flex gap-[16px] items-center`,children:[a(n,{}),a(e,{className:`flex-1`}),a(s,{href:`/search`,"aria-label":`打开搜索页`,children:a(t,{className:`w-[22px] h-[22px] text-text1`,"aria-hidden":!0})}),a(r,{logoSrc:l,logoHref:u})]})}export{c as HeaderAvatarLogoSearchIconClient};
|
package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.d.mts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
2
3
|
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../../utils/schema/index.mjs";
|
|
3
5
|
import { HeaderAvatarLogoSearchIconClient } from "./client.mjs";
|
|
4
6
|
import { HeaderAvatarLogoSearchIcon } from "./server.mjs";
|
|
5
7
|
import * as zod from "zod";
|
|
6
8
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
7
9
|
|
|
8
10
|
//#region components/biz/business/header-search/header-avatar-logo-search-icon/material.d.ts
|
|
9
|
-
declare const headerAvatarLogoSearchIconMaterial: DefineMaterialOption<typeof HeaderAvatarLogoSearchIcon, typeof HeaderAvatarLogoSearchIconClient, zod.ZodObject<{
|
|
11
|
+
declare const headerAvatarLogoSearchIconMaterial: DefineMaterialOption<typeof HeaderAvatarLogoSearchIcon, typeof HeaderAvatarLogoSearchIconClient, zod.ZodObject<{
|
|
12
|
+
logoSrc: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
13
|
+
logoHref: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>, "header-avatar-logo-search-icon">;
|
|
10
15
|
//#endregion
|
|
11
16
|
export { headerAvatarLogoSearchIconMaterial };
|
package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/material.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{headerAvatarLogoSearchIconInspectorPropsSchema as t}from"./schema.mjs";import{HeaderAvatarLogoSearchIconClient as n}from"./client.mjs";import{HeaderAvatarLogoSearchIcon as r}from"./server.mjs";const i=e({type:`header-avatar-logo-search-icon`,name:`顶部功能样式4`,icon:`/static/components-thumb/header_avatar_logo_search_icon.png`,category:`顶部功能`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as headerAvatarLogoSearchIconMaterial};
|
package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
|
|
2
|
+
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../../utils/schema/index.mjs";
|
|
4
4
|
import * as zod from "zod";
|
|
5
5
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
@@ -8,7 +8,10 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
8
8
|
/**
|
|
9
9
|
* 顶部-头像&搜索icon&logo 物料暂不对外开放配置,仅做占位展示。
|
|
10
10
|
*/
|
|
11
|
-
declare const headerAvatarLogoSearchIconInspectorPropsSchema: zod.ZodObject<{
|
|
11
|
+
declare const headerAvatarLogoSearchIconInspectorPropsSchema: zod.ZodObject<{
|
|
12
|
+
logoSrc: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
13
|
+
logoHref: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>;
|
|
12
15
|
type HeaderAvatarLogoSearchIconInspectorProps = InferSchemaProps<typeof headerAvatarLogoSearchIconInspectorPropsSchema>;
|
|
13
16
|
//#endregion
|
|
14
17
|
export { HeaderAvatarLogoSearchIconInspectorProps, headerAvatarLogoSearchIconInspectorPropsSchema };
|
package/dist/components/biz/business/header-search/header-avatar-logo-search-icon/schema.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,getSchemaDefaultProps as
|
|
2
|
+
import{defineComponentPropsSchema as e,defineTextPropSchema as t,getSchemaDefaultProps as n}from"../../../../../utils/schema/schema.mjs";const r=e({logoSrc:t({label:`LOGO 图片地址`,required:!1,defaultValue:``}),logoHref:t({label:`LOGO 跳转地址`,required:!1,defaultValue:`/`})}),i=n(r);export{i as headerAvatarLogoSearchIconInspectorDefaultProps,r as headerAvatarLogoSearchIconInspectorPropsSchema};
|
|
@@ -5,8 +5,10 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
5
5
|
//#region components/biz/business/header-search/header-logo-search/client.d.ts
|
|
6
6
|
type HeaderLogoSearchClientProps = HeaderLogoSearchInspectorProps;
|
|
7
7
|
/**
|
|
8
|
-
* 顶部-LOGO
|
|
8
|
+
* 顶部-LOGO&搜索框:
|
|
9
|
+
* - logo 支持配置图片 & 跳转地址
|
|
10
|
+
* - 未配置时使用默认 SVG logo
|
|
9
11
|
*/
|
|
10
|
-
declare function HeaderLogoSearchClient(
|
|
12
|
+
declare function HeaderLogoSearchClient(props: HeaderLogoSearchClientProps): react_jsx_runtime0.JSX.Element;
|
|
11
13
|
//#endregion
|
|
12
14
|
export { HeaderLogoSearchClient, HeaderLogoSearchClientProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Box as e}from"../../../../ui/box.mjs";import{Logo as t}from"../shared/logo.mjs";import{Search as n}from"../shared/search.mjs";import{headerLogoSearchInspectorDefaultProps as r}from"./schema.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function o(o){let{logoSrc:s,logoHref:c}={...r,...o};return a(e,{as:`header`,className:`px-[12px] py-[8px] flex gap-[8px]`,children:[i(t,{logoSrc:s,logoHref:c}),i(n,{})]})}export{o as HeaderLogoSearchClient};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
|
|
2
|
+
import { SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
2
3
|
import { DefineMaterialOption } from "../../../../../utils/schema/material.mjs";
|
|
4
|
+
import "../../../../../utils/schema/index.mjs";
|
|
3
5
|
import { HeaderLogoSearchClient } from "./client.mjs";
|
|
4
6
|
import { HeaderLogoSearch } from "./server.mjs";
|
|
5
7
|
import * as zod from "zod";
|
|
6
8
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
7
9
|
|
|
8
10
|
//#region components/biz/business/header-search/header-logo-search/material.d.ts
|
|
9
|
-
declare const headerLogoSearchMaterial: DefineMaterialOption<typeof HeaderLogoSearch, typeof HeaderLogoSearchClient, zod.ZodObject<{
|
|
11
|
+
declare const headerLogoSearchMaterial: DefineMaterialOption<typeof HeaderLogoSearch, typeof HeaderLogoSearchClient, zod.ZodObject<{
|
|
12
|
+
logoSrc: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
13
|
+
logoHref: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
14
|
+
}, zod_v4_core0.$strip>, "header-logo-search">;
|
|
10
15
|
//#endregion
|
|
11
16
|
export { headerLogoSearchMaterial };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{
|
|
2
|
+
import{defineMaterial as e}from"../../../../../utils/schema/material.mjs";import{headerLogoSearchInspectorPropsSchema as t}from"./schema.mjs";import{HeaderLogoSearchClient as n}from"./client.mjs";import{HeaderLogoSearch as r}from"./server.mjs";const i=e({type:`header-logo-search`,name:`顶部功能样式2`,icon:`/static/components-thumb/header_logo_search.png`,category:`顶部功能`,serverComponent:r,clientComponent:n,propsSchema:t});export{i as headerLogoSearchMaterial};
|
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
import { InferSchemaProps } from "../../../../../utils/schema/schema.mjs";
|
|
2
|
+
import { InferSchemaProps, SchemaHasDefaultValue } from "../../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../../utils/schema/index.mjs";
|
|
4
4
|
import * as zod from "zod";
|
|
5
5
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
6
|
|
|
7
7
|
//#region components/biz/business/header-search/header-logo-search/schema.d.ts
|
|
8
8
|
/**
|
|
9
|
-
* 顶部-LOGO
|
|
9
|
+
* 顶部-LOGO&搜索框:
|
|
10
|
+
* - logoSrc:可配置 logo 图片地址(为空时使用内置 SVG)
|
|
11
|
+
* - logoHref:可配置 logo 点击跳转地址
|
|
10
12
|
*/
|
|
11
|
-
declare const headerLogoSearchInspectorPropsSchema: zod.ZodObject<{
|
|
13
|
+
declare const headerLogoSearchInspectorPropsSchema: zod.ZodObject<{
|
|
14
|
+
logoSrc: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
15
|
+
logoHref: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
16
|
+
}, zod_v4_core0.$strip>;
|
|
12
17
|
type HeaderLogoSearchInspectorProps = InferSchemaProps<typeof headerLogoSearchInspectorPropsSchema>;
|
|
13
18
|
//#endregion
|
|
14
19
|
export { HeaderLogoSearchInspectorProps, headerLogoSearchInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineComponentPropsSchema as e,getSchemaDefaultProps as
|
|
2
|
+
import{defineComponentPropsSchema as e,defineTextPropSchema as t,getSchemaDefaultProps as n}from"../../../../../utils/schema/schema.mjs";const r=e({logoSrc:t({label:`LOGO 图片地址`,required:!1,defaultValue:``}),logoHref:t({label:`LOGO 跳转地址`,required:!1,defaultValue:`/`})}),i=n(r);export{i as headerLogoSearchInspectorDefaultProps,r as headerLogoSearchInspectorPropsSchema};
|
|
@@ -5,7 +5,7 @@ import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
|
5
5
|
//#region components/biz/business/header-search/header-search/client.d.ts
|
|
6
6
|
type HeaderSearchClientProps = HeaderSearchInspectorProps;
|
|
7
7
|
/**
|
|
8
|
-
* 顶部-搜索框
|
|
8
|
+
* 顶部-搜索框
|
|
9
9
|
*/
|
|
10
10
|
declare function HeaderSearchClient(_props: HeaderSearchClientProps): react_jsx_runtime0.JSX.Element;
|
|
11
11
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{
|
|
2
|
+
"use client";import{Box as e}from"../../../../ui/box.mjs";import{Search as t}from"../shared/search.mjs";import{jsx as n}from"react/jsx-runtime";function r(r){return n(e,{as:`header`,className:`px-[12px] py-[8px]`,children:n(t,{})})}export{r as HeaderSearchClient};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{Button as e}from"../../../../ui/button.mjs";import{useUserStore as t}from"../../../../../store/modules/user-store.mjs";import{Avatar as n,AvatarFallback as r,AvatarImage as i}from"../../../../ui/avatar.mjs";import{useLoginModalStore as a}from"../../../../../store/modules/login-modal-store.mjs";import o from"../../../../../assets/icons/search/avatar.mjs";import{jsx as s,jsxs as c}from"react/jsx-runtime";import l from"next/link";import{useShallow as u}from"zustand/react/shallow";function d(){let{isLogin:d,userInfo:f}=t(u(e=>({isLogin:e.isLogin,userInfo:e.userInfo}))),p=a(e=>e.open),m=f?.avatar_url||f?.avatar||void 0;return d?s(l,{href:`/mine`,children:c(n,{className:`w-[36px] h-[36px]`,children:[s(i,{src:m,alt:`用户头像`}),s(r,{})]})}):s(e,{onClick:p,"aria-label":`登录`,className:`inline-flex rounded-full w-[36px] h-[36px] bg-transparent p-0 m-0`,children:s(o,{className:`w-[36px] h-[36px]`})})}export{d as UserAvatar};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{Image as e}from"../../../../ui/image.mjs";import t from"../../../../../assets/icons/search/video.mjs";import{jsx as n}from"react/jsx-runtime";import r from"next/link";function i(i){let{logoHref:a,logoSrc:o}=i;return n(r,{href:a,className:`flex items-center justify-center w-[40px] h-[40px] relative`,children:o?n(e,{src:o,alt:`logo`,fill:!0,sizes:`40px`,className:`h-[40px] w-[40px] object-cover`}):n(t,{className:`w-[40px] h-[40px]`})})}export{i as Logo};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
|
|
2
|
+
"use client";import{Text as e}from"../../../../ui/text.mjs";import t from"../../../../../assets/icons/search.mjs";import{jsx as n,jsxs as r}from"react/jsx-runtime";import i from"next/link";function a(){return r(i,{href:`/search`,"aria-label":`打开搜索页`,className:`flex flex-1 items-center gap-[8px] border-[1px] border-[#FD4C5E] rounded-[20px] px-[12px] py-[8px] h-[40px]`,children:[n(t,{className:`w-[16px] h-[16px]`,"aria-hidden":!0}),n(e,{className:`flex-1 text-[16px] text-text3`,children:`请输入搜索关键字`})]})}export{a as Search};
|
|
@@ -54,8 +54,8 @@ import { homeRecommendWaterfallInspectorDefaultProps, homeRecommendWaterfallInsp
|
|
|
54
54
|
import { HomeRecommendWaterfall } from "./home-recommend/variants/home-recommend-waterfall/server.mjs";
|
|
55
55
|
import { homeRecommendWaterfallMaterial } from "./home-recommend/variants/home-recommend-waterfall/material.mjs";
|
|
56
56
|
import "./home-recommend/index.mjs";
|
|
57
|
-
import {
|
|
58
|
-
import { MarqueeClient } from "./marquee/client.mjs";
|
|
57
|
+
import { marqueeInspectorPropsSchema } from "./marquee/schema.mjs";
|
|
58
|
+
import { MarqueeClient, MarqueeProps } from "./marquee/client.mjs";
|
|
59
59
|
import { MarqueeServer } from "./marquee/server.mjs";
|
|
60
60
|
import { marqueeMaterial } from "./marquee/material.mjs";
|
|
61
61
|
import "./marquee/index.mjs";
|
|
@@ -70,7 +70,7 @@ import "./post-card/index.mjs";
|
|
|
70
70
|
import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./profile/profile-header/schema.mjs";
|
|
71
71
|
import { UserProfileHeaderClient } from "./profile/profile-header/client.mjs";
|
|
72
72
|
import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./profile/profile-header/server.mjs";
|
|
73
|
-
import { profileHeaderMaterial } from "./profile/profile-header/material.mjs";
|
|
73
|
+
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./profile/profile-header/material.mjs";
|
|
74
74
|
import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile/profile-main/schema.mjs";
|
|
75
75
|
import { UserProfileMainClient } from "./profile/profile-main/client.mjs";
|
|
76
76
|
import { UserProfileMain } from "./profile/profile-main/server.mjs";
|
|
@@ -103,28 +103,28 @@ import { defaultProps as defaultProps$18 } from "./search-bar/variants/tag-searc
|
|
|
103
103
|
import { TagSearchBarClient } from "./search-bar/variants/tag-search-bar/runtime/client.mjs";
|
|
104
104
|
import { schema as schema$18 } from "./search-bar/variants/tag-search-bar/schema/index.mjs";
|
|
105
105
|
import "./search-bar/index.mjs";
|
|
106
|
-
import {
|
|
107
|
-
import { SearchHistoryClient } from "./search-history/client.mjs";
|
|
106
|
+
import { searchHistoryInspectorPropsSchema } from "./search-history/schema.mjs";
|
|
107
|
+
import { SearchHistoryClient, SearchHistoryProps } from "./search-history/client.mjs";
|
|
108
108
|
import { SearchHistoryServer } from "./search-history/server.mjs";
|
|
109
109
|
import { searchHistoryMaterial } from "./search-history/material.mjs";
|
|
110
110
|
import "./search-history/index.mjs";
|
|
111
|
-
import {
|
|
112
|
-
import {
|
|
111
|
+
import { searchInputInspectorPropsSchema } from "./search-input/schema.mjs";
|
|
112
|
+
import { SearchInputClient, SearchInputProps } from "./search-input/client.mjs";
|
|
113
113
|
import { SearchInputServer } from "./search-input/server.mjs";
|
|
114
114
|
import { searchInputMaterial } from "./search-input/material.mjs";
|
|
115
115
|
import "./search-input/index.mjs";
|
|
116
|
-
import {
|
|
117
|
-
import { TabBarClient } from "./tab-bar/client.mjs";
|
|
116
|
+
import { tabBarInspectorPropsSchema } from "./tab-bar/schema.mjs";
|
|
117
|
+
import { TabBarClient, TabBarProps } from "./tab-bar/client.mjs";
|
|
118
118
|
import { TabBarServer } from "./tab-bar/server.mjs";
|
|
119
119
|
import { tabBarMaterial } from "./tab-bar/material.mjs";
|
|
120
120
|
import "./tab-bar/index.mjs";
|
|
121
|
-
import {
|
|
122
|
-
import {
|
|
121
|
+
import { textRecommendInspectorPropsSchema } from "./text-recommend/schema.mjs";
|
|
122
|
+
import { TextRecommendClient, TextRecommendProps } from "./text-recommend/client.mjs";
|
|
123
123
|
import { TextRecommendServer } from "./text-recommend/server.mjs";
|
|
124
124
|
import { textRecommendMaterial } from "./text-recommend/material.mjs";
|
|
125
125
|
import "./text-recommend/index.mjs";
|
|
126
|
-
import {
|
|
127
|
-
import { VideoHorizontalListClient } from "./video-horizontal-list/client.mjs";
|
|
126
|
+
import { videoHorizontalListInspectorPropsSchema } from "./video-horizontal-list/schema.mjs";
|
|
127
|
+
import { VideoHorizontalListClient, VideoHorizontalListProps } from "./video-horizontal-list/client.mjs";
|
|
128
128
|
import { VideoHorizontalListServer } from "./video-horizontal-list/server.mjs";
|
|
129
129
|
import { videoHorizontalListMaterial } from "./video-horizontal-list/material.mjs";
|
|
130
130
|
import "./video-horizontal-list/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{FloatingBallClient as E}from"./floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as D,floatingBallInspectorPropsSchema as O}from"./floating-ball/schema.mjs";import{FloatingBall as k}from"./floating-ball/server.mjs";import{floatingBallMaterial as A}from"./floating-ball/material.mjs";import{defaultProps as j}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as M}from"../basics/fullscreen-feed/schema/index.mjs";import N from"../basics/fullscreen-feed/index.mjs";import{defaultProps as P}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as F}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import I from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as L}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as R}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import z from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as B}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as V}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as H}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import U from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as W}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as G,homeRecommendGridInspectorPropsSchema as K}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as q}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as J}from"./home-recommend/variants/home-recommend-grid/material.mjs";import Y from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as X}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Z}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as $}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as ee}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as te}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import ne from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as re}from"./marquee/client.mjs";import{marqueeInspectorDefaultProps as ie,marqueeInspectorPropsSchema as ae}from"./marquee/schema.mjs";import{MarqueeServer as oe}from"./marquee/server.mjs";import{marqueeMaterial as se}from"./marquee/material.mjs";import{defaultProps as ce}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as le}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import ue from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as de}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as fe}from"./post-card/variants/basic-post-card/schema/index.mjs";import pe from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as me}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as he,profileHeaderInspectorPropsSchema as ge}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as _e,buildUserProfileHeaderPrefetch as ve}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ye}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as be,profileMainCollectTabOptions as xe,profileMainHistoryTabOptions as Se,profileMainLikeTabOptions as Ce,profileMainMineTabOptions as we,profileMainProfileTabOptions as Te,profileMainTabOptions as Ee}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as De}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as Oe}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ke,profileMainInspectorPropsSchema as Ae}from"./profile/profile-main/schema.mjs";import{CollectTab as je}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Me,buildCollectTabPrefetch as Ne}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as Pe}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as Fe,buildHistoryTabPrefetch as Ie}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Le}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as Re,buildLikeTabPrefetch as ze}from"./profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Be}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Ve,buildPublishTabPrefetch as He}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as Ue}from"./profile/profile-main/server.mjs";import{profileMainMaterial as We}from"./profile/profile-main/material.mjs";import{defaultProps as Ge}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as Ke}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import qe from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Je}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Ye}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import Xe from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ze}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Qe}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import $e from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as et}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as tt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import nt from"./search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as rt}from"./search-history/client.mjs";import{searchHistoryInspectorDefaultProps as it,searchHistoryInspectorPropsSchema as at}from"./search-history/schema.mjs";import{SearchHistoryServer as ot}from"./search-history/server.mjs";import{searchHistoryMaterial as st}from"./search-history/material.mjs";import{SearchInputClient as ct}from"./search-input/client.mjs";import{searchInputInspectorDefaultProps as lt,searchInputInspectorPropsSchema as ut}from"./search-input/schema.mjs";import{SearchInputServer as dt}from"./search-input/server.mjs";import{searchInputMaterial as ft}from"./search-input/material.mjs";import{TabBarClient as pt}from"./tab-bar/client.mjs";import{tabBarInspectorDefaultProps as mt,tabBarInspectorPropsSchema as ht}from"./tab-bar/schema.mjs";import{TabBarServer as gt}from"./tab-bar/server.mjs";import{tabBarMaterial as _t}from"./tab-bar/material.mjs";import{TextRecommendClient as vt}from"./text-recommend/client.mjs";import{textRecommendInspectorDefaultProps as yt,textRecommendInspectorPropsSchema as bt}from"./text-recommend/schema.mjs";import{TextRecommendServer as xt}from"./text-recommend/server.mjs";import{textRecommendMaterial as St}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as Ct}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorDefaultProps as wt,videoHorizontalListInspectorPropsSchema as Tt}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as Et}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as Dt}from"./video-horizontal-list/material.mjs";var Ot=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>N,BasicFullscreenFeedDefaultData:()=>j,BasicFullscreenFeedSchema:()=>M,BasicNavBar:()=>ue,BasicNavBarDefaultData:()=>ce,BasicNavBarSchema:()=>le,BasicPostCard:()=>pe,BasicPostCardDefaultData:()=>de,BasicPostCardSchema:()=>fe,BasicRecommendedUsers:()=>qe,BasicRecommendedUsersDefaultData:()=>Ge,BasicRecommendedUsersSchema:()=>Ke,BasicSearchBar:()=>Xe,BasicSearchBarDefaultData:()=>Je,BasicSearchBarSchema:()=>Ye,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,CollectTab:()=>je,CollectTabServer:()=>Me,DetailSearchBar:()=>U,DetailSearchBarDefaultData:()=>V,DetailSearchBarSchema:()=>H,FilterSearchBar:()=>$e,FilterSearchBarDefaultData:()=>Ze,FilterSearchBarSchema:()=>Qe,FloatingBall:()=>k,FloatingBallClient:()=>E,FullscreenFeedClient:()=>I,FullscreenPostFeedDefaultData:()=>P,FullscreenPostFeedSchema:()=>F,FullscreenVideoClient:()=>z,FullscreenVideoFeedDefaultData:()=>L,FullscreenVideoFeedSchema:()=>R,HistoryTab:()=>Pe,HistoryTabServer:()=>Fe,HomeRecommendGrid:()=>Y,HomeRecommendGridDefaultData:()=>B,HomeRecommendGridMaterialComponent:()=>q,HomeRecommendGridSchema:()=>W,HomeRecommendWaterfall:()=>ne,HomeRecommendWaterfallDefaultData:()=>X,HomeRecommendWaterfallMaterialComponent:()=>ee,HomeRecommendWaterfallSchema:()=>Z,LikeTab:()=>Le,LikeTabServer:()=>Re,MarqueeClient:()=>re,MarqueeServer:()=>oe,PublishTab:()=>Be,PublishTabServer:()=>Ve,SearchHistoryClient:()=>rt,SearchHistoryServer:()=>ot,SearchInputClient:()=>ct,SearchInputServer:()=>dt,TabBarClient:()=>pt,TabBarServer:()=>gt,TagSearchBar:()=>nt,TagSearchBarDefaultData:()=>et,TagSearchBarSchema:()=>tt,TextRecommendClient:()=>vt,TextRecommendServer:()=>xt,UserProfileHeader:()=>_e,UserProfileHeaderClient:()=>me,UserProfileMain:()=>Ue,UserProfileMainClient:()=>Oe,UserProfileMainShell:()=>De,VideoHorizontalListClient:()=>Ct,VideoHorizontalListServer:()=>Et,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o,buildCollectTabPrefetch:()=>Ne,buildHistoryTabPrefetch:()=>Ie,buildLikeTabPrefetch:()=>ze,buildPublishTabPrefetch:()=>He,buildUserProfileHeaderPrefetch:()=>ve,floatingBallInspectorDefaultProps:()=>D,floatingBallInspectorPropsSchema:()=>O,floatingBallMaterial:()=>A,homeRecommendGridInspectorDefaultProps:()=>G,homeRecommendGridInspectorPropsSchema:()=>K,homeRecommendGridMaterial:()=>J,homeRecommendWaterfallInspectorDefaultProps:()=>Q,homeRecommendWaterfallInspectorPropsSchema:()=>$,homeRecommendWaterfallMaterial:()=>te,marqueeInspectorDefaultProps:()=>ie,marqueeInspectorPropsSchema:()=>ae,marqueeMaterial:()=>se,profileHeaderInspectorDefaultProps:()=>he,profileHeaderInspectorPropsSchema:()=>ge,profileHeaderMaterial:()=>ye,profileMainCollectCollectionTabOptions:()=>be,profileMainCollectTabOptions:()=>xe,profileMainHistoryTabOptions:()=>Se,profileMainInspectorDefaultProps:()=>ke,profileMainInspectorPropsSchema:()=>Ae,profileMainLikeTabOptions:()=>Ce,profileMainMaterial:()=>We,profileMainMineTabOptions:()=>we,profileMainProfileTabOptions:()=>Te,profileMainTabOptions:()=>Ee,searchHistoryInspectorDefaultProps:()=>it,searchHistoryInspectorPropsSchema:()=>at,searchHistoryMaterial:()=>st,searchInputInspectorDefaultProps:()=>lt,searchInputInspectorPropsSchema:()=>ut,searchInputMaterial:()=>ft,tabBarInspectorDefaultProps:()=>mt,tabBarInspectorPropsSchema:()=>ht,tabBarMaterial:()=>_t,textRecommendInspectorDefaultProps:()=>yt,textRecommendInspectorPropsSchema:()=>bt,textRecommendMaterial:()=>St,videoHorizontalListInspectorDefaultProps:()=>wt,videoHorizontalListInspectorPropsSchema:()=>Tt,videoHorizontalListMaterial:()=>Dt});export{Ot as business_exports};
|
|
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{FloatingBallClient as E}from"./floating-ball/client.mjs";import{floatingBallInspectorDefaultProps as D,floatingBallInspectorPropsSchema as O}from"./floating-ball/schema.mjs";import{FloatingBall as k}from"./floating-ball/server.mjs";import{floatingBallMaterial as A}from"./floating-ball/material.mjs";import{defaultProps as j}from"../basics/fullscreen-feed/defaults/default-props.mjs";import{schema as M}from"../basics/fullscreen-feed/schema/index.mjs";import N from"../basics/fullscreen-feed/index.mjs";import{defaultProps as P}from"./fullscreen-feed/variants/fullscreen-post-feed/defaults/default-props.mjs";import{schema as F}from"./fullscreen-feed/variants/fullscreen-post-feed/schema/index.mjs";import I from"./fullscreen-feed/variants/fullscreen-post-feed/index.mjs";import{defaultProps as L}from"./fullscreen-feed/variants/fullscreen-video-feed/defaults/default-props.mjs";import{schema as R}from"./fullscreen-feed/variants/fullscreen-video-feed/schema/index.mjs";import z from"./fullscreen-feed/variants/fullscreen-video-feed/index.mjs";import{defaultProps as B}from"./home-recommend/variants/home-recommend-grid/defaults/default-props.mjs";import{defaultProps as V}from"./search-bar/variants/detail-search-bar/defaults/default-props.mjs";import{schema as H}from"./search-bar/variants/detail-search-bar/schema/index.mjs";import U from"./search-bar/variants/detail-search-bar/index.mjs";import{schema as W}from"./home-recommend/variants/home-recommend-grid/schema/index.mjs";import{homeRecommendGridInspectorDefaultProps as G,homeRecommendGridInspectorPropsSchema as K}from"./home-recommend/variants/home-recommend-grid/inspector-schema.mjs";import{HomeRecommendGrid as q}from"./home-recommend/variants/home-recommend-grid/server.mjs";import{homeRecommendGridMaterial as J}from"./home-recommend/variants/home-recommend-grid/material.mjs";import Y from"./home-recommend/variants/home-recommend-grid/index.mjs";import{defaultProps as X}from"./home-recommend/variants/home-recommend-waterfall/defaults/default-props.mjs";import{schema as Z}from"./home-recommend/variants/home-recommend-waterfall/schema/index.mjs";import{homeRecommendWaterfallInspectorDefaultProps as Q,homeRecommendWaterfallInspectorPropsSchema as $}from"./home-recommend/variants/home-recommend-waterfall/inspector-schema.mjs";import{HomeRecommendWaterfall as ee}from"./home-recommend/variants/home-recommend-waterfall/server.mjs";import{homeRecommendWaterfallMaterial as te}from"./home-recommend/variants/home-recommend-waterfall/material.mjs";import ne from"./home-recommend/variants/home-recommend-waterfall/index.mjs";import{MarqueeClient as re}from"./marquee/client.mjs";import{marqueeInspectorPropsSchema as ie}from"./marquee/schema.mjs";import{MarqueeServer as ae}from"./marquee/server.mjs";import{marqueeMaterial as oe}from"./marquee/material.mjs";import{defaultProps as se}from"./nav-bar/variants/basic-nav-bar/defaults/default-props.mjs";import{schema as ce}from"./nav-bar/variants/basic-nav-bar/schema/index.mjs";import le from"./nav-bar/variants/basic-nav-bar/index.mjs";import{defaultProps as ue}from"./post-card/variants/basic-post-card/defaults/default-props.mjs";import{schema as de}from"./post-card/variants/basic-post-card/schema/index.mjs";import fe from"./post-card/variants/basic-post-card/index.mjs";import{UserProfileHeaderClient as pe}from"./profile/profile-header/client.mjs";import{profileHeaderInspectorDefaultProps as me,profileHeaderInspectorPropsSchema as he}from"./profile/profile-header/schema.mjs";import{UserProfileHeader as ge,buildUserProfileHeaderPrefetch as _e}from"./profile/profile-header/server.mjs";import{profileHeaderMaterial as ve,profileHeaderMaterialWithDisabledBackground as ye}from"./profile/profile-header/material.mjs";import{profileMainCollectCollectionTabOptions as be,profileMainCollectTabOptions as xe,profileMainHistoryTabOptions as Se,profileMainLikeTabOptions as Ce,profileMainMineTabOptions as we,profileMainProfileTabOptions as Te,profileMainTabOptions as Ee}from"./profile/profile-main/variants.mjs";import{UserProfileMainShell as De}from"./profile/profile-main/shell.mjs";import{UserProfileMainClient as Oe}from"./profile/profile-main/client.mjs";import{profileMainInspectorDefaultProps as ke,profileMainInspectorPropsSchema as Ae}from"./profile/profile-main/schema.mjs";import{CollectTab as je}from"./profile/profile-main/tabs/collect-tab/client.mjs";import{CollectTabServer as Me,buildCollectTabPrefetch as Ne}from"./profile/profile-main/tabs/collect-tab/server.mjs";import{HistoryTab as Pe}from"./profile/profile-main/tabs/history-tab/client.mjs";import{HistoryTabServer as Fe,buildHistoryTabPrefetch as Ie}from"./profile/profile-main/tabs/history-tab/server.mjs";import{LikeTab as Le}from"./profile/profile-main/tabs/like-tab/client.mjs";import{LikeTabServer as Re,buildLikeTabPrefetch as ze}from"./profile/profile-main/tabs/like-tab/server.mjs";import{PublishTab as Be}from"./profile/profile-main/tabs/publish-tab/client.mjs";import{PublishTabServer as Ve,buildPublishTabPrefetch as He}from"./profile/profile-main/tabs/publish-tab/server.mjs";import{UserProfileMain as Ue}from"./profile/profile-main/server.mjs";import{profileMainMaterial as We}from"./profile/profile-main/material.mjs";import{defaultProps as Ge}from"./recommended-users/variants/basic-recommended-users/defaults/default-props.mjs";import{schema as Ke}from"./recommended-users/variants/basic-recommended-users/schema/index.mjs";import qe from"./recommended-users/variants/basic-recommended-users/index.mjs";import{defaultProps as Je}from"./search-bar/variants/basic-search-bar/defaults/default-props.mjs";import{schema as Ye}from"./search-bar/variants/basic-search-bar/schema/index.mjs";import Xe from"./search-bar/variants/basic-search-bar/index.mjs";import{defaultProps as Ze}from"./search-bar/variants/filter-search-bar/defaults/default-props.mjs";import{schema as Qe}from"./search-bar/variants/filter-search-bar/schema/index.mjs";import $e from"./search-bar/variants/filter-search-bar/index.mjs";import{defaultProps as et}from"./search-bar/variants/tag-search-bar/defaults/default-props.mjs";import{schema as tt}from"./search-bar/variants/tag-search-bar/schema/index.mjs";import nt from"./search-bar/variants/tag-search-bar/index.mjs";import{SearchHistoryClient as rt}from"./search-history/client.mjs";import{searchHistoryInspectorPropsSchema as it}from"./search-history/schema.mjs";import{SearchHistoryServer as at}from"./search-history/server.mjs";import{searchHistoryMaterial as ot}from"./search-history/material.mjs";import{SearchInputClient as st}from"./search-input/client.mjs";import{searchInputInspectorPropsSchema as ct}from"./search-input/schema.mjs";import{SearchInputServer as lt}from"./search-input/server.mjs";import{searchInputMaterial as ut}from"./search-input/material.mjs";import{TabBarClient as dt}from"./tab-bar/client.mjs";import{tabBarInspectorPropsSchema as ft}from"./tab-bar/schema.mjs";import{TabBarServer as pt}from"./tab-bar/server.mjs";import{tabBarMaterial as mt}from"./tab-bar/material.mjs";import{TextRecommendClient as ht}from"./text-recommend/client.mjs";import{textRecommendInspectorPropsSchema as gt}from"./text-recommend/schema.mjs";import{TextRecommendServer as _t}from"./text-recommend/server.mjs";import{textRecommendMaterial as vt}from"./text-recommend/material.mjs";import{VideoHorizontalListClient as yt}from"./video-horizontal-list/client.mjs";import{videoHorizontalListInspectorPropsSchema as bt}from"./video-horizontal-list/schema.mjs";import{VideoHorizontalListServer as xt}from"./video-horizontal-list/server.mjs";import{videoHorizontalListMaterial as St}from"./video-horizontal-list/material.mjs";var Ct=e({BasicBanner:()=>s,BasicBannerDefaultData:()=>t,BasicBannerMaterialComponent:()=>a,BasicBannerSchema:()=>n,BasicFeatureGrid:()=>T,BasicFeatureGridDefaultData:()=>C,BasicFeatureGridSchema:()=>w,BasicFullscreenFeed:()=>N,BasicFullscreenFeedDefaultData:()=>j,BasicFullscreenFeedSchema:()=>M,BasicNavBar:()=>le,BasicNavBarDefaultData:()=>se,BasicNavBarSchema:()=>ce,BasicPostCard:()=>fe,BasicPostCardDefaultData:()=>ue,BasicPostCardSchema:()=>de,BasicRecommendedUsers:()=>qe,BasicRecommendedUsersDefaultData:()=>Ge,BasicRecommendedUsersSchema:()=>Ke,BasicSearchBar:()=>Xe,BasicSearchBarDefaultData:()=>Je,BasicSearchBarSchema:()=>Ye,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,CollectTab:()=>je,CollectTabServer:()=>Me,DetailSearchBar:()=>U,DetailSearchBarDefaultData:()=>V,DetailSearchBarSchema:()=>H,FilterSearchBar:()=>$e,FilterSearchBarDefaultData:()=>Ze,FilterSearchBarSchema:()=>Qe,FloatingBall:()=>k,FloatingBallClient:()=>E,FullscreenFeedClient:()=>I,FullscreenPostFeedDefaultData:()=>P,FullscreenPostFeedSchema:()=>F,FullscreenVideoClient:()=>z,FullscreenVideoFeedDefaultData:()=>L,FullscreenVideoFeedSchema:()=>R,HistoryTab:()=>Pe,HistoryTabServer:()=>Fe,HomeRecommendGrid:()=>Y,HomeRecommendGridDefaultData:()=>B,HomeRecommendGridMaterialComponent:()=>q,HomeRecommendGridSchema:()=>W,HomeRecommendWaterfall:()=>ne,HomeRecommendWaterfallDefaultData:()=>X,HomeRecommendWaterfallMaterialComponent:()=>ee,HomeRecommendWaterfallSchema:()=>Z,LikeTab:()=>Le,LikeTabServer:()=>Re,MarqueeClient:()=>re,MarqueeServer:()=>ae,PublishTab:()=>Be,PublishTabServer:()=>Ve,SearchHistoryClient:()=>rt,SearchHistoryServer:()=>at,SearchInputClient:()=>st,SearchInputServer:()=>lt,TabBarClient:()=>dt,TabBarServer:()=>pt,TagSearchBar:()=>nt,TagSearchBarDefaultData:()=>et,TagSearchBarSchema:()=>tt,TextRecommendClient:()=>ht,TextRecommendServer:()=>_t,UserProfileHeader:()=>ge,UserProfileHeaderClient:()=>pe,UserProfileMain:()=>Ue,UserProfileMainClient:()=>Oe,UserProfileMainShell:()=>De,VideoHorizontalListClient:()=>yt,VideoHorizontalListServer:()=>xt,basicBannerInspectorDefaultProps:()=>r,basicBannerInspectorPropsSchema:()=>i,basicBannerMaterial:()=>o,buildCollectTabPrefetch:()=>Ne,buildHistoryTabPrefetch:()=>Ie,buildLikeTabPrefetch:()=>ze,buildPublishTabPrefetch:()=>He,buildUserProfileHeaderPrefetch:()=>_e,floatingBallInspectorDefaultProps:()=>D,floatingBallInspectorPropsSchema:()=>O,floatingBallMaterial:()=>A,homeRecommendGridInspectorDefaultProps:()=>G,homeRecommendGridInspectorPropsSchema:()=>K,homeRecommendGridMaterial:()=>J,homeRecommendWaterfallInspectorDefaultProps:()=>Q,homeRecommendWaterfallInspectorPropsSchema:()=>$,homeRecommendWaterfallMaterial:()=>te,marqueeInspectorPropsSchema:()=>ie,marqueeMaterial:()=>oe,profileHeaderInspectorDefaultProps:()=>me,profileHeaderInspectorPropsSchema:()=>he,profileHeaderMaterial:()=>ve,profileHeaderMaterialWithDisabledBackground:()=>ye,profileMainCollectCollectionTabOptions:()=>be,profileMainCollectTabOptions:()=>xe,profileMainHistoryTabOptions:()=>Se,profileMainInspectorDefaultProps:()=>ke,profileMainInspectorPropsSchema:()=>Ae,profileMainLikeTabOptions:()=>Ce,profileMainMaterial:()=>We,profileMainMineTabOptions:()=>we,profileMainProfileTabOptions:()=>Te,profileMainTabOptions:()=>Ee,searchHistoryInspectorPropsSchema:()=>it,searchHistoryMaterial:()=>ot,searchInputInspectorPropsSchema:()=>ct,searchInputMaterial:()=>ut,tabBarInspectorPropsSchema:()=>ft,tabBarMaterial:()=>mt,textRecommendInspectorPropsSchema:()=>gt,textRecommendMaterial:()=>vt,videoHorizontalListInspectorPropsSchema:()=>bt,videoHorizontalListMaterial:()=>St});export{Ct as business_exports};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
const e=[{title:`推荐位名称`,moreUrl:`/channel`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,tag:`独家`,playCount:
|
|
2
|
+
const e=[{title:`推荐位名称`,moreUrl:`/channel`,items:{id:`22edc8693ebbdaf1`,cover:`https://base-resources.guadd.fun/md-204/dcc-file/f7/f70a9f9f0c17aa9aff6c3a3e03a822db-small.jpg`,tag:`独家`,playCount:11111,playCountDelta:0,showPlayCount:!0,duration:3600,showEpisode:!0,useContentCover:!0,title:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`,desc:`穷小伙一睁眼穿越古代,娶个老婆就能得到奖励,后宫3000宠都宠不过来!谁料女帝主动送上门来,征服女帝可以直接开终极宝箱,不用选择全都可以!`}}];export{e as defaultData};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { InferSchemaProps } from "../../../../utils/schema/schema.mjs";
|
|
3
|
+
import "../../../../utils/schema/index.mjs";
|
|
4
|
+
import { marqueeInspectorPropsSchema } from "./schema.mjs";
|
|
3
5
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
6
|
|
|
5
7
|
//#region components/biz/business/marquee/client.d.ts
|
|
8
|
+
type MarqueeProps = InferSchemaProps<typeof marqueeInspectorPropsSchema>;
|
|
6
9
|
/**
|
|
7
10
|
* 跑马灯物料组件 - 客户端交互部分
|
|
11
|
+
* 适配嵌套配置结构
|
|
8
12
|
*/
|
|
9
|
-
declare function MarqueeClient(
|
|
10
|
-
contents,
|
|
11
|
-
showClose,
|
|
12
|
-
startTime,
|
|
13
|
-
endTime,
|
|
14
|
-
displayStrategy
|
|
15
|
-
}: MarqueeProps): react_jsx_runtime0.JSX.Element | null;
|
|
13
|
+
declare function MarqueeClient(props: MarqueeProps): react_jsx_runtime0.JSX.Element | null;
|
|
16
14
|
//#endregion
|
|
17
|
-
export { MarqueeClient };
|
|
15
|
+
export { MarqueeClient, MarqueeProps };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../../assets/icons/clear.mjs";import i from"../../../../assets/icons/right_arrow.mjs";import a from"../../../../assets/images/marquee.mjs";import{useEffect as o,useMemo as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useRouter as d}from"next/navigation";function
|
|
2
|
+
"use client";import{Image as e}from"../../../ui/image.mjs";import{Box as t}from"../../../ui/box.mjs";import{Text as n}from"../../../ui/text.mjs";import r from"../../../../assets/icons/clear.mjs";import i from"../../../../assets/icons/right_arrow.mjs";import a from"../../../../assets/images/marquee.mjs";import{useEffect as o,useMemo as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{useRouter as d}from"next/navigation";const f=[];function p(p){let{contents:m=f,click:h,close:g,displayStrategy:_}=p,v=d(),[y,b]=c(!0),[x,S]=c(0),[C,w]=c(!1);o(()=>{w(!0)},[]);let T=s(()=>{let e=_?.period?.start,t=_?.period?.end;if(!e&&!t)return!0;let n=Date.now(),r=e?new Date(e).getTime():0,i=t?new Date(t).getTime():2**53-1;return n>=r&&n<=i},[_?.period]);if(o(()=>{if(!C||!_?.rule)return;let e=`marquee_closed_${_.rule}`,t=localStorage.getItem(e);t&&(_.rule===`once`||_.rule===`daily`&&new Date(Number(t)).toLocaleDateString()===new Date().toLocaleDateString())&&b(!1)},[C,_?.rule]),o(()=>{if(!m||m.length<=1)return;let e=setInterval(()=>{S(e=>(e+1)%m.length)},3e3);return()=>clearInterval(e)},[m]),!C||!y||!T||!m||m.length===0)return null;let E=m[x],D=h?.enabled,O=h?.link||E.link,k=D&&!!O;return l(t,{className:`px-[12px] py-[8px] w-full bg-bg1`,children:u(t,{className:`flex items-center pl-[2px] pr-[12px] py-[2px] rounded-[8px] w-full cursor-pointer relative overflow-hidden`,style:{backgroundImage:`linear-gradient(154deg, rgba(255, 228, 133, 0.2) 9.14%, rgba(207, 129, 37, 0.05) 90.86%)`},onClick:()=>{k&&O&&v.push(O)},children:[l(t,{className:`relative shrink-0 w-[36px] h-[36px]`,children:l(e,{src:typeof a==`string`?a:a.src,alt:`notice`,fill:!0,className:`object-cover`,unoptimized:!0})}),l(t,{className:`flex-1 overflow-hidden relative h-[22px] ml-1`,children:l(t,{className:`absolute inset-0 flex items-center transition-transform duration-500 ease-in-out`,style:{transform:`translateY(0)`},children:l(n,{className:`text-[14px] text-[#f59e0b] leading-[22px] truncate w-full font-medium`,children:E.text})})}),u(t,{className:`flex items-center gap-[12px] shrink-0 ml-[4px]`,children:[k&&l(i,{className:`w-[16px] h-[16px] text-[#f59e0b]`}),g?.enabled&&l(t,{className:`opacity-30 hover:opacity-100 transition-opacity p-1`,onClick:e=>{if(e.stopPropagation(),b(!1),_?.rule){let e=`marquee_closed_${_.rule}`;localStorage.setItem(e,Date.now().toString())}},children:l(r,{className:`w-[12px] h-[12px] text-[#999]`})})]})]})})}export{p as MarqueeClient};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
3
|
-
import { MarqueeClient } from "./client.mjs";
|
|
2
|
+
import { marqueeInspectorPropsSchema } from "./schema.mjs";
|
|
3
|
+
import { MarqueeClient, MarqueeProps } from "./client.mjs";
|
|
4
4
|
import { MarqueeServer } from "./server.mjs";
|
|
5
5
|
import { marqueeMaterial } from "./material.mjs";
|
|
@@ -14,14 +14,23 @@ import * as zod_v4_core0 from "zod/v4/core";
|
|
|
14
14
|
declare const marqueeMaterial: DefineMaterialOption<typeof MarqueeServer, typeof MarqueeClient, zod.ZodObject<{
|
|
15
15
|
contents: zod.ZodArray<zod.ZodObject<{
|
|
16
16
|
text: zod.ZodString & SchemaHasDefaultValue;
|
|
17
|
-
enableClick: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
18
|
-
linkType: zod.ZodType<"content" | "content-list" | "url", unknown, zod_v4_core0.$ZodTypeInternals<"content" | "content-list" | "url", unknown>> & SchemaHasDefaultValue;
|
|
19
17
|
link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
20
18
|
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
click: zod.ZodObject<{
|
|
20
|
+
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
21
|
+
readonly redirectType: zod.ZodOptional<zod.ZodType<"link" | "content_list" | "content", unknown, zod_v4_core0.$ZodTypeInternals<"link" | "content_list" | "content", unknown>>> & SchemaHasDefaultValue;
|
|
22
|
+
readonly link: zod.ZodOptional<zod.ZodString> & SchemaHasDefaultValue;
|
|
23
|
+
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
24
|
+
close: zod.ZodObject<{
|
|
25
|
+
readonly enabled: zod.ZodBoolean & SchemaHasDefaultValue;
|
|
26
|
+
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
27
|
+
displayStrategy: zod.ZodObject<{
|
|
28
|
+
readonly rule: zod.ZodType<"once" | "daily", unknown, zod_v4_core0.$ZodTypeInternals<"once" | "daily", unknown>> & SchemaHasDefaultValue;
|
|
29
|
+
readonly period: zod.ZodOptional<zod.ZodObject<{
|
|
30
|
+
readonly start: zod.ZodString;
|
|
31
|
+
readonly end: zod.ZodString;
|
|
32
|
+
}, zod_v4_core0.$strip>> & SchemaHasDefaultValue;
|
|
33
|
+
}, zod_v4_core0.$strip> & SchemaHasDefaultValue;
|
|
25
34
|
}, zod_v4_core0.$strip>, "marquee">;
|
|
26
35
|
//#endregion
|
|
27
36
|
export { marqueeMaterial };
|
|
@@ -1,37 +1,32 @@
|
|
|
1
1
|
|
|
2
2
|
import { SchemaHasDefaultValue } from "../../../../utils/schema/schema.mjs";
|
|
3
3
|
import "../../../../utils.mjs";
|
|
4
|
-
import z
|
|
4
|
+
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region components/biz/business/marquee/schema.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* 跑马灯物料属性定义
|
|
9
9
|
*/
|
|
10
|
-
declare const marqueeInspectorPropsSchema: z
|
|
11
|
-
contents: z
|
|
12
|
-
text: z
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
startTime: string;
|
|
32
|
-
endTime: string;
|
|
33
|
-
};
|
|
34
|
-
type MarqueeInspectorProps = z$1.infer<typeof marqueeInspectorPropsSchema>;
|
|
35
|
-
type MarqueeProps = MarqueeInspectorProps;
|
|
10
|
+
declare const marqueeInspectorPropsSchema: z.ZodObject<{
|
|
11
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
12
|
+
text: z.ZodString & SchemaHasDefaultValue;
|
|
13
|
+
link: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
14
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
15
|
+
click: z.ZodObject<{
|
|
16
|
+
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
17
|
+
readonly redirectType: z.ZodOptional<z.ZodType<"link" | "content_list" | "content", unknown, z.core.$ZodTypeInternals<"link" | "content_list" | "content", unknown>>> & SchemaHasDefaultValue;
|
|
18
|
+
readonly link: z.ZodOptional<z.ZodString> & SchemaHasDefaultValue;
|
|
19
|
+
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
20
|
+
close: z.ZodObject<{
|
|
21
|
+
readonly enabled: z.ZodBoolean & SchemaHasDefaultValue;
|
|
22
|
+
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
23
|
+
displayStrategy: z.ZodObject<{
|
|
24
|
+
readonly rule: z.ZodType<"once" | "daily", unknown, z.core.$ZodTypeInternals<"once" | "daily", unknown>> & SchemaHasDefaultValue;
|
|
25
|
+
readonly period: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
readonly start: z.ZodString;
|
|
27
|
+
readonly end: z.ZodString;
|
|
28
|
+
}, z.core.$strip>> & SchemaHasDefaultValue;
|
|
29
|
+
}, z.core.$strip> & SchemaHasDefaultValue;
|
|
30
|
+
}, z.core.$strip>;
|
|
36
31
|
//#endregion
|
|
37
|
-
export {
|
|
32
|
+
export { marqueeInspectorPropsSchema };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,
|
|
2
|
+
import{defineArrayItemPropSchema as e,defineComponentPropsSchema as t,defineObjectPropSchema as n,defineSelectEnumPropSchema as r,defineSwitchPropSchema as i,defineTextPropSchema as a,defineTimeRangePropSchema as o}from"../../../../utils/schema/schema.mjs";import{z as s}from"zod";const c=t({contents:e(s.object({text:a({label:`文本内容`,defaultValue:``}),link:a({label:`跳转链接`,defaultValue:``,required:!1})}),{label:`消息内容`,defaultValue:[{text:`请输入跑马灯内容`}],description:`支持多条消息循环播放`}),click:n({enabled:i({label:`支持点击`,defaultValue:!0}),redirectType:r([`content_list`,`content`,`link`],{label:`跳转指向`,defaultValue:`link`,required:!1}),link:a({label:`跳转链接`,defaultValue:``,required:!1})},{label:`点击配置`,defaultValue:{enabled:!0,redirectType:`link`,link:``}}),close:n({enabled:i({label:`支持关闭`,defaultValue:!0})},{label:`关闭配置`,defaultValue:{enabled:!0}}),displayStrategy:n({rule:r([`once`,`daily`],{label:`展示规则`,defaultValue:`once`,description:`「只展示1次」即当前消息只展示1次;「每天展示1次」即当前消息每天展示1次,0点刷新`}),period:o({label:`展示周期`,defaultValue:{start:``,end:``},required:!1})},{label:`展示策略`,defaultValue:{rule:`once`,period:{start:``,end:``}}})});export{c as marqueeInspectorPropsSchema};
|
|
@@ -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{
|
|
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{urlPrefix as i}from"../../../../../../../constants/url-prefix.mjs";import{useSticky as a}from"../../../../../../../hooks/use-sticky.mjs";import o,{loadHiddenChannelIdsFromStorage as s}from"./channel-filter-dialog.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?`/`:`${i.CHANNEL}/${encodeURIComponent(e.cn_name)}`}function x({props:i=v,styles:x,events:S,data:C=y}){let{searchUrl:w,searchIconSize:T,filterIconSize:E,channelItemHeight:D,channelItemFontSize:O,channelItemActiveFontSize:k,channelItemGap:A}={...l,...i},[j,M]=m(!1),{isSticky:N,ref:P}=a(),[F,I]=m(C.list),L=p(()=>C.currentChannelId??null,[C.currentChannelId]);f(()=>{let e=s();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(o,{open:j,onOpenChange:M,channels:C.list,currentChannelId:L,onChannelClick:z,onChannelsChange:R})]})}export{x as default};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./profile-header/schema.mjs";
|
|
3
3
|
import { UserProfileHeaderClient } from "./profile-header/client.mjs";
|
|
4
4
|
import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./profile-header/server.mjs";
|
|
5
|
-
import { profileHeaderMaterial } from "./profile-header/material.mjs";
|
|
5
|
+
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./profile-header/material.mjs";
|
|
6
6
|
import "./profile-header/index.mjs";
|
|
7
7
|
import { ProfileMainAuthConfig, ProfileMainInspectorProps, UserProfileMainProps, profileMainInspectorDefaultProps, profileMainInspectorPropsSchema } from "./profile-main/schema.mjs";
|
|
8
8
|
import { UserProfileMainClient } from "./profile-main/client.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
"use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{gUserGetUserInfo as r,gUserViewUserInfo as i,pInteractionFollow as a,pInteractionUnfollow as o}from"../../../../../service/generated/client.mjs";import{Box as s}from"../../../../ui/box.mjs";import{
|
|
2
|
+
"use client";import{cn as e}from"../../../../../utils/cn.mjs";import{Button as t}from"../../../../ui/button.mjs";import{useUserStore as n}from"../../../../../store/modules/user-store.mjs";import{gUserGetUserInfo as r,gUserViewUserInfo as i,pInteractionFollow as a,pInteractionUnfollow as o}from"../../../../../service/generated/client.mjs";import{Box as s}from"../../../../ui/box.mjs";import{Text as c}from"../../../../ui/text.mjs";import{useDeleteRequest as l,useMutation as u,useRequest as d,useUpdateRequest as f}from"../../../../../hooks/query/use-query.mjs";import{useAppContext as p}from"../../../../../hooks/use-app-context/index.mjs";import{useLoginModalStore as m}from"../../../../../store/modules/login-modal-store.mjs";import{LeftArrowIcon as h}from"../../../../common/icons/left-arrow.mjs";import{SettingIcon as g}from"../../../../common/icons/setting.mjs";import{UserProfileAvatar as _}from"./user-profile-avatar.mjs";import{UserProfileCoverBackground as v}from"./user-profile-cover-background.mjs";import{useEffect as y,useMemo as b,useState as ee}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";import T from"next/link";import{useRouter as te}from"next/navigation";const E=n.persist,D=`https://guadd-sg-ccs-sing-dev.s3.ap-southeast-1.amazonaws.com/default/default_avatar.png`,O=`/images/mine/img_mine_head_bg.png`;function ne({userId:e,currentUserId:n,isFollowing:r}){let i=w(`components.pages.profile`),{open:s}=m(),c=l(),d=f(),{mutateAsync:p,isPending:h}=u(async e=>a(e)),{mutateAsync:g,isPending:_}=u(async e=>o(e)),v=h||_;async function y(){if(!v){if(!n){s();return}try{if(r){let t=await g({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.unfollowSuccess`)),b(!1),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.unfollowFailed`))}else{let t=await p({app_id:0,follower_id:n,followee_id:e});t.code===0?(C.success(i(`client.followSuccess`)),b(!0),c([`check-follow`,e]),c([`user-profile`,`profile`,e])):C.error(t.message||i(`client.followFailed`))}}catch(e){console.error(`关注操作失败`,e),C.error(i(`client.operationFailed`))}}}function b(t){d([`user-profile`,`profile`,e],e=>!e||!e.data?e:{...e,data:{...e.data,is_following:t}})}return x(t,{variant:r?`outline`:`default`,className:`rounded-full disabled:opacity-100`,onClick:y,disabled:v,children:i(v?`client.processing`:r?`client.followed`:`client.follow`)})}function k({id:a,enableCustomBackground:o=!0,showBackButton:l=!0,requireLogin:u=!1,cookieToken:f,cookieUserId:C,isEditorPreview:k=!1,className:A}){let j=w(`components.pages.profile`),M=w(`components.pages.profile.components`),re=p(),N=k||re===`editor`,ie=!N,ae=te(),{open:P}=m(),{isLogin:oe,userId:F,token:I}=n(),[L,R]=ee(!1);y(()=>{if(!E){R(!0);return}R(E.hasHydrated());let e=E.onHydrate(()=>{R(!1)}),t=E.onFinishHydration(()=>{R(!0)});return()=>{e(),t()}},[]);let z=N?!1:L?oe&&!!F&&!!I:!!C&&!!f,B=N?``:L?F:F||C,V=B,H=a==null||!!a&&!!V&&a===V,se=!H&&!!a,U=H?[`user-profile`,`mine`]:[`user-profile`,`profile`,a],{data:W}=d(N?[`editor-preview`,...U]:U,()=>a?i({target_user_id:a,user_id:B||a}):r({user_id:a||B||``}),{staleTime:0,enabled:ie&&(!!a||!!B)}),G=b(()=>{let e=W?W.data:void 0;return e?{userId:e.user_id,isFollowing:e.is_following||!1,name:e.nick_name||`User${a??``}`,avatar:e.avatar||D,followingCnt:e.following_count??0,followersCnt:e.follower_count??0,likeCnt:e.like_count??0,signature:e.signature||``,background:e.bg_image||O}:{}},[a,W]),K=u&&H&&!z,ce=!z&&se,q=H&&z&&!K,J=!z,le=o&&q,ue=o&&J,de={name:j(`client.welcomeToPlanet`),description:j(`client.exploreAdventures`),avatar:D,followingCnt:0,followersCnt:0,likeCnt:0,background:O};function Y(){P()}function fe(){ae.back()}function X(e){!H||z||(e.preventDefault(),e.stopPropagation(),P())}let pe=K?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.loginNow`)}):ce?x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.follow`)}):z?H?x(T,{href:`/edit`,children:x(t,{variant:`outline`,className:`rounded-full`,children:j(`client.editProfile`)})}):x(ne,{userId:a||``,currentUserId:B,isFollowing:G?.isFollowing}):x(t,{className:`rounded-full`,size:`lg`,onClick:Y,children:j(`client.loginNow`)}),Z=K?de:G,Q=Z.name||``,$=Z.description||Z.signature||``,me=Z.followingCnt??0,he=Z.followersCnt??0,ge=Z.likeCnt??0,_e=Z.avatar||``;return S(s,{className:e(`flex flex-col relative`,A),children:[S(s,{className:`absolute top-0 p-3 z-10 flex items-center justify-between w-full`,children:[x(t,{variant:`ghost`,size:`icon-xs`,onClick:fe,className:e(`h-4 w-4 p-0 hover:bg-transparent`,{invisible:!l}),children:x(h,{className:`w-4 h-4`})}),x(T,{href:`/settings`,className:e({invisible:!H}),children:x(g,{})})]}),x(v,{isMine:le,enableCustomBackground:o,src:Z.background,onUnauthorizedClick:ue?Y:void 0}),S(s,{className:`flex-1 px-3`,children:[S(s,{className:`relative flex justify-end`,children:[x(_,{isMine:q,src:_e,alt:Q||`avatar`,onUnauthorizedClick:J?Y:void 0}),S(s,{className:`flex divide-x divide-text1/5 py-4`,children:[x(T,{href:H?`/followed`:`/followed?user_id=${Z.userId}`,onClick:X,children:S(s,{className:`px-4 flex flex-col items-center`,children:[x(c,{className:`font-bold text-base`,children:me}),x(c,{className:`font-normal text-sm text-text1/66`,children:M(`userProfileHeader.follow`)})]})}),x(T,{href:H?`/fans`:`/fans?user_id=${Z.userId}`,onClick:X,children:S(s,{className:`px-4 flex flex-col items-center`,children:[x(c,{className:`font-bold text-base`,children:he}),x(c,{className:`font-normal text-sm text-text1/66`,children:M(`userProfileHeader.fans`)})]})}),S(s,{className:`px-4 flex flex-col items-center`,children:[x(c,{className:`font-bold text-base`,children:ge}),x(c,{className:`font-normal text-sm text-text1/66`,children:M(`userProfileHeader.likesReceived`)})]})]})]}),S(s,{className:`flex items-center justify-between gap-1`,children:[x(c,{as:`p`,className:`text-text1 text-xl line-clamp-2 font-bold`,children:Q}),pe]}),$&&x(c,{as:`p`,className:`text-sm py-1 line-clamp-3 text-text1/66`,children:$})]})]})}export{k as UserProfileHeaderClient};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
import { ProfileHeaderInspectorProps, UserProfileHeaderAuthConfig, UserProfileHeaderClientProps, profileHeaderInspectorDefaultProps, profileHeaderInspectorPropsSchema } from "./schema.mjs";
|
|
3
3
|
import { UserProfileHeaderClient } from "./client.mjs";
|
|
4
4
|
import { BuildUserProfileHeaderPrefetchParams, UserProfileHeader, UserProfileHeaderProps, buildUserProfileHeaderPrefetch } from "./server.mjs";
|
|
5
|
-
import { profileHeaderMaterial } from "./material.mjs";
|
|
5
|
+
import { profileHeaderMaterial, profileHeaderMaterialWithDisabledBackground } from "./material.mjs";
|