Compare commits
3 Commits
326297eecf
...
d042f565ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d042f565ba | ||
|
|
7733f93e57 | ||
|
|
362be640a9 |
@@ -16,7 +16,6 @@ import NotFound from "./pages/OtherPage/NotFound";
|
|||||||
|
|
||||||
// Lazy load all other pages - only loads when navigated to
|
// Lazy load all other pages - only loads when navigated to
|
||||||
const Home = lazy(() => import("./pages/Dashboard/Home"));
|
const Home = lazy(() => import("./pages/Dashboard/Home"));
|
||||||
const AIControlHub = lazy(() => import("./pages/AIControlHub"));
|
|
||||||
|
|
||||||
// Planner Module - Lazy loaded
|
// Planner Module - Lazy loaded
|
||||||
const PlannerDashboard = lazy(() => import("./pages/Planner/Dashboard"));
|
const PlannerDashboard = lazy(() => import("./pages/Planner/Dashboard"));
|
||||||
@@ -178,11 +177,6 @@ export default function App() {
|
|||||||
<Home />
|
<Home />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
} />
|
} />
|
||||||
<Route path="/ai-control-hub" element={
|
|
||||||
<Suspense fallback={null}>
|
|
||||||
<AIControlHub />
|
|
||||||
</Suspense>
|
|
||||||
} />
|
|
||||||
|
|
||||||
{/* Planner Module - Redirect dashboard to keywords */}
|
{/* Planner Module - Redirect dashboard to keywords */}
|
||||||
<Route path="/planner" element={<Navigate to="/planner/keywords" replace />} />
|
<Route path="/planner" element={<Navigate to="/planner/keywords" replace />} />
|
||||||
|
|||||||
@@ -169,11 +169,6 @@ const AppSidebar: React.FC = () => {
|
|||||||
name: "Dashboard",
|
name: "Dashboard",
|
||||||
path: "/",
|
path: "/",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
icon: <BoltIcon />,
|
|
||||||
name: "AI Control Hub",
|
|
||||||
path: "/ai-control-hub",
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
import React from 'react';
|
|
||||||
import PageMeta from '../../components/common/PageMeta';
|
|
||||||
import Button from '../../components/common/Button';
|
|
||||||
import Table from '../../components/common/Table';
|
|
||||||
|
|
||||||
const AIControlHub = () => {
|
|
||||||
const statusData = [
|
|
||||||
{ module: 'Planner', activeTasks: 5, pendingTasks: 3, lastRun: '2022-10-20', status: 'Active' },
|
|
||||||
{ module: 'Writer', activeTasks: 2, pendingTasks: 0, last极速赛车开奖结果历史记录|极速赛车开奖直播+【copy url:hk5893.com】Run: '2022-10-19', status: 'Inactive' },
|
|
||||||
];
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div>
|
|
||||||
<PageMeta title='AI Control Hub' description='Manage AI-related functions' />
|
|
||||||
<div className='flex justify-between items-center mb-4'>
|
|
||||||
<h1 className='text-xl font-bold'>AI Control Hub</h1>
|
|
||||||
<div>
|
|
||||||
<Button label='Planner' onClick={() => {}} />
|
|
||||||
<Button label='Writer' onClick={() => {}} />
|
|
||||||
<Button label='Thinker' onClick={() => {}} />
|
|
||||||
<Button label='Image Lab' onClick={() => {}} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Table data={statusData} />
|
|
||||||
|
|
||||||
<div className='mt-4'>
|
|
||||||
<h2 className='text-lg'>Quick Actions</h2>
|
|
||||||
<div className='flex space-x-2'>
|
|
||||||
<Button label='Generate Clusters' onClick={() => {}} />
|
|
||||||
<Button label='Generate Ideas' onClick={() => {}} />
|
|
||||||
<Button label='Generate Content' onClick={() => {}} />
|
|
||||||
<Button label='Publish Selected' onClick={() => {}} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
export default AIControlHub;
|
|
||||||
Reference in New Issue
Block a user