This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folder structure planning and app layout creation (#124)
- Loading branch information
1 parent
4ff3aee
commit bfa7039
Showing
24 changed files
with
581 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["prettier-plugin-tailwindcss"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
import React from 'react' | ||
import Header from '../components/header' | ||
import React from "react"; | ||
import Header from "../features/app-header/header"; | ||
import { Separator } from "@/components/ui/separator"; | ||
|
||
const DashboardLayout = () => { | ||
const DashboardLayout = ({ children }: { children: React.ReactNode }) => { | ||
return ( | ||
<Header></Header> | ||
) | ||
} | ||
<div className="h-screen flex flex-col"> | ||
<Header /> | ||
<Separator orientation="horizontal" /> | ||
<div className="flex-grow overflow-scroll p-5">{children}</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default DashboardLayout | ||
export default DashboardLayout; |
9 changes: 9 additions & 0 deletions
9
...s/app-akeru/src/app/(dashboard)/threads/features/assistants-list/assistants-list-item.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
const AssistantsListItem = () => { | ||
return ( | ||
<div>AssistantsListItem</div> | ||
) | ||
} | ||
|
||
export default AssistantsListItem |
9 changes: 9 additions & 0 deletions
9
packages/app-akeru/src/app/(dashboard)/threads/features/assistants-list/assistants-list.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from "react"; | ||
|
||
const AssistantsList = () => { | ||
return <div className="w-96 rounded-md bg-white shadow-md p-4"> | ||
|
||
</div>; | ||
}; | ||
|
||
export default AssistantsList; |
Empty file.
9 changes: 9 additions & 0 deletions
9
packages/app-akeru/src/app/(dashboard)/threads/features/conversation-area/chat-display.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from 'react' | ||
|
||
const ChatDisplay = () => { | ||
return ( | ||
<div className="bg-slate-200 h-full rounded-lg"></div> | ||
) | ||
} | ||
|
||
export default ChatDisplay |
11 changes: 11 additions & 0 deletions
11
packages/app-akeru/src/app/(dashboard)/threads/features/conversation-area/chat-input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Input } from '@/components/ui/input' | ||
import { Send } from 'lucide-react' | ||
import React from 'react' | ||
|
||
const ChatInput = () => { | ||
return ( | ||
<Input placeholder={'Enter your message'} endIcon={Send}/> | ||
) | ||
} | ||
|
||
export default ChatInput |
14 changes: 14 additions & 0 deletions
14
...es/app-akeru/src/app/(dashboard)/threads/features/conversation-area/conversation-area.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import React from 'react' | ||
import ChatInput from './chat-input' | ||
import ChatDisplay from './chat-display' | ||
|
||
const ConversationArea = () => { | ||
return ( | ||
<div className="flex-grow h-full flex flex-col gap-4"> | ||
<ChatDisplay/> | ||
<ChatInput/> | ||
</div> | ||
) | ||
} | ||
|
||
export default ConversationArea |
44 changes: 44 additions & 0 deletions
44
packages/app-akeru/src/app/(dashboard)/threads/features/thread-list/test-data.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import { ThreadsListItemProps } from "./threads-list-item"; | ||
|
||
export const THREADS_LIST_MOCK_DATA: ThreadsListItemProps[] = [ | ||
{ | ||
title: "Understanding React Hooks", | ||
description: "A deep dive into the use of hooks in React for state and lifecycle management.", | ||
date: "2024-05-01" | ||
}, | ||
{ | ||
title: "Announcing TypeScript 5.0", | ||
description: "Explore the new features and improvements in the latest TypeScript release.", | ||
date: "2024-04-15" | ||
}, | ||
{ | ||
title: "Getting Started with Python", | ||
description: "An introductory guide to programming in Python for beginners.", | ||
date: "2024-03-20" | ||
}, | ||
{ | ||
title: "AI Breakthrough in Natural Language Processing", | ||
description: "How the latest advancements in AI are revolutionizing language understanding.", | ||
date: "2024-02-10" | ||
}, | ||
{ | ||
title: "Join the Annual Developer Conference", | ||
description: "Meet and network with other developers at this year's conference. Keynotes, workshops, and more!", | ||
date: "2024-06-05" | ||
}, | ||
{ | ||
title: "Hiring Frontend Engineers", | ||
description: "We are looking for talented frontend engineers to join our team. Apply now!", | ||
date: "2024-05-20" | ||
}, | ||
{ | ||
title: "Top 10 Books for Software Engineers", | ||
description: "A curated list of must-read books for anyone in the software development field.", | ||
date: "2024-01-30" | ||
}, | ||
{ | ||
title: "Critical Security Patch Released", | ||
description: "A new security patch has been released to address vulnerabilities in the system. Update immediately.", | ||
date: "2024-04-05" | ||
} | ||
]; |
18 changes: 18 additions & 0 deletions
18
packages/app-akeru/src/app/(dashboard)/threads/features/thread-list/threads-list-item.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import React from "react"; | ||
|
||
export interface ThreadsListItemProps { | ||
title: string; | ||
description: string; | ||
date: string; | ||
isActive?: boolean; | ||
} | ||
|
||
const ThreadsListItem = (props: ThreadsListItemProps) => { | ||
return ( | ||
<div className=""> | ||
<p className="overflow-hidden whitespace-nowrap text-sm">{props.title}</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ThreadsListItem; |
Oops, something went wrong.