-
-
Notifications
You must be signed in to change notification settings - Fork 10k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
115 additions
and
12 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
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
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
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
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
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
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
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,30 @@ | ||
import { Avatar, Icon } from '@lobehub/ui'; | ||
import { Input } from 'antd'; | ||
import { GitBranch } from 'lucide-react'; | ||
import { Flexbox } from 'react-layout-kit'; | ||
|
||
import DesktopChatInput from '@/app/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop'; | ||
import Conversation from '@/features/Conversation'; | ||
|
||
const ThreadBody = () => { | ||
return ( | ||
<Flexbox height={'100%'} justify={'space-between'} paddingInline={12}> | ||
<div /> | ||
<Flexbox flex={1} gap={12}> | ||
<Avatar | ||
avatar={<Icon icon={GitBranch} size={'large'} />} | ||
background={'#3f4148'} | ||
size={56} | ||
/> | ||
子话题名称(Optional) | ||
<Input placeholder={'abc'} variant={'filled'} /> | ||
<Flexbox height={'100%'}> | ||
<Conversation threadMode /> | ||
<DesktopChatInput /> | ||
</Flexbox> | ||
</Flexbox> | ||
</Flexbox> | ||
); | ||
}; | ||
|
||
export default ThreadBody; |
Empty file.
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,23 @@ | ||
import { Icon } from '@lobehub/ui'; | ||
import { Typography } from 'antd'; | ||
import { GitBranch } from 'lucide-react'; | ||
import { Flexbox } from 'react-layout-kit'; | ||
|
||
import { useChatStore } from '@/store/chat'; | ||
import { chatPortalSelectors } from '@/store/chat/selectors'; | ||
import { oneLineEllipsis } from '@/styles'; | ||
|
||
const Header = () => { | ||
// const [previewFileId] = useChatStore((s) => [chatPortalSelectors.previewFileId(s)]); | ||
|
||
return ( | ||
<Flexbox align={'center'} gap={8} horizontal style={{ marginInlineStart: 8 }}> | ||
<Icon icon={GitBranch} size={{ fontSize: 20 }} /> | ||
<Typography.Text className={oneLineEllipsis} style={{ fontSize: 16, fontWeight: 'bold' }}> | ||
新子话题 | ||
</Typography.Text> | ||
</Flexbox> | ||
); | ||
}; | ||
|
||
export default Header; |
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,10 @@ | ||
import { PortalImpl } from '../type'; | ||
import Body from './Body'; | ||
import Header from './Header'; | ||
import { useEnable } from './useEnable'; | ||
|
||
export const Thread: PortalImpl = { | ||
Body, | ||
Header, | ||
useEnable, | ||
}; |
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,6 @@ | ||
import { useChatStore } from '@/store/chat'; | ||
import { chatPortalSelectors } from '@/store/chat/selectors'; | ||
|
||
export const useEnable = () => { | ||
return useChatStore(chatPortalSelectors.showThread); | ||
}; |
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
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
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
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
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