Skip to content

Commit 080add9

Browse files
committed
refactor(components): move code-engine components to chat folder
1 parent e62bcd4 commit 080add9

File tree

13 files changed

+13
-13
lines changed

13 files changed

+13
-13
lines changed

frontend/src/app/chat/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import MainLayout from './main-layout';
1+
import ChatLayout from '../../components/chat/chat-layout';
22

33
export default function Layout({
44
children,
55
}: Readonly<{
66
children: React.ReactNode;
77
}>) {
8-
return <MainLayout>{children}</MainLayout>;
8+
return <ChatLayout>{children}</ChatLayout>;
99
}

frontend/src/app/chat/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import Home from './Home';
1+
import Chat from '@/components/chat';
22

33
export default function Page() {
4-
return <Home />;
4+
return <Chat />;
55
}

frontend/src/components/chat/chat-bottombar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import React, { useEffect } from 'react';
4-
import { ChatProps } from './chat';
4+
import { ChatProps } from './chat-panel';
55
import Link from 'next/link';
66
import { cn } from '@/lib/utils';
77
import { Button, buttonVariants } from '../ui/button';

frontend/src/app/chat/main-layout.tsx renamed to frontend/src/components/chat/chat-layout.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import { ResizablePanel, ResizablePanelGroup } from '@/components/ui/resizable';
55
import { SidebarProvider } from '@/components/ui/sidebar';
66
import { ChatSideBar } from '@/components/sidebar';
77

8-
import ProjectModal from '@/components/project-modal';
8+
import ProjectModal from '@/components/chat/project-modal';
99
import { useQuery } from '@apollo/client';
10-
import { ProjectProvider } from '@/components/code-engine/project-context';
1110
import { useChatList } from '@/hooks/useChatList';
1211
import { GET_USER_PROJECTS } from '@/graphql/request';
1312
import { useAuthContext } from '@/providers/AuthProvider';
13+
import { ProjectProvider } from './code-engine/project-context';
1414

15-
export default function MainLayout({
15+
export default function ChatLayout({
1616
children,
1717
}: {
1818
children: React.ReactNode;
File renamed without changes.

frontend/src/components/code-engine/code-engine.tsx renamed to frontend/src/components/chat/code-engine/code-engine.tsx

File renamed without changes.

frontend/src/components/code-engine/file-explorer-button.tsx renamed to frontend/src/components/chat/code-engine/file-explorer-button.tsx

File renamed without changes.

frontend/src/components/code-engine/file-structure.tsx renamed to frontend/src/components/chat/code-engine/file-structure.tsx

File renamed without changes.

frontend/src/components/code-engine/project-context.tsx renamed to frontend/src/components/chat/code-engine/project-context.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import React, {
88
useEffect,
99
} from 'react';
1010
import { useLazyQuery, useMutation, useQuery } from '@apollo/client';
11-
import { Project } from '../project-modal';
1211
import { useAuth } from '@/hooks/useAuth';
1312
import {
1413
CREATE_PROJECT,
1514
GET_CHAT_DETAILS,
1615
GET_USER_PROJECTS,
1716
} from '@/graphql/request';
17+
import { Project } from '../project-modal';
1818

1919
export interface ProjectContextType {
2020
projects: Project[];
File renamed without changes.

0 commit comments

Comments
 (0)