mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-17 09:30:05 +00:00
feat: setup shell and files routes
- previously the nproject name to the backend was passed like 'C--USERS-...' and it used the legacy project-config.json file in .claude to get the original workspace paths, However, now we are directly passing the workspace and no parsing is necessary for the routes. So I modified the extractProjectDirectory to just return the project name.
This commit is contained in:
@@ -16,6 +16,8 @@ import { WebSocketProvider } from './contexts/WebSocketContext';
|
||||
import i18n from './i18n/config.js';
|
||||
import { SystemUIProvider } from '@/components/refactored/shared/contexts/system-ui-context/SystemUIProvider';
|
||||
import { RootLayout } from '@/components/refactored/shared/layout/RootLayout';
|
||||
import StandaloneShellRouterAdapter from '@/components/standalone-shell/view/StandaloneShellRouterAdapter';
|
||||
import FileTreeRouterAdapter from '@/components/file-tree/view/FileTreeRouterAdapter.js';
|
||||
|
||||
const isValidRouteTab = (value: string | undefined): boolean => {
|
||||
if (!value) {
|
||||
@@ -116,6 +118,8 @@ const router = createBrowserRouter(
|
||||
element: <WorkspaceLayout />,
|
||||
children: [
|
||||
{ index: true, element: <Navigate to="chat" replace /> },
|
||||
{ path: 'shell', element: <StandaloneShellRouterAdapter /> },
|
||||
{ path: 'files', element: <FileTreeRouterAdapter /> },
|
||||
{ path: ':tab', element: <WorkspaceTabRoute /> },
|
||||
],
|
||||
},
|
||||
@@ -123,6 +127,7 @@ const router = createBrowserRouter(
|
||||
path: 'sessions/:sessionId',
|
||||
children: [
|
||||
{ index: true, element: <Navigate to="chat" replace /> },
|
||||
{ path: 'shell', element: <StandaloneShellRouterAdapter /> },
|
||||
{ path: ':tab', element: <WorkspaceTabRoute /> },
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user