mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-08 03:25:06 +08:00
Refactor: UmiJs -> Vite (#12410)
### What problem does this PR solve? Refactor: UmiJs -> Vite+React ### Type of change - [x] Refactoring --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import { ReactComponent as AssistantIcon } from '@/assets/svg/assistant.svg';
|
||||
import { MessageType } from '@/constants/chat';
|
||||
import {
|
||||
IMessage,
|
||||
@ -31,18 +30,17 @@ import {
|
||||
removePDFDownloadInfo,
|
||||
} from '../pdf-download-button';
|
||||
import { RAGFlowAvatar } from '../ragflow-avatar';
|
||||
import SvgIcon from '../svg-icon';
|
||||
import { useTheme } from '../theme-provider';
|
||||
import { Button } from '../ui/button';
|
||||
import { AssistantGroupButton, UserGroupButton } from './group-button';
|
||||
import styles from './index.less';
|
||||
import styles from './index.module.less';
|
||||
import { ReferenceDocumentList } from './reference-document-list';
|
||||
import { ReferenceImageList } from './reference-image-list';
|
||||
import { UploadedMessageFiles } from './uploaded-message-files';
|
||||
|
||||
interface IProps
|
||||
extends Partial<IRemoveMessageById>,
|
||||
IRegenerateMessage,
|
||||
PropsWithChildren {
|
||||
extends Partial<IRemoveMessageById>, IRegenerateMessage, PropsWithChildren {
|
||||
item: IMessage;
|
||||
conversationId?: string;
|
||||
currentEventListWithoutMessageById?: (messageId: string) => INodeEvent[];
|
||||
@ -208,7 +206,11 @@ function MessageItem({
|
||||
isPerson
|
||||
/>
|
||||
) : (
|
||||
<AssistantIcon />
|
||||
<SvgIcon
|
||||
name={'assistant'}
|
||||
width={'100%'}
|
||||
className={cn('size-10 fill-current')}
|
||||
></SvgIcon>
|
||||
))}
|
||||
<section className="flex-col gap-2 flex-1">
|
||||
<div className="flex justify-between items-center">
|
||||
|
||||
Reference in New Issue
Block a user