- Add "Cron" tab to navigation bar with Time04Icon - Add /crons route with CronsPage component - Add cron IPC handlers (list, toggle, remove) in electron/ipc/cron.ts - Expose cron API in preload.ts for renderer process - Add useCronJobs hook for fetching and managing jobs - Add CronJobList component with status badges, toggle switches, delete buttons, relative time display, and empty state Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
688 B
TypeScript
24 lines
688 B
TypeScript
import { createHashRouter, RouterProvider } from 'react-router-dom'
|
|
import Layout from './pages/layout'
|
|
import HomePage from './pages/home'
|
|
import ToolsPage from './pages/tools'
|
|
import SkillsPage from './pages/skills'
|
|
import CronsPage from './pages/crons'
|
|
|
|
const router = createHashRouter([
|
|
{
|
|
path: '/',
|
|
element: <Layout />,
|
|
children: [
|
|
{ index: true, element: <HomePage /> },
|
|
{ path: 'chat' },
|
|
{ path: 'tools', element: <ToolsPage /> },
|
|
{ path: 'skills', element: <SkillsPage /> },
|
|
{ path: 'crons', element: <CronsPage /> },
|
|
],
|
|
},
|
|
])
|
|
|
|
export default function App() {
|
|
return <RouterProvider router={router} />
|
|
}
|