forked from 77media/video-flow
更新 暴露create路由,临时增加template组件
This commit is contained in:
parent
ef52274f6c
commit
a93e08cd02
@ -35,7 +35,7 @@ const FamousTemplate: React.FC = () => {
|
|||||||
if (activeTab === "all") return true
|
if (activeTab === "all") return true
|
||||||
const categories = (t.category || "").split(",").map((s) => s.trim().toLowerCase())
|
const categories = (t.category || "").split(",").map((s) => s.trim().toLowerCase())
|
||||||
return categories.includes(activeTab)
|
return categories.includes(activeTab)
|
||||||
})
|
}).slice(0, 10)
|
||||||
|
|
||||||
const topTemplates = filteredTemplates
|
const topTemplates = filteredTemplates
|
||||||
|
|
||||||
|
|||||||
@ -15,9 +15,9 @@ export const navigationItems: Navigations[] = [
|
|||||||
title: 'Main',
|
title: 'Main',
|
||||||
items: [
|
items: [
|
||||||
{ name: 'Home', href: '/home', icon: Home },
|
{ name: 'Home', href: '/home', icon: Home },
|
||||||
|
{ name: 'Create', href: '/create', icon: Plus },
|
||||||
{ name: 'My Portfolio', href: '/movies', icon: BookHeart },
|
{ name: 'My Portfolio', href: '/movies', icon: BookHeart },
|
||||||
{ name: 'Share', href: '/share', icon: Gift },
|
{ name: 'Share', href: '/share', icon: Gift },
|
||||||
{ name: 'Create', href: '/create', icon: Plus },
|
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -473,9 +473,9 @@ export default function CreateToVideo2() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 视频工具组件 - 使用独立组件 */}
|
{/* 视频工具组件 - 使用独立组件 */}
|
||||||
{!isLoading &&
|
{/* {!isLoading &&
|
||||||
<ChatInputBox noData={episodeList.length === 0} />
|
<ChatInputBox noData={episodeList.length === 0} />
|
||||||
}
|
} */}
|
||||||
|
|
||||||
{/* 分享弹框 */}
|
{/* 分享弹框 */}
|
||||||
{selectedProject && (
|
{selectedProject && (
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import { VideoCreationForm } from './CreateInput';
|
import { VideoCreationForm } from './CreateInput';
|
||||||
|
import FamousTemplate from '@/components/FamousTemplate';
|
||||||
|
|
||||||
export default function CreateVideo() {
|
export default function CreateVideo() {
|
||||||
return (
|
return (
|
||||||
@ -12,6 +13,7 @@ export default function CreateVideo() {
|
|||||||
<VideoCreationForm />
|
<VideoCreationForm />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<FamousTemplate />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user