feat: update main chat and system chat UI
This commit is contained in:
@@ -2,6 +2,7 @@ import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
import { MainLayout } from './layout/MainLayout';
|
||||
import { ApisPage } from './pages/ApisPage';
|
||||
import { ChatPage } from './pages/ChatPage';
|
||||
import { ChatSharePage } from './pages/ChatSharePage';
|
||||
import { DocsPage } from './pages/DocsPage';
|
||||
import { PlansPage } from './pages/PlansPage';
|
||||
import { PlayPage } from './pages/PlayPage';
|
||||
@@ -10,6 +11,8 @@ import { buildChatPath, buildDocsPath } from './routes';
|
||||
export function AppShell() {
|
||||
return (
|
||||
<Routes>
|
||||
<Route path="/chat-share/:token" element={<ChatSharePage />} />
|
||||
<Route path="/chat/share/:token" element={<ChatSharePage />} />
|
||||
<Route path="/" element={<MainLayout />}>
|
||||
<Route index element={<Navigate to={buildChatPath('live')} replace />} />
|
||||
<Route path="docs/:folder" element={<DocsPage />} />
|
||||
@@ -17,6 +20,8 @@ export function AppShell() {
|
||||
<Route path="plans/:section" element={<PlansPage />} />
|
||||
<Route path="chat/:section" element={<ChatPage />} />
|
||||
<Route path="play/layout" element={<PlayPage />} />
|
||||
<Route path="play/draw" element={<PlayPage />} />
|
||||
<Route path="play/apps" element={<PlayPage />} />
|
||||
<Route path="play/test" element={<PlayPage />} />
|
||||
<Route path="play/cbt" element={<PlayPage />} />
|
||||
<Route path="play/layout-record/:layoutId" element={<PlayPage />} />
|
||||
|
||||
Reference in New Issue
Block a user